------- Comment #4 from laurent at guerby dot net 2008-09-02 13:02 ------- With the second patch I get an ICE during Ada rts build.
+===========================GNAT BUG DETECTED==============================+ | 4.4.0 20080902 (experimental) [trunk revision 139884] (x86_64-unknown-linux-gnu) GCC error:| | in generate_copy_inout, at tree-sra.c:2602 | | Error detected around a-ncelfu.ads:23 | | Please submit a bug report; see http://gcc.gnu.org/bugs.html. | | 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 gcc or gnatmake command that you entered. | | Also include sources listed below in gnatchop format | | (concatenated together with no headers between files). | +==========================================================================+ 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. raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:424 make[7]: *** [a-ncelfu.o] Error 1 make[7]: Leaving directory `/home/guerby/build2/gcc/ada/rts' $ gdb /home/guerby/build2/./gcc/gnat1 (gdb) b internal_error Breakpoint 1 at 0x732ef0: file ../../trunk2/gcc/diagnostic.c, line 639. (gdb) r -gnatwa -quiet -dumpbase a-ncelfu.ads -O2 -W -Wall -fPIC -g -gnatpg -mtune=generic -gnatO a-ncelfu.o a-ncelfu.ads -o /tmp/ccaIlL98.s Starting program: /home/guerby/build2/gcc/gnat1 -gnatwa -quiet -dumpbase a-ncelfu.ads -O2 -W -Wall -fPIC -g -gnatpg -mtune=generic -gnatO a-ncelfu.o a-ncelfu.ads -o /tmp/ccaIlL98.s Breakpoint 1, internal_error (gmsgid=0xe2d53d "in %s, at %s:%d") at ../../trunk2/gcc/diagnostic.c:639 639 { (gdb) bt #0 internal_error (gmsgid=0xe2d53d "in %s, at %s:%d") at ../../trunk2/gcc/diagnostic.c:639 #1 0x0000000000732fec in fancy_abort (file=<value optimized out>, line=2602, function=0xe8bda0 "generate_copy_inout") at ../../trunk2/gcc/diagnostic.c:699 #2 0x0000000000989942 in generate_copy_inout (elt=0x17540d8, copy_out=0 '\0', expr=0x2aaaab735ee0, seq_p=0x7fffffffe558) at ../../trunk2/gcc/tree-sra.c:2602 #3 0x000000000098b828 in scalarize_ldst (elt=0x17540d8, other=0x2aaaab735ee0, gsi=0x7fffffffe5b0, is_output=160 '�') at ../../trunk2/gcc/tree-sra.c:3504 #4 0x0000000000984fec in sra_walk_function (fns=0xe8bd60) at ../../trunk2/gcc/tree-sra.c:983 #5 0x000000000098a0b8 in tree_sra () at ../../trunk2/gcc/tree-sra.c:3598 #6 0x000000000098a3d0 in tree_sra_early () at ../../trunk2/gcc/tree-sra.c:3698 #7 0x0000000000869983 in execute_one_pass (pass=0x120e2c0) at ../../trunk2/gcc/passes.c:1277 #8 0x0000000000869bc5 in execute_pass_list (pass=0x120e2c0) at ../../trunk2/gcc/passes.c:1325 #9 0x0000000000869bdd in execute_pass_list (pass=0x120df60) at ../../trunk2/gcc/passes.c:1326 #10 0x0000000000869ee5 in execute_ipa_pass_list (pass=0x120df00) at ../../trunk2/gcc/passes.c:890 #11 0x0000000000ad3fd7 in cgraph_optimize () at ../../trunk2/gcc/cgraphunit.c:1234 #12 0x00000000004227e9 in gnat_write_global_declarations () at ../../trunk2/gcc/ada/gcc-interface/utils.c:4747 #13 0x000000000090f8bf in toplev_main (argc=<value optimized out>, argv=<value optimized out>) at ../../trunk2/gcc/toplev.c:979 #14 0x00002aaaaad1d4ca in __libc_start_main () from /lib/libc.so.6 #15 0x000000000040479a in _start () at ../sysdeps/x86_64/elf/start.S:113 (gdb) c Continuing. +===========================GNAT BUG DETECTED==============================+ | 4.4.0 20080902 (experimental) [trunk revision 139884] (x86_64-unknown-linux-gnu) GCC error:| | in generate_copy_inout, at tree-sra.c:2602 | | Error detected around a-ncelfu.ads:23 | -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37328