From: Richard Henderson Date: Tue, 9 May 2000 04:58:44 +0000 (-0700) Subject: rtlanal.c (may_trap_p): Consider old-style and volatile asms to trap. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22aa60a1e048324c32edbd7283804df4eff68883;p=gcc.git rtlanal.c (may_trap_p): Consider old-style and volatile asms to trap. * rtlanal.c (may_trap_p): Consider old-style and volatile asms to trap. From-SVN: r33787 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b7e955c9a6..6ad054e8024 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-05-08 Richard Henderson + + * rtlanal.c (may_trap_p): Consider old-style and volatile + asms to trap. + Mon May 8 17:16:48 2000 Jim Wilson * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count. diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 8a3eb62ad11..891799b1130 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -1743,11 +1743,14 @@ may_trap_p (x) case SCRATCH: return 0; - /* Conditional trap can trap! */ + case ASM_INPUT: case UNSPEC_VOLATILE: case TRAP_IF: return 1; + case ASM_OPERANDS: + return MEM_VOLATILE_P (x); + /* Memory ref can trap unless it's a static var or a stack slot. */ case MEM: return rtx_addr_can_trap_p (XEXP (x, 0));