aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2012-08-25 23:21:53 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2012-08-25 23:21:53 +0000
commitb5106d10ed06bf0530494e0a2d08d582c6852963 (patch)
treecd45c87e78db012b80063d737564415934deb691
parent277f43d2d0c4554d1c050a8c4e913cbf4d54cf4b (diff)
downloadgcc-b5106d10ed06bf0530494e0a2d08d582c6852963.zip
gcc-b5106d10ed06bf0530494e0a2d08d582c6852963.tar.gz
gcc-b5106d10ed06bf0530494e0a2d08d582c6852963.tar.bz2
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
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/jump.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e1ae3c9..0468d01 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,9 @@
-2012-08-26 Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
+2012-08-25 Eric Botcazou <ebotcazou@adacore.com>
+
+ PR rtl-optimization/54088
+ * jump.c (delete_related_insns): Robustify latest change.
+
+2012-08-25 Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
* doc/extend.texi (__atomic Builtins): Remove space before comma.
diff --git a/gcc/jump.c b/gcc/jump.c
index d0f3f04..c4f6749 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)