Similar to PR target/7042, this bug is about reorg generating a return insn while current_function_epilogue_delay_list. The test-case is newlib/libc/string/wcscspn.c:1.1, which will be entered in the test-suite (including copyright/license note) with modified data-types to avoid included files.
Like PR target/7042, this should only affect targets with ELIGIBLE_FOR_EPILOGUE_DELAY Noticed thanks to the sanity check in the CRIS port introduced with the fix for PR target/7042. The error looks like this, cutnpasted: /home/hp/cvs_areas/combined/cris-obj/gcc/xgcc -B/home/hp/cvs_areas/combined/cris-obj/gcc/ -nostdinc -B/home/hp/cvs_areas/combined\ /cris-obj/cris-unknown-elf/v10/newlib/ -isystem /home/hp/cvs_areas/combined/cris-obj/cris-unknown-elf/v10/newlib/targ-include -is\ ystem /home/hp/cvs_areas/combined/combined/newlib/libc/include -B/tmp/cris/cris-unknown-elf/bin/ -B/tmp/cris/cris-unknown-elf/lib\ / -isystem /tmp/cris/cris-unknown-elf/include -isystem /tmp/cris/cris-unknown-elf/sys-include -L/home/hp/cvs_areas/combined/cris-\ obj/ld -march=v10 -mbest-lib-options -DPACKAGE=\"newlib\" -DVERSION=\"1.13.0\" -I. -I/home/hp/cvs_areas/combined/combined/newli\ b/libc/string -O2 -DHAVE_RENAME -DHAVE_GETTIMEOFDAY -D_USE_WRITE -fno-builtin -O2 -g -O2 -O2 -g -O2 -march=v10 -mbest-lib-o\ ptions -c /home/hp/cvs_areas/combined/combined/newlib/libc/string/wcscspn.c /home/hp/cvs_areas/combined/combined/newlib/libc/string/wcscspn.c: In function 'wcscspn': /home/hp/cvs_areas/combined/combined/newlib/libc/string/wcscspn.c:85: internal compiler error: in output_149, at insn-output.c:1086 Please submit a full bug report, with preprocessed source if appropriate. -- Summary: generating return insns while current_function_epilogue_delay_list nonempty Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: rtl-optimization AssignedTo: hp at gcc dot gnu dot org ReportedBy: hp at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: cris-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19462