]>
Commit | Line | Data |
---|---|---|
5384b728 | 1 | 2002-07-31 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | * varasm.c (assemble_visibility): Strip name encoding. | |
4 | ||
5 | * gcc.dg/ia64-visibility-2.c: New test. | |
6 | ||
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 | |
9 | @@ -0,0 +1,15 @@ | |
10 | +/* Test visibility attribute. */ | |
11 | +/* { dg-do link { target ia64*-*-linux* } } */ | |
12 | +/* { dg-options "-O2 -fpic" } */ | |
13 | + | |
14 | +int foo (int x); | |
15 | +int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden"))); | |
16 | +int bar (int x) | |
17 | +{ | |
18 | + return x; | |
19 | +} | |
20 | + | |
21 | +int main () | |
22 | +{ | |
23 | + return 0; | |
24 | +} | |
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 | |
28 | { | |
29 | const char *name; | |
30 | ||
31 | - name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); | |
32 | + STRIP_NAME_ENCODING (name, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl))); | |
33 | ||
34 | #ifdef HAVE_GAS_HIDDEN | |
35 | fprintf (asm_out_file, "\t.%s\t%s\n", visibility_type, name); |