cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME instead of DECL_NAME for the entry point.

2009-12-03  Richard Guenther  <rguenther@suse.de>

	* cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME
	instead of DECL_NAME for the entry point.

From-SVN: r154954
This commit is contained in:
Richard Guenther 2009-12-03 16:06:03 +00:00 committed by Richard Biener
parent 762de626f7
commit 154885548c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-12-03 Richard Guenther <rguenther@suse.de>
* cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME
instead of DECL_NAME for the entry point.
2009-12-03 Richard Earnshaw <rearnsha@arm.com> 2009-12-03 Richard Earnshaw <rearnsha@arm.com>
* arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier * arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier

View File

@ -1321,7 +1321,7 @@ assemble_thunk (struct cgraph_node *node)
DECL_RESULT (thunk_fndecl) DECL_RESULT (thunk_fndecl)
= build_decl (DECL_SOURCE_LOCATION (thunk_fndecl), = build_decl (DECL_SOURCE_LOCATION (thunk_fndecl),
RESULT_DECL, 0, integer_type_node); RESULT_DECL, 0, integer_type_node);
fnname = IDENTIFIER_POINTER (DECL_NAME (thunk_fndecl)); fnname = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (thunk_fndecl));
/* The back end expects DECL_INITIAL to contain a BLOCK, so we /* The back end expects DECL_INITIAL to contain a BLOCK, so we
create one. */ create one. */