diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2012-06-22 01:29:28 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2012-06-22 01:29:28 +0000 |
commit | ce8fe26dc09eaeacbbcb867c3b8544f765134da0 (patch) | |
tree | 66cd92b193f7b50006468b86a871de2cae5230ad /gcc/cselib.c | |
parent | 7e94033a9d9ed2532bbbede8cefa2d0cc3860f8d (diff) | |
download | gcc-ce8fe26dc09eaeacbbcb867c3b8544f765134da0.zip gcc-ce8fe26dc09eaeacbbcb867c3b8544f765134da0.tar.gz gcc-ce8fe26dc09eaeacbbcb867c3b8544f765134da0.tar.bz2 |
re PR target/53682 (ICE in cselib_lookup (SEGV) on i586-linux-gnu)
PR debug/53682
* cselib.c (promote_debug_loc): Don't crash on NULL argument.
From-SVN: r188866
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r-- | gcc/cselib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c index 5e6d049..d338c31 100644 --- a/gcc/cselib.c +++ b/gcc/cselib.c @@ -322,7 +322,7 @@ new_elt_loc_list (cselib_val *val, rtx loc) static inline void promote_debug_loc (struct elt_loc_list *l) { - if (l->setting_insn && DEBUG_INSN_P (l->setting_insn) + if (l && l->setting_insn && DEBUG_INSN_P (l->setting_insn) && (!cselib_current_insn || !DEBUG_INSN_P (cselib_current_insn))) { n_debug_values--; |