diff options
author | Diego Novillo <dnovillo@redhat.com> | 2001-05-19 03:05:15 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2001-05-18 23:05:15 -0400 |
commit | f99df08ea8c1ccfefb9398bce8eda149abbaa374 (patch) | |
tree | deeb144ae5d4528b8c944545b7fde5471954f6b3 | |
parent | 897979760b7bf52835af74c4d94d1697471dcdd2 (diff) | |
download | gcc-f99df08ea8c1ccfefb9398bce8eda149abbaa374.zip gcc-f99df08ea8c1ccfefb9398bce8eda149abbaa374.tar.gz gcc-f99df08ea8c1ccfefb9398bce8eda149abbaa374.tar.bz2 |
decl2.c (finish_objects): Use the original SYMBOL_REF from the function declaration to avoid stripping...
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
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0b59a1e..c2efbdf 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 73b9afd..01f643f 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 |