diff options
Diffstat (limited to 'gcc/dce.c')
-rw-r--r-- | gcc/dce.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/dce.c b/gcc/dce.c index 2d1bd7ada29..3e1dd47f3a4 100644 --- a/gcc/dce.c +++ b/gcc/dce.c @@ -124,6 +124,7 @@ deletable_insn_p (rtx insn, bool fast, bitmap arg_stores) switch (GET_CODE (body)) { case USE: + case VAR_LOCATION: return false; case CLOBBER: @@ -643,6 +644,9 @@ mark_reg_dependencies (rtx insn) struct df_link *defs; df_ref *use_rec; + if (DEBUG_INSN_P (insn)) + return; + for (use_rec = DF_INSN_USES (insn); *use_rec; use_rec++) { df_ref use = *use_rec; |