http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60131
--- Comment #5 from Jeffrey A. Law <law at gcc dot gnu.org> --- Author: law Date: Fri Feb 14 20:26:31 2014 New Revision: 207792 URL: http://gcc.gnu.org/viewcvs?rev=207792&root=gcc&view=rev Log: PR rtl-optimization/60131 * ree.c (get_extended_src_reg): New function. (combine_reaching_defs): Use it rather than assuming location of REG. (find_and_remove_re): Verify first operand of extension is a REG before adding the insns to the copy list. PR rtl-optimization/60131 * g++.dg/torture/pr60131.C: New test. Added: trunk/gcc/testsuite/g++.dg/torture/pr60131.C Modified: trunk/gcc/ChangeLog trunk/gcc/ree.c trunk/gcc/testsuite/ChangeLog