This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29581] Latent bug in 4.1/4.2/4.3 lambda-code.c
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Nov 2006 09:37:03 -0000
- Subject: [Bug tree-optimization/29581] Latent bug in 4.1/4.2/4.3 lambda-code.c
- References: <bug-29581-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from jakub at gcc dot gnu dot org 2006-11-15 09:37 -------
Subject: Bug 29581
Author: jakub
Date: Wed Nov 15 09:36:51 2006
New Revision: 118849
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118849
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:
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/pr29581-1.c
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/pr29581-2.c
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/pr29581-3.c
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/pr29581-4.c
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/pr29581.f90
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/lambda-code.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29581