This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH} Using dg-additional-sources in gfortran testsuite
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: "Billinghurst, David (CALCRTS)" <david dot billinghurst at comalco dot riotinto dot com dot au>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Sun, 05 Jun 2005 15:12:14 +0200
- Subject: Re: [PATCH} Using dg-additional-sources in gfortran testsuite
- References: <026DCC31AB859648A6F16C0E5CD2580D308B4E@calttsv025.cal.riotinto.org>
Billinghurst, David (CALCRTS) wrote:
> This patch allows the use of dg-additional-sources in the
> gfortran testsuite. There are also two tests of mixed
> C and Fortran as examples. Tested on i686-pc-cygwin.
>
> OK for 4.1? Do we add these to 4.0 as well?
Yes. Please add this to 4.0 as well. Do you have similar tests for COMPLEX
functions forthcoming?
As a side note, the implementation of the specifics relies on the calling
convention being correct, so this is already tested, but making this explicit
is nonetheless valuable.
> --- /dev/null 2005-06-05 22:25:21.125496000 +1000
> +++ gfortran.dg/f2c_4.c 2005-06-05 21:34:28.355828800 +1000
> @@ -0,0 +1,9 @@
> +extern double f2c_4b__(double *);
^^
Looks like the documentation wasn't completely consistent. I'm committing
this to the mainline and the 4.0 branch. Tested with 'make info'.
- Tobi
2005-06-05 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
* invoke.texi: Fix description of flags required for compatibility
with g77.
Index: invoke.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fortran/invoke.texi,v
retrieving revision 1.15
diff -u -p -r1.15 invoke.texi
--- invoke.texi 30 May 2005 22:16:08 -0000 1.15
+++ invoke.texi 5 Jun 2005 13:04:43 -0000
@@ -571,9 +571,9 @@ UNIX Fortran compilers.
@emph{Caution}: The default behavior of @command{gfortran} is
incompatible with @command{f2c} and @command{g77}, please use the
-@option{-ff2c} and @option{-fsecond-underscore} options if you want
-object files compiled with @option{gfortran} to be compatible with
-object code created with these tools.
+@option{-ff2c} option if you want object files compiled with
+@option{gfortran} to be compatible with object code created with these
+tools.
Use of @option{-fno-underscoring} is not recommended unless you are
experimenting with issues such as integration of (GNU) Fortran into