public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH]: Fix PR32765
@ 2007-08-12 21:48 Jack Howarth
  2007-08-12 22:02 ` FX Coudert
  0 siblings, 1 reply; 3+ messages in thread
From: Jack Howarth @ 2007-08-12 21:48 UTC (permalink / raw)
  To: gcc-patches; +Cc: fortran

The attached patch passes -static-libgcc on the Darwin target. This
work-around will be required until Apple revises the libgcc support
in FSF gcc on Darwin to use the complete symbol list of the current
libgcc (and not the limited symbol list for MacOS X 10.4 or 10.5).
This patch also provides users with the clue that code resembling
this testcase that uses the ___emutls_get_address symbol in libgcc
will require the use of -static-libgcc to gain access to that
symbol on Darwin. Okay for gcc trunk?
              Jack Howarth

ChangeLog:
2007-08-12  Jack Howarth  <howarth@bromo.med.uc.edu>

	PR target/32765
	* testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
	* testsuite/libgomp.fortran/crayptr2.f90: Likwise.

Index: libgomp/testsuite/libgomp.fortran/crayptr2.f90
===================================================================
--- libgomp/testsuite/libgomp.fortran/crayptr2.f90	(revision 127385)
+++ libgomp/testsuite/libgomp.fortran/crayptr2.f90	(working copy)
@@ -1,4 +1,5 @@
 ! { dg-do run }
+! { dg-options "-fopenmp -fcray-pointer -static-libgcc" { target *-*-darwin* } }
 ! { dg-options "-fopenmp -fcray-pointer" }
 
   use omp_lib
Index: libgomp/testsuite/libgomp.fortran/pr32550.f90
===================================================================
--- libgomp/testsuite/libgomp.fortran/pr32550.f90	(revision 127385)
+++ libgomp/testsuite/libgomp.fortran/pr32550.f90	(working copy)
@@ -1,5 +1,6 @@
 ! PR fortran/32550
 ! { dg-do run }
+! { dg-options "-static-libgcc" { target *-*-darwin* } }
 
       integer, pointer, save :: ptr
       integer, target :: targ

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

* Re: [PATCH]: Fix PR32765
  2007-08-12 21:48 [PATCH]: Fix PR32765 Jack Howarth
@ 2007-08-12 22:02 ` FX Coudert
  2007-08-12 22:10   ` Jack Howarth
  0 siblings, 1 reply; 3+ messages in thread
From: FX Coudert @ 2007-08-12 22:02 UTC (permalink / raw)
  To: Jack Howarth; +Cc: gcc-patches, fortran

> Okay for gcc trunk?

As a general rule: you need to say what testing you did, and on which  
platforms.

The patch is OK provided you checked that:

> Index: libgomp/testsuite/libgomp.fortran/crayptr2.f90
> ===================================================================
> --- libgomp/testsuite/libgomp.fortran/crayptr2.f90	(revision 127385)
> +++ libgomp/testsuite/libgomp.fortran/crayptr2.f90	(working copy)
> @@ -1,4 +1,5 @@
>  ! { dg-do run }
> +! { dg-options "-fopenmp -fcray-pointer -static-libgcc" { target *- 
> *-darwin* } }
>  ! { dg-options "-fopenmp -fcray-pointer" }

has the expected behaviour, i.e. it does not break on non-darwin  
platforms.

Thanks,
FX

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

* Re: [PATCH]: Fix PR32765
  2007-08-12 22:02 ` FX Coudert
@ 2007-08-12 22:10   ` Jack Howarth
  0 siblings, 0 replies; 3+ messages in thread
From: Jack Howarth @ 2007-08-12 22:10 UTC (permalink / raw)
  To: FX Coudert; +Cc: gcc-patches, fortran

This was tested on powerpc-apple-darwin9. Mike Stump has
indicated to me some interest in revising the way the
FSF gcc libgcc shared library is treated on darwin by
creating a libgcc_s.10.99.dylib on Darwin that would
be the default for the FSF gcc compilers. However that
is likely a ways off in the future.
              Jack

On Sun, Aug 12, 2007 at 11:02:18PM +0100, FX Coudert wrote:
> >Okay for gcc trunk?
> 
> As a general rule: you need to say what testing you did, and on which  
> platforms.
> 
> The patch is OK provided you checked that:
> 
> >Index: libgomp/testsuite/libgomp.fortran/crayptr2.f90
> >===================================================================
> >--- libgomp/testsuite/libgomp.fortran/crayptr2.f90	(revision 127385)
> >+++ libgomp/testsuite/libgomp.fortran/crayptr2.f90	(working copy)
> >@@ -1,4 +1,5 @@
> > ! { dg-do run }
> >+! { dg-options "-fopenmp -fcray-pointer -static-libgcc" { target *- 
> >*-darwin* } }
> > ! { dg-options "-fopenmp -fcray-pointer" }
> 
> has the expected behaviour, i.e. it does not break on non-darwin  
> platforms.
> 
> Thanks,
> FX

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

end of thread, other threads:[~2007-08-12 22:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-12 21:48 [PATCH]: Fix PR32765 Jack Howarth
2007-08-12 22:02 ` FX Coudert
2007-08-12 22:10   ` Jack Howarth

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).