https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115591
Bug ID: 115591 Summary: ICE in riscv64-elf cross compiler, handling imported addresses Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: simon at pushface dot org CC: dkm at gcc dot gnu.org Target Milestone: --- Created attachment 58487 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58487&action=edit Reproducer Compiler in use: gnat-riscv64-elf-darwin-14.1.0-3 from https://github.com/alire-project/GNAT-FSF-builds/releases Compiling the attached reproducer with riscv64-elf-gcc -c --RTS=. bug.adb results in during RTL pass: expand +===========================GNAT BUG DETECTED==============================+ | 14.1.0 (riscv64-elf) in tree_to_uhwi, at tree.h:4951 | | Error detected around bug.adb:29:24 | | Compiling bug.adb | | Please submit a bug report; see https://gcc.gnu.org/bugs/ . | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact command that you entered. | | Also include sources listed below. | +==========================================================================+ Please include these source files with error report Note that list may not be accurate in some cases, so please double check that the problem can still be reproduced with the set of files listed. Consider also -gnatd.n switch (see debug.adb). system.ads bug.adb bug.ads s-stoele.ads s-stoele.adb ada.ads a-unccon.ads raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:412 Note that * this error doesn’t happen with an arm-eabi cross compiler * it was present from GCC 12.2.0