Files
gcc-reflection/gcc/testsuite/gnat.dg/array41.ads
Eric Botcazou 8bc5561c43 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.
2024-07-06 11:59:00 +02:00

6 lines
59 B
Ada

package Array41 is
pragma Elaborate_Body;
end Array41;