https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65774
Bug ID: 65774 Summary: [6.0 regression] FAIL: gcc.dg/builtin-arith-overflow-1.c (internal compiler error) Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sch...@linux-m68k.org CC: rguenth at gcc dot gnu.org Target: ia64-*-* This was broken by r222085. (gdb) r -O ../../gcc/testsuite/gcc.dg/builtin-arith-overflow-1.c Starting program: /usr/local/gcc/test/Build/gcc/cc1 -O ../../gcc/testsuite/gcc.dg/builtin-arith-overflow-1.c fn1 fn2 fn3 fn4 fn5 fn6 fn7 main Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes> <free-inline-summary> <whole-program> <profile_estimate> <inline> <pure-const> <static-var> <single-use> <comdats>Assembling functions: fn1 Breakpoint 1, fancy_abort (file=0x4000000001ceb938 "../../gcc/tree.c", line=1465, function=0x4000000001ceb7a0 <wide_int_to_tree(tree_node*, generic_wide_int<wide_int_ref_storage<false> > const&)::__FUNCTION__> "wide_int_to_tree") at ../../gcc/diagnostic.c:1291 1291 internal_error ("in %s, at %s:%d", function, trim_filename (file), line); (gdb) up #1 0x40000000015778f0 in wide_int_to_tree (type=0x2000000000da1c38, pcst=...) at ../../gcc/tree.c:1465 1465 gcc_unreachable (); (gdb) p type $1 = (tree_node *) 0x2000000000da1c38 (gdb) pt warning: Expression is not an assignment (and might have no effect) <complex_type 0x2000000000da1c38 complex int type <integer_type 0x2000000000da0690 int sizes-gimplified public SI size <integer_cst 0x2000000000d62580 constant 32> unit size <integer_cst 0x2000000000d62598 constant 4> align 32 symtab 0 alias set -1 canonical type 0x2000000000da0690 precision 32 min <integer_cst 0x2000000000d62538 -2147483648> max <integer_cst 0x2000000000d62550 2147483647> pointer_to_this <pointer_type 0x2000000000da17a0>> CSI size <integer_cst 0x2000000000d62340 type <integer_type 0x2000000000da0150 bitsizetype> constant 64> unit size <integer_cst 0x2000000000d62358 type <integer_type 0x2000000000da00a8 sizetype> constant 8> align 32 symtab 0 alias set -1 canonical type 0x2000000000da1c38> (gdb) up #2 0x400000000118d900 in bit_value_binop (code=COMPLEX_EXPR, type=0x2000000000da1c38, rhs1=<optimized out>, rhs2=<optimized out>) at ../../gcc/tree-ssa-ccp.c:1558 1558 val.value = wide_int_to_tree (type, value); (gdb) bt #0 fancy_abort (file=0x4000000001ceb938 "../../gcc/tree.c", line=1465, function=0x4000000001ceb7a0 <wide_int_to_tree(tree_node*, generic_wide_int<wide_int_ref_storage<false> > const&)::__FUNCTION__> "wide_int_to_tree") at ../../gcc/diagnostic.c:1291 #1 0x40000000015778f0 in wide_int_to_tree (type=0x2000000000da1c38, pcst=...) at ../../gcc/tree.c:1465 #2 0x400000000118d900 in bit_value_binop (code=COMPLEX_EXPR, type=0x2000000000da1c38, rhs1=<optimized out>, rhs2=<optimized out>) at ../../gcc/tree-ssa-ccp.c:1558 #3 0x4000000001190750 in evaluate_stmt (stmt=0x2000000000f509f8) at ../../gcc/tree-ssa-ccp.c:1790 #4 0x4000000001193870 in visit_assignment (stmt=0x2000000000f509f8, output_p=0x600ffffffffef038) at ../../gcc/tree-ssa-ccp.c:2262 #5 0x4000000001194690 in ccp_visit_stmt (stmt=0x2000000000f509f8, taken_edge_p=0x600ffffffffef030, output_p=0x600ffffffffef038) at ../../gcc/tree-ssa-ccp.c:2375 #6 0x4000000001302050 in simulate_stmt (stmt=0x2000000000f509f8) at ../../gcc/tree-ssa-propagate.c:348 #7 0x4000000001303610 in simulate_block (block=<optimized out>) at ../../gcc/tree-ssa-propagate.c:471 #8 ssa_propagate (visit_stmt=<optimized out>, visit_phi=<optimized out>) at ../../gcc/tree-ssa-propagate.c:888 #9 0x4000000001189030 in do_ssa_ccp () at ../../gcc/tree-ssa-ccp.c:2386 #10 (anonymous namespace)::pass_ccp::execute (this=0x2000000000f000d0) at ../../gcc/tree-ssa-ccp.c:2419 #11 0x4000000000ce2350 in execute_one_pass (pass=0x60000000002ba4e0) at ../../gcc/passes.c:2330 #12 0x4000000000ce2b00 in execute_pass_list_1 (pass=0x60000000002ba4e0) at ../../gcc/passes.c:2383 #13 0x4000000000ce2b50 in execute_pass_list_1 (pass=0x60000000002ba360) at ../../gcc/passes.c:2384 #14 0x4000000000ce2c20 in execute_pass_list (fn=<optimized out>, pass=0x60000000002ba2a0) at ../../gcc/passes.c:2394 #15 0x400000000050be50 in cgraph_node::expand (this=0x2000000000d80350) at ../../gcc/cgraphunit.c:1895 #16 0x400000000050f9a0 in expand_all_functions () at ../../gcc/cgraphunit.c:2031 #17 0x4000000000510a80 in symbol_table::compile (this=0x2000000000da0000) at ../../gcc/cgraphunit.c:2384 #18 0x4000000000512a00 in symbol_table::finalize_compilation_unit ( this=0x2000000000da0000) at ../../gcc/cgraphunit.c:2461 #19 0x4000000000160230 in c_write_global_declarations () at ../../gcc/c/c-decl.c:10797 #20 0x4000000000ec5040 in compile_file () at ../../gcc/toplev.c:608 #21 0x4000000000ec96a0 in do_compile () at ../../gcc/toplev.c:2076 #22 toplev::main (this=<optimized out>, argc=<error reading variable: Cannot access memory at address 0x35>, argv=0x600ffffffffef744) at ../../gcc/toplev.c:2174 #23 0x4000000001aeb9f0 in main (argc=3, argv=0x600ffffffffef3e8) at ../../gcc/main.c:39