Re: Patches applied; initdb time! - Mailing list pgsql-hackers

From Michael Loftis
Subject Re: Patches applied; initdb time!
Date
Msg-id 3CC342A7.5010403@wgops.com
Whole thread Raw
In response to Re: Patches applied; initdb time!  (Peter Eisentraut <peter_e@gmx.net>)
List 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 by date:

Previous
From: Michael Loftis
Date:
Subject: Re: Coster/planner and edge cases...
Next
From: Tom Lane
Date:
Subject: Re: Coster/planner and edge cases...