Re: Patches applied; initdb time!

Поиск
Список
Период
Сортировка
От Michael Loftis
Тема Re: Patches applied; initdb time!
Дата
Msg-id 3CC342A7.5010403@wgops.com
обсуждение исходный текст
Ответ на Re: Patches applied; initdb time!  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers

Thomas Lockhart wrote:

>>>But I do override some parameters in my Makefile.custom:
>>>CFLAGS+= -g -O0 -DUSE_ASSERT_CHECKING
>>>
>>If you use -O0 then you miss most of the interesting warnings.
>>
>
>?? Not in this case. afaik -O0 suppresses most optimizations (and hence
>does not reorder instructions, which is why I use it for debugging; I
>know, debuggers nowadays work pretty well even with instruction
>reordering, but...).
>
>Anyway, compiling with "-O2" on variable.c still does not show the
>warnings with my 2.96.x compiler...
>
It's actually the optimiser that allows a large number of the warnings 
to be uncovered.  It generates extra code-path and coverage information, 
as well as other things, that are needed for the guts of GCC to squawk 
about a number of odd behaviours.



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

Предыдущее
От: Michael Loftis
Дата:
Сообщение: Re: Coster/planner and edge cases...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Coster/planner and edge cases...