This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PowerPC validate_condition_mode (g77 regression fix)
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: toon at moene dot indiv dot nluug dot nl
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 31 Jul 2002 12:33:18 -0400
- Subject: PowerPC validate_condition_mode (g77 regression fix)
I think this patch fixes the g77 regressions on PowerPC.
David
Index: rs6000.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.351
diff -c -p -r1.351 rs6000.c
*** rs6000.c 30 Jul 2002 21:23:46 -0000 1.351
--- rs6000.c 31 Jul 2002 15:40:01 -0000
*************** validate_condition_mode (code, mode)
*** 6677,6682 ****
--- 6677,6683 ----
flag_unsafe_math_optimizations. */
if (mode == CCFPmode
&& ! flag_unsafe_math_optimizations
+ && ! flag_finite_math_only
&& (code == LE || code == GE
|| code == UNEQ || code == LTGT
|| code == UNGT || code == UNLT))