public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/26588]  New: gfortran -fopenmp passes unrecognised -pthread
@ 2006-03-07  2:04 billingd at gcc dot gnu dot org
  2006-03-07  2:05 ` [Bug fortran/26588] " billingd at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: billingd at gcc dot gnu dot org @ 2006-03-07  2:04 UTC (permalink / raw)
  To: gcc-bugs

On cygwin, gfortran -fopenmp gives the warning
  gfortran: unrecognized option '-pthread'
which gives a heap of failures in the testsuite.

This is set in gcc.c:
/* Adding -fopenmp should imply pthreads.  This is particularly important
   for targets that use different start files and suchlike.  */
#ifndef GOMP_SELF_SPECS
#define GOMP_SELF_SPECS "%{fopenmp: -pthread}"
#endif


I think the fix is to override it, as is done in gcc/config/darwin.h

/* Every program on darwin links against libSystem which contains the pthread
   routines, so there's no need to explicitly call out when doing threaded
   work.  */
#undef GOMP_SELF_SPECS
#define GOMP_SELF_SPECS ""

I'll prepare a patch at some stage.


-- 
           Summary: gfortran -fopenmp passes unrecognised -pthread
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: billingd at gcc dot gnu dot org
        ReportedBy: billingd at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26588


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/26588] gfortran -fopenmp passes unrecognised -pthread
  2006-03-07  2:04 [Bug fortran/26588] New: gfortran -fopenmp passes unrecognised -pthread billingd at gcc dot gnu dot org
@ 2006-03-07  2:05 ` billingd at gcc dot gnu dot org
  2006-03-07  2:23 ` [Bug target/26588] " billingd at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: billingd at gcc dot gnu dot org @ 2006-03-07  2:05 UTC (permalink / raw)
  To: gcc-bugs



-- 

billingd at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-03-07 02:05:04
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26588


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/26588] gfortran -fopenmp passes unrecognised -pthread
  2006-03-07  2:04 [Bug fortran/26588] New: gfortran -fopenmp passes unrecognised -pthread billingd at gcc dot gnu dot org
  2006-03-07  2:05 ` [Bug fortran/26588] " billingd at gcc dot gnu dot org
@ 2006-03-07  2:23 ` billingd at gcc dot gnu dot org
  2006-03-07 23:51 ` billingd at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: billingd at gcc dot gnu dot org @ 2006-03-07  2:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from billingd at gcc dot gnu dot org  2006-03-07 02:22 -------
I am testing this.

2006-03-07  David Billinghurst (David.Billinghurst@riotinto.com)

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


--- cygwin.h~   2006-02-01 14:17:44.000000000 +1100
+++ cygwin.h    2006-03-07 13:08:52.420324700 +1100
@@ -232,3 +232,10 @@
 /* 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 cygwin.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 ""


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26588


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/26588] gfortran -fopenmp passes unrecognised -pthread
  2006-03-07  2:04 [Bug fortran/26588] New: gfortran -fopenmp passes unrecognised -pthread billingd at gcc dot gnu dot org
  2006-03-07  2:05 ` [Bug fortran/26588] " billingd at gcc dot gnu dot org
  2006-03-07  2:23 ` [Bug target/26588] " billingd at gcc dot gnu dot org
@ 2006-03-07 23:51 ` billingd at gcc dot gnu dot org
  2006-03-07 23:55 ` billingd at gcc dot gnu dot org
  2006-03-14  1:25 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: billingd at gcc dot gnu dot org @ 2006-03-07 23:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from billingd at gcc dot gnu dot org  2006-03-07 23:51 -------
Subject: Bug 26588

Author: billingd
Date: Tue Mar  7 23:51:34 2006
New Revision: 111824

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111824
Log:
2006-03-08  David Billinghurst <David.Billinghurst@riotinto.com>

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

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/cygwin.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26588


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/26588] gfortran -fopenmp passes unrecognised -pthread
  2006-03-07  2:04 [Bug fortran/26588] New: gfortran -fopenmp passes unrecognised -pthread billingd at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-03-07 23:51 ` billingd at gcc dot gnu dot org
@ 2006-03-07 23:55 ` billingd at gcc dot gnu dot org
  2006-03-14  1:25 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: billingd at gcc dot gnu dot org @ 2006-03-07 23:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from billingd at gcc dot gnu dot org  2006-03-07 23:55 -------
Fixed by patch.


-- 

billingd at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26588


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/26588] gfortran -fopenmp passes unrecognised -pthread
  2006-03-07  2:04 [Bug fortran/26588] New: gfortran -fopenmp passes unrecognised -pthread billingd at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-03-07 23:55 ` billingd at gcc dot gnu dot org
@ 2006-03-14  1:25 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-14  1:25 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26588


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-03-14  1:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-07  2:04 [Bug fortran/26588] New: gfortran -fopenmp passes unrecognised -pthread billingd at gcc dot gnu dot org
2006-03-07  2:05 ` [Bug fortran/26588] " billingd at gcc dot gnu dot org
2006-03-07  2:23 ` [Bug target/26588] " billingd at gcc dot gnu dot org
2006-03-07 23:51 ` billingd at gcc dot gnu dot org
2006-03-07 23:55 ` billingd at gcc dot gnu dot org
2006-03-14  1:25 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).