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

Jim Wilson wilson@specifixinc.com
Wed Apr 14 21:06:00 GMT 2004


On Wed, 2004-04-14 at 05:23, Nitin Yewale wrote:
> 	I was trying to add sh_promote_prototypes in FUNCTION_VALUE macro but not able to do so.

It should be fairly obvious if you take the time to understand what the
code does.  We have
    gen_rtx (promotion_test ? promoted_mode : original mode, return_reg)
sh_promote_prototypes needs to be part of promotion_test, since we
should use promoted_mode only if sh_promote_prototypes returns true.  So
it is just another && line added to the FUNCTION_VALUE macro.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list