From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 513D43858D29; Sun, 12 Sep 2021 03:33:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 513D43858D29 From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes many crashes in the testsuite Date: Sun, 12 Sep 2021 03:33:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: qinzhao at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2021 03:33:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102285 --- 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=3Dzero, there is only one failure: /home/opc/Install/latest/bin/gcc -c -g -ftrivial-auto-var-init=3Dzero -O2 = -Wall ./gcc.dg/graphite/pr82421.c during RTL pass: expand ./gcc.dg/graphite/pr82421.c: In function =E2=80=98qy=E2=80=99: ./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_modifi= er, 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=3Dzero, the failure is gone. I will study this one to fix it.=