Accept LABEL_REFs as well as SYMBOL_REFs in mem_loc_descriptor()
authorNick Clifton <nickc@cygnus.com>
Thu, 26 Aug 1999 08:47:03 +0000 (08:47 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 26 Aug 1999 08:47:03 +0000 (08:47 +0000)
From-SVN: r28891

gcc/ChangeLog
gcc/dwarf2out.c

index 1177d1a552638d0ac88afa9a0eb0879c9b537c6b..96df4222c7fb5504893f3cc05982ad772a20e710 100644 (file)
@@ -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.
index 500d41e81461af9dcfdb615fe0aaed26d318fad2..bcb94762fac2f1f25c026077b17cb2cc488335b8 100644 (file)
@@ -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);