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 1oGlMm-0000lv-4y for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Jul 2022 18:02: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 1oGlMk-0007Su-3n for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Jul 2022 18:02:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGlMj-0007RK-QV for pgsql-hackers@lists.postgresql.org; Wed, 27 Jul 2022 18:02:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGlMh-0002yu-Fm for pgsql-hackers@postgresql.org; Wed, 27 Jul 2022 18:02:36 +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 26RI2S8l3022537; Wed, 27 Jul 2022 14:02:28 -0400 From: Tom Lane To: Andres Freund cc: Peter Eisentraut , Laurenz Albe , pgsql-hackers@postgresql.org Subject: Re: Use -fvisibility=hidden for shared libraries In-reply-to: <20220718220938.5yx7if2mru3rd6jc@awork3.anarazel.de> References: <20211101020311.av6hphdl6xbjbuif@alap3.anarazel.de> <20211101054700.z3jzmc5lnxlad4y7@alap3.anarazel.de> <2499085.1641859296@sss.pgh.pa.us> <20220111025328.iq5g6uck53j5qtin@alap3.anarazel.de> <5b8d48a4-2fee-6764-7eda-a076f544ea33@enterprisedb.com> <20220716201750.qq6xwegkgp7xqi5w@awork3.anarazel.de> <180138.1658084088@sss.pgh.pa.us> <20220718070516.z4suhhdomktmrenb@awork3.anarazel.de> <20220718220938.5yx7if2mru3rd6jc@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 18 Jul 2022 15:09:38 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3022535.1658944948.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 27 Jul 2022 14:02:28 -0400 Message-ID: <3022536.1658944948@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2022-07-18 00:05:16 -0700, Andres Freund wrote: >> Given that that's just about all compilers we support using configure, = perhaps >> we should just move that out of the compiler specific section? Doesn't = look >> like there's much precedent for that so far... > Here's a potential patch along those lines. Now that the dust from the main patch is pretty well settled, +1 for trying that. > I wonder if we also should move the -fno-strict-aliasing, -fwrapv tests > out. But that'd be something for later. Those seem less likely to be portable to non-gcc-alike compilers. On the other hand, maybe it'd be interesting to just remove the conditionality temporarily and try ALL the switches on all compilers, just to see what we can learn from the buildfarm. regards, tom lane