Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2hpr-0004U9-Kw for pgsql-committers@arkaria.postgresql.org; Thu, 12 Oct 2017 18:03:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e2hpr-0007AR-7V for pgsql-committers@arkaria.postgresql.org; Thu, 12 Oct 2017 18:03:55 +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 1e2hpb-0006j0-Vj for pgsql-committers@postgresql.org; Thu, 12 Oct 2017 18:03:40 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2hpZ-0002Tq-GO for pgsql-committers@postgresql.org; Thu, 12 Oct 2017 18:03:39 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 812A520DBC; Thu, 12 Oct 2017 14:03:35 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 12 Oct 2017 14:03:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=fdvOWdpjfUqz76i0KJms6GT5CnIke rbeaulEbpKHMAE=; b=ji2tiIl0Ti2S72rLBXgzH4SpLwrRlJM3z01C6sRqKWI8N bj+nD7R1NUQP/kCR+2a8U5s6wTLEaAblLeN6DIaadsS2R/+DmduziFbdq47+Wz4j qy3aBqsMjHSxVsj4xEyFfs7dYrF43Gm5s+aPGFnf9QJRteTi10N8giPtIoYs5w0v F/aEmp45HhFFEWZGIm7jzODCOCq0QP/8MXHc4USCts7VP7HpgfigOZU7A9TynunC eWNse+vC3z+NK5oxtLdpH5N5cQR9Qp9qdqiQluPXzO+qQVpqTgFISsXCh7zv4FR9 /dSeYlquXfdCjIilsDjONGwPaNYyTMwcgNwHMf5Kg== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 3FB6824038; Thu, 12 Oct 2017 14:03:35 -0400 (EDT) Date: Thu, 12 Oct 2017 11:03:34 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add configure infrastructure to detect support for C99's restric Message-ID: <20171012180334.i2stb7ubuiihdu22@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> <2656.1507830907@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <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 Hi, On 2017-10-12 13:55:07 -0400, Tom Lane wrote: > 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. It's quite noticeable, and there's plenty of other case where it seems likely to be beneficial. > 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". Yea, that should work. I'll try to come up with a patch. Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers