Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxNRS-0007q6-Rc for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Jan 2013 19:54:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TxNRS-0000AH-B7 for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Jan 2013 19:54:02 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxNRQ-00008z-NH for pgsql-bugs@postgresql.org; Mon, 21 Jan 2013 19:54:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxNRN-0005qH-MD for pgsql-bugs@postgresql.org; Mon, 21 Jan 2013 19:54:00 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0LJruG5009761; Mon, 21 Jan 2013 14:53:56 -0500 (EST) From: Tom Lane To: Seebs cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7816: test for compiler output produces bogus results In-reply-to: References: <9064.1358744570@sss.pgh.pa.us> Comments: In-reply-to Seebs message dated "Sun, 20 Jan 2013 23:38:10 -0600" Date: Mon, 21 Jan 2013 14:53:56 -0500 Message-ID: <9760.1358798036@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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Seebs writes: > On 20 Jan 2013, at 23:02, Tom Lane wrote: >> [ shrug... ] Given the lack of previous complaints, it works 99.999% >> of the time, which is about as much reliability as can be hoped for in >> most autoconf tests :-(. I'm afraid we can't help you without >> breaking it worse for a larger number of other people. > I guess my question would be, what's the problem this is solving? Were > there actual cases of flags which were accepted (meaning, compiler > produced working output and exited with a successful status), but > produced diagnostics, but were not necessary and could be safely > omitted? No, the problem as I recall it was that if we ignored the warnings, we got executables that didn't work properly, at least on some platforms/compilers, because we made the wrong choices of thread flags. It's conceivable that the configure script could be made to test threading functionality instead of just looking for warnings, but it would be noticeably slower and wouldn't work in cross-compile cases. So I'm disinclined to change it when we have only one complaint, and that from a person who's using a quite nonstandard compiler. > ... It just offends my > dogmatic sensibilities; the compiler is allowed to offer a diagnostic > for any reason whatsoever, whether or not anything is wrong. I don't disagree, but the script has got to deal with the world as it is, including a lot of non-especially-sane compilers. And frankly, I'd have to include yours in that category. I certainly would refuse to use a compiler that produced a warning on every single run --- how are you going to find the real warnings amongst such noise? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs