From 3cfca5ee2dc886e68afaeadf90282e8658208386 Mon Sep 17 00:00:00 2001 From: bviyer Date: Wed, 25 Sep 2013 21:34:20 +0000 Subject: +2013-09-25 Balaji V. Iyer + + * elem-function-common.c (rename_elem_fn): Used the mangled name instead + of the original function name to append the elemental function mangling + prefix. + git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus-4_8-branch@202926 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog.cilkplus | 6 ++++++ gcc/elem-function-common.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog.cilkplus b/gcc/ChangeLog.cilkplus index 3a6c53b6aca..498e944df67 100644 --- a/gcc/ChangeLog.cilkplus +++ b/gcc/ChangeLog.cilkplus @@ -1,3 +1,9 @@ +2013-09-25 Balaji V. Iyer + + * elem-function-common.c (rename_elem_fn): Used the mangled name instead + of the original function name to append the elemental function mangling + prefix. + 2013-08-15 Balaji V. Iyer * cilk.c (create_metadata_label): Make this function non-static. diff --git a/gcc/elem-function-common.c b/gcc/elem-function-common.c index 0ccbe2fb334..04a08e76388 100644 --- a/gcc/elem-function-common.c +++ b/gcc/elem-function-common.c @@ -97,7 +97,7 @@ tree rename_elem_fn (tree decl, const char *suffix) { int length = 0; - const char *fn_name = IDENTIFIER_POINTER (DECL_NAME (decl)); + const char *fn_name = IDENTIFIER_POINTER (decl_assembler_name (decl)); char *new_fn_name; tree new_decl = NULL_TREE; -- cgit v1.2.1