This is the mail archive of the gcc-patches@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]

[PATCH] Say that LTGT may trap


It seems that may_trap_p fails to recognize that LTGT can trap, while you (Richard) said that it does.

Is the attached patch ok for mainline?

Paolo

2004-05-28 Paolo Bonzini <bonzini@gnu.org>

	* rtlanal.c (may_trap_p) <LTGT>: LTGT may trap
	unless -fno-trapping-math.

Index: rtlanal.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/rtlanal.c,v
retrieving revision 1.189
diff -u -r1.189 rtlanal.c
--- rtlanal.c	25 May 2004 12:04:16 -0000	1.189
+++ rtlanal.c	28 May 2004 16:37:51 -0000
@@ -2386,6 +2386,7 @@
     case GT:
     case LE:
     case LT:
+    case LTGT:
     case COMPARE:
       /* Some floating point comparisons may trap.  */
       if (!flag_trapping_math)

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