From c9c8f2e82792603bfc587b49841b2f43ee60d121 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Tue, 16 Aug 2011 18:29:20 +0200 Subject: [PATCH] * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option. From-SVN: r177789 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/mingw32.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d567a2072cb..a38e9132b2d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-08-16 Kai Tietz + + * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option. + 2011-08-16 Richard GUenther PR tree-optimization/50082 diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index 3c835c68690..7cb280eda32 100644 --- a/gcc/config/i386/mingw32.h +++ b/gcc/config/i386/mingw32.h @@ -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. */ -- 2.30.2