aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@cygnus.com>1999-08-26 08:47:03 +0000
committerNick Clifton <nickc@gcc.gnu.org>1999-08-26 08:47:03 +0000
commit368f4cd6f3270385da2a3f2b845039e83d3740cd (patch)
tree6a4778e337506efbf46cfc656ce577647b6824d4
parentb7e89a77953615d574d892b1abbccca02d656948 (diff)
downloadgcc-368f4cd6f3270385da2a3f2b845039e83d3740cd.zip
gcc-368f4cd6f3270385da2a3f2b845039e83d3740cd.tar.gz
gcc-368f4cd6f3270385da2a3f2b845039e83d3740cd.tar.bz2
Accept LABEL_REFs as well as SYMBOL_REFs in mem_loc_descriptor()
From-SVN: r28891
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1177d1a..96df422 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Thu Aug 26 09:46:16 1999 Nick Clifton <nickc@cygnus.com>
+
+ * dwarf2out.c (mem_loc_descriptor): Accept LABEL_REFs as well
+ as SYMBOL_REFs.
+
1999-08-25 22:10 -0700 Zack Weinberg <zack@bitmover.com>
* system.h: Don't redefine abort or trim_filename.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 500d41e..bcb9476 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -6615,6 +6615,10 @@ mem_loc_descriptor (rtl)
add_loc_descr (&mem_loc_result, new_loc_descr (DW_OP_deref, 0, 0));
break;
+ case LABEL_REF:
+ /* Some ports can transform a symbol ref into a label ref, because
+ the symbol ref is too far away and has to be dumped into a constant
+ pool. */
case CONST:
case SYMBOL_REF:
mem_loc_result = new_loc_descr (DW_OP_addr, 0, 0);