From patchwork Fri Aug 20 15:25:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 62286 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id CE005B6F11 for ; Sat, 21 Aug 2010 01:26:03 +1000 (EST) Received: (qmail 32730 invoked by alias); 20 Aug 2010 15:25:59 -0000 Received: (qmail 32707 invoked by uid 22791); 20 Aug 2010 15:25:58 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, TW_LG, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Aug 2010 15:25:53 +0000 Received: (qmail 4173 invoked from network); 20 Aug 2010 15:25:50 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 20 Aug 2010 15:25:50 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.69) (envelope-from ) id 1OmTTY-0001Pc-VZ; Fri, 20 Aug 2010 15:25:48 +0000 Date: Fri, 20 Aug 2010 15:25:48 +0000 (UTC) From: "Joseph S. Myers" To: Tobias Burnus cc: gcc-patches@gcc.gnu.org, fortran@gcc.gnu.org, java-patches@gcc.gnu.org Subject: Re: Make lang_specific_driver use cl_decoded_option structures In-Reply-To: <4C6E1E65.3020206@net-b.de> Message-ID: References: <4C6E1E65.3020206@net-b.de> MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-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. */