[Libreoffice] Disable GCC optimizations when building with --enable-symbols
dtardon at redhat.com
Thu Nov 18 03:26:56 PST 2010
On Thu, Nov 18, 2010 at 12:13:36PM +0100, David Tardon wrote:
> On Thu, Nov 18, 2010 at 03:19:39AM -0700, Tor Lillqvist wrote:
> > On a related note, what is your take on --enable-dbgutil vs. --enable-debug? Are they designed to do clearly separate things?
> IMHO no. Both allow to:
> * use assertions
> * insert arbitrary debugging code that is only present in 'special'
> builds: #ifdef DBG_UTIL and #if OSL_DEBUG_LEVEL > n
> * track object lifetime: that's what all these DBG_CHKTHIS, DBG_CHKOBJ,
> DBG_NAME etc. in vcl, sfx2, svtools and maybe in a few other places
> are for. OSL's counterpart is osl::DebugBase, that is AFAIK only used
> at a few places in sd.
I should add that osl::DebugBase's impl. was broken for at least a year
and noone noticed .-)
More information about the LibreOffice