]> granicus.if.org Git - clang/commit
CodeGen: Emit some functions as weak_odr under -fms-compatibility
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 2 Apr 2014 23:17:29 +0000 (23:17 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 2 Apr 2014 23:17:29 +0000 (23:17 +0000)
commit011e0521dc350be64be25c38c7737eebe50589ba
treef0463b180f9039e455d8cf37fc0eb5d0974d5b7d
parente7ba0820c79507fb39f97d8e773cb99d79377b04
CodeGen: Emit some functions as weak_odr under -fms-compatibility

Summary:
MSVC always emits inline functions marked with the extern storage class
specifier.  The result is something similar to the opposite of
__attribute__((gnu_inline)).

This extension is also available in C.

This fixes PR19264.

Reviewers: rnk, rsmith

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D3207

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205485 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
include/clang/AST/Decl.h
include/clang/Basic/Linkage.h
lib/AST/ASTContext.cpp
lib/AST/Decl.cpp
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/inline.c
test/CodeGenCXX/inline-functions.cpp