public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] tile: default to little-endian in bits/endian.h
@ 2013-06-12 20:57 Chris Metcalf
  2013-06-13  2:53 ` Mike Frysinger
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Chris Metcalf @ 2013-06-12 20:57 UTC (permalink / raw)
  To: libc-ports, David Miller, Carlos O'Donell; +Cc: vapier

2013-06-12  Chris Metcalf  <cmetcalf@tilera.com>

	* sysdeps/tile/bits/endian.h (__BYTE_ORDER): Default to little.

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.

This was pointed out by Mike Frysinger (cc'ed).

David, Carlos, I'd like to also backport this to glibc 2.17 and 2.16,
to make cross-building easier there.  It applies to 2.15 as well, but
I'm not sure how far back it makes sense to go with this kind of thing.

diff --git a/ports/sysdeps/tile/bits/endian.h b/ports/sysdeps/tile/bits/endian.h
index 43d94bb..835042a 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
-- 
1.7.10.3

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-19 19:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-12 20:57 [PATCH] tile: default to little-endian in bits/endian.h Chris Metcalf
2013-06-13  2:53 ` Mike Frysinger
2013-06-13 14:26 ` Carlos O'Donell
2013-06-15 17:21 ` Joseph S. Myers
2013-06-15 18:55   ` Chris Metcalf
2013-06-19 16:36 ` Chris Metcalf
2013-06-19 19:21   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).