From: Jakub Jelinek Date: Wed, 1 Jun 2011 21:45:34 +0000 (+0200) Subject: re PR debug/49250 (ICE in set_slot_part, at var-tracking.c:6793) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88c158217c256ee61beca5b39b4c58f3ecfb4da2;p=gcc.git re PR debug/49250 (ICE in set_slot_part, at var-tracking.c:6793) PR debug/49250 * var-tracking.c (add_uses, add_stores): Don't call cselib_subst_to_values on ENTRY_VALUE. From-SVN: r174548 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 148a53027ad..6483324ca94 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-06-01 Jakub Jelinek + + PR debug/49250 + * var-tracking.c (add_uses, add_stores): Don't call + cselib_subst_to_values on ENTRY_VALUE. + 2011-06-01 Diego Novillo * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index db261c0f03d..98230140a2b 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -5052,6 +5052,7 @@ add_uses (rtx *ploc, void *data) if (MEM_P (vloc) && !REG_P (XEXP (vloc, 0)) && !MEM_P (XEXP (vloc, 0)) + && GET_CODE (XEXP (vloc, 0)) != ENTRY_VALUE && (GET_CODE (XEXP (vloc, 0)) != PLUS || XEXP (XEXP (vloc, 0), 0) != cfa_base_rtx || !CONST_INT_P (XEXP (XEXP (vloc, 0), 1)))) @@ -5130,6 +5131,7 @@ add_uses (rtx *ploc, void *data) if (MEM_P (oloc) && !REG_P (XEXP (oloc, 0)) && !MEM_P (XEXP (oloc, 0)) + && GET_CODE (XEXP (oloc, 0)) != ENTRY_VALUE && (GET_CODE (XEXP (oloc, 0)) != PLUS || XEXP (XEXP (oloc, 0), 0) != cfa_base_rtx || !CONST_INT_P (XEXP (XEXP (oloc, 0), 1)))) @@ -5383,6 +5385,7 @@ add_stores (rtx loc, const_rtx expr, void *cuip) if (MEM_P (loc) && type == MO_VAL_SET && !REG_P (XEXP (loc, 0)) && !MEM_P (XEXP (loc, 0)) + && GET_CODE (XEXP (loc, 0)) != ENTRY_VALUE && (GET_CODE (XEXP (loc, 0)) != PLUS || XEXP (XEXP (loc, 0), 0) != cfa_base_rtx || !CONST_INT_P (XEXP (XEXP (loc, 0), 1))))