[committed] include: Sync plugin-api.h with GCC

Message ID 20200401093916.91482-1-hjl.tools@gmail.com
State New
Headers show
Series
  • [committed] include: Sync plugin-api.h with GCC
Related show

Commit Message

H.J. Lu via Binutils April 1, 2020, 9:39 a.m.
From: Martin Liska <mliska@suse.cz>


I am backporting it to 2.34 branch.

H.J.
----
Fix typo in a macro usage.

	PR lto/94249
	* plugin-api.h: Fix a typo.
---
 include/ChangeLog    | 6 ++++++
 include/plugin-api.h | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

-- 
2.25.1

Patch

diff --git a/include/ChangeLog b/include/ChangeLog
index f9d4101fe6..65107bdacc 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,9 @@ 
+2020-04-01  Martin Liska  <mliska@suse.cz>
+	    Maciej W. Rozycki <macro@linux-mips.org>
+
+	PR lto/94249
+	* plugin-api.h: Fix a typo.
+
 2020-03-30  Nelson Chu  <nelson.chu@sifive.com>
 
 	* opcode/riscv-opc.h: Update CSR to 1.11.
diff --git a/include/plugin-api.h b/include/plugin-api.h
index 864d2bf91a..e317d78478 100644
--- a/include/plugin-api.h
+++ b/include/plugin-api.h
@@ -51,7 +51,7 @@ 
 /* Older GCC releases (<4.6.0) can make detection from glibc macros.  */
 #if defined(__GLIBC__) || defined(__GNU_LIBRARY__) || defined(__ANDROID__)
 #include <endian.h>
-#ifdef _BYTE_ORDER
+#ifdef __BYTE_ORDER
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define PLUGIN_LITTLE_ENDIAN 1
 #elif __BYTE_ORDER == __BIG_ENDIAN