OSDN Git Service

* config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Oct 2006 08:46:18 +0000 (08:46 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Oct 2006 08:46:18 +0000 (08:46 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117492 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ace6a48..3292139 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 bc18d64..6fd5d94 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}"