aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorJulien Lerouge <jlerouge@apple.com>2009-09-17 23:27:10 +0000
committerJulien Lerouge <jlerouge@apple.com>2009-09-17 23:27:10 +0000
commit7fbb035781529abc1df7b4e4f6471dd977708e3b (patch)
tree94a75d5f71156fcdaea0210b47f7f668d7f71b69 /include/llvm
parent941264e406202121ddb019dffa5e1084819790c3 (diff)
downloadexternal_llvm-7fbb035781529abc1df7b4e4f6471dd977708e3b.zip
external_llvm-7fbb035781529abc1df7b4e4f6471dd977708e3b.tar.gz
external_llvm-7fbb035781529abc1df7b4e4f6471dd977708e3b.tar.bz2
Use __attribute__((__used__)) if GCC >= 3.1 (seems to be the oldest GCC
supporting this attribute). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Support/Compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h
index 8533246..342a97d 100644
--- a/include/llvm/Support/Compiler.h
+++ b/include/llvm/Support/Compiler.h
@@ -23,7 +23,7 @@
#define VISIBILITY_HIDDEN
#endif
-#if (__GNUC__ >= 4)
+#if (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
#define ATTRIBUTE_USED __attribute__((__used__))
#else
#define ATTRIBUTE_USED