[patch mingw committed]: Add to GOMP_SELF_SPECS additionally the option -pthread
Kai Tietz
ktietz70@googlemail.com
Tue Aug 16 16:53:00 GMT 2011
Hello,
this patch fixes for options -fopenmp and/or -ftree-parallelize-loops=
the binding to pthread-library.
ChangeLog
2011-08-16 Kai Tietz <ktietz@redhat.com>
* config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
Bootstrapped for x86_64-w64-mingw32 and i686-pc-mingw32. Applied at
revision 77789.
Regards,
Kai
Index: mingw32.h
===================================================================
--- mingw32.h (revision 177784)
+++ mingw32.h (working copy)
@@ -189,7 +189,8 @@
/* 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. */
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
More information about the Gcc-patches
mailing list