Re: [Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-18 Thread Jan Holesovsky
Hi Wol, On 2010-11-18 at 11:29 +, Wols Lists wrote: > > So, I think that it should default to -O2 on a normal build, and to > > -O0 when using --enable-symbols. Don't see the point of using > > optimizations when building a version for debugging purposes. > > What if it's the optimisation th

Re: [Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-18 Thread Christian Lohmaier
Hi *, On Thu, Nov 18, 2010 at 12:50 PM, Caolán McNamara wrote: > > I agree with Dave really. I get confused about them, I don't think > people are using --enable-dbgutil anyway, and I always perceive it as > some infrastructure handy under windows to get a console that > warnings/asserts can get

Re: [Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-18 Thread Caolán McNamara
On Thu, 2010-11-18 at 03:19 -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? Do > people in general understand the difference? If either answer is no, > should these two concepts be merge

Re: [Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-18 Thread Tor Lillqvist
> * insert arbitrary debugging code that is only present in 'special' > builds: #ifdef DBG_UTIL and #if OSL_DEBUG_LEVEL > n Unfortunately, I think those have been mixed up in the past occasionally. When I recently tried a build with --enable-dbgutil but not --enable-debug, I came across a hand

Re: [Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-18 Thread Wols Lists
On 17/11/10 18:50, Santiago Bosio wrote: > Hi! > > When LibO is built using --enable-symbols, it still uses -O2 > optimizations, making hard to debug execution with GDB. > > So, I think that it should default to -O2 on a normal build, and to > -O0 when using --enable-symbols. Don't see the point of

Re: [Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-18 Thread David Tardon
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

Re: [Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-18 Thread David Tardon
On Wed, Nov 17, 2010 at 03:50:33PM -0300, Santiago Bosio wrote: > Hi! > > When LibO is built using --enable-symbols, it still uses -O2 > optimizations, making hard to debug execution with GDB. > You can export nopt=true before building to turn optimizations off. D. _

Re: [Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-18 Thread David Tardon
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 'spec

Re: [Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-18 Thread Tor Lillqvist
On a related note, what is your take on --enable-dbgutil vs. --enable-debug? Are they designed to do clearly separate things? Do people in general understand the difference? If either answer is no, should these two concepts be merged? --tml ___ Libr

Re: [Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-17 Thread Jesús Corrius
On Wed, Nov 17, 2010 at 9:16 PM, Caolán McNamara wrote: > On Wed, 2010-11-17 at 15:50 -0300, Santiago Bosio wrote: >> Hi! >> >> When LibO is built using --enable-symbols, it still uses -O2 >> optimizations, making hard to debug execution with GDB. >> >> So, I think that it should default to -O2 on

Re: [Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-17 Thread Caolán McNamara
On Wed, 2010-11-17 at 15:50 -0300, Santiago Bosio wrote: > Hi! > > When LibO is built using --enable-symbols, it still uses -O2 > optimizations, making hard to debug execution with GDB. > > So, I think that it should default to -O2 on a normal build, and to -O0 > when using --enable-symbols.

[Libreoffice] Disable GCC optimizations when building with --enable-symbols

2010-11-17 Thread Santiago Bosio
Hi! When LibO is built using --enable-symbols, it still uses -O2 optimizations, making hard to debug execution with GDB. So, I think that it should default to -O2 on a normal build, and to -O0 when using --enable-symbols. Don't see the point of using optimizations when building a version for