This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17043] Can't build a compiler that works for big and littleendian targets
- From: "wilson at specifixinc dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2004 23:20:53 -0000
- Subject: [Bug target/17043] Can't build a compiler that works for big and littleendian targets
- References: <20040816002338.17043.peterc@gelato.unsw.edu.au>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From wilson at specifixinc dot com 2004-08-16 23:20 -------
Subject: Re: New: Can't build a compiler that works for
big and littleendian targets
peterc at gelato dot unsw dot edu dot au wrote:
> arm-linux-gcc --mbigendian -c
Normally linux targets aren't bi-endian. A little-endian kernel won't
run big-endian code and vice versa, so there is little point in making
them bi-endian. And if the native compiler isn't bi-endian, then a
cross compiler won't be either. You may have to do a litting porting
work if you really need this.
There is also the question of whether you have bi-endian system
libraries, and if so, how they are organized. Also, I'd recommend
against use of --prefix=/usr for a cross compiler, and I'd suggest using
--sysroot= to specify where the target libraries and header files are.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17043