Skip to content
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_call_terminate doesn't have unwind table with -funwind-tables #40696

Closed
efriedma-quic opened this issue Apr 2, 2019 · 4 comments
Closed
Labels
bugzilla Issues migrated from bugzilla clang:codegen

Comments

@efriedma-quic
Copy link
Collaborator

Bugzilla Link 41351
Version unspecified
OS Windows NT
CC @compnerd,@francisvm,@froydnj,@zygoloid

Extended Description

C++ testcase:

void target(void f()) noexcept { f(); }

If you compile this with "--target=aarch64-eabi -funwind-tables", the unwind tables are missing for __clang_call_terminate. I think it's somehow forgetting to attach the uwtable attribute to the definition of __clang_call_terminate.

@froydnj
Copy link
Contributor

froydnj commented Apr 3, 2019

Is this related to bug 40876 at all?

@efriedma-quic
Copy link
Collaborator Author

Not really? I mean, I guess this might be an issue on Windows as well, but it's not platform-specific.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
@xgupta
Copy link
Contributor

xgupta commented Jan 29, 2023

Hi @efriedma-quic,

I have tried this command -
./clang --target=aarch64-eabi -funwind-tables test.cpp -c -o clang-arm.o
llvm-objdump -D clang-arm.o > clang-arm

with clang-arm is uploaded here - https://gist.github.com/xgupta/ad644b69ab8e8ec9a30a8a5281d74d3d

It does have eh_frame section. what should be the expectation here?

@efriedma-quic
Copy link
Collaborator Author

The function target() has an unwind table; the issue is that the synthesized function __clang_call_terminate doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:codegen
Projects
None yet
Development

No branches or pull requests

3 participants