http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46034
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-03 08:30:30 UTC --- Author: jakub Date: Wed Nov 3 08:30:21 2010 New Revision: 166231 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166231 Log: PR rtl-optimization/46034 PR rtl-optimization/46212 PR rtl-optimization/46248 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src before i0dest -> i0src substitution and pass 1 instead of 0 as last argument to subst on i2pat. * gcc.c-torture/compile/pr46034.c: New test. * gcc.c-torture/compile/pr46248.c: New test. * gcc.dg/pr46212.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/compile/pr46034.c trunk/gcc/testsuite/gcc.c-torture/compile/pr46248.c trunk/gcc/testsuite/gcc.dg/pr46212.c Modified: trunk/gcc/ChangeLog trunk/gcc/combine.c trunk/gcc/testsuite/ChangeLog