This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix -ftree-loop-linear (PR tree-optimization/29581)


On 11/13/06, Jakub Jelinek <jakub@redhat.com> wrote:
Hi!

The attached 4 C testcases are miscompiled with -ftree-loop-linear
in 4.1/4.2/4.3 and the Fortran testcase is additionally miscompiled
on redhat/gcc-4_1-branch.  The problem is that
replace_uses_equiv_to_x_with_y replaces variables with the same step
as X with the new IV, but doesn't check if they also have the same
initial condition or the same type.
Regtested on x86_64-linux, including
RUNTESTFLAGS=--target_board=unix/-ftree-loop-linear.

The following patch fixes this, ok for 4.1/4.2/4.3?

Okay.


Thanks *very* much for fixing this!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]