This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, trunk] Obvious update to c-common.c and combine.c
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 01 Aug 2002 11:13:35 +0200
- Subject: [PATCH, trunk] Obvious update to c-common.c and combine.c
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
After yesterday's discussions, these are two updates (to c-common.c and
combine.c) that are obvious, so I committed them.
Bootstrapped, make -k check and installed on i686-pc-linux-gnu.
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)
2002-08-01 Toon Moene <toon@moene.indiv.nluug.nl>
* c-common.c (cb_register_builtins): Set
__FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
is given, and to 0 otherwise.
* combine.c (simplify_if_then_else): HONOR_NANS
implies FLOAT_MODE_P.
*** c-common.c.orig Tue Jul 30 16:16:44 2002
--- c-common.c Wed Jul 31 20:53:06 2002
*************** cb_register_builtins (pfile)
*** 4387,4391 ****
cpp_define (pfile, "__SUPPORT_SNAN__");
if (flag_finite_math_only)
! cpp_define (pfile, "__FINITE_MATH_ONLY__");
if (flag_iso)
--- 4387,4393 ----
cpp_define (pfile, "__SUPPORT_SNAN__");
if (flag_finite_math_only)
! cpp_define (pfile, "__FINITE_MATH_ONLY__=1");
! else
! cpp_define (pfile, "__FINITE_MATH_ONLY__=0");
if (flag_iso)
*** combine.c.orig Tue Jul 30 16:25:30 2002
--- combine.c Wed Jul 31 20:51:55 2002
*************** simplify_if_then_else (x)
*** 4776,4785 ****
/* Convert a == b ? b : a to "a". */
if (true_code == EQ && ! side_effects_p (cond)
! && (!FLOAT_MODE_P (mode) || !HONOR_NANS (mode))
&& rtx_equal_p (XEXP (cond, 0), false_rtx)
&& rtx_equal_p (XEXP (cond, 1), true_rtx))
return false_rtx;
else if (true_code == NE && ! side_effects_p (cond)
! && (!FLOAT_MODE_P (mode) || !HONOR_NANS (mode))
&& rtx_equal_p (XEXP (cond, 0), true_rtx)
&& rtx_equal_p (XEXP (cond, 1), false_rtx))
--- 4776,4785 ----
/* Convert a == b ? b : a to "a". */
if (true_code == EQ && ! side_effects_p (cond)
! && !HONOR_NANS (mode)
&& rtx_equal_p (XEXP (cond, 0), false_rtx)
&& rtx_equal_p (XEXP (cond, 1), true_rtx))
return false_rtx;
else if (true_code == NE && ! side_effects_p (cond)
! && !HONOR_NANS (mode)
&& rtx_equal_p (XEXP (cond, 0), true_rtx)
&& rtx_equal_p (XEXP (cond, 1), false_rtx))