Commit 596c1381 by Diego Novillo Committed by Diego Novillo

mangle.c (get_mangled_id): Factor from ...

	* mangle.c (get_mangled_id): Factor from ...
	(mangle_decl): ... here.
	Call get_mangled_id.

From-SVN: r180698
parent 875b35b4
2011-10-31 Diego Novillo <dnovillo@google.com>
* mangle.c (get_mangled_id): Factor from ...
(mangle_decl): ... here.
Call get_mangled_id.
2011-10-25 Gerald Pfeifer <gerald@pfeifer.com> 2011-10-25 Gerald Pfeifer <gerald@pfeifer.com>
* NEWS (GCC 2.95): Refer to GNU/Linux instead of Linux. * NEWS (GCC 2.95): Refer to GNU/Linux instead of Linux.
......
...@@ -3177,13 +3177,21 @@ mangle_decl_string (const tree decl) ...@@ -3177,13 +3177,21 @@ mangle_decl_string (const tree decl)
return result; return result;
} }
/* Return an identifier for the external mangled name of DECL. */
static tree
get_mangled_id (tree decl)
{
tree id = mangle_decl_string (decl);
return targetm.mangle_decl_assembler_name (decl, id);
}
/* Create an identifier for the external mangled name of DECL. */ /* Create an identifier for the external mangled name of DECL. */
void void
mangle_decl (const tree decl) mangle_decl (const tree decl)
{ {
tree id = mangle_decl_string (decl); tree id = get_mangled_id (decl);
id = targetm.mangle_decl_assembler_name (decl, id);
SET_DECL_ASSEMBLER_NAME (decl, id); SET_DECL_ASSEMBLER_NAME (decl, id);
if (G.need_abi_warning) if (G.need_abi_warning)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment