This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/35607] [4.4 Regression] IVOPTs produces invalid gimple
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2008 12:32:10 -0000
- Subject: [Bug tree-optimization/35607] [4.4 Regression] IVOPTs produces invalid gimple
- References: <bug-35607-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenth at gcc dot gnu dot org 2008-03-16 12:32 -------
One solution is to, in expand_simple_operations, expand all TREE_INVARIANT
operations so we end up with
# ivtmp.16_1 = PHI <ivtmp.16_11(5), &__fini_array_start[(unsigned int)
(((int) &__fini_array_end - (int) &__fini_array_start) /[ex] 4)](3)>
instead which we can let pass verification without fatal effects.
The other solution is to kill TREE_INVARIANT from everything but constants
and invariant addresses during gimplification.
Anyone with other options?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35607