Does -march=r5000 imply HAVE_64BIT_GPRS?

H . J . Lu hjl@lucon.org
Tue Aug 14 08:58:00 GMT 2001


On Tue, Aug 14, 2001 at 04:54:06PM +0100, Richard Sandiford wrote:
> "H . J . Lu" <hjl@lucon.org> writes:
> 
> > It doesn't work. Try  -march=r5000 -mips2 and run
> > 
> > # gcc -march=r5000 -mips2 -c foo.s
> > # readelf -h foo.o
> > 
> > I got
> > ....
> >   Flags:                             0x30000102, pic, mips4 UNKNOWN
> >   						     ^^^^^^^
> > ....
> 
> Oh, I see what you mean.  FWIW, you do get 32-bit code, despite what the
> header says...

It looks like the case. But I don't know for sure. Assuming I do get
32-bit code, why is mips4 set? When the binary loaded into memory,
bad things may happen when the mips4 flag is set.


H.J.



More information about the Binutils mailing list