This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/49396] c-family/c-cppbuiltin.c: duplicate if expressions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]