From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.cs.ucla.edu (mail.cs.ucla.edu [131.179.128.66]) by sourceware.org (Postfix) with ESMTPS id D914D385800D for ; Thu, 4 Jan 2024 17:42:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D914D385800D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=cs.ucla.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.ucla.edu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D914D385800D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=131.179.128.66 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704390158; cv=none; b=sX0EMhULRjHTopuZOze2T5lOhnBo6Txh6iVruGU1WJxOAxnml8y9PMbINHOCj5R5LoYh2w6hsEFq0A1sx2pQLTGHMSgoWSXsFbE/1yUXFtrCLztZ6C/Rylu8E61f4O6hW4joh+vP1mEosZh8KyTbJKlswtGxg+vdLLBNdMPUebU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704390158; c=relaxed/simple; bh=6Ijk+oCFYCvwYnE1kn+m0U+zo6DbdfS3Ipn/zpVt8+s=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=ZZy3U+4JQ7CFeXr+FXS2rHtJC+x73va9TJ9AV5Bcgxc5S1rLYjd+Ruun81r4Sr7YjQStK0OOhB/x1BJ5PuF4fiTUgRb3rpK8nI2DdrPVwhx6nzWx10wKYzaKRqN9duTNazGU+Epst3F4SREWrehzXxjZy/sZkUOReEqVnMW/NJQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 0C3E13C00FAB4; Thu, 4 Jan 2024 09:42:36 -0800 (PST) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id I6g8cXaaRKFq; Thu, 4 Jan 2024 09:42:35 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id B01A03C00FAB8; Thu, 4 Jan 2024 09:42:35 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu B01A03C00FAB8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1704390155; bh=KOTdne6Gcq+rj9TAJoG/iUApWkMrYALI5M4017nyzLw=; h=Message-ID:Date:MIME-Version:To:From; b=gvnjFjNTet2cbw5210O/njs1C4WnJlGVih1XEh6ltQP/YhHo9B1fNOygCm2/tz1EV aJPGfTpZLR7Q5Ht6G2mKHa5V0JTge/1orxajmylSiJMJ9ACXajDojdJRHrbo88RowY doJhreW8Ajn2bg4s+/InjpGySHRYLIrOJzDC9A76sR/WAsrYqJQR/yqIEvWrghIPot hiwIGTiSl3oclt0+XtyJCHTSpnhWVUjQek7e4k1xVuVTlzEwwFCuOo0MFY7S/KWNAx /e5Ks90fN58MYvSqJMEvVQwfM7C+sLRtA5ZBkyK11c0Gw924MBDle5LTSfWLJrZA1j WnoM+SKLz0Zsg== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id Jde7AXXZE2mE; Thu, 4 Jan 2024 09:42:35 -0800 (PST) Received: from [192.168.254.12] (unknown [47.148.192.211]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 8D0FA3C00FAB4; Thu, 4 Jan 2024 09:42:35 -0800 (PST) Message-ID: <63af81d2-c88b-44cd-afbd-ae0152b8a0dc@cs.ucla.edu> Date: Thu, 4 Jan 2024 09:42:35 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCHv2] Implement C23 Content-Language: en-US To: Adhemerval Zanella Netto , Jakub Jelinek Cc: Joseph Myers , Florian Weimer , libc-alpha@sourceware.org References: <22b591d7-142a-2d27-367d-164a9b8e8bda@polyomino.org.uk> <5869249a-634d-47b2-a351-adc5f63ce087@linaro.org> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2024-01-04 09:09, Adhemerval Zanella Netto wrote: > Yeah, I was hoping for a more elegant solution but I think explicit casting > would be best way. I will prepare a patch. It'd be helpful if the explicit casts were marked in some way, so that it's clear to the reader that the casts are present only to pacify overly-picky compilers. Something like this, perhaps: /* Use __pacify_uint16 (N) instead of (uint16_t) (N) when the cast is helpful only to pacify older GCC (e.g., GCC 10 -Wconversion) or non-GCC. */ #if __GNUC_PREREQ (11, 0) # define __pacify_uint16(n) (n) #else # define __pacify_uint16(n) ((uint16_t) (n)) #endif For what it's worth, these false alarms are why Gnulib etc. routinely use gcc -Wno-conversion.