Issue 17181 - -O optimizes; -O0 doesn't ...
Summary: -O optimizes; -O0 doesn't ...
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: hjs
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-21 16:13 UTC by mmeeks
Modified: 2004-03-03 16:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mmeeks 2003-07-21 16:13:13 UTC
With this patch we don't optimize at all with debug turned on - which can give
better debugging output.
Comment 1 mmeeks 2003-07-21 16:13:45 UTC
--- 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 ?
Comment 2 Martin Hollmichel 2003-07-21 16:45:38 UTC
mh->hjs: I'd prefer an extra debug switch for this, do you have other
opinions ?
Comment 3 hjs 2003-07-22 12:17:42 UTC
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.
Comment 4 jens-heiner.rechtien 2003-07-23 09:51:52 UTC
Also unotools seems to have a problem if compiled without optimization
Comment 5 hjs 2003-09-10 14:20:30 UTC
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...
Comment 6 hjs 2003-10-16 17:14:56 UTC
gathered some developr comments on this change. done.
Comment 7 hjs 2003-12-19 11:22:17 UTC
missed to chanjge "unxlngi4.mk" too.
Comment 8 hjs 2004-03-01 13:30:53 UTC
.
Comment 9 hjs 2004-03-03 16:47:58 UTC
.