diff options
Diffstat (limited to 'gcc-4.8/gcc/dse.c')
-rw-r--r-- | gcc-4.8/gcc/dse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc-4.8/gcc/dse.c b/gcc-4.8/gcc/dse.c index 080822292..e853b4118 100644 --- a/gcc-4.8/gcc/dse.c +++ b/gcc-4.8/gcc/dse.c @@ -2518,7 +2518,8 @@ scan_insn (bb_info_t bb_info, rtx insn) /* Cselib clears the table for this case, so we have to essentially do the same. */ if (NONJUMP_INSN_P (insn) - && volatile_insn_p (PATTERN (insn))) + && GET_CODE (PATTERN (insn)) == ASM_OPERANDS + && MEM_VOLATILE_P (PATTERN (insn))) { add_wild_read (bb_info); insn_info->cannot_delete = true; |