This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/49396] c-family/c-cppbuiltin.c: duplicate if expressions
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Jun 2011 12:47:59 +0000
- Subject: [Bug c/49396] c-family/c-cppbuiltin.c: duplicate if expressions
- Auto-submitted: auto-generated
- References: <bug-49396-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49396
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.06.14 12:47:55
CC| |jsm28 at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-14 12:47:55 UTC ---
I think it should be
Index: c-family/c-cppbuiltin.c
===================================================================
--- c-family/c-cppbuiltin.c (revision 175011)
+++ c-family/c-cppbuiltin.c (working copy)
@@ -559,7 +559,7 @@ c_cpp_builtins_optimize_pragma (cpp_read
cpp_undef (pfile, "__FINITE_MATH_ONLY__");
cpp_define (pfile, "__FINITE_MATH_ONLY__=1");
}
- else if (!prev->x_flag_finite_math_only && cur->x_flag_finite_math_only)
+ else if (prev->x_flag_finite_math_only && !cur->x_flag_finite_math_only)
{
cpp_undef (pfile, "__FINITE_MATH_ONLY__");
cpp_define (pfile, "__FINITE_MATH_ONLY__=0");
Joseph?