From f99df08ea8c1ccfefb9398bce8eda149abbaa374 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Sat, 19 May 2001 03:05:15 +0000 Subject: [PATCH] decl2.c (finish_objects): Use the original SYMBOL_REF from the function declaration to avoid stripping... 2001-05-18 Diego Novillo * 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 | 5 +++++ gcc/cp/decl2.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0b59a1e1d55..c2efbdf5288 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2001-05-18 Diego Novillo + + * 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 * decl.c (pushdecl): Adjust error string. diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 73b9afdc612..01f643fd927 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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