]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
tile: default to little-endian in bits/endian.h
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 12 Jun 2013 20:48:33 +0000 (16:48 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Wed, 19 Jun 2013 19:36:53 +0000 (15:36 -0400)
This turns out to be helpful when doing a from-scratch cross-compile of
gcc and glibc, since you can then do "make install-headers" in glibc
even before you have a functioning tile gcc.

(cherry picked from commit ad36ba2bd67398edefe31aa039090912f76bffce)

ports/ChangeLog.tile
ports/sysdeps/tile/bits/endian.h

index 68e1b0a61e7e8650d3ffea0583755c846242af0e..303311d303317115d4d9583b364917324cfd1982 100644 (file)
@@ -1,3 +1,7 @@
+2013-06-12  Chris Metcalf  <cmetcalf@tilera.com>
+
+       * sysdeps/tile/bits/endian.h (__BYTE_ORDER): Default to little.
+
 2013-05-23  Chris Metcalf  <cmetcalf@tilera.com>
 
        * sysdeps/tile/tilegx/Makefile ($(cflags-mcmodel-large)):
index 43d94bb7a79f1c7a013418936e7cfc138a2255d4..835042a7ac1fb508cdb031a840a89d59c97dda7c 100644 (file)
@@ -6,8 +6,6 @@
 
 #if defined __BIG_ENDIAN__
 # define __BYTE_ORDER __BIG_ENDIAN
-#elif defined __LITTLE_ENDIAN__
-# define __BYTE_ORDER __LITTLE_ENDIAN
 #else
-# error "Endianness not declared!!"
+# define __BYTE_ORDER __LITTLE_ENDIAN
 #endif