This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Patch to add -mfp32 support to MIPS gas
- To: binutils at sources dot redhat dot com
- Subject: Re: Patch to add -mfp32 support to MIPS gas
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- Date: Fri, 20 Jul 2001 21:17:38 +0200
Richard Sandiford wrote:
[snip]
> As to setting mips_32bitmode if -mgp32 or -mfp32 is specified. Well,
> the code has this to say about -mgp32 setting mips_32bitmode:
>
> /* We deliberately don't allow "-gp32" to set the MIPS_32BITMODE
> flag in object files because to do so would make it
> impossible to link with libraries compiled without "-gp32".
> This is unnecessarily restrictive.
>
> We could solve this problem by adding "-gp32" multilibs to
> gcc, but to set this flag before gcc is built with such
> multilibs will break too many systems. */
> #if 0
> mips_32bitmode = 1;
> #endif
>
> I thought the same argument would apply to -mfp32.
Ok, that looks reasonable.
Another Question, what happens if somebody specifies
"-mips1 -mcpu=r10000 -mfp=64" ? AFAICS it sets mips_32bitmode
and uses 64bit FPR's, which creates bad ELF object files.
The -mgp* options avoid this trap by setting mips_64 accordingly.
I don't know what would be appropriate for -mfp* here.
Thiemo