[llvm-bugs] [Bug 35066] New: Clang never gives hidden visibility to fundamental types, even with -fvisibility=hidden

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 24 13:04:52 PDT 2017


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

            Bug ID: 35066
           Summary: Clang never gives hidden visibility to fundamental
                    types, even with -fvisibility=hidden
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: thomasanderson at google.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

__cxxabiv1::__fundamental_type_info is a special class that causes the compiler
to generate type info for fundamental types (void, bool, char, ..).  When
building with -fvisibility=hidden, the __fundamental_type_info class itself is
given hidden visibility, but the generated types do not.

Relevant code:
http://llvm-cs.pcc.me.uk/tools/clang/lib/CodeGen/ItaniumCXXABI.cpp#1537

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171024/7a522290/attachment.html>


More information about the llvm-bugs mailing list