From: Chris Metcalf Date: Wed, 12 Jun 2013 20:48:33 +0000 (-0400) Subject: tile: default to little-endian in bits/endian.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca4023620a265f90a4022b98ac481fd1d053723a;p=thirdparty%2Fglibc.git 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. (cherry picked from commit ad36ba2bd67398edefe31aa039090912f76bffce) --- diff --git a/ports/ChangeLog.tile b/ports/ChangeLog.tile index 68e1b0a61e7..303311d3033 100644 --- a/ports/ChangeLog.tile +++ b/ports/ChangeLog.tile @@ -1,3 +1,7 @@ +2013-06-12 Chris Metcalf + + * sysdeps/tile/bits/endian.h (__BYTE_ORDER): Default to little. + 2013-05-23 Chris Metcalf * sysdeps/tile/tilegx/Makefile ($(cflags-mcmodel-large)): diff --git a/ports/sysdeps/tile/bits/endian.h b/ports/sysdeps/tile/bits/endian.h index 43d94bb7a79..835042a7ac1 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