From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 71421 invoked by alias); 29 Jun 2018 17:01:31 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 71142 invoked by uid 89); 29 Jun 2018 17:01:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FSL_HAS_TINYURL,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=tinyurl.com, UD:tinyurl.com, tinyurlcom, Hx-languages-length:1904 X-HELO: mail-ot0-f173.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=9PbPj6xoHk0uENbYagygTmHhuhwiSsv60Pm5KTnjcSQ=; b=Dn2gWCFYK5k9dOV0TJncX82I2/goL/sUSIohMEOCNuXaLABHqndf8qH8LIKiyJ3LkF UTiecx83QDrGQAQl18aWTFUHAv2YYr+TooQNkfEvXNV5gi2nwH3XrMgReb5gTu3cuLR+ ePTUqekMELlK4vc2eWIEIs5FzLSHX0rnsRJHy4giOfqhELFUeyTHCeu/TvWaLz0wsyvF 2cW3Pxl1l+d8TXi22ijC4rSWbPYZCemhTgAb3uQ/zuovpu44WQHYpOiVzi7ii25MV0vg mC5ypwTlzO5RS6NxSq0pnFSbO8YPGLGoPJVocqzUeR5Y5Endkmhf5aJKPoAxCiAXuB3B Tbag== Return-Path: Subject: Re: PING [PATCH] mention disabling GCC built-ins for customization To: Andreas Schwab References: <2f2f96d3-5487-f791-8554-310beae0721b@gmail.com> <51382872-07a8-91af-01b2-2511e2260e3b@gmail.com> Cc: GNU C Library From: Martin Sebor Message-ID: <2748d985-0104-92c9-102b-344ff916f0c1@gmail.com> Date: Fri, 29 Jun 2018 17:01:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-06/txt/msg01009.txt.bz2 I have committed the change: http://tinyurl.com/y7jbvfs4 Martin On 06/27/2018 05:37 PM, Martin Sebor wrote: > Ping: https://sourceware.org/ml/libc-alpha/2018-06/msg00428.html > > If there are no further comments I'd like to commit this change > later this week. > > On 06/14/2018 01:11 PM, Martin Sebor wrote: >> On 06/14/2018 01:25 AM, Andreas Schwab wrote: >>> On Jun 13 2018, Martin Sebor wrote: >>> >>>> diff --git a/manual/stdio.texi b/manual/stdio.texi >>>> index 38be236..d945955 100644 >>>> --- a/manual/stdio.texi >>>> +++ b/manual/stdio.texi >>>> @@ -2963,7 +2963,11 @@ The facilities of this section are declared in >>>> the header file >>>> >>>> @strong{Portability Note:} The ability to extend the syntax of >>>> @code{printf} template strings is a GNU extension. ISO standard C has >>>> -nothing similar. >>>> +nothing similar. When using the GNU C compiler or any other compiler >>>> +that interprets calls to standard I/O functions according to the rules >>>> +of the language standard it is necessary to disable such handling by >>>> +the appropriate compiler option. Otherwise the behavior of a program >>>> +that relies on the extension is undefined. >>> >>> The manual already says that redefining existing conversions causes >>> problems: >>> >>> You can redefine the standard output conversions, but this is >>> probably >>> not a good idea because of the potential for confusion. Library >>> routines >>> written by other people could break if you do this. >>> >>> We should extend that with a stronger language, independent of any >>> compiler behaviour. >> >> That sounds fine to me. Attached is an updated patch that also >> adds text to this paragraph. I added a Portability Note before >> the text to highlight the portability impact, similarly to >> the prior paragraph. >> >> Martin >