aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-tailcall.c
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2019-08-08 19:04:56 +0000
committerJim Wilson <wilson@gcc.gnu.org>2019-08-08 12:04:56 -0700
commite98c3ee9712a360b4f470f930ac0c68863db1d3f (patch)
tree074a5f773ee577199037d614dad492689e2bd083 /gcc/tree-tailcall.c
parent355229f22a06073a288f6da189ea2757c5e09e30 (diff)
downloadgcc-e98c3ee9712a360b4f470f930ac0c68863db1d3f.zip
gcc-e98c3ee9712a360b4f470f930ac0c68863db1d3f.tar.gz
gcc-e98c3ee9712a360b4f470f930ac0c68863db1d3f.tar.bz2
RISC-V: Fix C ABI for flattened struct with 0-length bitfield.
gcc/ PR target/91229 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg ignore_zero_width_bit_field_p. Skip zero size bitfields when true. Pass into recursive call. (riscv_flatten_aggregate_argument): New arg. Pass to riscv_flatten_aggregate_field. (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call riscv_flatten_aggregate_argument twice, with false and true as last arg. Process result twice. Compare results and warn if different. (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise. gcc/testsuite/ * gcc.target/riscv/flattened-struct-abi-1.c: New test. * gcc.target/riscv/flattened-struct-abi-2.c: New test. From-SVN: r274215
Diffstat (limited to 'gcc/tree-tailcall.c')
0 files changed, 0 insertions, 0 deletions