From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18930 invoked by alias); 12 Jun 2013 20:57:39 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 18896 invoked by uid 89); 12 Jun 2013 20:57:33 -0000 X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_05,RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from usmamail.tilera.com (HELO USMAMAIL.TILERA.COM) (12.216.194.151) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 12 Jun 2013 20:57:32 +0000 Received: from farm-0002.internal.tilera.com (10.2.0.32) by USMAEXCH2.tad.internal.tilera.com (10.3.0.33) with Microsoft SMTP Server (TLS) id 14.0.722.0; Wed, 12 Jun 2013 16:57:30 -0400 Received: (from cmetcalf@localhost) by farm-0002.internal.tilera.com (8.14.4/8.12.11/Submit) id r5CKvRl0008808; Wed, 12 Jun 2013 16:57:27 -0400 Message-ID: <201306122057.r5CKvRl0008808@farm-0002.internal.tilera.com> From: Chris Metcalf Date: Wed, 12 Jun 2013 20:57:00 -0000 Subject: [PATCH] tile: default to little-endian in bits/endian.h To: , David Miller , Carlos O'Donell CC: MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-06/txt/msg00013.txt.bz2 2013-06-12 Chris Metcalf * 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