This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: ABI / dynamic list now on wiki
- From: Chris Metcalf <cmetcalf at tilera dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>, Richard Henderson <rth at redhat dot com>, Carlos O'Donell <carlos at redhat dot com>, Andreas Schwab <schwab at linux-m68k dot org>, Andreas Krebbel <Andreas dot Krebbel at de dot ibm dot com>, "David S. Miller" <davem at davemloft dot net>, David Holsgrove <david dot holsgrove at xilinx dot com>
- Date: Thu, 23 Jan 2014 15:55:59 -0500
- Subject: Re: ABI / dynamic list now on wiki
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1401230114430 dot 16981 at digraph dot polyomino dot org dot uk> <52E14305 dot 2030705 at tilera dot com> <Pine dot LNX dot 4 dot 64 dot 1401231639040 dot 31884 at digraph dot polyomino dot org dot uk> <52E1649A dot 5090601 at tilera dot com> <Pine dot LNX dot 4 dot 64 dot 1401231854050 dot 31884 at digraph dot polyomino dot org dot uk>
On 1/23/2014 1:58 PM, Joseph S. Myers wrote:
> On Thu, 23 Jan 2014, Chris Metcalf wrote:
>
>>> (and probably also
>>> tilegx - in fact I don't see any BE support for that in GCC either).
>> There is BE support for tilegx in binutils, gcc, linux, and glibc, and
>> we do some limited regression testing on this configuration every night,
>> so at least I know what we ship customers isn't too broken. I'm pretty
>> confident support should be in the open-source gcc, though I'm not that
>> close to the community return process for gcc.
> I see:
>
> $ grep -i endian *
> tilegx-c.c: TILEGX_CPU_CPP_ENDIAN_BUILTINS ();
> tilegx.h:#define TILEGX_CPU_CPP_ENDIAN_BUILTINS() \
> tilegx.h: if (TARGET_BIG_ENDIAN) \
> tilegx.h: builtin_define ("__BIG_ENDIAN__"); \
> tilegx.h: builtin_define ("__LITTLE_ENDIAN__"); \
> tilegx.h:#define TARGET_BIG_ENDIAN 0
> tilegx.h:#define BITS_BIG_ENDIAN 0
> tilegx.h:#define BYTES_BIG_ENDIAN TARGET_BIG_ENDIAN
> tilegx.h:#define WORDS_BIG_ENDIAN TARGET_BIG_ENDIAN
>
> That doesn't look to me like there's any way to enable big-endian - it
> looks like hard-coded LE.
Yes, I checked with our gcc open source maintainer, and he says that while it wasn't contributed back yet, the work is done, so he'll be contributing it back sometime soon.
--
Chris Metcalf, Tilera Corp.
http://www.tilera.com