diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2024-07-06 11:56:19 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2024-07-06 11:59:00 +0200 |
commit | 8bc5561c43b195e1638e5acace8b41b3f7512be3 (patch) | |
tree | 330eec04ec21ffdad032c2f399883d820770d779 /gcc/cp/module.cc | |
parent | 9a7e3f57e1ab8e6e4cf5ea3c0998aa50c6220579 (diff) | |
download | gcc-8bc5561c43b195e1638e5acace8b41b3f7512be3.zip gcc-8bc5561c43b195e1638e5acace8b41b3f7512be3.tar.gz gcc-8bc5561c43b195e1638e5acace8b41b3f7512be3.tar.bz2 |
RISC-V: fix internal error on global variable-length array
This is an ICE in the RISC-V back-end calling tree_to_uhwi on the DECL_SIZE
of a global variable-length array.
gcc/
PR target/115591
* config/riscv/riscv.cc (riscv_valid_lo_sum_p): Add missing test on
tree_fits_uhwi_p before calling tree_to_uhwi.
gcc/testsuite/
* gnat.dg/array41.ads, gnat.dg/array41.adb: New test.
Diffstat (limited to 'gcc/cp/module.cc')
0 files changed, 0 insertions, 0 deletions