From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7648 invoked by alias); 19 Jun 2013 16:36:51 -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 7635 invoked by uid 89); 19 Jun 2013 16:36:50 -0000 X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,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, 19 Jun 2013 16:36:49 +0000 Received: from [10.7.0.95] (10.9.0.23) by USMAExch2.tad.internal.tilera.com (10.3.0.33) with Microsoft SMTP Server id 14.0.722.0; Wed, 19 Jun 2013 12:36:47 -0400 Message-ID: <51C1DE1E.5060701@tilera.com> Date: Wed, 19 Jun 2013 16:36:00 -0000 From: Chris Metcalf User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: David Miller CC: , Carlos O'Donell , Subject: Re: [PATCH] tile: default to little-endian in bits/endian.h References: <201306122057.r5CKvRl0008808@farm-0002.internal.tilera.com> In-Reply-To: <201306122057.r5CKvRl0008808@farm-0002.internal.tilera.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2013-06/txt/msg00039.txt.bz2 Ping to David Miller for the 2.17 backport; the change is on master, 2.15, and 2.16 at this point. On 6/12/2013 4:48 PM, Chris Metcalf wrote: > 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 -- Chris Metcalf, Tilera Corp. http://www.tilera.com