https://bugs.winehq.org/show_bug.cgi?id=42437
Bug ID: 42437 Summary: Wine Wiki: Building Wine - Compiler Optimizations & Call-Stacks Product: WineHQ.org Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: www-unknown Assignee: wine-bugs@winehq.org Reporter: wylda@volny.cz Distribution: ---
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
at least by comparing output of following two commands: gcc -g -O1 -Q --help=common gcc -g -O1 -fno-optimize-sibling-calls -fno-omit-frame-pointer -fno-inline -Q --help=common
I tried that on Debian Stretch. Gcc (Debian 6.3.0-6) 6.3.0 20170205
https://bugs.winehq.org/show_bug.cgi?id=42437
--- Comment #1 from Rosanne DiMesio dimesio@earthlink.net --- The Building Wine page was written by Kyle Auble; I just ported over what he wrote. I think the page needs major revision, but I'm not qualified to address the specific issues you're raising.
You can make corrections yourself. If you tell me your wiki account username, I can give you edit permission.
https://bugs.winehq.org/show_bug.cgi?id=42437
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
--- Comment #2 from Austin English austinenglish@gmail.com --- Actually, you may want -Og for that: -Og Optimize for debugging experience rather than speed or size.
https://bugs.winehq.org/show_bug.cgi?id=42437
--- Comment #3 from Wylda wylda@volny.cz --- (In reply to Rosanne DiMesio from comment #1)
...but I'm not qualified to address the specific issues you're raising.
Me too. I really have no idea what's correct. I just read that page and tried to verify that elsewhere.
+ Thanks Austin.
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.
https://bugs.winehq.org/show_bug.cgi?id=42437
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=42437
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #5 from Ken Sharp imwellcushtymelike@gmail.com --- No response so assuming it's fine.
https://bugs.winehq.org/show_bug.cgi?id=42437
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Ken Sharp imwellcushtymelike@gmail.com --- Closing