[LLVMbugs] [Bug 24084] New: clang-cl generates code for unreferenced inline definitions of library builtins

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 10 11:20:09 PDT 2015


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

            Bug ID: 24084
           Summary: clang-cl generates code for unreferenced inline
                    definitions of library builtins
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rnk at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

We should not generate any code for this inline function but we do:

__declspec(noreturn) void __cdecl _exit(int _Code);
__inline void __cdecl _Exit(int status) { _exit(status); }

My guess is that we think _Exit is extern and our extern-inline compat kicks in
to force a definition.

-- 
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/20150710/adda3cd5/attachment.html>


More information about the llvm-bugs mailing list