[Bug tree-optimization/58143] [4.8/4.9 regression] wrong code at -O3
bernd.edlinger at hotmail dot de
gcc-bugzilla@gcc.gnu.org
Sun Aug 25 22:08:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143
Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #30693|0 |1
is obsolete| |
--- Comment #14 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Created attachment 30699
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30699&action=edit
patch to prevent undefined execution in lim
OK, this time only the lim pass should be the prevented from
introducing undefined behavior that was not there originally.
This triggered a minor regression in gcc.target/i386/pr53397-1.c;
Here lim used to move the expression "2*step" out of the loop,
but this may cause undefined behavior on case of overflow,
I propose to resolve this by adding -fno-strict-overflow,
The test case looks pretty constructed anyway.
More information about the Gcc-bugs
mailing list