aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>1999-11-03 10:42:17 -0800
committerRichard Henderson <rth@gcc.gnu.org>1999-11-03 10:42:17 -0800
commit241a1bcc87f062a68b0dc15a3a8bdfc647e4916c (patch)
tree0e82eac241dba6299acfa39792fbeac0c13bfbd7 /gcc/varasm.c
parentefd67b425a5a317d712940ea2f3845cd1915c2a7 (diff)
downloadgcc-241a1bcc87f062a68b0dc15a3a8bdfc647e4916c.zip
gcc-241a1bcc87f062a68b0dc15a3a8bdfc647e4916c.tar.gz
gcc-241a1bcc87f062a68b0dc15a3a8bdfc647e4916c.tar.bz2
varasm.c (decode_rtx_const): Use XSTR to access the string of a SYMBOL_REF.
* varasm.c (decode_rtx_const): Use XSTR to access the string of a SYMBOL_REF. From-SVN: r30378
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 5d342de..800465b 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -3416,10 +3416,13 @@ decode_rtx_const (mode, x, value)
switch (GET_CODE (value->un.addr.base))
{
case SYMBOL_REF:
- case LABEL_REF:
/* Use the string's address, not the SYMBOL_REF's address,
- for the sake of addresses of library routines.
- For a LABEL_REF, compare labels. */
+ for the sake of addresses of library routines. */
+ value->un.addr.base = XSTR (value->un.addr.base, 0);
+ break;
+
+ case LABEL_REF:
+ /* For a LABEL_REF, compare labels. */
value->un.addr.base = XEXP (value->un.addr.base, 0);
default: