cse.c (cse_insn): Copy SRC_CONST before putting it in the REG_EQUAL note.

* cse.c (cse_insn): Copy SRC_CONST before putting it in the
        REG_EQUAL note.

From-SVN: r26958
This commit is contained in:
Andreas Schwab 1999-05-17 00:36:36 +00:00 committed by Jeff Law
parent 2459d1044b
commit 51e2a951cc
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
1999-05-17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* cse.c (cse_insn): Copy SRC_CONST before putting it in the
REG_EQUAL note.
1999-05-17 Mike Stump <mrs@wrs.com>
* rs6000/vxppc.h (CPP_SPEC): Fix support for vararg functions.

View File

@ -7323,6 +7323,9 @@ cse_insn (insn, libcall_insn)
{
tem = find_reg_note (insn, REG_EQUAL, NULL_RTX);
/* Make sure that the rtx is not shared with any other insn. */
src_const = copy_rtx (src_const);
/* Record the actual constant value in a REG_EQUAL note, making
a new one if one does not already exist. */
if (tem)