why -mhitachi gives ICE for SH-coff toolchain [gcc 3.4]

Nitin Yewale NitinY@KPITCummins.com
Tue Apr 6 09:17:00 GMT 2004


Hi,
	why -mhitachi option generates ICE [http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14093]?

************************************************************************************
Try the code below with sh-coff toolchain
----------------bug.c ---------------------
char foo(void);
void bar()
{
        char gc = foo();
}
----------------bug.c ---------------------

Compile with

sh-coff-gcc -m2 -mhitachi bug.c

It generates following error:

bug.c: In function 'bar':
bug.c:4: internal compiler error: in emit_move_insn, at expr.c:2776
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs/html> for instructions
************************************************************************************

	The condition which generates ICE checks for the mode of function.
		
	Any inputs on this would be greatly appreciated?
Regards,
Nitin Yewale.



More information about the Gcc mailing list