From 22ea3b4741705ddef3225db3136fc83a02be1401 Mon Sep 17 00:00:00 2001 From: rguenth Date: Thu, 3 Dec 2009 16:06:03 +0000 Subject: [PATCH] 2009-12-03 Richard Guenther * cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME instead of DECL_NAME for the entry point. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154954 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/cgraphunit.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 258890d..ed5e0c2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-12-03 Richard Guenther + + * cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME + instead of DECL_NAME for the entry point. + 2009-12-03 Richard Earnshaw * arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 51ead06..345fb67 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1321,7 +1321,7 @@ assemble_thunk (struct cgraph_node *node) DECL_RESULT (thunk_fndecl) = build_decl (DECL_SOURCE_LOCATION (thunk_fndecl), 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 create one. */ -- 2.7.4