varasm.c (assemble_visibility): Strip name encoding.

* varasm.c (assemble_visibility): Strip name encoding.

	* gcc.dg/ia64-visibility-2.c: New test.

From-SVN: r55953
This commit is contained in:
Jakub Jelinek 2002-08-01 23:59:36 +02:00 committed by Jakub Jelinek
parent ac14c72576
commit 81e602b572
4 changed files with 25 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2002-08-01 Jakub Jelinek <jakub@redhat.com>
* varasm.c (assemble_visibility): Strip name encoding.
2002-08-01 Ian Dall <ian@sibyl.beware.dropbear.id.au>
* config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.

View file

@ -1,3 +1,7 @@
2002-08-01 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/ia64-visibility-2.c: New test.
2002-08-01 Benjamin Kosnik <bkoz@redhat.com>
* g++.old-deja/g++.abi/ptrflags.C (expect): Change

View file

@ -0,0 +1,15 @@
/* Test visibility attribute. */
/* { dg-do link { target ia64*-*-linux* } } */
/* { dg-options "-O2 -fpic" } */
int foo (int x);
int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
int bar (int x)
{
return x;
}
int main ()
{
return 0;
}

View file

@ -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);