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: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Jun 2011 13:28:42 +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
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-06-14 13:23:09 UTC ---
On Tue, 14 Jun 2011, rguenth at gcc dot gnu.org wrote:
> 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");
Looks right to me.