This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/56528] New: __attribute__((visibility)) ignored for a function declaration with an asm label
- From: "richard-gccbugzilla at metafoo dot co.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 Mar 2013 22:27:37 +0000
- Subject: [Bug c/56528] New: __attribute__((visibility)) ignored for a function declaration with an asm label
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56528
Bug #: 56528
Summary: __attribute__((visibility)) ignored for a function
declaration with an asm label
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: richard-gccbugzilla@metafoo.co.uk
Adding an asm label attribute to a function declaration with a visibility
attribute causes the visibility attribute to be ignored:
$ echo 'void f() __attribute__((visibility("hidden"))); void g() { f(); }' |
gcc -x c - -S -o - | grep hidden
.hidden f
$ echo 'void f() __asm__("f") __attribute__((visibility("hidden"))); void g() {
f(); }' | gcc -x c - -S -o - | grep hidden
$