[LLVMbugs] [Bug 19264] New: -fms-compatibility should always emit 'extern inline' functions and give them weak_odr linkage

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 27 11:42:11 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: rnk at google.com
                CC: david.majnemer at gmail.com, llvmbugs at cs.uiuc.edu
            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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140327/d62997c9/attachment.html>


More information about the llvm-bugs mailing list