mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 18:49:38 +08:00
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:
parent
2459d1044b
commit
51e2a951cc
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user