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
This commit is contained in:
Diego Novillo 2001-05-19 03:05:15 +00:00 committed by Diego Novillo
parent 897979760b
commit f99df08ea8
2 changed files with 6 additions and 1 deletions

View 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.

View 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