From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27414 invoked by alias); 13 Mar 2012 10:12:02 -0000 Received: (qmail 27403 invoked by uid 22791); 13 Mar 2012 10:12:01 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail1-relais-roc.national.inria.fr (HELO mail1-relais-roc.national.inria.fr) (192.134.164.82) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Mar 2012 10:11:47 +0000 Received: from unknown (HELO pluto) ([193.50.110.167]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 13 Mar 2012 11:11:45 +0100 From: ludovic.courtes@inria.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) To: "Joseph S. Myers" Cc: gcc-patches@gcc.gnu.org, Paul Brook Subject: Re: [PATCH] Don't insert white space in 'orig_option_with_args_text' for OPT_l References: <87ipidvl7h.fsf@inria.fr> <87y5r6t754.fsf@inria.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 =?iso-8859-1?Q?Vent=F4se?= an 220 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Tue, 13 Mar 2012 10:12:00 -0000 In-Reply-To: (Joseph S. Myers's message of "Mon, 12 Mar 2012 12:41:37 +0000 (UTC)") Message-ID: <87fwdcrese.fsf@inria.fr> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-03/txt/msg00900.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 627 Hi, (Cc: Paul Brook.) "Joseph S. Myers" skribis: > On Mon, 12 Mar 2012, Ludovic Court=C3=A8s wrote: > >> The patch below solves the problem in a gfortran-specific way. WDYT? > > I think that's the right approach for this issue. The previous patch was produced with =E2=80=98diff -b=E2=80=99. Here=E2=80= =99s a fixed one. Let me know if anything else needs to be done. Thanks, Ludo=E2=80=99. 2012-03-09 Ludovic Court=C3=A8s * gcc/fortran/gfotranspec.c (lang_specific_driver): When VERBOSE, make sure `-l' options are printed with no intertwined white spaces. --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-length: 792 diff --git a/gcc/fortran/gfortranspec.c b/gcc/fortran/gfortranspec.c index 2240bfb..55e5e42 100644 --- a/gcc/fortran/gfortranspec.c +++ b/gcc/fortran/gfortranspec.c @@ -461,8 +461,15 @@ For more information about these matters, see the file named COPYING\n\n")); { fprintf (stderr, _("Driving:")); for (i = 0; i < g77_newargc; i++) - fprintf (stderr, " %s", - g77_new_decoded_options[i].orig_option_with_args_text); + { + if (g77_new_decoded_options[i].opt_index == OPT_l) + /* Make sure no white space is inserted after `-l'. */ + fprintf (stderr, " -l%s", + g77_new_decoded_options[i].canonical_option[1]); + else + fprintf (stderr, " %s", + g77_new_decoded_options[i].orig_option_with_args_text); + } fprintf (stderr, "\n"); } --=-=-=--