public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "slyfox at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/112321] New: [14 Regression] ICE during GIMPLE pass: dse: : Segmentation fault Date: Tue, 31 Oct 2023 19:27:07 +0000 [thread overview] Message-ID: <bug-112321-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112321 Bug ID: 112321 Summary: [14 Regression] ICE during GIMPLE pass: dse: : Segmentation fault Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Noticed ICE on today's gcc-master at r14-5043-g2b19c387696b0d. There it fails to build binutils' gold. Extracted sample: // $ cat bug.cc void writeval(unsigned char *, long); unsigned do_write_count; void do_write() { unsigned char *pov; int limit(do_write_count > 8 ? true : do_write_count); for (int i = 0; i < limit; ++i) pov += 2; int ext_cnt = do_write_count - 8; for (; 0 < ext_cnt;) { writeval(pov, 0); pov += 4; ext_cnt--; } } Crashing: $ gcc/xg++ -B./gcc -g -O1 -c bug.cc -o a.o during GIMPLE pass: dse bug.cc: In function ‘void do_write()’: bug.cc:3:6: internal compiler error: Segmentation fault 3 | void do_write() { | ^~~~~~~~ 0x8ebef5a crash_signal gcc/toplev.cc:315 0x8b42800 phi_nodes_ptr(basic_block_def*) gcc/gimple.h:4700 0x8b42800 gsi_start_phis(basic_block_def*) gcc/gimple-iterator.cc:935 0x8b42800 gsi_for_stmt(gimple*) gcc/gimple-iterator.cc:620 0x9121a03 insert_debug_temp_for_var_def(gimple_stmt_iterator*, tree_node*) gcc/tree-ssa.cc:471 0x9121f2e insert_debug_temps_for_defs(gimple_stmt_iterator*) gcc/tree-ssa.cc:506 0x8b42690 gsi_remove(gimple_stmt_iterator*, bool) gcc/gimple-iterator.cc:567 0x8ffe08b execute gcc/tree-ssa-dse.cc:1685 $ gcc/xg++ -Bgcc -v Reading specs from ./gcc/specs COLLECT_GCC=./gcc/xg++ COLLECT_LTO_WRAPPER=./gcc/lto-wrapper Target: i686-pc-linux-gnu Configured with: ../gcc/configure --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20231031 (experimental) (GCC)
next reply other threads:[~2023-10-31 19:27 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-10-31 19:27 slyfox at gcc dot gnu.org [this message] 2023-10-31 19:46 ` [Bug middle-end/112321] " 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-112321-4@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).