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:
> Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> writes:
> 
> > 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.
> 
> Is your objection is that it's possible to silently link executables
> assembled with -mfp32 with others assembled with -mfp64?

Err, no, and it's not really a objection, I only see some
potential conflict:

mips_32bitmode sets the EF_MIPS_32BITMODE flag. As far as I
understood the ELF format this guarantees the execution system
that only 32bit wide regs are used. This leads to two questions:

 - Does the flags meaning include fp regs? It's AFAIK not
   explicitly stated, but since the flags use is to provide
   backward compatibility, I assume yes.

 - Do the toolchains of People using -mfp64 care about the
   EF_MIPS_32BITMODE flag?


Thiemo


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