This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, mips] Add nan2008 multilibs to mips-mti-* targets.
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: "Steve Ellcey " <sellcey at mips dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 08 Aug 2013 19:58:36 +0100
- Subject: Re: [patch, mips] Add nan2008 multilibs to mips-mti-* targets.
- References: <8e7346c2-89be-4adf-bc79-e48cb3296499 at BAMAIL02 dot ba dot imgtec dot org>
"Steve Ellcey " <sellcey@mips.com> writes:
> I would like to add new variations to the mips-mti-elf and mips-mti-linux
> targets to support the new NaN format on MIPS (mnan=2008 for IEEE 754-2008).
> While I was doing this I noticed that I was handling mips16 and micromips
> in a dumb manner. I had them in MULTILIB_OPTIONS as non-exclusive flags
> and then used MULTILIB_EXCEPTIONS to not allow them to both be used.
> So I also changed MULTILIB_OPTIONS to make mips16 and micromips exclusive and
> then I could get rid of one of the MULTILIB_EXCEPTIONS entries.
Good spot. Looks like you could do the same thing with -mabi=64, but it
isn't as logical as the mips16/micromips thing and probably wouldn't win much.
> I also make the new mnan=2008 flag exclusive of msoft-float since it
> is only useful for hard-float.
Well, it's useful for both, because -msoft-float uses the same NaN
format as -mhard-float. But not having the multilib is fine.
> 2013-08-07 Steve Ellcey <sellcey@mips.com>
>
> * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
> * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
> micromips incompatible. Add nan2008.
> (MULTILIB_DIRNAMES): Add nan2008.
> (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
> * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
> and micromips incompatible. Add nan2008.
> (MULTILIB_DIRNAMES): Add nan2008.
> (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
OK, thanks.
Richard