From patchwork Fri Aug 20 15:25:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Make lang_specific_driver use cl_decoded_option structures Date: Fri, 20 Aug 2010 05:25:48 -0000 From: "Joseph S. Myers" X-Patchwork-Id: 62286 Message-Id: To: Tobias Burnus Cc: gcc-patches@gcc.gnu.org, fortran@gcc.gnu.org, java-patches@gcc.gnu.org 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 + + * gfortranspec.c (lang_specific_driver): Refer to -lgfortran in + comment, not -lg2c. + 2010-08-20 Nathan Froyd * 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. */