------- Comment #8 from vmakarov at redhat dot com 2009-01-19 00:37 ------- H.J. is right. The problem is that IRA does not reinitialize some of its data after changing ABI. config/i386/i386.c::ix86_maybe_switch_abi calls only init_regs (this is the single port which does it). Function ira_init should be called too in this case.
I'll send a patch soon. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38869