From 0e3fdb489ed8d587a6f759b62966d7971e51bdf1 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 24 Aug 2011 11:16:57 +0000 Subject: [PATCH] re PR c/49396 (c-family/c-cppbuiltin.c: duplicate if expressions) 2011-08-24 Richard Guenther PR c/49396 c-family/ * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. From-SVN: r178032 --- gcc/c-family/ChangeLog | 7 ++++++- gcc/c-family/c-cppbuiltin.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index fb00ca98958..76569f101bd 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,4 +1,9 @@ -011-08-22 Gabriel Charette +2011-08-24 Richard Guenther + + PR c/49396 + * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. + +2011-08-22 Gabriel Charette * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens defined in cpp_init_builtins and c_cpp_builtins. diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c index a960cbea874..bb9893a9681 100644 --- a/gcc/c-family/c-cppbuiltin.c +++ b/gcc/c-family/c-cppbuiltin.c @@ -560,7 +560,7 @@ c_cpp_builtins_optimize_pragma (cpp_reader *pfile, tree prev_tree, 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"); -- 2.30.2