------- Comment #5 from jakub at gcc dot gnu dot org 2006-11-15 09:35 ------- Subject: Bug 29581
Author: jakub Date: Wed Nov 15 09:35:34 2006 New Revision: 118848 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118848 Log: PR tree-optimization/29581 * lambda-code.c (replace_uses_equiv_to_x_with_y): Add YINIT, REPLACEMENTS, FIRSTBSI arguments. If initial condition or type is different between Y and USE, create a temporary variable, initialize it at the beginning of the body bb and use it as replacement instead of Y. * gcc.dg/pr29581-1.c: New test. * gcc.dg/pr29581-2.c: New test. * gcc.dg/pr29581-3.c: New test. * gcc.dg/pr29581-4.c: New test. * gfortran.dg/pr29581.f90: New test. Added: trunk/gcc/testsuite/gcc.dg/pr29581-1.c trunk/gcc/testsuite/gcc.dg/pr29581-2.c trunk/gcc/testsuite/gcc.dg/pr29581-3.c trunk/gcc/testsuite/gcc.dg/pr29581-4.c trunk/gcc/testsuite/gfortran.dg/pr29581.f90 Modified: trunk/gcc/ChangeLog trunk/gcc/lambda-code.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29581