[Bug c/49396] c-family/c-cppbuiltin.c: duplicate if expressions
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Tue Jun 14 13:28:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list