Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2hhX-0003vu-Lo for pgsql-committers@arkaria.postgresql.org; Thu, 12 Oct 2017 17:55:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e2hhW-0005sO-Tq for pgsql-committers@arkaria.postgresql.org; Thu, 12 Oct 2017 17:55:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2hhW-0005rp-BO for pgsql-committers@postgresql.org; Thu, 12 Oct 2017 17:55:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2hhP-0002J9-Oe for pgsql-committers@postgresql.org; Thu, 12 Oct 2017 17:55:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v9CHt7jL002657; Thu, 12 Oct 2017 13:55:07 -0400 From: Tom Lane To: Andres Freund cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add configure infrastructure to detect support for C99's restric In-reply-to: <20171012174544.53kwdeyrt4id7hgg@alap3.anarazel.de> References: <20171012001320.4putagiruuehtvb6@alap3.anarazel.de> <20171012045953.khz4bjdrar5mzrm7@alap3.anarazel.de> <2097.1507822200@sss.pgh.pa.us> <20171012174544.53kwdeyrt4id7hgg@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 12 Oct 2017 10:45:44 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2655.1507830907.1@sss.pgh.pa.us> Date: Thu, 12 Oct 2017 13:55:07 -0400 Message-ID: <2656.1507830907@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Andres Freund writes: > On 2017-10-12 11:30:00 -0400, Tom Lane wrote: >> I don't actually see why you need a #define at all --- "restrict" is the >> standard spelling of the keyword no? > It is, but a lot of compilers name it differently, e.g. __restrict in > the case of msvc. It's 2017 and they're still not C99 compliant? Oh well. TBH, I really doubt that restrict buys us enough performance to justify dealing with this. I'd just revert that change altogether. Or, if you insist on having it, we're going to have to go the pg_restrict route. I don't see why that means duplicating any configure logic: on non-Windows we can use the autoconf probe and then write "#define pg_restrict restrict". regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers