When building a-textio in libada, today's gcc build fails when memory is exhausted.
Seems like VRP is looping, consuming more and more memory. Andrew. make[7]: `a-teioed.o' is up to date. /home/aph/gcc/build-x86_64-unknown-linux-gnu/./gcc/xgcc -B/home/aph/gcc/build-x86_64-unknown-linux-gnu/./gcc/ -B/home/aph/gcc/install/x86_64-unknown-linux-gnu/bin/ -B/home/aph/gcc/install/x86_64-unknown-linux-gnu/lib/ -isystem /home/aph/gcc/install/x86_64-unknown-linux-gnu/include -isystem /home/aph/gcc/install/x86_64-unknown-linux-gnu/sys-include -c -g -O2 -fPIC -W -Wall -gnatpg a-textio.adb -o a-textio.o virtual memory exhausted: Cannot allocate memory make[7]: *** [a-textio.o] Error 1 make[7]: Leaving directory `/homes/home/aph/gcc/build-x86_64-unknown-linux-gnu/gcc/ada/rts' make[6]: *** [gnatlib] Error 2 make[6]: Leaving directory `/homes/home/aph/gcc/build-x86_64-unknown-linux-gnu/gcc/ada' make[5]: *** [gnatlib-shared-default] Error 2 make[5]: Leaving directory `/homes/home/aph/gcc/build-x86_64-unknown-linux-gnu/gcc/ada' make[4]: *** [gnatlib-shared-dual] Error 2 make[4]: Leaving directory `/homes/home/aph/gcc/build-x86_64-unknown-linux-gnu/gcc/ada' make[3]: *** [gnatlib-shared] Error 2 make[3]: Leaving directory `/homes/home/aph/gcc/build-x86_64-unknown-linux-gnu/gcc/ada' make[2]: *** [gnatlib-shared] Error 2 make[2]: Leaving directory `/homes/home/aph/gcc/build-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/libada' make[1]: *** [all-target-libada] Error 2 Program received signal SIGINT, Interrupt. 0x00000000009260c9 in tree_int_cst_compare (t1=0x2b05a43cfe70, t2=0x2b05a55296c0) at /home/aph/gcc/trunk/gcc/tree.c:4390 (gdb) bt #0 0x00000000009260c9 in tree_int_cst_compare (t1=0x2b05a43cfe70, t2=0x2b05a55296c0) at /home/aph/gcc/trunk/gcc/tree.c:4390 #1 0x000000000095ce9d in extract_range_from_expr (vr=0x7fffffd07e80, expr=0x2b05a540c9b0) at /home/aph/gcc/trunk/gcc/tree-vrp.c:614 #2 0x000000000095d752 in vrp_visit_assignment (stmt=0x2b05a540ca00, output_p=0x7fffffd07ef0) at /home/aph/gcc/trunk/gcc/tree-vrp.c:3366 #3 0x00000000006a2bf1 in simulate_stmt (stmt=0x2b05a540ca00) at /home/aph/gcc/trunk/gcc/tree-ssa-propagate.c:306 #4 0x00000000006a2e0f in process_ssa_edge_worklist (worklist=0x12417e8) at /home/aph/gcc/trunk/gcc/tree-ssa-propagate.c:380 #5 0x00000000006a3243 in ssa_propagate (visit_stmt=Variable "visit_stmt" is not available. ) at /home/aph/gcc/trunk/gcc/tree-ssa-propagate.c:683 #6 0x000000000095f2bf in execute_vrp () at /home/aph/gcc/trunk/gcc/tree-vrp.c:4569 #7 0x000000000094fd86 in execute_one_pass (pass=0x12f3550) at /home/aph/gcc/trunk/gcc/passes.c:854 #8 0x000000000094feec in execute_pass_list (pass=0x12f3550) at /home/aph/gcc/trunk/gcc/passes.c:898 #9 0x000000000094fefe in execute_pass_list (pass=0xdd6380) at /home/aph/gcc/trunk/gcc/passes.c:899 #10 0x000000000065853a in tree_rest_of_compilation (fndecl=0x2b05a5359500) at /home/aph/gcc/trunk/gcc/tree-optimize.c:412 #11 0x000000000041b715 in gnat_expand_body (gnu_decl=0x2b05a5359500) at /home/aph/gcc/trunk/gcc/ada/misc.c:653 #12 0x00000000009a3966 in cgraph_expand_function (node=0x2b05a539f6c0) at /home/aph/gcc/trunk/gcc/cgraphunit.c:1101 #13 0x00000000009a5f38 in cgraph_optimize () at /home/aph/gcc/trunk/gcc/cgraphunit.c:1166 #14 0x000000000041bf8a in gnat_parse_file (set_yydebug=Variable "set_yydebug" is not available. ) at /home/aph/gcc/trunk/gcc/ada/misc.c:245 #15 0x0000000000921378 in toplev_main (argc=Variable "argc" is not available. ) at /home/aph/gcc/trunk/gcc/toplev.c:999 #16 0x0000003d4071d024 in __libc_start_main () from /lib64/libc.so.6 #17 0x00000000004030b9 in _start () #18 0x00007fffffd081f8 in ?? () #19 0x0000000000000000 in ?? () (gdb)