Commit 77340500 by Andreas Krebbel Committed by Andreas Krebbel

s390.c (s390_dump_pool): Create copy of constant pool entries since they might…

s390.c (s390_dump_pool): Create copy of constant pool entries since they might hold values that must not...

2007-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>

	* 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
parent 232abc3f
2007-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
* 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 <ubizjak@gmail.com> 2007-09-10 Uros Bizjak <ubizjak@gmail.com>
PR target/33369 PR target/33369
...@@ -5600,7 +5600,7 @@ s390_dump_pool (struct constant_pool *pool, bool remote_label) ...@@ -5600,7 +5600,7 @@ s390_dump_pool (struct constant_pool *pool, bool remote_label)
for (c = pool->constants[i]; c; c = c->next) for (c = pool->constants[i]; c; c = c->next)
{ {
/* Convert UNSPEC_LTREL_OFFSET unspecs to pool-relative references. */ /* Convert UNSPEC_LTREL_OFFSET unspecs to pool-relative references. */
rtx value = c->value; rtx value = copy_rtx (c->value);
if (GET_CODE (value) == CONST if (GET_CODE (value) == CONST
&& GET_CODE (XEXP (value, 0)) == UNSPEC && GET_CODE (XEXP (value, 0)) == UNSPEC
&& XINT (XEXP (value, 0), 1) == UNSPEC_LTREL_OFFSET && XINT (XEXP (value, 0), 1) == UNSPEC_LTREL_OFFSET
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment