Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMdPQ-00077Q-24 for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Aug 2022 22:45:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oMdPO-0002yI-Sh for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Aug 2022 22:45:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMdPO-0002y9-Iw for pgsql-hackers@lists.postgresql.org; Fri, 12 Aug 2022 22:45:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMdPM-0007v9-Bd for pgsql-hackers@postgresql.org; Fri, 12 Aug 2022 22:45:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 27CMjRbK203255; Fri, 12 Aug 2022 18:45:27 -0400 From: Tom Lane To: Thomas Munro cc: Peter Eisentraut , Andres Freund , Andrew Dunstan , Robert Haas , pgsql-hackers Subject: Re: Cleaning up historical portability baggage In-reply-to: References: <20220712173352.trdeq66asbv6vf2q@awork3.anarazel.de> <1662559.1657648462@sss.pgh.pa.us> <1249825.1658622186@sss.pgh.pa.us> <20220804034343.unm4rdynedbigamv@awork3.anarazel.de> <3322724.1659586159@sss.pgh.pa.us> <295419.1659918447@sss.pgh.pa.us> <747620.1660002360@sss.pgh.pa.us> <166622.1660323391@sss.pgh.pa.us> <189843.1660334922@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Sat, 13 Aug 2022 09:48:24 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <203253.1660344327.1@sss.pgh.pa.us> Date: Fri, 12 Aug 2022 18:45:27 -0400 Message-ID: <203254.1660344327@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > I'm curious, though... if we used compiler builtins, would > -march/-mcpu etc know about this kind of thing, for people who wanted > to compile on ancient hardware, or, I guess more interestingly, newer > tricks that we haven't got around to learning about yet? No idea, but I could run some tests if you have something specific in mind. regards, tom lane