[llvm-branch-commits] [llvm-branch] r82192 - /llvm/branches/release_26/include/llvm/Support/Compiler.h

Tanya Lattner tonic at nondot.org
Thu Sep 17 21:28:28 PDT 2009


Author: tbrethou
Date: Thu Sep 17 23:28:28 2009
New Revision: 82192

URL: http://llvm.org/viewvc/llvm-project?rev=82192&view=rev
Log:
Fix mingw for release.
Merge 82177 from mainline.
Use __attribute__((__used__)) if GCC >= 3.1 (seems to be the oldest GCC
supporting this attribute).

Modified:
    llvm/branches/release_26/include/llvm/Support/Compiler.h

Modified: llvm/branches/release_26/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_26/include/llvm/Support/Compiler.h?rev=82192&r1=82191&r2=82192&view=diff

==============================================================================
--- llvm/branches/release_26/include/llvm/Support/Compiler.h (original)
+++ llvm/branches/release_26/include/llvm/Support/Compiler.h Thu Sep 17 23:28:28 2009
@@ -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





More information about the llvm-branch-commits mailing list