diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-01-26 22:28:57 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-01-26 22:28:57 +0100 |
commit | 4cd76837a875b2c2ef619dd44eca555d487573f6 (patch) | |
tree | 22837e6f32b901b17927ba57071242ad6f17f7fb /gcc/omp-low.c | |
parent | b25affbdc1fab885366de251e04e2e56d0b4f6cc (diff) | |
download | gcc-4cd76837a875b2c2ef619dd44eca555d487573f6.zip gcc-4cd76837a875b2c2ef619dd44eca555d487573f6.tar.gz gcc-4cd76837a875b2c2ef619dd44eca555d487573f6.tar.bz2 |
re PR middle-end/64421 (Incorrect vector function name generated for log)
PR middle-end/64421
* omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
with asterisk, skip the first character.
* gcc.dg/vect/pr64421.c: New test.
From-SVN: r220137
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index da53334..182836b 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -12663,9 +12663,11 @@ simd_clone_mangle (struct cgraph_node *node, } pp_underscore (&pp); - pp_string (&pp, - IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (node->decl))); - const char *str = pp_formatted_text (&pp); + const char *str = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (node->decl)); + if (*str == '*') + ++str; + pp_string (&pp, str); + str = pp_formatted_text (&pp); /* If there already is a SIMD clone with the same mangled name, don't add another one. This can happen e.g. for |