Accept LABEL_REFs as well as SYMBOL_REFs from the constant pool.
authorNick Clifton <nickc@cambridge.redhat.com>
Wed, 6 Feb 2002 09:08:19 +0000 (09:08 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 6 Feb 2002 09:08:19 +0000 (09:08 +0000)
From-SVN: r49542

gcc/ChangeLog
gcc/dbxout.c

index 501e2c59941279a29a74c9530714378f3b1454e5..5aaad73fc40bb0ca5d428f07f03dc974aaeeb9b3 100644 (file)
@@ -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
index b449e13028419e4e83af0c2edafe58c7f9e0c2d2..2db1f3a9fe2c89855d5919f29df4a84c88a9150f 100644 (file)
@@ -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;
                }