aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2013-06-12 16:48:33 -0400
committerChris Metcalf <cmetcalf@tilera.com>2013-06-13 11:43:21 -0400
commitad36ba2bd67398edefe31aa039090912f76bffce (patch)
tree89fcdca3432921862659a572f724c14f5d80dcf4
parent1f24b9ad0f173f7904b7a0fd559cc287660be1b2 (diff)
downloadglibc-ad36ba2bd67398edefe31aa039090912f76bffce.tar
glibc-ad36ba2bd67398edefe31aa039090912f76bffce.tar.gz
glibc-ad36ba2bd67398edefe31aa039090912f76bffce.tar.bz2
glibc-ad36ba2bd67398edefe31aa039090912f76bffce.zip
tile: default to little-endian in bits/endian.h
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.
-rw-r--r--ports/ChangeLog.tile4
-rw-r--r--ports/sysdeps/tile/bits/endian.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/ports/ChangeLog.tile b/ports/ChangeLog.tile
index 5c7d5656a2..4a94b29af4 100644
--- a/ports/ChangeLog.tile
+++ b/ports/ChangeLog.tile
@@ -1,3 +1,7 @@
+2013-06-12 Chris Metcalf <cmetcalf@tilera.com>
+
+ * sysdeps/tile/bits/endian.h (__BYTE_ORDER): Default to little.
+
2013-06-05 Joseph Myers <joseph@codesourcery.com>
* sysdeps/tile/tilepro/memcpy.S: Remove trailing whitespace.
diff --git a/ports/sysdeps/tile/bits/endian.h b/ports/sysdeps/tile/bits/endian.h
index 43d94bb7a7..835042a7ac 100644
--- a/ports/sysdeps/tile/bits/endian.h
+++ b/ports/sysdeps/tile/bits/endian.h
@@ -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