From: Eric Botcazou Date: Sat, 25 Aug 2012 23:21:53 +0000 (+0000) Subject: re PR rtl-optimization/54088 (ICE at dwarf2out.c:20632 with -O1 -g) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5106d10ed06bf0530494e0a2d08d582c6852963;p=gcc.git re PR rtl-optimization/54088 (ICE at dwarf2out.c:20632 with -O1 -g) PR rtl-optimization/54088 * jump.c (delete_related_insns): Robustify latest change. From-SVN: r190674 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e1ae3c90bf2..0468d01471c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ -2012-08-26 Ricardo Catalinas Jiménez +2012-08-25 Eric Botcazou + + PR rtl-optimization/54088 + * jump.c (delete_related_insns): Robustify latest change. + +2012-08-25 Ricardo Catalinas Jiménez * doc/extend.texi (__atomic Builtins): Remove space before comma. diff --git a/gcc/jump.c b/gcc/jump.c index d0f3f04a379..c4f674972b8 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1257,9 +1257,9 @@ delete_related_insns (rtx insn) && GET_CODE (PATTERN (insn)) == SEQUENCE && CALL_P (XVECEXP (PATTERN (insn), 0, 0)))) { - rtx p = insn; + rtx p; - for (p = NEXT_INSN (p); + for (p = next && INSN_DELETED_P (next) ? NEXT_INSN (next) : next; p && NOTE_P (p); p = NEXT_INSN (p)) if (NOTE_KIND (p) == NOTE_INSN_CALL_ARG_LOCATION)