aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2000-05-03 11:16:35 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2000-05-03 11:16:35 +0000
commitea49bef60422f4f59850c4d92a63b5b93e9d175c (patch)
tree3d32e0656c9c24183fdafac25bf3d79c9ce7a1fd /gcc
parent664fe7a8ac2413f67059880463cf7a5a85e2436f (diff)
downloadgcc-ea49bef60422f4f59850c4d92a63b5b93e9d175c.zip
gcc-ea49bef60422f4f59850c4d92a63b5b93e9d175c.tar.gz
gcc-ea49bef60422f4f59850c4d92a63b5b93e9d175c.tar.bz2
ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest whether address may trap.
* ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest whether address may trap. From-SVN: r33627
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ifcvt.c4
-rw-r--r--gcc/timevar.c1
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1c35a68..a7ec6b8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Wed May 3 13:14:49 MET DST 2000 Jan Hubicka <jh@suse.cz>
+
+ * ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest
+ whether address may trap.
+
Tue May 2 23:38:37 2000 Jason Eckhardt <jle@cygnus.com>
* bb-reorder (chain_reorder_blocks): Changed code to test for
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index c1fc951..7595fcb 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -843,9 +843,9 @@ noce_try_cmove_arith (if_info)
}
/* ??? We could handle this if we knew that a load from A or B could
- not fault. This is true of stack memories or if we've already loaded
+ not fault. This is also true if we've already loaded
from the address along the path from ENTRY. */
- else if (GET_CODE (a) == MEM || GET_CODE (b) == MEM)
+ else if (may_trap_p (a) || may_trap_p (b))
return FALSE;
/* if (test) x = a + b; else x = c - d;
diff --git a/gcc/timevar.c b/gcc/timevar.c
index 756365b..a9a5c5e 100644
--- a/gcc/timevar.c
+++ b/gcc/timevar.c
@@ -21,6 +21,7 @@
#include "config.h"
#include "system.h"
+#include <sys/resource.h>
#ifdef HAVE_SYS_TIMES_H
# include <sys/times.h>