-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
[Clang] -finstrument-functions does not insert '__cyg_profile_func_exit' when using throw expression in c++ #121151
Labels
Comments
github-actions
bot
added
the
clang
Clang issues not falling into any other category
label
Dec 26, 2024
ggstone0523
changed the title
clang: -finstrument-functions does not insert '__cyg_profile_func_exit' when using throw expression in c++
clang: -finstrument-functions does not insert '__cyg_profile_func_exit' to function when using throw expression in c++
Dec 26, 2024
ggstone0523
changed the title
clang: -finstrument-functions does not insert '__cyg_profile_func_exit' to function when using throw expression in c++
clang: -finstrument-functions does not insert '__cyg_profile_func_exit' when using throw expression in c++
Dec 26, 2024
ggstone0523
changed the title
clang: -finstrument-functions does not insert '__cyg_profile_func_exit' when using throw expression in c++
[Clang] -finstrument-functions does not insert '__cyg_profile_func_exit' when using throw expression in c++
Dec 26, 2024
Just FYI, the behavior changed in GCC 4.0 to start inserting __cyg_profile_func_exit on the final path when -finstrument-functions was reimplemented to the tree level from handling it on the expand phase. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=2200 also. |
EugeneZelenko
added
clang:codegen
and removed
clang
Clang issues not falling into any other category
labels
Dec 26, 2024
@llvm/issue-subscribers-clang-codegen Author: Choi Yusun (ggstone0523)
'-finstrument-functions' option does not insert '__cyg_profile_func_exit' to function that using throw expression.
code : #include <stdexcept>
void A()
{
throw std::runtime_error("!");
};
int main()
{
try {
A();
} catch( ... ) {
}
return 0;
} run
result of disassemble using objdump
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
'-finstrument-functions' option does not insert '__cyg_profile_func_exit' to function that using throw expression.
code :
run
result of disassemble using objdump
The text was updated successfully, but these errors were encountered: