* config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.

From-SVN: r177789
This commit is contained in:
Kai Tietz 2011-08-16 18:29:20 +02:00 committed by Kai Tietz
parent e8dbf8b528
commit c9c8f2e827
2 changed files with 6 additions and 1 deletions

View 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

View 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. */