Re: gcc 13 warnings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: gcc 13 warnings
Дата
Msg-id 3919368.1678989269@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: gcc 13 warnings  (Andres Freund <andres@anarazel.de>)
Ответы Re: gcc 13 warnings  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2023-03-16 12:10:27 -0400, Tom Lane wrote:
>> It wouldn't be entirely surprising if meson is selecting some -W
>> switches that the configure script doesn't ... but I don't know
>> where to check or change that.

> I think it's just that meson defaults to -O3 (fwiw, I see substantial gains of
> that over -O2).  I see such warnings with autoconf as well if I make it use
> -O3.

Oh, interesting.  Should we try to standardize the two build systems
on the same -O level, and if so which one?

To my mind, you should ideally get the identical built bits out of
either system, so defaulting to a different -O level seems bad.
I'm not sure if we're prepared to go to -O3 by default though,
especially for some of the older buildfarm critters where that
might be buggy.  (I'd imagine you take a hit in gdb-ability too.)

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Remove last traces of SCM credential auth from libpq?
Следующее
От: Greg Stark
Дата:
Сообщение: Default libpq connection parameter handling and copy-paste of apparently dead code for it?