summaryrefslogtreecommitdiff
path: root/gcc/config/i386/mingw32.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2012-02-13 21:46:38 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2012-02-13 21:46:38 +0000
commit255a9a1bb5ed771c8b1f72ffb71bfdf77f2d9fb9 (patch)
treeb55e6dc77c9621f5c9185ca1566529c83dd91063 /gcc/config/i386/mingw32.h
parentb2cb69647e04765b87f0f1ba9f39b4a353574135 (diff)
downloadgcc-255a9a1bb5ed771c8b1f72ffb71bfdf77f2d9fb9.tar.gz
gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
gcc/ * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm. (GTM_SELF_SPECS): Define if not already defined. (driver_self_specs): Add GTM_SELF_SPECS. * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm. (GTM_SELF_SPECS): Define. * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise. * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise. libitm/ * configure.ac (link_itm): Fix comment. * configure: Regenerate. * testsuite/lib/libitm.exp: Do not pass -litm for the link. From-SVN: r184174
Diffstat (limited to 'gcc/config/i386/mingw32.h')
-rw-r--r--gcc/config/i386/mingw32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h
index 00dcca60bb0..4fdef2664bd 100644
--- a/gcc/config/i386/mingw32.h
+++ b/gcc/config/i386/mingw32.h
@@ -187,6 +187,8 @@ do { \
#undef GOMP_SELF_SPECS
#define GOMP_SELF_SPECS "%{fopenmp|ftree-parallelize-loops=*: " \
"-mthreads -pthread}"
+#undef GTM_SELF_SPECS
+#define GTM_SELF_SPECS "%{fgnu-tm:-mthreads -pthread}"
/* mingw32 atexit function is safe to use in shared libraries. Use it
to register C++ static destructors. */