http://llvm.org/bugs/show_bug.cgi?id=19333

            Bug ID: 19333
           Summary: LLVM exports too many symbols (on Unix like systems
                    like Linux and Mac)
           Product: Build scripts
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Makefiles
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

This doesn't apply to Windows because by default symbols are hidden in DLLs. On
Unix like systems like Linux and Mac though there are a bunch of symbols
exported that shouldn't be which increase startup time. There is a long and
annoying process of marking symbols to export for the libraries but for the
executables (which obviously shouldn't export any symbols unless they have a
plugin system) the flag -fvisibility=hidden should be a cheap and easy
optimization. Note that LLVM does not use runtime type information or
exceptions so I believe there shouldn't be very many problems however,
according to http://gcc.gnu.org/wiki/Visibility there also some other cases
(for example, static data members of templates that can cause this problem).
Using #pragma push for one's own code could be one way of quickly accomplishing
this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to