From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2110.outbound.protection.outlook.com [40.107.21.110]) by sourceware.org (Postfix) with ESMTPS id 60F63385840F; Fri, 3 Sep 2021 10:31:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 60F63385840F ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HXLU5iteV51/Q/Uaf8xRwiC5yjbKAt9H7Lr1ERHouUKdDbPw8HDIs+v016tNjj0RfwYSxjTm7NOi7XtOHKude+avU9+b3sdz5uXqGeSeuAsHi+85DSRw24qHsLJ/FfzYgkqBmmj8xRNOAjaJktUPZQ7wpul3L/lbbqrrONcKlJ1ZE4ZKpnQegbJN1+iUgrphw08h/qvkVi4qIwlLE5rhXdDF4LKXsMIQhSHbSpanvk6Lk84bf8fZF6h4WjS0xb5FqJVsgCeOw278/PwIDwBT2ln13Sb3/ir83w5wDHYSyItt0xU5oPmZe4aCFQjhhWbyTWqa6Q2V2v+SIdeXldPYEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=stNHlFCIF+IywFxShZI/X4bhjFheKgX3b4Nr1S5rgmM=; b=N76t9SP0UZCA/6SayL2WRefsXlVCKjZ30XfN4JejPcQH91yDLKOcS648mx/uhZSsYcft5rtKyk5TB/7i9YWGJxf2gsSgQYPrRNVdfVo36B0xC34VauoaCPXByNBZoInYoytgZtt6Z4ZezsBNBBZe60ufzRE5JuF2SJWfn3leWVO2qzGiECsr9azGM0MlXRmjJQ0HlyHy4kDfgYzSHx/gJj+EWyoTRnAn74sAuTDWd4z5DpszM7WvTG3bTYMO1CInXgbruHrdI1GAyRK/h9u7ICCFHfpeGSsRWheXXXfqqGNh4Q2f0/7mqQ5gwvXg26tMWie3EiaI33KpZzxttSfS+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uws.ac.uk; dmarc=pass action=none header.from=uws.ac.uk; dkim=pass header.d=uws.ac.uk; arc=none Received: from VI1PR0102MB3197.eurprd01.prod.exchangelabs.com (2603:10a6:803:2::28) by VI1PR0101MB2383.eurprd01.prod.exchangelabs.com (2603:10a6:800:55::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Fri, 3 Sep 2021 10:31:39 +0000 Received: from VI1PR0102MB3197.eurprd01.prod.exchangelabs.com ([fe80::784f:d122:c785:2ecc]) by VI1PR0102MB3197.eurprd01.prod.exchangelabs.com ([fe80::784f:d122:c785:2ecc%5]) with mapi id 15.20.4457.026; Fri, 3 Sep 2021 10:31:39 +0000 From: Paul Keir To: "gcc-patches@gcc.gnu.org" CC: "libstdc++@gcc.gnu.org" Subject: Re: [PATCH] libstdc++: Fix compare_three_way for constexpr and Clang Thread-Topic: [PATCH] libstdc++: Fix compare_three_way for constexpr and Clang Thread-Index: AQHXlf9zGYYf+4UjPkCR6yd+HcCmX6uSMbMk Date: Fri, 3 Sep 2021 10:31:39 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2325e1cc-fb41-41f9-c6d8-08d96ec603e8 x-ms-traffictypediagnostic: VI1PR0101MB2383: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:913; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0XwnAYrjPnCLgkeeC2mZON1cIkwviX6OcV1iKZZ9chhZzohCiR9Hy4BT3B0hDT3sSCj0/ZYgq+urJzOMsqigi96Dt32TQdcYp8w4g8JDBFU2jkYjqRGJbZRUUjQrqr644yrSh/MhYwq+qfeQ1jjvK3tzLHTuWi2/VdOudi2h0QeSkxAV4pDNgN+DwcbNf0b3Ggi51cU9qVYLFy0M/VLIyirPotp9Hvufq3xKyzUi0Vf2DbMoWMTnTQq03Ces6ayt7n13egRZw15murFNW1WZiSFV86LuwF0w9dDowi0RGJXR1cZbvGOTN6KjogZ4ijA00SZP7m/y4U/xAMuw/L21vfTg6tGN0xoAXr/fAiUAeKgz81KS+sfw1zMqiWUa3dNk0OCPT7P8/6HzWeFboNm4C5XArbQKUbiHwd0B6zs6xy6pTwmBlX9GTXszG3fwuSv33XWASmgDvJhg0T7TAlyKPOgRfpopYacH5Wzo4BUHn+oGLKvarLRpXp/JXMdl/hxtZEtV+rwHCgG0P2GYnyB3LjqU0xAhrX9LPPVQRZ7gD5Myqme+nH56tf19NxVgRa5KER2/mUR0eoHVS8Wr/3m6nPexAESIaoqz4eYoq/JjyjxktRHVOgSMBa9ymHhV1zJPJmhC9UVouDpxP9nc6juSpU/3SY0kHWzkPRQ0t9nV3LsXjWhMHVTmD8IwIrnWmxou5HtO9RcrCxIEBBmaVxWlTg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0102MB3197.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(136003)(376002)(346002)(39860400002)(396003)(366004)(450100002)(9686003)(8936002)(7696005)(52536014)(38100700002)(66556008)(478600001)(6506007)(6916009)(86362001)(8676002)(33656002)(5660300002)(71200400001)(38070700005)(4326008)(55016002)(53546011)(186003)(76116006)(66946007)(316002)(91956017)(66476007)(83380400001)(122000001)(64756008)(66446008)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?f7ZbWFjrf2N3z2SI2hI2lXOsxXRjfxP1xC0C6ijMTsTJV4JBXvkpodjOO06A?= =?us-ascii?Q?DPqES6OHC/R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a?= =?us-ascii?Q?g4ohr5FP5curF+D1lj5X4KsVWybXCQ4A8qY5LsQXoksLtLZeS1EcIBuuhbaL?= =?us-ascii?Q?45GRMWHuN+Jnn678kUNh3/BB6NqXyav/jEb6EZlPlUCLO+WrLlMqPYqKwVKU?= =?us-ascii?Q?KjDDIkihF4BKaQUhOPCS4HieW1jJnzgYGYUXbZhXZg/+X3ebkFVg6+f0J5yl?= =?us-ascii?Q?ItOuw9zrLsrkZP4BT9qrEMxnbdEOnPk66ZzVUKuGxQARvRmq+o63Q90PZgzz?= =?us-ascii?Q?kXjypVWeSHKw9jTBzhs5nsb8U0Q5O6wnQ5lFxUkGYJ3yjonXCJZYvTz+NQ/W?= =?us-ascii?Q?T8+e4y2k4BG1q+tmZq60AiKi5dtAPpTG0wJqkO8vn2PL9GFWw6OxNU1shDMd?= =?us-ascii?Q?IGE0D7kSbXEXAnwB4bjuui5KKKcLUXHzVduJxgx+diRUIQeIsu69M6eEQtZ0?= =?us-ascii?Q?T/6oFiOQ1Xewn35G0Ch/Rl4UeEpx?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uws.ac.uk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR0102MB3197.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2325e1cc-fb41-41f9-c6d8-08d96ec603e8 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Sep 2021 10:31:39.7542 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f89944b7-4a4e-4ea7-9156-3299f3411647 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zIh/hbVL7hoava0Got+H3vP03o6ZtQIyyLWXuPqC8BZurf/M5teBLog9Dr+vGzbwusjTmPJUrympo5SNtsmZ2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0101MB2383 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2021 10:31:45 -0000 *ping* ________________________________________ From: Paul Keir Sent: 20 August 2021 21:17 To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org Subject: [PATCH] libstdc++: Fix compare_three_way for constexpr and Clang Hi, The current compare_three_way implementation makes provision for constant e= valuation contexts (avoiding reinterpret_cast etc.), but the approach fails= with Clang; when it compares two const volatile void pointers: "comparison= between unequal pointers to void has unspecified result". I include a fix = and test. Could someone commit the attached patch for me? Thanks, Paul Please consider the environment and think before you print. The University of the West of Scotland is a registered Scottish charity. Ch= arity number SC002520. This e-mail and any attachment is for authorised use by the intended recipi= ent(s) only. It may contain proprietary material, confidential information = and/or be subject to legal privilege. It should not be copied, disclosed to= , retained or used by, any other party. If you are not an intended recipien= t then please promptly delete this e-mail and any attachment and all copies= and inform the sender. Please note that any views or opinions presented in this email are solely t= hose of the author and do not necessarily represent those of the University= of the West of Scotland. As a public body, the University of the West of Scotland may be required to= make available emails as well as other written forms of information as a r= esult of a request made under the Freedom of Information (Scotland) Act 200= 2.