Commit ce8fe26d by Alexandre Oliva Committed by Alexandre Oliva

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
parent 7e94033a
2012-06-21 Alexandre Oliva <aoliva@redhat.com>
PR debug/53682
* cselib.c (promote_debug_loc): Don't crash on NULL argument.
2012-06-21 Meador Inge <meadori@codesourcery.com>
PR c/53702
......
......@@ -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--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment