Use the same bits/endian.h for i386/x86_64
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 30 May 2012 21:50:32 +0000 (14:50 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 30 May 2012 21:50:32 +0000 (14:50 -0700)
ChangeLog
sysdeps/x86/bits/endian.h [moved from sysdeps/i386/bits/endian.h with 78% similarity]
sysdeps/x86_64/bits/endian.h [deleted file]

index 5b1346e..2f9d7a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #14117]
+       * sysdeps/i386/bits/endian.h: Removed.
+       * sysdeps/x86_64/bits/endian.h: Renamed to ...
+       * sysdeps/x86/bits/endian.h: This.
+
        * sysdeps/i386/bits/byteswap.h: Removed.
        * sysdeps/i386/bits/byteswap-16.h: Likewise.
        * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
similarity index 78%
rename from sysdeps/i386/bits/endian.h
rename to sysdeps/x86/bits/endian.h
index 54bd9d1..5a56c72 100644 (file)
@@ -1,4 +1,4 @@
-/* i386 is little-endian.  */
+/* i386/x86_64 are little-endian.  */
 
 #ifndef _ENDIAN_H
 # error "Never use <bits/endian.h> directly; include <endian.h> instead."
diff --git a/sysdeps/x86_64/bits/endian.h b/sysdeps/x86_64/bits/endian.h
deleted file mode 100644 (file)
index 2f59ead..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/* x86_64 is little-endian.  */
-
-#ifndef _ENDIAN_H
-# error "Never use <bits/endian.h> directly; include <endian.h> instead."
-#endif
-
-#define __BYTE_ORDER __LITTLE_ENDIAN