This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC patch: Add libquadmath - and use it in gfortran (round THREE)


Tobias Burnus wrote:
this patch is an updated version of the one posted at http://gcc.gnu.org/ml/gcc-patches/2010-11/msg00790.html

As libquadmath remained unchanged, I did not include the 180K file but I just refer to http://gcc.gnu.org/ml/gcc-patches/2010-11/msg00790/libquadmath.tar.bz2

The other patches can be found at http://gcc.gnu.org/ml/fortran/2010-11/msg00173.html


TODO: Fix using gfortran in libgomp. Currently, no .mod files are generated. It works if one manually runs "make omp_lib.mod" but it won't happen automatically.

The solution it trivial - even though it took me quite some time to find out. Please apply the following patch after the other ones.


From my side, everything should work now. Though, I have not yet bootstrapped and regtested (check-gfortran + libgomp check).

Remains to do:
- Get report from other platforms whether it works
- Find out why for Angelo on Cygwin there is no quadmath .DLL and no functions from libgfortran/transfer128.c
- Fix review comments (hint!)



diff --git a/libgomp/configure.ac b/libgomp/configure.ac index 85945c7..45723a5 100644 --- a/libgomp/configure.ac +++ b/libgomp/configure.ac @@ -140,6 +140,10 @@ AC_SUBST(enable_static)

AM_MAINTAINER_MODE

+# Create a spec file, so that compile/link tests don't fail
+test -f libgfortran.spec || touch libgfortran.spec
+FCFLAGS="$FCFLAGS -L."
+
 # We need gfortran to compile parts of the library
 # We can't use AC_PROG_FC because it expects a fully working gfortran.
 #AC_PROG_FC(gfortran)

diff --git a/libgomp/configure b/libgomp/configure
index 9dd8323..423690f 100755
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -11459,6 +11459,10 @@ fi



+# Create a spec file, so that compile/link tests don't fail
+test -f libgfortran.spec || touch libgfortran.spec
+FCFLAGS="$FCFLAGS -L."
+
 # We need gfortran to compile parts of the library
 # We can't use AC_PROG_FC because it expects a fully working gfortran.
 #AC_PROG_FC(gfortran)


Tobias



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]