[Bug c/56528] New: __attribute__((visibility)) ignored for a function declaration with an asm label

richard-gccbugzilla at metafoo dot co.uk gcc-bugzilla@gcc.gnu.org
Mon Mar 4 22:27:00 GMT 2013


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
$



More information about the Gcc-bugs mailing list