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

            Bug ID: 86705
           Summary: [7/8/9 Regression] pr45678-2.c ICE with msp430-elf
                    -mlarge
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jozef.l at mittosystems dot com
  Target Milestone: ---

./build/gcc/xgcc -B./build/gcc/ -mlarge -S
gcc/testsuite/gcc.dg/torture/pr45678-2.c
during RTL pass: expand
gcc/testsuite/gcc.dg/torture/pr45678-2.c: In function 'main':
gcc/testsuite/gcc.dg/torture/pr45678-2.c:12:3: internal compiler error: in
emit_block_move_hints, at expr.c:1608
   __builtin_memcpy (&e, &d, sizeof (d));
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x812fa1 emit_block_move_hints(rtx_def*, rtx_def*, rtx_def*, block_op_methods,
unsigned int, long, unsigned long, unsigned long, unsigned long)
        ../../gcc/expr.c:1608
0x6b706b expand_builtin_memory_copy_args
        ../../gcc/builtins.c:3700
0x6c3075 expand_builtin_mempcpy_args
        ../../gcc/builtins.c:3726
0x6c3075 expand_builtin_mempcpy
        ../../gcc/builtins.c:3623
0x6c3075 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
        ../../gcc/builtins.c:7286
0x808c19 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/expr.c:10911
0x6e82e5 expand_expr
        ../../gcc/expr.h:279
0x6e82e5 expand_call_stmt
        ../../gcc/cfgexpand.c:2687
0x6e82e5 expand_gimple_stmt_1
        ../../gcc/cfgexpand.c:3575
0x6e8933 expand_gimple_stmt
        ../../gcc/cfgexpand.c:3734
0x6e9a6b expand_gimple_basic_block
        ../../gcc/cfgexpand.c:5769
0x6ef3c6 execute
        ../../gcc/cfgexpand.c:6372

Works with current gcc-6-branch, ICE observed with gcc-7-branch, gcc-8-branch
and trunk.

Reply via email to