aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2006-10-06 08:46:18 +0000
committerDanny Smith <dannysmith@gcc.gnu.org>2006-10-06 08:46:18 +0000
commit4d51dc9ec6c2b5e94031936baca7763d9c3b4f1c (patch)
treed01f04ebbf42d5e92c55a40e9340ff9fc2c0ca44 /gcc
parentb50019f0aa44b1bdd189291330c21ed3b6421482 (diff)
downloadgcc-4d51dc9ec6c2b5e94031936baca7763d9c3b4f1c.zip
gcc-4d51dc9ec6c2b5e94031936baca7763d9c3b4f1c.tar.gz
gcc-4d51dc9ec6c2b5e94031936baca7763d9c3b4f1c.tar.bz2
* config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
From-SVN: r117492
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/i386/mingw32.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ace6a48..3292139 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h
index bc18d64..6fd5d94 100644
--- a/gcc/config/i386/mingw32.h
+++ b/gcc/config/i386/mingw32.h
@@ -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}"