aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalaji V. Iyer <balaji.v.iyer@intel.com>2013-09-25 21:34:20 +0000
committerBalaji V. Iyer <balaji.v.iyer@intel.com>2013-09-25 21:34:20 +0000
commit80d16b1dd06ca31fd37f9753ba766fd4cb4f0594 (patch)
tree8af06cd916644694af296aa4a4cf92e3bdbac52c
parentd3059a4432679d6bf88251ccc0982751170ac607 (diff)
+2013-09-25 Balaji V. Iyer <balaji.v.iyer@intel.com>cilkplus-4_8-branch
+ + * 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: https://gcc.gnu.org/svn/gcc/branches/cilkplus-4_8-branch@202926 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog.cilkplus6
-rw-r--r--gcc/elem-function-common.c2
2 files changed, 7 insertions, 1 deletions
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 <balaji.v.iyer@intel.com>
+
+ * 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 <balaji.v.iyer@intel.com>
* 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;