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]

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
-----------------------------------------------------------------

bugreport.tgz


(brian) ~/tmp -> hinv
2 195 MHZ IP27 Processors
CPU: MIPS R10000 Processor Chip Revision: 2.6
FPU: MIPS R10010 Floating Point Chip Revision: 0.0
Main memory size: 256 Mbytes
Instruction cache size: 32 Kbytes
Data cache size: 32 Kbytes
Secondary unified instruction/data cache size: 4 Mbytes
Integral SCSI controller 0: Version QL1040B (rev. 2), single ended
  Disk drive: unit 1 on SCSI controller 0
  CDROM: unit 6 on SCSI controller 0
Integral SCSI controller 1: Version QL1040B (rev. 2), single ended
IOC3 serial port: tty1
IOC3 serial port: tty2
IOC3 serial port: tty3
IOC3 serial port: tty4
IOC3 parallel port: plp1
Graphics board: InfiniteReality2
Integral Fast Ethernet: ef0, version 1, module 1, slot io1, pci 2
Iris Audio Processor: version RAD revision 7.0, number 1
Origin PCI XIO board, module 1 slot 2: Revision 3
Origin BASEIO board, module 1 slot 1: Revision 3
DIVO Video: controller 0 unit 0: Input, Output
IOC3 external interrupts: 1

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