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

            Bug ID: 19264
           Summary: -fms-compatibility should always emit 'extern inline'
                    functions and give them weak_odr linkage
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
            Blocks: 13707, 18887
    Classification: Unclassified

MSVC always instantiates "extern inline" functions.  Furthermore, prior to the
addition of /Zc:inline, it would never discard the separate instantiation of
the inline function, so the symbol would always be available for use from
another translation unit.

This is actually used by _AtlInitializeCriticalSectionEx.  The intention
appears to be that the user of the library should include this header, and then
the ATL will pick up the definition from the user's object files.

I believe this was the cause of link errors when building nacl64.exe in
Chromium.

-- 
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