]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
authorKai Tietz <ktietz@redhat.com>
Tue, 16 Aug 2011 16:29:20 +0000 (18:29 +0200)
committerKai Tietz <ktietz@gcc.gnu.org>
Tue, 16 Aug 2011 16:29:20 +0000 (18:29 +0200)
From-SVN: r177789

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

index d567a2072cbb0259d1fc561dfa13d48607b525ed..a38e9132b2d7deda351487923efd44873a4ea95d 100644 (file)
@@ -1,3 +1,7 @@
+2011-08-16  Kai Tietz  <ktietz@redhat.com>
+
+       * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
+
 2011-08-16  Richard GUenther  <rguenther@suse.de>
 
        PR tree-optimization/50082
index 3c835c686908fd1e6e1234d9437a466ade49d477..7cb280eda32e8478ddd55e9119ba99417a0d88f5 100644 (file)
@@ -189,7 +189,8 @@ do {                                                         \
 
 /* mingw32 uses the  -mthreads option to enable thread support.  */
 #undef GOMP_SELF_SPECS
-#define GOMP_SELF_SPECS "%{fopenmp: -mthreads}"
+#define GOMP_SELF_SPECS "%{fopenmp|ftree-parallelize-loops=*: " \
+                       "-mthreads -pthread}"
 
 /* mingw32 atexit function is safe to use in shared libraries.  Use it
    to register C++ static destructors.  */