Re: Patches applied; initdb time!

From: Michael Loftis <mloftis(at)wgops(dot)com>
To: Thomas Lockhart <thomas(at)fourpalms(dot)org>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Patches applied; initdb time!
Date: 2002-04-21 22:52:23
Message-ID: 3CC342A7.5010403@wgops.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs 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.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Lockhart 2002-04-22 02:57:55 Re: Patches applied; initdb time!
Previous Message Thomas Lockhart 2002-04-21 22:36:49 Re: Patches applied; initdb time!

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-04-21 23:05:35 Re: Coster/planner and edge cases...
Previous Message Michael Loftis 2002-04-21 22:48:43 Re: Coster/planner and edge cases...