This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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
$


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]