Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csUoC-0005Ky-6T for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Mar 2017 13:35:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1csUoB-0002Wd-PX for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Mar 2017 13:35:43 +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 1csUmg-00076L-Kx for pgsql-hackers@postgresql.org; Mon, 27 Mar 2017 13:34:10 +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 1csUme-00028l-6W for pgsql-hackers@postgresql.org; Mon, 27 Mar 2017 13:34:10 +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 v2RDXhPW015685; Mon, 27 Mar 2017 09:33:43 -0400 From: Tom Lane To: Andres Freund cc: Ants Aasma , Heikki Linnakangas , Tomas Vondra , PostgreSQL-development Subject: Re: WIP: Faster Expression Processing v4 In-reply-to: <20170327054314.qo6xsnlk7jcb7u2c@alap3.anarazel.de> References: <22215.1490369187@sss.pgh.pa.us> <20170324182742.3r4qndpugtx6ga3t@alap3.anarazel.de> <22833.1490390175@sss.pgh.pa.us> <13918.1490410879@sss.pgh.pa.us> <5768.1490458935@sss.pgh.pa.us> <20170325222202.uz6evsjqrtwjnql6@alap3.anarazel.de> <3CC5B4C5-3ADB-4296-A04B-64F594A4CE4F@anarazel.de> <23529.1490500305@sss.pgh.pa.us> <20170326035927.5mubkfdtaqlrgm2d@alap3.anarazel.de> <20170327054314.qo6xsnlk7jcb7u2c@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 26 Mar 2017 22:43:14 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15683.1490621623.1@sss.pgh.pa.us> Date: Mon, 27 Mar 2017 09:33:43 -0400 Message-ID: <15684.1490621623@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andres Freund writes: >> I personally find per-function annotation ala >> __attribute__((optimize("no-crossjumping"))) >> cleaner anyway. I tested that, and it seems to work. >> >> Obviously we'd have to hide that behind a configure test. Could also do >> tests based on __GNUC__ / __GNUC_MINOR__, but that seems uglier. Agreed. > Checking for this isn't entirely pretty - see my attached attempt at > doing so. I considered hiding > __attribute__((optimize("no-crossjumping"))) in execInterpExpr.c behind > a macro (like PG_DISABLE_CROSSJUMPING), but I don't really think that > makes things better. I think it would, primarily because if we find out that some other compiler spells this differently, we could handle it totally within configure. Isn't our practice to put __attribute__ at the end of a function declaration or definition, not in the middle someplace? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers