public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "qinzhao at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview] Message-ID: <bug-102587-4-CbeX0UaBqu@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-102587-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102587 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=zero t.c -S during RTL pass: pro_and_epilogue t.c: In function ‘foo’: 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 <https://gcc.gnu.org/bugs/> 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. 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. 2. not sure what does "POLY_INT_CST[16,16]" mean? is it a constant?
next prev parent reply other threads:[~2021-10-04 17:10 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-04 7:33 [Bug tree-optimization/102587] New: " marxin at gcc dot gnu.org 2021-10-04 7:34 ` [Bug tree-optimization/102587] " marxin at gcc dot gnu.org 2021-10-04 8:01 ` rguenth at gcc dot gnu.org 2021-10-04 8:57 ` cvs-commit at gcc dot gnu.org 2021-10-04 9:05 ` rguenth at gcc dot gnu.org 2021-10-04 9:05 ` rguenth at gcc dot gnu.org 2021-10-04 12:11 ` rsandifo at gcc dot gnu.org 2021-10-04 17:10 ` qinzhao at gcc dot gnu.org [this message] 2021-10-05 8:36 ` cvs-commit at gcc dot gnu.org 2021-10-05 8:48 ` rguenth at gcc dot gnu.org 2021-10-14 7:27 ` pinskia at gcc dot gnu.org 2022-05-06 8:31 ` jakub at gcc dot gnu.org 2023-05-08 12:22 ` rguenth at gcc dot gnu.org 2023-08-10 8:58 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-102587-4-CbeX0UaBqu@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).