aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNick Clifton <nickc@cambridge.redhat.com>2002-02-06 09:08:19 +0000
committerNick Clifton <nickc@gcc.gnu.org>2002-02-06 09:08:19 +0000
commitd3a8b6a672bc5a693331f98d2a3c01e84eb1d786 (patch)
tree7a26182e7953e7250a389bff97bf7ec9975d4482 /gcc
parentf5ee37f2cedda8160d79a3ab2d0cde7bdb7bb6c6 (diff)
downloadgcc-d3a8b6a672bc5a693331f98d2a3c01e84eb1d786.zip
gcc-d3a8b6a672bc5a693331f98d2a3c01e84eb1d786.tar.gz
gcc-d3a8b6a672bc5a693331f98d2a3c01e84eb1d786.tar.bz2
Accept LABEL_REFs as well as SYMBOL_REFs from the constant pool.
From-SVN: r49542
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dbxout.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 501e2c5..5aaad73 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
+ as SYMBOL_REFs from the constant pool.
+
2002-02-06 Alexandre Oliva <aoliva@redhat.com>
* dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index b449e13..2db1f3a 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -2198,7 +2198,8 @@ dbxout_symbol_location (decl, type, suffix, home)
{
rtx tmp = get_pool_constant (current_sym_addr);
- if (GET_CODE (tmp) == SYMBOL_REF)
+ if (GET_CODE (tmp) == SYMBOL_REF
+ || GET_CODE (tmp) == LABEL_REF)
current_sym_addr = tmp;
}