From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EB96B3858D28; Mon, 4 Oct 2021 17:10:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB96B3858D28 From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102587] ICE in tree_to_uhwi, at tree.h:4668 Date: Mon, 04 Oct 2021 17:10:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization 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: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: Mon, 04 Oct 2021 17:10:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102587 qinzhao at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |qinzhao at gcc dot gnu.org --- Comment #6 from qinzhao at gcc dot gnu.org --- with the committed patch, this testing case still failed but in a later rtl stage: qinzhao@gcc116:~/Bugs/102587$ sh t /home/qinzhao/Install/latest/bin/gcc -ftrivial-auto-var-init=3Dzero t.c -S during RTL pass: pro_and_epilogue t.c: In function =E2=80=98foo=E2=80=99: t.c:1:33: internal compiler error: Segmentation fault 1 | void foo() { __SVFloat64_t f64; } | ^ 0xe18fab crash_signal ../../latest_gcc_git/gcc/toplev.c:331 0x122ed20 aarch64_add_offset ../../latest_gcc_git/gcc/config/aarch64/aarch64.c:5042 0x123044f aarch64_sub_sp ../../latest_gcc_git/gcc/config/aarch64/aarch64.c:5225 0x123044f aarch64_allocate_and_probe_stack_space ../../latest_gcc_git/gcc/config/aarch64/aarch64.c:8502 0x1230cfb aarch64_expand_prologue() ../../latest_gcc_git/gcc/config/aarch64/aarch64.c:8841 0x169fb63 gen_prologue() ../../latest_gcc_git/gcc/config/aarch64/aarch64.md:853 0x1226d17 target_gen_prologue ../../latest_gcc_git/gcc/config/aarch64/aarch64.md:7448 0xa9495f make_prologue_seq ../../latest_gcc_git/gcc/function.c:5825 0xa94b8b thread_prologue_and_epilogue_insns() ../../latest_gcc_git/gcc/function.c:6043 0xa95293 rest_of_handle_thread_prologue_and_epilogue ../../latest_gcc_git/gcc/function.c:6534 0xa95293 execute ../../latest_gcc_git/gcc/function.c:6610 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. I think the reason is that the call to .DEFERRED_INIT (POLY_INI_CST[16,16],= 2, 0) was not expanded at all during RTL expanding phase.=20 I feel the committed patch is not correct: 1. if we want to avoid auto initializing such auto variable, we should not = add call to .DEFERRED_INIT in gimplification phase at all.=20 2. not sure what does "POLY_INT_CST[16,16]" mean? is it a constant?=