-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Always use -fasynchronous-unwind-table. #33279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always use -fasynchronous-unwind-table. #33279
Conversation
EWS run on previous version of this PR (hash cb8c52e) |
Source/cmake/OptionsWPE.cmake
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, a few observations:
- OptionsGTK.cmake would need the same change
- You really don't want to add
${CMAKE_COMPILER_SIZE_OPT_FLAGS}
here. That's surely going to override whatever the desired optimization level is with -OS - All major distros already build with -fasynchronous-unwind-tables. Do you know how adding -funwind-tables will interact with -fasynchronous-unwind-tables? I don't know what will happen, but I fear -funwind-tables may sabotage -fasynchronous-unwind-tables because you are appending it after the distro-provided flags.
Here are my suggestions:
- Add the flag in WebKitCompilerFlags.cmake instead of here. It's OK to do so even when not building with libbacktrace.
- Don't mess with size optimization flags, since that's unrelated
- Use -fasynchronous-unwind-tables since that's what all distros do; presumably libbacktrace is compatible with that? Also, prepend this flag rather than appending it, since there's no reason to prevent overriding it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would probably add this where -fno-exceptions
is added, as this is only needed at all due to that
cb8c52e
to
a67ff7d
Compare
EWS run on previous version of this PR (hash a67ff7d) |
a67ff7d
to
fbd921a
Compare
EWS run on previous version of this PR (hash fbd921a) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also update the commit message before landing, since you're now using the flag always (which is fine) rather than only when LIBBACKTRACE is enabled.
fbd921a
to
4c06a87
Compare
EWS run on current version of this PR (hash 4c06a87) |
https://bugs.webkit.org/show_bug.cgi?id=279300 Reviewed by Michael Catanzaro. This option is needed on ARMv7 for libbacktrace to work at all. The downstream port of WPE already has a similar patch, but it should be upstreamed too. * Source/cmake/OptionsWPE.cmake: Canonical link: https://commits.webkit.org/283378@main
4c06a87
to
7db7c2a
Compare
Committed 283378@main (7db7c2a): https://commits.webkit.org/283378@main Reviewed commits have been landed. Closing PR #33279 and removing active labels. |
7db7c2a
4c06a87