re PR target/26588 (gfortran -fopenmp passes unrecognised -pthread)
authorDavid Billinghurst <David.Billinghurst@riotinto.com>
Tue, 7 Mar 2006 23:51:34 +0000 (23:51 +0000)
committerDavid Billinghurst <billingd@gcc.gnu.org>
Tue, 7 Mar 2006 23:51:34 +0000 (23:51 +0000)
2006-03-08  David Billinghurst <David.Billinghurst@riotinto.com>

PR target/26588
* config/i386/cygwin.h (GOMP_SELF_SPECS): Define.

From-SVN: r111824

gcc/ChangeLog
gcc/config/i386/cygwin.h

index e446ba1..cb421ce 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-08  David Billinghurst <David.Billinghurst@riotinto.com>
+
+       PR target/26588
+       * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
+
 2006-03-08  Ben Elliston  <bje@au.ibm.com>
 
        * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
index 02d004c..3cbbd16 100644 (file)
@@ -232,3 +232,9 @@ while (0)
 /* Binutils does not handle weak symbols from dlls correctly.  For now,
    do not use them unnecessarily in gthr-posix.h.  */
 #define GTHREAD_USE_WEAK 0
+
+/* Every program on cygwin links against cygwin1.dll which contains 
+   the pthread routines.  There is no need to explicitly link them
+   and the -pthread flag is not recognised.  */
+#undef GOMP_SELF_SPECS
+#define GOMP_SELF_SPECS ""