From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id BEA261F601 for ; Wed, 7 Dec 2022 19:05:30 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A969B382E44B for ; Wed, 7 Dec 2022 19:05:29 +0000 (GMT) Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id BA1513852C6F for ; Wed, 7 Dec 2022 19:05:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BA1513852C6F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.96,225,1665475200"; d="scan'208";a="88871391" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 07 Dec 2022 11:05:06 -0800 IronPort-SDR: mxt8a4Yv699CA3yTzWqjh3RLfGG9gmnCJCmf2n87bmTM0B6URDCm17/z6ISc7VHXVsqdxMO9+F UTxw4ztD+OoSFfjUK9Ec1uIeDiWkaaLxp9sY74t/VPT3bNwuyguSxGYiZmQJs/ZO6rbH75iAdl LL8aXyScFzV6+BpbsfHabE2aJ36B2qwjT1MHvj3mcnpX5K4XhsfZDjCrdlRMcHzLOVoXONtKq4 G3Wc3HeVOMjFmYpQlQTu14eUhKY/tbKfAINJRI0BzZWQr6xNT5+OFt4IRkifBSlIbZKp4SWONz XAg= Date: Wed, 7 Dec 2022 19:05:00 +0000 From: Joseph Myers To: Alejandro Colomar CC: Mike Frysinger , Seija K. , Subject: Re: Add restrict annotations to all functions that require it In-Reply-To: <5ea5826c-e47c-2b4f-3699-4d6232b89332@gmail.com> Message-ID: <7479a2e-4c5d-47a8-65be-47f374b33d5b@codesourcery.com> References: <553333c5-cccc-9e9c-81ec-c47436c00b16@gmail.com> <082a5968-3f12-dc36-f50c-497820b0a4b2@gmail.com> <7f169d-e67d-ab82-e77f-a6f78a301495@codesourcery.com> <5ea5826c-e47c-2b4f-3699-4d6232b89332@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-07.mgc.mentorg.com (139.181.222.7) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On Wed, 7 Dec 2022, Alejandro Colomar via Libc-alpha wrote: > Whatever is the semantic result, I believe GCC should have a warning for > mismatching restrict qualifiers. Yes, such a warning makes sense - although the mismatch is valid, it's still suspicious and potentially confusing for users. -- Joseph S. Myers joseph@codesourcery.com