aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/ASTMerge.cpp
diff options
context:
space:
mode:
authorAsher Mancinelli <ashermancinelli@gmail.com>2025-04-25 06:57:56 -0700
committerGitHub <noreply@github.com>2025-04-25 06:57:56 -0700
commit41f1663f118285e63eaf28c5156af3caa972644f (patch)
tree79491bc308cc63c12b1254c0facc194c20de8205 /clang/lib/Frontend/ASTMerge.cpp
parentade502a8c46b8393e022b4eabcdd445af91a451c (diff)
downloadllvm-41f1663f118285e63eaf28c5156af3caa972644f.zip
llvm-41f1663f118285e63eaf28c5156af3caa972644f.tar.gz
llvm-41f1663f118285e63eaf28c5156af3caa972644f.tar.bz2
[flang] Use correct int extension flags for C-ABI calls on aarch64 (#137105)
The AArch64 procedure call standard does not mandate that the callee extends the return value. Clang does not add signext to functions returning i8 or i16 on linux aarch64, but flang does. This means that runtime routines returning i8's will have signext on the callsite/declaration, but not on the implementation, and the call site will assume the return value has already been sign extended when it has not. This showed up in a test case calling MINVAL on an array of INTEGER*1. Adjust our integer extension flags to match clang and aarch64pcs on linux. The behavior on Darwin should be preserved. This is listed on the apple developer guide as a divergence from aarch64pcs.
Diffstat (limited to 'clang/lib/Frontend/ASTMerge.cpp')
0 files changed, 0 insertions, 0 deletions