From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 75C3D3857C45 for ; Fri, 24 Feb 2023 22:34:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 75C3D3857C45 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.97,326,1669104000"; d="scan'208";a="98140553" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 24 Feb 2023 14:34:42 -0800 IronPort-SDR: XPJMg2f2Eug63zD1RHa78NnIe+TKMiA671DNgwjCEkRrKTyguALroqvrt2uWaq9WTIhk8jOfBm faCr0vJ1LTjBhArXpQhYQHIMWLSrx+JhGMDbSbP5fXZahHHzh+2uN3mxcBo9KEjz/Tbp8bCCwS H6KJyL415Q3IZjvi8HGMHeYLF0uLVFMP62mdydtWCSK89mSx4FIs9+q8VO/YLgfPW3koEi40jI qxcQWSikDhfXcNV2yEt5MnrdmTc/G53oBMAz6Buae3l36d91SsxYvKeks2CZGWzmhojC5W51tK V7U= Date: Fri, 24 Feb 2023 22:34:37 +0000 From: Joseph Myers To: DJ Delorie CC: Subject: Re: aligned_alloc() In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3107.9 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no 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 Thu, 23 Feb 2023, DJ Delorie via Libc-alpha wrote: > It has been noted that since we've always documented the C11 > restrictions, changing the code to comply with those restrictions > should not require a versioned symbol. However, if we strictly comply > with C11, we'd need a new symbol for C17. Since those are wrapped by > __USE_ISOC* macros, we could (in theory) just #define aligned_alloc to > __aligned_alloc_c11 or __aligned_alloc_c17 for the modified versions. C17 is a defect fix release for C11. Where the semantics differ, we should implement the C17 version; no separate symbols are appropriate. -- Joseph S. Myers joseph@codesourcery.com