This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Say that LTGT may trap
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Henderson <rth at redhat dot com>
- Date: Fri, 28 May 2004 18:43:13 +0200
- Subject: [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)