We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
__attribute__((preserve_all))
Compiling the following source and clang will crash with Unsupported calling convention..
Unsupported calling convention.
Source:
// test.c __attribute__((preserve_all)) float bar(float a); float run(float foo) { return bar(foo); }
Repro:
r26/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android34-clang -c test.c -O2
Crash log:
fatal error: error in backend: Unsupported calling convention. clang-17: error: clang frontend command failed with exit code 70 (use -v to see invocation) Android (10552028, +pgo, +bolt, +lto, -mlgo, based on r487747d) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362) Target: aarch64-unknown-linux-android24 Thread model: posix InstalledDir: /home/builder/lib/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin clang-17: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-17: note: diagnostic msg: /tmp/main-538331.c clang-17: note: diagnostic msg: /tmp/main-538331.sh clang-17: note: diagnostic msg: ********************
llvm/llvm-project#58145
llvm/llvm-project@d75e70d
r26
No response
Linux
Ubuntu 22.04
arm64-v8a
The text was updated successfully, but these errors were encountered:
Thanks for finding the llvm-project bug and fix. However,
preserve_all
Considering this, we shouldn't backport the fix to r26. Please wait for r27.
Sorry, something went wrong.
Update LLVM to r522817.
593eb7a
Bug: android/ndk#1728 Bug: android/ndk#1853 Bug: android/ndk#1928 Bug: android/ndk#1947 Bug: android/ndk#1953 Bug: android/ndk#1963 Bug: android/ndk#1973 Bug: android/ndk#1988 Test: ./checkbuild.py && ./run_tests.py Change-Id: Ib319c4f80c107e57ede6b6130d81d6d1cd87e22d
No branches or pull requests
Description
Compiling the following source and clang will crash with
Unsupported calling convention.
.Source:
Repro:
Crash log:
Upstream bug
llvm/llvm-project#58145
Commit to cherry-pick
llvm/llvm-project@d75e70d
Affected versions
r26
Canary version
No response
Host OS
Linux
Host OS version
Ubuntu 22.04
Affected ABIs
arm64-v8a
The text was updated successfully, but these errors were encountered: