This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/43419] gcc replaces pow(x, 0.5) by sqrt(x), invalid when x is -0
- From: "matz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Mar 2010 14:48:55 -0000
- Subject: [Bug middle-end/43419] gcc replaces pow(x, 0.5) by sqrt(x), invalid when x is -0
- References: <bug-43419-6373@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from matz at gcc dot gnu dot org 2010-03-18 14:48 -------
I checked, and these and similar transformations are always guarded by
flag_unsafe_math_optimizations, so we should be fine, unless I missed a case
of course. If you notice one, please create a bug report.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43419