why -mhitachi gives ICE for SH-coff toolchain [gcc 3.4]
Jim Wilson
wilson@specifixinc.com
Thu Apr 8 01:59:00 GMT 2004
Nitin Yewale wrote:
> why -mhitachi option generates ICE [http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14093]?
> The condition which generates ICE checks for the mode of function.
Actually, it fails because the two arguments to emit_move_insn have
different modes. There is a QImode dest and a SImode source.
It appears the problem is that FUNCTION_VALUE disagrees with
TARGET_PROMOTE_FUNCTION_RETURN. One says the function result is
promoted, and the other says it isn't. Probably FUNCTION_VALUE is
wrong. It probably needs a call to sh_promote_prototypes passing in the
function type.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc
mailing list