https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69938

            Bug ID: 69938
           Summary: [6.0 Regression] FAIL: gcc.dg/tree-ssa/pr69666.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: ubizjak at gmail dot com
  Target Milestone: ---
            Target: alpha-linux-gnu

This bug can be triggered with a crosscompiler from x86_64-linux-gnu to
alpha-linux-gnu:

~/gcc-build-alpha/gcc/cc1 -O2 -fpreprocessed -quiet pr69666.c 
pr69666.c: In function ‘fun2’:
pr69666.c:16:1: internal compiler error: Segmentation fault
 }
 ^
0xb0cc7f crash_signal
        ../../git/gcc/gcc/toplev.c:335
0x839753 is_gimple_val(tree_node*)
        ../../git/gcc/gcc/gimple-expr.c:780
0xb4b0d8 verify_gimple_assign_unary
        ../../git/gcc/gcc/tree-cfg.c:3539
0xb58e94 verify_gimple_assign
        ../../git/gcc/gcc/tree-cfg.c:4333
0xb5b506 verify_gimple_stmt
        ../../git/gcc/gcc/tree-cfg.c:4590
0xb5bb5d verify_gimple_in_cfg(function*, bool)
        ../../git/gcc/gcc/tree-cfg.c:5052
0xa39d0e execute_function_todo
        ../../git/gcc/gcc/passes.c:1958
0xa3b54e execute_todo
        ../../git/gcc/gcc/passes.c:2010
Please submit a full bug report,

Starting program: /home/uros/gcc-build-alpha/gcc/cc1 -O2 -fpreprocessed -quiet
pr69666.c
warning: no loadable sections found in added symbol-file system-supplied DSO at
0x2aaaaaaab000

gdb session:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000839753 in is_gimple_val (t=0x2aaaae7b2558) at
../../git/gcc/gcc/gimple-expr.c:780
780       if (is_gimple_variable (t)
(gdb) bt
#0  0x0000000000839753 in is_gimple_val (t=0x2aaaae7b2558) at
../../git/gcc/gcc/gimple-expr.c:780
#1  0x0000000000b4b0d9 in verify_gimple_assign_unary (stmt=<optimized out>) at
../../git/gcc/gcc/tree-cfg.c:3539
#2  0x0000000000b58e95 in verify_gimple_assign (stmt=0x2aaaae7b2558) at
../../git/gcc/gcc/tree-cfg.c:4333
#3  0x0000000000b5b507 in verify_gimple_stmt (stmt=0x2aaaae7b2558) at
../../git/gcc/gcc/tree-cfg.c:4590
#4  0x0000000000b5bb5e in verify_gimple_in_cfg (fn=0x2aaaae88d1f8,
verify_nothrow=true) at ../../git/gcc/gcc/tree-cfg.c:5052
#5  0x0000000000a39d0f in execute_function_todo (fn=0x2aaaae88d1f8,
data=<optimized out>) at ../../git/gcc/gcc/passes.c:1958
#6  0x0000000000a3b54f in execute_todo (flags=2112) at
../../git/gcc/gcc/passes.c:2010
...
(gdb) list
775
776     bool
777     is_gimple_val (tree t)
778     {
779       /* Make loads from volatiles and memory vars explicit.  */
780       if (is_gimple_variable (t)
781           && is_gimple_reg_type (TREE_TYPE (t))
782           && !is_gimple_reg (t))
783         return false;
784
(gdb) p debug_generic_expr (t)
_4
$1 = void

Reply via email to