From 20f114a35a535d215d4df50480547de0790e392d Mon Sep 17 00:00:00 2001 From: Yvan Roux Date: Wed, 25 Sep 2013 18:35:02 +0000 Subject: [PATCH] lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes. 2013-09-25 Yvan Roux * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes. From-SVN: r202915 --- gcc/ChangeLog | 4 ++++ gcc/lra.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 360a8f12e8c..5adbaebfca2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-09-25 Yvan Roux + + * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes. + 2013-09-25 Yvan Roux Vladimir Makarov diff --git a/gcc/lra.c b/gcc/lra.c index f5aab173927..532d3de3e09 100644 --- a/gcc/lra.c +++ b/gcc/lra.c @@ -2163,7 +2163,9 @@ update_inc_notes (void) pnote = ®_NOTES (insn); while (*pnote != 0) { - if (REG_NOTE_KIND (*pnote) == REG_INC) + if (REG_NOTE_KIND (*pnote) == REG_DEAD + || REG_NOTE_KIND (*pnote) == REG_UNUSED + || REG_NOTE_KIND (*pnote) == REG_INC) *pnote = XEXP (*pnote, 1); else pnote = &XEXP (*pnote, 1); -- 2.30.2