https://bugs.llvm.org/show_bug.cgi?id=41236

            Bug ID: 41236
           Summary: Functions with __attribute__((used)) in static
                    libraries are not linked with -flto=thin
           Product: clang
           Version: 8.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

Moving from llvm 7.0 to 8.0 functions marked `__attribute__((used))
__attribute__ ((__visibility__("default")))` are not linked into final
executable under these circumstances:
* Function is in static library
* `-flto=thin` is used (`-flto` or no lto works as expected)
* Function is not referenced from other functions that are alive
* Target: `x86_64-apple-darwin11`

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to