From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41232 invoked by alias); 11 Dec 2015 00:03:34 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 41118 invoked by uid 89); 11 Dec 2015 00:03:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 11 Dec 2015 00:03:33 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1a7BBJ-0007Xm-10 from joseph_myers@mentor.com ; Thu, 10 Dec 2015 16:03:29 -0800 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.224.2; Fri, 11 Dec 2015 00:03:27 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.82) (envelope-from ) id 1a7BBG-0007MM-Bd; Fri, 11 Dec 2015 00:03:26 +0000 Date: Fri, 11 Dec 2015 00:03:00 -0000 From: Joseph Myers To: =?ISO-8859-15?Q?Manuel_L=F3pez-Ib=E1=F1ez?= CC: Tobias Burnus , , , Jakub Jelinek Subject: Re: [Patch, Fortran] PR68815 - replace '%s' quotes by %< ... %> In-Reply-To: <5669F722.6000902@gmail.com> Message-ID: References: <20151209155337.GA6991@physik.fu-berlin.de> <5669F722.6000902@gmail.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1152306461-984620006-1449792206=:14974" X-SW-Source: 2015-12/txt/msg00076.txt.bz2 ---1152306461-984620006-1449792206=:14974 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8BIT Content-length: 809 On Thu, 10 Dec 2015, Manuel López-Ibáñez wrote: > On 12/09/2015 03:53 PM, Tobias Burnus wrote: > > In principle, %<%c%> and %<%d%> should be convertable to %qc and > > %qd (as the code is more readable), but the current function > > annotation prevent this, telling that the q flag is not valid for > > %c and %d. As %< is fine, I didn't dig into it. > > You need to edit the gcc_gfc_* variables in c-family/c-format.c. The correct > way to do that does not seem to be documented anywhere. I only got the current > support working after painful trial and error. > > Joseph, Jakub, could you advise the Fortran devs on how to edit c-format.c to > handle %qc and %qd as the C/C++ FEs do? Put "q" in the first flags string for those formats in gcc_gfc_char_table. -- Joseph S. Myers joseph@codesourcery.com ---1152306461-984620006-1449792206=:14974--