http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54128
--- Comment #5 from Steve Ellcey <sje at gcc dot gnu.org> 2012-08-09 23:46:52 UTC --- Created attachment 27976 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27976 Cutdown test case I have attached a new test case, cut down from the original. I have duplicated the bug using a x86 to mips cross compiler and the mips-unknown-linux-gnu target so it doesn't look specific to little-endian. I get the difference in instruction scheduling with -mips1 or -mips32r2 and with no options other then -O2 so it doesn't seem specific to a particular mips architecture either. The difference with and without -g is in the instruction scheduling and sometimes with the register selection.