2001-05-18 Diego Novillo <dnovillo@redhat.com>
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 May 2001 03:05:15 +0000 (03:05 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 May 2001 03:05:15 +0000 (03:05 +0000)
* decl2.c (finish_objects): Use the original SYMBOL_REF from the
function declaration to avoid stripping the symbol's attributes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42297 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 0b59a1e..c2efbdf 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 73b9afd..01f643f 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