This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29516] gfortran miscompiled
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2007 20:45:31 -0000
- Subject: [Bug tree-optimization/29516] gfortran miscompiled
- References: <bug-29516-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #19 from rakdver at gcc dot gnu dot org 2007-01-09 20:45 -------
(In reply to comment #14)
> (which gcc version are the dumps created with?)
>
> First IVOPTs should not create pointer multiplication. Really. Second, the
> problem is probably in tree-vrp.c:adjust_range_with_scev () or SCEV itself -
> I guess SCEV might be confused by this multiplication as well.
The problem is really only ivopts, creating pointer multiplication. I have
seen this bug before, after some changes to ivopts, but it is quite hard to
reproduce -- one needs to force ivopts to generate pointer offset multiplied by
a negative number and ivopts do not do that very often (the circumstances have
to be really strange to make this appear useful).
I will prepare a patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29516