public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "shaohua.li at inf dot ethz.ch" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111917] New: ICE in as_a, at is-a.h:255 since GCC-8 Date: Sun, 22 Oct 2023 09:20:00 +0000 [thread overview] Message-ID: <bug-111917-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111917 Bug ID: 111917 Summary: ICE in as_a, at is-a.h:255 since GCC-8 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: shaohua.li at inf dot ethz.ch Target Milestone: --- gcc at -O3 crashed. I didn't bisect this case because it affected even gcc-8. Compiler explorer: https://godbolt.org/z/7Mz9G6Kro $ cat a.c long a() { long b, c; for (; b; b++) c <<= 1; return c; } static int d() { e: f: for (; a();) ; goto f; return 0; } int main() { d(); } $ $ gcc -O3 a.c during GIMPLE pass: unswitch a.c: In function 'int main()': a,c:15:5: internal compiler error: in as_a, at is-a.h:255 15 | int main() { d(); } | ^~~~ 0x26259de internal_error(char const*, ...) ???:0 0xaf830e fancy_abort(char const*, int, char const*) ???:0 0x15b8af2 number_of_iterations_exit(loop*, edge_def*, tree_niter_desc*, bool, bool, basic_block_def**) ???:0 0x14fca28 number_of_latch_executions(loop*) ???:0 0x15ba69d estimate_numbers_of_iterations(loop*) ???:0 0x15bc037 estimated_loop_iterations(loop*, generic_wide_int<widest_int_storage<131072> >*) ???:0 0x15bc067 estimated_loop_iterations_int(loop*) ???:0 0x15cf559 tree_ssa_unswitch_loops(function*) ???:0 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. $
next reply other threads:[~2023-10-22 9:20 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-10-22 9:20 shaohua.li at inf dot ethz.ch [this message] 2023-10-22 11:05 ` [Bug tree-optimization/111917] [11/12/13/14 Regression] " tkoenig at gcc dot gnu.org 2023-10-22 16:30 ` pinskia at gcc dot gnu.org 2023-10-22 23:16 ` [Bug tree-optimization/111917] [11/12/13/14 Regression] ICE in as_a, at is-a.h:255 since GCC-7 pinskia at gcc dot gnu.org 2023-10-23 6:08 ` tkoenig at gcc dot gnu.org 2023-10-23 6:12 ` tkoenig at gcc dot gnu.org 2023-10-23 9:21 ` rguenth at gcc dot gnu.org 2023-10-23 10:35 ` cvs-commit at gcc dot gnu.org 2023-10-23 10:35 ` [Bug tree-optimization/111917] [11/12/13 " rguenth at gcc dot gnu.org 2023-11-10 14:24 ` cvs-commit at gcc dot gnu.org 2023-11-27 13:10 ` [Bug tree-optimization/111917] [11/12 " cvs-commit at gcc dot gnu.org 2023-12-15 12:18 ` [Bug tree-optimization/111917] [11 " cvs-commit at gcc dot gnu.org 2023-12-15 12:23 ` 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-111917-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).