diff options
author | Xi Ruoyao <xry111@xry111.site> | 2024-03-20 15:09:21 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2024-03-30 10:14:02 +0800 |
commit | 6fc84f680d098f82c1c43435fdb206099f0df4df (patch) | |
tree | d0b52fb8bd32f40fae616cb0a9252e7a25580862 /libiberty/regex.c | |
parent | 4921bd8cf2536903a1f78911ee52a2e58242b097 (diff) | |
download | gcc-6fc84f680d098f82c1c43435fdb206099f0df4df.zip gcc-6fc84f680d098f82c1c43435fdb206099f0df4df.tar.gz gcc-6fc84f680d098f82c1c43435fdb206099f0df4df.tar.bz2 |
mips: 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,8,9}.c to
fail.
Fix the issue by checking if arg.type is NULL, as r14-9503 explains.
gcc/ChangeLog:
PR target/114175
* config/mips/mips.cc (mips_setup_incoming_varargs): Only skip
mips_function_arg_advance for TYPE_NO_NAMED_ARGS_STDARG_P
functions if arg.type is NULL.
Diffstat (limited to 'libiberty/regex.c')
0 files changed, 0 insertions, 0 deletions