https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96233
Bug ID: 96233 Summary: XGCC-10.1.0 for Target RX: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1189 Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hdu...@tangerine-soft.de Target Milestone: --- Created attachment 48888 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48888&action=edit Code snippet that causes the error ICE happened in a trivial c-source code with main() entry (see attachment) I got following errors. $ gcc-10.1.0-rx-none-elf/bin/rx-none-elf-gcc -g -o main.o -c ./main.c during RTL pass: dwarf2 ./main.c: In function 'int main(int, char**)': ./main.c:6:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1189 6 | } | ^ libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. However either one of the followings works fine: $ gcc-10.1.0-rx-none-elf/bin/rx-none-elf-gcc -g0 -o main.o -c ./main.c $ gcc-10.1.0-rx-none-elf/bin/rx-none-elf-gcc -g -O1 -o main.o -c ./main.c $ gcc-10.1.0-rx-none-elf/bin/rx-none-elf-gcc -g -O2 -o main.o -c ./main.c $ gcc-10.1.0-rx-none-elf/bin/rx-none-elf-gcc -g -O3 -o main.o -c ./main.c ---------------------------------------------------------------------- I have learned that this error even happens with the rx cross compiler for GCC 9.2.0: ---------------------------------------------------------------------- $ gcc-9.2.0-rx-none-elf/bin/rx-none-elf-gcc -g -o main.o -c ./main.c during RTL pass: dwarf2 ./main.c: In function 'int main(int, char**)': ./main.c:6:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1183 6 | } | ^ libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. ---------------------------------------------------------------------- ...and for an GCC rx cross compiler for GCC 8.2.0 as well: ---------------------------------------------------------------------- $ gcc-8.2.0-rx-none-elf/bin/rx-none-elf-gcc -g -o main.o -c ./main.c during RTL pass: dwarf2 ./main.c: In function 'int main(int, char**)': ./main.c:6:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1171 } ^ libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. If I hand over -g0 instead of -g or if I use an Optimization flag with an level of greater than 0 than the ICE does not happen any longer (verfied for rx-none-elf-gcc-10.1, rx-none-elf-gcc-9.2 and rx-none-elf-gcc-8.2.