From 77340500f261c833adb77bc8ad37be5d5789310e Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Mon, 10 Sep 2007 13:10:57 +0000 Subject: [PATCH] s390.c (s390_dump_pool): Create copy of constant pool entries since they might hold values that must not... 2007-09-10 Andreas Krebbel * config/s390/s390.c (s390_dump_pool): Create copy of constant pool entries since they might hold values that must not be shared. From-SVN: r128342 --- gcc/ChangeLog | 5 +++++ gcc/config/s390/s390.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6868fe2d9f..69703a7401d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-09-10 Andreas Krebbel + + * config/s390/s390.c (s390_dump_pool): Create copy of constant + pool entries since they might hold values that must not be shared. + 2007-09-10 Uros Bizjak PR target/33369 diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index aa6db1f3d26..c4860e52c98 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -5600,7 +5600,7 @@ s390_dump_pool (struct constant_pool *pool, bool remote_label) for (c = pool->constants[i]; c; c = c->next) { /* Convert UNSPEC_LTREL_OFFSET unspecs to pool-relative references. */ - rtx value = c->value; + rtx value = copy_rtx (c->value); if (GET_CODE (value) == CONST && GET_CODE (XEXP (value, 0)) == UNSPEC && XINT (XEXP (value, 0), 1) == UNSPEC_LTREL_OFFSET -- 2.30.2