aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2024-03-18 17:18:34 +0800
committerXi Ruoyao <xry111@xry111.site>2024-03-19 16:38:29 +0800
commitc1fd4589c2bf9fd8409d51b94df219cb75107762 (patch)
tree544787812c799e46d9edc0b8690b6eb923d001e3 /gcc/system.h
parent167ec6df7fd8deb67759acd5dbe72c1982a55873 (diff)
downloadgcc-c1fd4589c2bf9fd8409d51b94df219cb75107762.zip
gcc-c1fd4589c2bf9fd8409d51b94df219cb75107762.tar.gz
gcc-c1fd4589c2bf9fd8409d51b94df219cb75107762.tar.bz2
LoongArch: Fix C23 (...) functions returning large aggregates [PR114175]
We were assuming TYPE_NO_NAMED_ARGS_STDARG_P don't have any named arguments and there is nothing to advance, but that is not the case for (...) functions returning by hidden reference which have one such artificial argument. This is causing gcc.dg/c23-stdarg-6.c and gcc.dg/c23-stdarg-8.c to fail. Fix the issue by checking if arg.type is NULL, as r14-9503 explains. gcc/ChangeLog: PR target/114175 * config/loongarch/loongarch.cc (loongarch_setup_incoming_varargs): Only skip loongarch_function_arg_advance for TYPE_NO_NAMED_ARGS_STDARG_P functions if arg.type is NULL.
Diffstat (limited to 'gcc/system.h')
0 files changed, 0 insertions, 0 deletions