This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Does -march=r5000 imply HAVE_64BIT_GPRS?
"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...
> > > That means you cannot use -march=r5000/-mcpu=r5000 only for 32bit
> > > applications. Is that intentional?
> >
> > Have you tried -mfp32 and -mgp32?
> >
>
> Same.
Yeah, but -mgp32 and -mfp32 aren't supposed to affect the ELF header flags.
Again, you get 32-bit code.
Richard