decl2.c (finish_objects): Use the original SYMBOL_REF from the function declaration...
authorDiego Novillo <dnovillo@redhat.com>
Sat, 19 May 2001 03:05:15 +0000 (03:05 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Sat, 19 May 2001 03:05:15 +0000 (23:05 -0400)
2001-05-18  Diego Novillo  <dnovillo@redhat.com>

* decl2.c (finish_objects): Use the original SYMBOL_REF from the
function declaration to avoid stripping the symbol's attributes.

From-SVN: r42297

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 0b59a1e1d5584628c4f403667268707647bfa54a..c2efbdf5288b9e60d3828f7451d74d0001276d64 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-18  Diego Novillo  <dnovillo@redhat.com>
+
+       * decl2.c (finish_objects): Use the original SYMBOL_REF from the
+       function declaration to avoid stripping the symbol's attributes.
+
 2001-05-18  Nathan Sidwell  <nathan@codesourcery.com>
 
        * decl.c (pushdecl): Adjust error string.
index 73b9afdc6129dc044a94a13ba5df356a0b6785fc..01f643fd927a4e6b0c835b728259a14e99468ca8 100644 (file)
@@ -2932,7 +2932,7 @@ finish_objects (method_type, initp, body)
                  linker sorts in increasing order.  */
               MAX_INIT_PRIORITY - initp);
       named_section (NULL_TREE, buf, 0);
-      assemble_integer (gen_rtx_SYMBOL_REF (Pmode, fnname),
+      assemble_integer (XEXP (DECL_RTL (fn), 0),
                        POINTER_SIZE / BITS_PER_UNIT, 1);
     }
 #endif