public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "zhendong.su at inf dot ethz.ch" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114998] New: ICE on valid code at -O3 with "-fno-inline -fno-tree-dce -fno-ipa-cp" on x86_64-linux-gnu: Segmentation fault Date: Wed, 08 May 2024 21:38:44 +0000 [thread overview] Message-ID: <bug-114998-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114998 Bug ID: 114998 Summary: ICE on valid code at -O3 with "-fno-inline -fno-tree-dce -fno-ipa-cp" on x86_64-linux-gnu: Segmentation fault Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zhendong.su at inf dot ethz.ch Target Milestone: --- It reproduces for 14.1 and trunk, but not 13.2 and earlier. Compiler Explorer: https://godbolt.org/z/7xjf7EWGs [865] % gcctk -v Using built-in specs. COLLECT_GCC=gcctk COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --enable-checking=yes --prefix=/local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.0 20240507 (experimental) (GCC) [866] % [866] % gcctk -O3 -fno-inline -fno-tree-dce -fno-ipa-cp small.c during GIMPLE pass: ldist small.c: In function ‘main’: small.c:4:5: internal compiler error: Segmentation fault 4 | int main() { | ^~~~ 0x1175773 crash_signal ../../gcc-trunk/gcc/toplev.cc:319 0x7f4aef65008f ??? /build/glibc-e2p3jK/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x140bb04 vec<tree_node*, va_gc, vl_embed>::quick_push(tree_node* const&) ../../gcc-trunk/gcc/vec.h:1043 0x140bb04 tree_node** vec_safe_push<tree_node*, va_gc>(vec<tree_node*, va_gc, vl_embed>*&, tree_node* const&) ../../gcc-trunk/gcc/vec.h:835 0x140bb04 release_ssa_name_fn(function*, tree_node*) ../../gcc-trunk/gcc/tree-ssanames.cc:619 0x1249bba release_ssa_name(tree_node*) ../../gcc-trunk/gcc/tree-ssanames.h:124 0x1249bba remove_phi_node(gimple_stmt_iterator*, bool) ../../gcc-trunk/gcc/tree-phinodes.cc:457 0x11bc34e gimple_merge_blocks ../../gcc-trunk/gcc/tree-cfg.cc:2175 0xbf0b63 merge_blocks(basic_block_def*, basic_block_def*) ../../gcc-trunk/gcc/cfghooks.cc:820 0x11cbc29 cleanup_tree_cfg_bb ../../gcc-trunk/gcc/tree-cfgcleanup.cc:791 0x11cd564 cleanup_tree_cfg_noloop ../../gcc-trunk/gcc/tree-cfgcleanup.cc:1122 0x11cd564 cleanup_tree_cfg(unsigned int) ../../gcc-trunk/gcc/tree-cfgcleanup.cc:1205 0x102c29c execute_function_todo ../../gcc-trunk/gcc/passes.cc:2058 0x102cb4e execute_todo ../../gcc-trunk/gcc/passes.cc:2143 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. [867] % [867] % cat small.c short a, d; int b, c, f, g, h, i, j[2], o; void s(char r) {} int main() { int l, m, k, n; if (b) { char p; for (; p >= 0; p--) { int e[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0}; if (j[p]) { int q[1]; i = o; o = q[h]; if (g) n = d; m = 4; for (; m; m--) { if (l) k |= c; if (a) break; } } s(n); f |= b; } } return 0; }
next reply other threads:[~2024-05-08 21:38 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-05-08 21:38 zhendong.su at inf dot ethz.ch [this message] 2024-05-09 8:05 ` [Bug tree-optimization/114998] [14/15 Regression] ICE on valid code at -O3 with "-fno-tree-dce" " pinskia at gcc dot gnu.org 2024-05-09 10:09 ` [Bug tree-optimization/114998] [14/15 Regression] ICE on valid code at -O3 with "-fno-tree-dce" on x86_64-linux-gnu: Segmentation fault since r14-9767 jakub at gcc dot gnu.org 2024-05-10 6:49 ` rguenth at gcc dot gnu.org 2024-05-10 11:14 ` rguenth at gcc dot gnu.org 2024-05-10 13:44 ` cvs-commit at gcc dot gnu.org 2024-05-10 13:44 ` [Bug tree-optimization/114998] [14 " rguenth at gcc dot gnu.org 2024-05-17 10:39 ` cvs-commit at gcc dot gnu.org 2024-05-17 10:39 ` rguenth 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-114998-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).