summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbviyer <bviyer@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-25 21:34:20 +0000
committerbviyer <bviyer@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-25 21:34:20 +0000
commit3cfca5ee2dc886e68afaeadf90282e8658208386 (patch)
tree8af06cd916644694af296aa4a4cf92e3bdbac52c
parent10ae410ee88cce5c1f08d3b04b850a9291474636 (diff)
downloadgcc-cilkplus-4_8-branch.tar.gz
+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: svn+ssh://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;