This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

RE: IRIX: -mabi=n32 generates -mips4 code instead of -mips3


I think it is a problem, and suggested the patch
http://gcc.gnu.org/ml/gcc-patches/1999-06/msg00562.html
It still works with the current snapshots.

+++++++++++++++++++++++++++++++++++++++++
(Mr) David Billinghurst
Comalco Research Centre
PO Box 316, Thomastown, Vic, Australia, 3074
Phone:	+61 3 9469 0642
FAX:	+61 3 9462 2700
Email:	David.Billinghurst@riotinto.com.au




> -----Original Message-----
> From:	Jesper Eskilson [SMTP:jojo@sics.se]
> Sent:	Friday, 28 January 2000 3:38
> To:	gcc-bugs@gcc.gnu.org
> Subject:	IRIX: -mabi=n32 generates -mips4 code instead of -mips3
> 
> 
> Hello GCC maintainers,
> 
> I have a possible GCC bug I would like to get investigated. The attached
> tarball contains the output files from the command
> 
> % (gcc -v --save-temps -mabi=n32 ../foo.c -o foo && file foo )>
> transcript.txt 2>&1
> 
> The last line of the transcript-file, i.e. output from 'file foo', is:
> 
> foo:		ELF N32 MSB mips-4 dynamic executable (not stripped) MIPS -
> version 1
> 
> But, according to the documentation
> 
> [...]
> `-mabi=32'
> `-mabi=o64'
> `-mabi=n32'
> `-mabi=64'
> `-mabi=eabi'
>      Generate code for the indicated ABI.  The default instruction
>      level is `-mips1' for `32', `-mips3' for `n32', and `-mips4'
>      otherwise.  Conversely, with `-mips1' or `-mips2', the default ABI
>      is `32'; otherwise, the default ABI is `64'.
> [...]
> 
> -mabi=n32 should generate -mips3 code.
> 
> GCC has been compiled on a R10000 machine (called Brian, see output from
> hinv below), and the program foo.c was compiled and run on the same
> machine.
> 
> Did I get something wrong, or is this a bug? 
> 
> Regards,
> 
> /Jesper
> 
> -----------------------------------------------------------------
> Jesper Eskilson <jojo@sics.se>           http://www.sics.se/~jojo
> ----------------------------------------------------------------- << File:
> bugreport.tgz >>  << File: ATT04481.ATT >> 

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