This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to add -mfp32 support to MIPS gas


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]