From 4d51dc9ec6c2b5e94031936baca7763d9c3b4f1c Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Fri, 6 Oct 2006 08:46:18 +0000 Subject: [PATCH] * config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp. From-SVN: r117492 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/mingw32.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ace6a48e3f9..32921393453 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-10-06 Danny Smith + + config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp. + 2006-10-06 Jakub Jelinek PR tree-optimization/29290 diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index bc18d64976d..6fd5d94cfd5 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}" -- 2.30.2