Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gOV9d-0006bU-Qq for pgsql-hackers@arkaria.postgresql.org; Sun, 18 Nov 2018 22:02:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gOV9b-0005BV-U5 for pgsql-hackers@arkaria.postgresql.org; Sun, 18 Nov 2018 22:02: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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gOV9b-0005BO-N3 for pgsql-hackers@lists.postgresql.org; Sun, 18 Nov 2018 22:02:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gOV9Z-0007PN-H9 for pgsql-hackers@lists.postgresql.org; Sun, 18 Nov 2018 22:02:55 +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 wAIM2mMZ010669; Sun, 18 Nov 2018 17:02:48 -0500 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org, Noah Misch Subject: Re: Fixing AC_CHECK_DECLS to do the right thing with clang In-reply-to: <20181118212037.xk542sjuxlxk7bkx@alap3.anarazel.de> References: <26819.1542515567@sss.pgh.pa.us> <20181118212037.xk542sjuxlxk7bkx@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 18 Nov 2018 13:20:37 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10667.1542578568.1@sss.pgh.pa.us> Date: Sun, 18 Nov 2018 17:02:48 -0500 Message-ID: <10668.1542578568@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > Seems like a good plan. The problem doesn't reproduce for me on debian > (using any version of clang), so all I can report is that at patched > build still works as it should. Interesting. It's hardly surprising that the problem would occur only on some platforms, since if declares the function then the problem isn't visible. But I'm surprised that some Debian boxes would show it and some not. Still, a closer look at the buildfarm shows both clang-on-Debian members with the warning (eg gull) and clang-on-Debian members without (eg yours). regards, tom lane