1 2002-07-31 Jakub Jelinek <jakub@redhat.com>
3 * varasm.c (assemble_visibility): Strip name encoding.
5 * gcc.dg/ia64-visibility-2.c: New test.
7 --- gcc/testsuite/gcc.dg/ia64-visibility-2.c.jj 2002-07-31 16:31:50.000000000 +0200
8 +++ gcc/testsuite/gcc.dg/ia64-visibility-2.c 2002-07-31 16:32:36.000000000 +0200
10 +/* Test visibility attribute. */
11 +/* { dg-do link { target ia64*-*-linux* } } */
12 +/* { dg-options "-O2 -fpic" } */
15 +int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
25 --- gcc/varasm.c.jj 2002-07-30 12:49:45.000000000 +0200
26 +++ gcc/varasm.c 2002-07-31 16:20:22.000000000 +0200
27 @@ -5227,7 +5227,7 @@ assemble_visibility (decl, visibility_ty
31 - name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
32 + STRIP_NAME_ENCODING (name, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)));
34 #ifdef HAVE_GAS_HIDDEN
35 fprintf (asm_out_file, "\t.%s\t%s\n", visibility_type, name);