Go to file
Vedant Kumar 9c056c9e1b [InstrProf] Don't take the address of alwaysinline available_externally functions
Doing so breaks compilation of the following C program
(under -fprofile-instr-generate):

 __attribute__((always_inline)) inline int foo() { return 0; }

 int main() { return foo(); }

At link time, we fail because taking the address of an
available_externally function creates an undefined external reference,
which the TU cannot provide.

Emitting the function definition into the object file at all appears to
be a violation of the langref: "Globals with 'available_externally'
linkage are never emitted into the object file corresponding to the LLVM
module."

Differential Revision: https://reviews.llvm.org/D34134

llvm-svn: 305327
2017-06-13 22:12:35 +00:00
clang Preserve cold attribute for function decls 2017-06-13 21:14:07 +00:00
clang-tools-extra [clangd] A comment for ClangdServer's constructor. NFC. 2017-06-13 16:02:27 +00:00
compiler-rt tsan: fix reading of mutex flags 2017-06-13 09:37:51 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc generic: add missing get_work_dim include 2017-06-02 15:58:35 +00:00
libcxx Fix bug 33389 - __is_transparent check requires too much 2017-06-13 14:34:58 +00:00
libcxxabi Set a default value for LIBCXXABI_LIBDIR_SUFFIX, fixes installing into lib64 after r304374 2017-06-13 08:16:44 +00:00
libunwind [libunwind] Fix executable stack directive on Linux. 2017-05-16 20:18:57 +00:00
lld Set non alloc section address to 0 earlier. 2017-06-13 20:57:43 +00:00
lldb Mark TestCallThatRestarts as flaky on android 2017-06-13 11:13:11 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [InstrProf] Don't take the address of alwaysinline available_externally functions 2017-06-13 22:12:35 +00:00
openmp Replace platform macro with KMP_MIC_SUPPORTED 2017-06-13 17:17:26 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [www] Remove outdated documentation 2017-06-12 12:21:47 +00:00