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: unassig...@gcc.gnu.org

        ReportedBy: richard-gccbugzi...@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

$

Reply via email to