https://bugs.winehq.org/show_bug.cgi?id=42437
Kyle Auble kyle.auble@zoho.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle.auble@zoho.com
--- Comment #4 from Kyle Auble kyle.auble@zoho.com --- (In reply to Wylda from comment #0)
Wiki link: https://wiki.winehq.org/Building_Wine#Compiler_Optimizations_.26_Call-Stacks
Says: ../wine-source/configure CFLAGS="-g -O1 -fno-optimize-sibling-calls -fno-omit-frame-pointer -fno-inline"
IMHO these two are superfluous as:
- "optimize-sibling-calls" is disabled in -O1 and enabled since -O2
- "omit-frame-pointer" is disabled in -O0, -O1 and -O2
Hi Wylda,
This section of the page came from splicing what was already on the wiki with info from GCC & Clang docs. I never really bothered to see if they were redundant because that shouldn't cause any problems, plus I think which features each -O level enables can vary based on your GCC version and config.
(In reply to Austin English from comment #2)
Actually, you may want -Og for that: -Og Optimize for debugging experience rather than speed or size.
Now, this -Og option definitely simplifies things so I've rewritten the wiki-page to emphasize it. I think it's a relatively new feature (the GCC release notes mention adding it in v4.8), but I imagine most distros have moved to that version or newer by now. I've left the table of individual flags as a note though, mainly to give the reader some context about the debug process.
If that sounds good to everybody, I think we can close the bug.