summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-11-15 05:24:26 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-11-15 05:24:26 +0000
commitf01faac473730ab72c44b88f23f68d5dbf859ab5 (patch)
tree9a6932d2e7e58a1b282bef3adcc24db84fef378d /llvm
parent2d8d63a92767e4e915c7ce0924e7e7a89a45f885 (diff)
downloadbcm5719-llvm-f01faac473730ab72c44b88f23f68d5dbf859ab5.tar.gz
bcm5719-llvm-f01faac473730ab72c44b88f23f68d5dbf859ab5.zip
include/llvm/Support/Compiler.h: Invalidate LLVM_ATTRIBUTE_WEAK on cygming for now.
It triggers generating insane executables with both binutils-2.19.1(msysgit) and 2.22.51.20111013(cygwin). llvm-svn: 144621
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/Compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index 14b55c147fe..9c5e7ecbae4 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -61,7 +61,7 @@
#define LLVM_ATTRIBUTE_READONLY
#endif
-#if (__GNUC__ >= 4)
+#if (__GNUC__ >= 4) && !defined(__MINGW32__) && !defined(__CYGWIN__)
#define LLVM_ATTRIBUTE_WEAK __attribute__((__weak__))
#else
#define LLVM_ATTRIBUTE_WEAK
OpenPOWER on IntegriCloud