Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaranm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] fix binary debug support, part elevenity billion 1/2
Date: Fri, 20 Jan 2006 03:44:53
Message-Id: 20060120034019.5129b96f@snowdrop.home
In Reply to: Re: [gentoo-dev] fix binary debug support, part elevenity billion 1/2 by Donnie Berkholz
1 On Thu, 19 Jan 2006 19:24:18 -0800 Donnie Berkholz
2 <spyderous@g.o> wrote:
3 | Mike Frysinger wrote:
4 | > - we will set sane debug defaults in the base profile:
5 | > * DEBUG_CFLAGS=DEBUG_CXXFLAGS="-O -g"
6 |
7 | On gcc-4, even -O can make it really hard to track stuff. Might want
8 | -O0 instead. 4.1 gets even crazier.
9
10 -O1 -fno-inline-functions will give you better results with C++ code.
11 Without -O1, g++ will skip some really basic optimisations that makes
12 it even harder than usual to figure out what STL code is doing...
13
14 --
15 Ciaran McCreesh : Gentoo Developer (King of all Londinium)
16 Mail : ciaranm at gentoo.org
17 Web : http://dev.gentoo.org/~ciaranm

Attachments

File name MIME type
signature.asc application/pgp-signature