This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30568] -ftrapping-math should prevent folding/dead code stripping of some builtins
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2007 06:54:08 -0000
- Subject: [Bug middle-end/30568] -ftrapping-math should prevent folding/dead code stripping of some builtins
- References: <bug-30568-638@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-01-24 06:54 -------
Part of the problem here is that darwin turns on no math-errno by default which
turns the builtin functions into pure functions and since we don't use the
result, we DCE it.
pure functions are not allowed to trap IIRC the rules.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30568