Re: Patches applied; initdb time!

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patches applied; initdb time!
Дата
Msg-id 27608.1019427065@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Patches applied; initdb time!  (Thomas Lockhart <thomas@fourpalms.org>)
Список pgsql-hackers
Thomas Lockhart <thomas@fourpalms.org> writes:
> 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

In particular, you don't get "unused variable" and "variable may not
have been set before being used" warnings at -O0, because the
control-flow analysis needed to emit those warnings is not done at -O0.

I generally use -O1 for development; it's sometimes a little hairy
stepping through the generated code, but usually gcc works well enough
at -O1, and I get the important warnings.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Coster/planner and edge cases...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: GUC vs variable.c (was Patches applied...)