* config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
authorDanny Smith <dannysmith@users.sourceforge.net>
Fri, 6 Oct 2006 08:46:18 +0000 (08:46 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Fri, 6 Oct 2006 08:46:18 +0000 (08:46 +0000)
From-SVN: r117492

gcc/ChangeLog
gcc/config/i386/mingw32.h

index ace6a48e3f978d7892dd2319d48e82194f596b08..329213934531c9fa5f221b8eb2cabc16b63066f8 100644 (file)
@@ -1,3 +1,7 @@
+2006-10-06  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
+
 2006-10-06  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/29290
index bc18d64976dd6ca42d9e575d885bc3d80bf433ed..6fd5d94cfd51642140e3c0db60004bef69df910f 100644 (file)
@@ -109,6 +109,6 @@ do {                                                         \
 #undef WINT_TYPE
 #define WINT_TYPE "short unsigned int"
 
-/* mingw32 doesn't understand the -pthread option.  */
+/* mingw32 uses the  -mthreads option to enable thread support.  */
 #undef GOMP_SELF_SPECS
-#define GOMP_SELF_SPECS ""
+#define GOMP_SELF_SPECS "%{fopenmp: -mthreads}"