cse.c (insn_live_p): Pass insn pattern, not full insn to may_trap_p.
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 9 Oct 2002 11:29:57 +0000 (11:29 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Wed, 9 Oct 2002 11:29:57 +0000 (11:29 +0000)
* cse.c (insn_live_p): Pass insn pattern, not full insn
to may_trap_p.

From-SVN: r57982

gcc/ChangeLog
gcc/cse.c

index 6653ea4a41d4da5c2ba8a3efc8c16c81059fdafb..fa25ad7351e236fd30bbcdebf76bbf2f43d2a42a 100644 (file)
@@ -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 =.
index 29c771b93f6491ccf3835c48bbb848f6af9204e6..75182d8670fc0d168f4c8ff3de58fec0c5439ecc 100644 (file)
--- 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);