summaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-01 21:59:36 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-01 21:59:36 +0000
commitcaf98cc4a04743825331d4e92d07be505d32c366 (patch)
treed9f8e42c6177dd9266ebae3c11145b4b1a5ccde7 /gcc/varasm.c
parentb2dd7dbf0fc517fe93c99335ea192dfe4386266c (diff)
downloadgcc-caf98cc4a04743825331d4e92d07be505d32c366.tar.gz
* varasm.c (assemble_visibility): Strip name encoding.
* gcc.dg/ia64-visibility-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55953 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index ce6f7318320..d22cb112af3 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -4618,7 +4618,8 @@ assemble_visibility (decl, visibility_type)
{
const char *name;
- name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
+ name = (* targetm.strip_name_encoding)
+ (IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)));
#ifdef HAVE_GAS_HIDDEN
fprintf (asm_out_file, "\t.%s\t%s\n", visibility_type, name);