aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cse.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6653ea4..fa25ad7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-09 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * cse.c (insn_live_p): Pass insn pattern, not full insn
+ to may_trap_p.
+
2002-10-09 Neil Booth <neil@daikokuya.co.uk>
* cppmacro.c (paste_tokens): Only allow / to paste with =.
diff --git a/gcc/cse.c b/gcc/cse.c
index 29c771b93..75182d8 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -7582,7 +7582,7 @@ insn_live_p (insn, counts)
int *counts;
{
int i;
- if (flag_non_call_exceptions && may_trap_p (insn))
+ if (flag_non_call_exceptions && may_trap_p (PATTERN (insn)))
return true;
else if (GET_CODE (PATTERN (insn)) == SET)
return set_live_p (PATTERN (insn), insn, counts);