diff options
author | Tanya Lattner <tonic@nondot.org> | 2009-09-18 04:28:28 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2009-09-18 04:28:28 +0000 |
commit | 66f1c6a5452af6ac0f47de9adb48cd2e6745eb58 (patch) | |
tree | 07a779e7c9981867687a36318a9039e644693165 | |
parent | 440f4126b4b111b2e8f1b99bf59689d0f58bb1fd (diff) |
Fix mingw for release.
Merge 82177 from mainline.
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/branches/release_26@82192 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/Compiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index 853324611b..342a97d761 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 |