Re: Patches applied; initdb time!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Lockhart <thomas(at)fourpalms(dot)org>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Patches applied; initdb time!
Date: 2002-04-21 22:11:05
Message-ID: 27608.1019427065@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Thomas Lockhart <thomas(at)fourpalms(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Joe Conway 2002-04-21 22:35:47 Re: Patches applied; initdb time!
Previous Message Peter Eisentraut 2002-04-21 22:06:59 Re: Patches applied; initdb time!

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-04-21 22:16:51 Re: GUC vs variable.c (was Patches applied...)
Previous Message Peter Eisentraut 2002-04-21 22:06:59 Re: Patches applied; initdb time!