[Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes many crashes in the testsuite

qinzhao at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Sep 12 03:33:33 GMT 2021


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

--- Comment #5 from qinzhao at gcc dot gnu.org ---
with the latest GCC, for all the 42647 c files under gcc/testsuite, with -c -g
-O2 -Wall -ftrivial-auto-var-init=zero, there is only one failure:
 /home/opc/Install/latest/bin/gcc -c -g -ftrivial-auto-var-init=zero -O2 -Wall
./gcc.dg/graphite/pr82421.c

during RTL pass: expand
./gcc.dg/graphite/pr82421.c: In function ‘qy’:
./gcc.dg/graphite/pr82421.c:10:7: internal compiler error: in
expand_expr_addr_expr_1, at expr.c:8432
   10 |   int fb[tw];
      |       ^~
0x6b3494 expand_expr_addr_expr_1
        ../../latest-gcc/gcc/expr.c:8432
0xaecd9d expand_expr_addr_expr
        ../../latest-gcc/gcc/expr.c:8545
0xaecd9d expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../latest-gcc/gcc/expr.c:11761
0xaeac65 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
        ../../latest-gcc/gcc/expr.c:8733
0xaeac65 expand_expr
        ../../latest-gcc/gcc/expr.h:301
0xaeac65 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../latest-gcc/gcc/expr.c:9053
0xaeb732 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../latest-gcc/gcc/expr.c:11818
0x991030 expand_expr
        ../../latest-gcc/gcc/expr.h:301
0x991030 get_memory_rtx
        ../../latest-gcc/gcc/builtins.c:1369
0x9989f5 expand_builtin_memset_args
        ../../latest-gcc/gcc/builtins.c:4101
0x9c4a67 expand_call_stmt
        ../../latest-gcc/gcc/cfgexpand.c:2749
0x9c4a67 expand_gimple_stmt_1
        ../../latest-gcc/gcc/cfgexpand.c:3876
0x9c4a67 expand_gimple_stmt
        ../../latest-gcc/gcc/cfgexpand.c:4040
0x9cac8b expand_gimple_basic_block
        ../../latest-gcc/gcc/cfgexpand.c:6082
0x9cc98f execute
        ../../latest-gcc/gcc/cfgexpand.c:6808
Please submit a full bug report,

delete -ftrivial-auto-var-init=zero, the failure is gone.

I will study this one to fix it.


More information about the Gcc-bugs mailing list