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 | 18949d7bf322c647820f4bf2655ac1ed79c97044 (patch) | |
tree | 02b620ec2e2bc65af5c98164e3a00bb49655b4c3 | |
parent | 2b7025e0b98cfa45df1ae80828879403dddaf60d (diff) | |
download | llvm-18949d7bf322c647820f4bf2655ac1ed79c97044.tar.gz |
Fix mingw for release.
Merge 82177 from mainline.
Use __attribute__((__used__)) if GCC >= 3.1 (seems to be the oldest GCC
supporting this attribute).
llvm-svn: 82192
-rw-r--r-- | llvm/include/llvm/Support/Compiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 853324611bbe..342a97d761ee 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/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 |