projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da795f8
)
Use __attribute__((__used__)) if GCC >= 3.1 (seems to be the oldest GCC
author
Julien Lerouge
<jlerouge@apple.com>
Thu, 17 Sep 2009 23:27:10 +0000
(23:27 +0000)
committer
Julien Lerouge
<jlerouge@apple.com>
Thu, 17 Sep 2009 23:27:10 +0000
(23:27 +0000)
supporting this attribute).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82177
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/Compiler.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/Compiler.h
b/include/llvm/Support/Compiler.h
index 853324611bbe757b40356367dfa66531793fe60c..342a97d761ee624c655ab09378c0f163c19e04e2 100644
(file)
--- 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