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

            Bug ID: 69172
           Summary: [6 Regression] ICE in make_ssa_name_fn, at
                    tree-ssanames.c:266
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

r232077, powerpc64le-linux-gnu, works with -O2

reduced test case:

int a;
__inline __attribute__((__always_inline__)) void *mempcpy(void *p1, void *p2,
                                                          long p3) {
  return __builtin___mempcpy_chk(p1, p2, p3, 0);
}

void sd_inode_set_vid() {
  int *b = &a, *c = &a;
  mempcpy(c, b, sizeof(int));
}

$ gcc -c -g -O3 sd_inode.i
sd_inode.i: In function 'sd_inode_set_vid':
sd_inode.i:10:1: internal compiler error: in make_ssa_name_fn, at
tree-ssanames.c:266
 }
 ^

0x108af2bf make_ssa_name_fn(function*, tree_node*, gimple*)
        ../../src/gcc/tree-ssanames.c:263
0x1043d077 make_ssa_name
        ../../src/gcc/tree-ssanames.h:110
0x1043d077 gimple_build(gimple**, unsigned int, tree_code, tree_node*,
tree_node*)
        ../../src/gcc/gimple-fold.c:5985
0x10443e27 gimple_fold_builtin_memory_chk
        ../../src/gcc/gimple-fold.c:1713
0x10443e27 gimple_fold_builtin
        ../../src/gcc/gimple-fold.c:2836
0x104451f7 gimple_fold_call
        ../../src/gcc/gimple-fold.c:3112
0x104451f7 fold_stmt_1
        ../../src/gcc/gimple-fold.c:3716
0x1084270f
substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)
        ../../src/gcc/tree-ssa-propagate.c:1232
0x10cbb2bf dom_walker::walk(basic_block_def*)
        ../../src/gcc/domwalk.c:265
0x10841bd7 substitute_and_fold(tree_node* (*)(tree_node*), bool
(*)(gimple_stmt_iterator*), bool)
        ../../src/gcc/tree-ssa-propagate.c:1332
0x107b2373 ccp_finalize
        ../../src/gcc/tree-ssa-ccp.c:947
0x107b2373 do_ssa_ccp
        ../../src/gcc/tree-ssa-ccp.c:2409
0x107b2373 execute
        ../../src/gcc/tree-ssa-ccp.c:2452
Please submit a full bug report,
with preprocessed source if appropriate.

Reply via email to