Apache OpenOffice (AOO) Bugzilla – Issue 17181
-O optimizes; -O0 doesn't ...
Last modified: 2004-03-03 16:47:58 UTC
With this patch we don't optimize at all with debug turned on - which can give better debugging output.
--- solenv/inc/unxlngi4.mk Tue Jan 7 09:22:21 2003 +++ solenv/inc/unxlngi4.mk Wed Mar 26 16:49:10 2003 @@ -139,7 +139,7 @@ # reduce to -O1 to avoid optimisation problems CFLAGSOPT=-O1 # Compiler flags for disabling optimazations -CFLAGSNOOPT=-O +CFLAGSNOOPT=-O0 # Compiler flags for discibing the output path CFLAGSOUTOBJ=-o # Enable all warnings May I commit ?
mh->hjs: I'd prefer an extra debug switch for this, do you have other opinions ?
as "-O0" disables inlining there might be problems with symbols previously inlined but not exported anywhere. this was the reason to go with "-O" in the past.
Also unotools seems to have a problem if compiled without optimization
i've done a successfull build for product and non-product version with -O0 in "unxlngi5.mk". so there seem to be no build issues. what i'm lacking is the experiance if disabling inlining rather helps or hinders debugging in practice. just think of issues just appearing with inlining. could you try to collect some opinions from the affected developers? would be nice if this change isn't seen as a regression...
gathered some developr comments on this change. done.
missed to chanjge "unxlngi4.mk" too.
.