Commit 18949d7b authored by Tanya Lattner's avatar Tanya Lattner
Browse files

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
parent 2b7025e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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