Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!tut.cis.ohio-state.edu!wkd7.mit.edu!hultquis From: hultquis@wkd7.mit.edu (Jeff P.M. Hultquist) Newsgroups: gnu.gcc.bug Subject: problems passing (int,float) on MIPS/Iris Message-ID: <8911291854.AA03345@wkd7> Date: 29 Nov 89 18:54:24 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: hultquis@nas.nasa.gov Distribution: gnu Organization: GNUs Not Usenet Lines: 46 * * I recently encountered a bug with gcc-1.36, running on a * Silicon Graphics Iris 4d/20. If the following tiny piece * of code is compiled, we get the following, rather horrible, * error message. * * Note that if the prototype declares the second arg to be * double, then the function compiles without complaint. And * if baz is declared to accept "(float,int,float)" and the * new argument added to the call to baz, then this will also * compile without complaint. * % cat test.c extern baz (int, float); foo() { baz(1, 0.0); } % gcc -v test.c gcc version 1.36 cpp -v -undef -D__GNUC__ -Dunix -Dmips -D__unix__ -D__mips__ \ -Dsgi -DSVR3 -Dhost_mips -DMIPSEB -DSYSTYPE_SYSV -DLANGUAGE_C \ test.c /usr/tmp/cca03283.cpp GNU CPP version 1.36 cc1 /usr/tmp/cca03283.cpp -quiet -dumpbase test.c -version \ -o /usr/tmp/cca03283.s GNU C version 1.36 compiled by GNU C version 1.36. default target switches: -munix -mnofixed-ovfl -mG0 -mG1 test.c: In function foo: test.c:8: The following insn was not recognizable: (insn 8 7 9 (parallel[ (set (reg:DF 6) (mem/u:SF (symbol_ref:SI ("*LC0")))) (clobber (reg:SI 24)) ] ) -1 (nil) (nil)) (AL-MIPS 1.11) gcc: Program cc1 got fatal signal 6.