https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103192
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org --- Comment #13 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Bootstrapping x86_64-linux with ../configure --enable-checking=release --with-build-config=bootstrap-lto --disable-plugin --enable-l anguages=c++ leads to broken cc1 (it fails to compile empty function ICEing in gimplifier as well). I spent good part of day today looking into it. The problem goes away with disabling pure/const discovery, but I think it only triggers misoptimization later. main t.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | main() | ^~~~ Analyzing compilation unit <built-in>: In function ‘main’: <built-in>: internal compiler error: in force_constant_size, at gimplify.c:738 DWARF underflow in .debug_line at 18485786 DWARF underflow in .debug_line at 3053700 DWARF underflow in .debug_line at 3249290 DWARF underflow in .debug_line at 1495718 DWARF underflow in .debug_line at 5987571 DWARF underflow in .debug_line at 96 Breakpoint 1, internal_error (gmsgid=gmsgid@entry=0x1fc1ab2 "in %s, at %s:%d") at ../../gcc/diagnostic.c:1905 1905 { (gdb) bt #0 internal_error (gmsgid=gmsgid@entry=0x1fc1ab2 "in %s, at %s:%d") at ../../gcc/diagnostic.c:1905 #1 0x000000000043b560 in fancy_abort (file=0x1b93b78 "../../gcc/gimplify.c", line=738, function=0x1b93d09 "force_constant_size") at ../../gcc/diagnostic.c:2009 #2 0x0000000000410c06 in force_constant_size (var=0x7ffff7fedc60) at ../../gcc/gimplify.c:738 #3 0x000000000070f500 in gimple_add_tmp_var (tmp=0x7ffff7fedc60) at ../../gcc/gimplify.c:776 #4 0x0000000000711eb8 in create_tmp_var (prefix=0x0, type=0x7ffff6dae5e8) at ../../gcc/gimple-expr.c:485 #5 create_tmp_reg (prefix=0x0, type=0x7ffff6dae5e8) at ../../gcc/gimple-expr.c:496 #6 gimplify_return_expr (stmt=0x7ffff6ee0200, pre_p=0x7fffffffdb60) at ../../gcc/gimplify.c:1660 #7 0x000000000073ae4f in gimplify_expr (expr_p=0x7ffff6edd400, pre_p=0x7fffffffdb60, post_p=<optimized out>, gimple_test_f=0x728e00 <is_gimple_stmt(tree)>, fallback=<optimized out>) at ../../gcc/gimplify.c:14932 #8 0x000000000073a0ce in gimplify_stmt (seq_p=0x7fffffffdb60, stmt_p=0x7ffff6edd400) at ../../gcc/gimplify.c:7031 #9 gimplify_statement_list (pre_p=0x7fffffffdb60, expr_p=0x7ffff6ed11c0) at ../../gcc/gimplify.c:2012 #10 gimplify_expr (expr_p=0x7ffff6ed11c0, pre_p=0x7fffffffdb60, post_p=<optimized out>, gimple_test_f=0x728e00 <is_gimple_stmt(tree)>, fallback=<optimized out>) at ../../gcc/gimplify.c:15115 #11 0x00000000007507ad in gimplify_stmt (seq_p=0x7fffffffdb60, stmt_p=0x7ffff6ed11c0) at ../../gcc/gimplify.c:7026 #12 gimplify_body (fndecl=0x7ffff6ed1100, do_parms=<optimized out>) at ../../gcc/gimplify.c:15916 #13 0x00000000007512a1 in gimplify_function_tree (fndecl=0x7ffff6ed1100) at ../../gcc/gimplify.c:16070 #14 0x00000000005bb5c6 in cgraph_node::analyze (this=0x7ffff6da8220) at ../../gcc/cgraphunit.c:670 #15 0x00000000005bd2a8 in analyze_functions (first_time=<optimized out>) at ../../gcc/cgraphunit.c:1234 #16 0x00000000005bf976 in symbol_table::finalize_compilation_unit (this=0x7ffff6d97000) at ../../gcc/cgraphunit.c:2508 #17 0x000000000099fff8 in compile_file () at ../../gcc/toplev.c:479 #18 0x00000000009a13b5 in do_compile (no_backend=<optimized out>) at ../../gcc/toplev.c:2156 #19 0x000000000044bc18 in toplev::main (argv=<optimized out>, argc=<optimized out>, this=<synthetic pointer>) at ../../gcc/toplev.c:2308 #20 main (argc=<optimized out>, argv=<optimized out>) at ../../gcc/main.c:39