This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23109] [4.1 Regression] compiler generates wrong code leading to spurious division by zero with -funsafe-math-optimizations (instead of -ftrapping-math)
- From: "bonzini 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 Nov 2005 14:46:24 -0000
- Subject: [Bug tree-optimization/23109] [4.1 Regression] compiler generates wrong code leading to spurious division by zero with -funsafe-math-optimizations (instead of -ftrapping-math)
- References: <bug-23109-1396@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from bonzini at gcc dot gnu dot org 2005-11-16 14:46 -------
I have little hope of seeing this reviewed before the branch. But it should be
put in 4.2 very early so that we backport it well before 4.1.0 is released.
BTW I think that 23948 and 24123 are way more severe than 23109 even though
this one is a wrong code bug. These three bugs are three almost-showstoppers,
and are actually different manifestations of the same basic flaw (recip should
insert temporaries near the uses, not near the defs). PR23948 makes
-ffast-math unusable in C++, and PR24123 generates really abysmal code (20x
slower!).
Paolo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23109