From: Tom Lane <tgl@sss.pgh.pa.us>
To: Seebs <seebs@seebs.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7816: test for compiler output produces bogus results
Date: Mon, 21 Jan 2013 14:53:56 -0500
Message-ID: <9760.1358798036@sss.pgh.pa.us> (raw)
In-Reply-To: <F8B2EB3E-FF02-41BF-9C7C-CE4E835963D6@seebs.net>
References: <E1TwnQd-0006iq-Sk@wrigleys.postgresql.org>
<9064.1358744570@sss.pgh.pa.us>
<F8B2EB3E-FF02-41BF-9C7C-CE4E835963D6@seebs.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Seebs <seebs@seebs.net> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, seebs@seebs.net
Subject: Re: BUG #7816: test for compiler output produces bogus results
In-Reply-To: <9760.1358798036@sss.pgh.pa.us>
References: <E1TwnQd-0006iq-Sk@wrigleys.postgresql.org> <9064.1358744570@sss.pgh.pa.us> <F8B2EB3E-FF02-41BF-9C7C-CE4E835963D6@seebs.net> <9760.1358798036@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox