On Tue, Dec 23, 2003 at 01:05:29PM +0100, Maciej W. Rozycki wrote:
> On Tue, 23 Dec 2003, Dimitri Torfs wrote:
> > I just upgraded to the arch/mips/Makefile which adds support for newer
> > gcc/gas options. I now get the warning
> > "cc1: warning: The -march option is incompatible to -mipsN and therefore
> > +ignored."
> > when compiling. I have the CONFIG_CPU_VR41XX option set, which sets
> > the c-flags to:
> > "-I /home/dimitri/work/linux/include/asm/gcc -G 0 -mno-abicalls
> > -fno-pic -pipe -finline-limit=100000 -mabi=32 -march=r4100 -mips3
> > -Wa,-32 -Wa,-march=r4100 -Wa,-mips3 -Wa,--trap"
> > I suppose that for the newer gcc versions only -march= should be
> > set (I'm using gcc-3.2.2) ?
> Thanks for the report -- I suppose we can remove "-mips" whenever
> "-mabi=" is supported by gcc. I'll do an update in January after I am
> back from vacation.
Tried removing the -mips3 gcc option => -D_MIPS_ISA=_MIPS_ISA_MIPS1 is
set. I think it might be better to use "-mtune=<cpu> -mipsN". That
seems to set the correct options, without any warnings (using gcc
3.2.2). After having carefully read the gcc documentation (again)
regarding the MIPS options, I think that's the way to go for newer
gcc's as well. If anyone has already tried ?
Dimitri Torfs | NSCE
email@example.com | The Corporate Village
tel: +32 2 7008541 | Da Vincilaan 7 - D1
fax: +32 2 7008622 | B-1935 Zaventem - Belgium