bring mips*-linux back to a buildable state

Alexandre Oliva aoliva@redhat.com
Tue Jul 20 09:12:00 GMT 2004


On Jul 19, 2004, Andreas Jaeger <aj@suse.de> wrote:

> Alexandre Oliva <aoliva@redhat.com> writes:
>> These patches gets all 3 ABIs of mips64-linux to build and work again.

> Can you send them separtly, so that it's easier to comment on them?

Sure.  Here's the first one.  GCC 3.4 introduced a change in the way
it defines built-in ABI macros.  Before 3.4, it used to define
_MIPS_SIM_ABI32 when compiling for o32, so we could use _MIPS_SIM ==
_MIPS_SIM_ABI32 to test whether we were generating code for o32.  Even
when compiling for other ABIs, when _MIPS_SIM_ABI32 was not defined,
the preprocessor would get the result of the compare right, since it
would then regard the undefined identifier as 0, and _MIPS_SIM never
equals 0.

The change in GCC required me to give up on the shortcut I'd taken to
avoid having to include sgidefs.h everywhere that referenced
_MIPS_SIM.  This patch implements the changes in glibc to make sure
every time we reference any other the _MIPS_SIM_* macros, sgidefs.h
has already been included.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips-sim-abi-update.patch
Type: text/x-patch
Size: 33071 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040720/bed0d2a0/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


More information about the Libc-alpha mailing list