Make lang_specific_driver use cl_decoded_option structures
Joseph S. Myers
joseph@codesourcery.com
Fri Aug 20 15:25:00 GMT 2010
On Fri, 20 Aug 2010, Tobias Burnus wrote:
> > * The Fortran driver has a comment about "-lg2c -lm" but it always
> > appears to use -lgfortran, not -lg2c. Left unchanged.
>
> That's probably a copy from g77, which used g2c. Could you change this to
> -lgfortran.
I've committed this patch.
Index: ChangeLog
===================================================================
--- ChangeLog (revision 163405)
+++ ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2010-08-20 Joseph Myers <joseph@codesourcery.com>
+
+ * gfortranspec.c (lang_specific_driver): Refer to -lgfortran in
+ comment, not -lg2c.
+
2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
* trans-openmp.c: Use FOR_EACH_VEC_ELT.
Index: gfortranspec.c
===================================================================
--- gfortranspec.c (revision 163405)
+++ gfortranspec.c (working copy)
@@ -477,7 +477,7 @@
append_arg (argv[i]);
}
- /* Append `-lg2c -lm' as necessary. */
+ /* Append `-lgfortran -lm' as necessary. */
if (library)
{ /* Doing a link and no -nostdlib. */
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Fortran
mailing list