[Bug tree-optimization/46970] [4.3/4.4/4.5/4.6 Regression] wrong code with -Os -ftree-loop-linear

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 17 17:14:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46970

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-17 17:14:01 UTC ---
Created attachment 22801
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22801
gcc46-pr46970.patch

Untested patch that fixes this and keeps ltrans-3.c working.

I don't feel very good about the +-1 * stepint extra adjustments the code did
and still does though, I'm afraid there could be problems with that if there is
an overflow, but it would be much more work to adjust lambda-code.c so that it
deals with this properly.



More information about the Gcc-bugs mailing list