Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-29 Thread Michael Stahl
On 22/05/12 15:56, Lubos Lunak wrote: On Friday 18 of May 2012, Michael Stahl wrote: On 16/05/12 15:09, Lubos Lunak wrote: (i wonder if -ggdb1 exists and would be sufficient for symbols but don't care enough to try). It does, from gcc manpage: Level 1 produces minimal information, enough

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-24 Thread Lubos Lunak
On Monday 21 of May 2012, Michael Meeks wrote: On Mon, 2012-05-21 at 18:06 +0200, Stephan Bergmann wrote: I rarely use a debugger to step through code, so I prefer to avoid the Egad - is this thread still going on :-) Could we create a set of the pros / cons a concrete proposal for

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-24 Thread Lubos Lunak
On Tuesday 22 of May 2012, Stephan Bergmann wrote: On 05/22/2012 04:02 PM, Lubos Lunak wrote: On Tuesday 22 of May 2012, Stephan Bergmann wrote: On 05/22/2012 03:19 PM, Lubos Lunak wrote: But --enable-debug also enables asserts, logging and similar functionality that should be rather

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-22 Thread Lubos Lunak
On Monday 21 of May 2012, Stephan Bergmann wrote: On 05/21/2012 05:10 PM, Lubos Lunak wrote: On Friday 18 of May 2012, Stephan Bergmann wrote: Ah, you wanted --enable-dbgutil to disable -O2, the same way that --enable-debug does. Had missed that point. Hm, as I said, I prefer my

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-22 Thread Stephan Bergmann
On 05/22/2012 03:19 PM, Lubos Lunak wrote: On Monday 21 of May 2012, Stephan Bergmann wrote: On 05/21/2012 05:10 PM, Lubos Lunak wrote: On Friday 18 of May 2012, Stephan Bergmann wrote: Ah, you wanted --enable-dbgutil to disable -O2, the same way that --enable-debug does. Had missed that

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-22 Thread Lubos Lunak
On Friday 18 of May 2012, Michael Stahl wrote: On 16/05/12 15:09, Lubos Lunak wrote: these switches are actually supposed to do. As far as I can tell, --enable-symbols enables -g, --enable-debug does --enable-symbols and turns on logging+assertions and disables optimizations, and

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-22 Thread Lubos Lunak
On Tuesday 22 of May 2012, Stephan Bergmann wrote: On 05/22/2012 03:19 PM, Lubos Lunak wrote: On Monday 21 of May 2012, Stephan Bergmann wrote: On 05/21/2012 05:10 PM, Lubos Lunak wrote: On Friday 18 of May 2012, Stephan Bergmann wrote: Ah, you wanted --enable-dbgutil to disable -O2, the

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-22 Thread Stephan Bergmann
On 05/22/2012 04:02 PM, Lubos Lunak wrote: On Tuesday 22 of May 2012, Stephan Bergmann wrote: On 05/22/2012 03:19 PM, Lubos Lunak wrote: On Monday 21 of May 2012, Stephan Bergmann wrote: On 05/21/2012 05:10 PM, Lubos Lunak wrote: On Friday 18 of May 2012, Stephan Bergmann wrote: Ah, you

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-21 Thread Lubos Lunak
On Friday 18 of May 2012, Stephan Bergmann wrote: On 05/18/2012 04:05 PM, Lubos Lunak wrote: On Friday 18 of May 2012, Stephan Bergmann wrote: On 05/16/2012 05:01 PM, Lubos Lunak wrote: - non-debug/dbgutils (i.e. also the default) - -O2 - symbols - -g (probably even -g1, if this is

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-21 Thread Stephan Bergmann
On 05/21/2012 05:10 PM, Lubos Lunak wrote: On Friday 18 of May 2012, Stephan Bergmann wrote: Ah, you wanted --enable-dbgutil to disable -O2, the same way that --enable-debug does. Had missed that point. Hm, as I said, I prefer my --enable-dbgutil --disable-debug builds to be -O2. What is

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-21 Thread Pierre-André Jacquod
Hello, On 05/20/2012 11:24 PM, Norbert Thiebaud wrote: On Wed, May 16, 2012 at 11:30 PM, Pierre-André Jacquod pjacq...@alumni.ethz.ch wrote: expecting to get symbols without optimization, not wanting all asserts outputs. If you are intending to debug why wouldn't you want the misnamed

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-21 Thread Michael Meeks
On Mon, 2012-05-21 at 18:06 +0200, Stephan Bergmann wrote: I rarely use a debugger to step through code, so I prefer to avoid the Egad - is this thread still going on :-) Could we create a set of the pros / cons a concrete proposal for the ESC call on Thursday ? Thanks,

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-20 Thread Pierre-André Jacquod
hello, On 05/16/2012 04:07 PM, Lubos Lunak wrote: If somebody does a developer build, there are not many good reasons why -O2 should be used - it takes noticably more time and it makes debugging miserable. I can't think of anything else than final builds and profiling as a good

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-20 Thread Norbert Thiebaud
On Wed, May 16, 2012 at 11:30 PM, Pierre-André Jacquod pjacq...@alumni.ethz.ch wrote: At least I understand why I always got debug builds with optimization, which does not ease the use of debugger... and why it takes so long to build. As occasional developer, I do not want to dig to deep in

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-18 Thread Stephan Bergmann
On 05/16/2012 05:01 PM, Lubos Lunak wrote: - non-debug/dbgutils (i.e. also the default) - -O2 - symbols - -g (probably even -g1, if this is actually meant for release builds with debug info sufficient mainly for backtraces) - debug/dbgutils - -g, making sure it overrides -g1 from symbols -

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-18 Thread Lubos Lunak
On Friday 18 of May 2012, Stephan Bergmann wrote: On 05/16/2012 05:01 PM, Lubos Lunak wrote: - non-debug/dbgutils (i.e. also the default) - -O2 - symbols - -g (probably even -g1, if this is actually meant for release builds with debug info sufficient mainly for backtraces) -

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-18 Thread Stephan Bergmann
On 05/18/2012 04:05 PM, Lubos Lunak wrote: On Friday 18 of May 2012, Stephan Bergmann wrote: On 05/16/2012 05:01 PM, Lubos Lunak wrote: - non-debug/dbgutils (i.e. also the default) - -O2 - symbols - -g (probably even -g1, if this is actually meant for release builds with debug info

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-18 Thread Michael Stahl
On 16/05/12 15:09, Lubos Lunak wrote: On Tuesday 08 of May 2012, Michael Stahl wrote: sorry for the late reply Hmm, ok, I don't want to just revert once more, but since it looks to me like you've broken this in several ways, it is possible we don't agree on what i'm biased but i bet i

--enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-16 Thread Lubos Lunak
On Tuesday 08 of May 2012, Michael Stahl wrote: config_host.mk.in|2 configure.in | 48 ++- filter/source/pdf/impdialog.cxx | 29 +++ oox/source/dump/dumperbase.cxx |

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-16 Thread Stephan Bergmann
On 05/16/2012 03:09 PM, Lubos Lunak wrote: Now --enable-debug=-sc/ means that sc/ is built without -g and with -O2. In other words, the compiler spends extra time working on code I don't care about at all. There was a reason why OPT flags was empty in --enable-debug build - as soon as I do a

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-16 Thread Lubos Lunak
On Wednesday 16 of May 2012, Stephan Bergmann wrote: On 05/16/2012 03:09 PM, Lubos Lunak wrote: Now --enable-debug=-sc/ means that sc/ is built without -g and with -O2. In other words, the compiler spends extra time working on code I don't care about at all. There was a reason why OPT

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-16 Thread Stephan Bergmann
On 05/16/2012 04:07 PM, Lubos Lunak wrote: On Wednesday 16 of May 2012, Stephan Bergmann wrote: On 05/16/2012 03:09 PM, Lubos Lunak wrote: Now --enable-debug=-sc/ means that sc/ is built without -g and with -O2. In other words, the compiler spends extra time working on code I don't care

Re: --enable-debug vs --enable-symbols (Re: [Libreoffice-commits] .: 12 commits - config_host.mk.in configure.in filter/source oox/source sal/inc sc/source solenv/gbuild toolkit/source xmlhelp/source)

2012-05-16 Thread Lubos Lunak
On Wednesday 16 of May 2012, Stephan Bergmann wrote: On 05/16/2012 04:07 PM, Lubos Lunak wrote: Given that those differences you mention should be either irrelevant in practice or compiler bugs, even I, having rather fast build system, do not see -O2 worth using. ...yes, I mainly