public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/111917] New: ICE in as_a, at is-a.h:255 since GCC-8
@ 2023-10-22  9:20 shaohua.li at inf dot ethz.ch
  2023-10-22 11:05 ` [Bug tree-optimization/111917] [11/12/13/14 Regression] " tkoenig at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: shaohua.li at inf dot ethz.ch @ 2023-10-22  9:20 UTC (permalink / raw)
  To: gcc-bugs

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.
$

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-12-15 12:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-22  9:20 [Bug tree-optimization/111917] New: ICE in as_a, at is-a.h:255 since GCC-8 shaohua.li at inf dot ethz.ch
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

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).