-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[FMV] The compiler crashes in the absence of default target version. #84015
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
Comments
The patch in #84405 seems to fix this ticket. After applying the patch the behavior is that without a default declaration we generate a normal function definition disregarding the target version attribute. This might not be the desired behavior (perhaps we would like to diagnose the absense of default declaration), but it is an improvement compared to crashing. |
This is fixed by #85923. Closing. |
@llvm/issue-subscribers-clang-codegen Author: Alexandros Lamprineas (labrinea)
I believe we should be diagnosing the lack of default definition instead of crashing.
I can only reproduce this if a declaration if followed by a definition as below:
fmv.c
$ clang --target=aarch64-linux-gnu --rtlib=compiler-rt fmv.c -S -o -
|
Uh oh!
There was an error while loading. Please reload this page.
I believe we should be diagnosing the lack of default definition instead of crashing.
I can only reproduce this if a declaration if followed by a definition as below:
fmv.c
$ clang --target=aarch64-linux-gnu --rtlib=compiler-rt fmv.c -S -o -
The text was updated successfully, but these errors were encountered: