aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBernd Schmidt <bernd.schmidt@analog.com>2007-04-17 22:35:47 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2007-04-17 22:35:47 +0000
commit7c11b28c577a0a55db07641d3c78501464e0f9bc (patch)
treeb76a6e12e985e319a51d1cc56572e71adc8486c0 /gcc
parentabe2f66ab9f4840008c43a61596eebd42af7842b (diff)
downloadgcc-7c11b28c577a0a55db07641d3c78501464e0f9bc.zip
gcc-7c11b28c577a0a55db07641d3c78501464e0f9bc.tar.gz
gcc-7c11b28c577a0a55db07641d3c78501464e0f9bc.tar.bz2
reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way we use REG_EQUAL.
* reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way we use REG_EQUAL. From-SVN: r123932
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/reload1.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1cb2c2c..59b83cf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
+
+ * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
+ we use REG_EQUAL.
+
2007-04-17 Anatoly Sokolov <aesok@post.ru>
PR target/30483
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 8c698ef..f29f079 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -3101,7 +3101,8 @@ eliminate_regs_in_insn (rtx insn, int replace)
rtx links;
for (links = REG_NOTES (insn); links; links = XEXP (links, 1))
{
- if (REG_NOTE_KIND (links) == REG_EQUAL
+ if ((REG_NOTE_KIND (links) == REG_EQUAL
+ || REG_NOTE_KIND (links) == REG_EQUIV)
&& GET_CODE (XEXP (links, 0)) == PLUS
&& GET_CODE (XEXP (XEXP (links, 0), 1)) == CONST_INT)
{