This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Gcc 2.96 endianness fixes for MIPS/Linux and MIPS/*
- To: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Subject: Re: Gcc 2.96 endianness fixes for MIPS/Linux and MIPS/*
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 21 Aug 2000 08:33:28 -0600
- cc: gcc-patches at gcc dot gnu dot org, Andreas Jaeger <aj at suse dot de>
- Reply-To: law at cygnus dot com
In message <Pine.GSO.3.96.1000818165029.8281D-100000@delta.ds2.pg.gda.pl>you
write:
> Hi,
>
> I've noticed the '-E[BL]' endianness option does not get passed to the
> assembler for the default endianness (i.e. when no override is specified)
> for MIPS/*. The option does not get passed to the linker for MIPS/Linux,
> as well.
>
> The following patch fixes these problems. As both the assembler and the
> linker uses the same options for the endianness I decided to use a common
> spec for both to prevent possible future discrepancies.
>
> 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
>
> * config/mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
> and linker_endian_spec to endian_spec.
> (ENDIAN_SPEC): Add %{EB} and %{EL}.
> (LINK_SPEC): Remove %{EB} and %{EL}.
> (ASM_SPEC): Likewise. Use %(endian_spec).
>
> * config/mips/linux.h (LINK_SPEC): Use %(endian_spec).
Thanks. Installed.
jeff