Re: Patch - Debug builds without optimization

From: Bernd Helmle <mailings(at)oopsware(dot)de>
To: Radosław Smogura <rsmogura(at)softperience(dot)eu>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Patch - Debug builds without optimization
Date: 2011-06-16 13:37:24
Message-ID: 67C356596C1DDB01F9A098BC@apophis.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

--On 16. Juni 2011 14:30:27 +0200 Radosław Smogura <rsmogura(at)softperience(dot)eu>
wrote:

> Hello,
>
> I'm sending following patch which disables optimization when --enable-debug
> is passed. It was nasty (for me, at least) that debug build required passing
> of CFLAGS with -O0 to get nice traceable code.
>

-O0 hides bugs in your code (e.g. look at
<http://archives.postgresql.org/message-id/9714F5232AB2C4FCFCB392D5@amenophis>
and replies for an example to do it better). Doing this automatically on debug
builds would be a step backwards.

--
Thanks

Bernd

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-06-16 13:39:09 Re: patch: update README-SSI
Previous Message Simon Riggs 2011-06-16 13:33:47 Re: use less space in xl_xact_commit patch