https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96548

cnsun at uwaterloo dot ca <cnsun at uwaterloo dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cnsun at uwaterloo dot ca

--- Comment #3 from cnsun at uwaterloo dot ca <cnsun at uwaterloo dot ca> ---
Another one.

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --prefix=/scratch/software/gcc-trunk
--disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20200818 (experimental) [master revision
:65bdb4763:bb1b7f087bdd028000fd8f84e74b20adccc9d5bb] (GCC) 
$ gcc-trunk -O2 small.c
during GIMPLE pass: lim
small.c: In function ‘main’:
small.c:4:5: internal compiler error: in compute_live_loop_exits, at
tree-ssa-loop-manip.c:247
    4 | int main() {
      |     ^~~~
0x74a390 compute_live_loop_exits
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:247
0x74a390 add_exit_phis_var
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:334
0x74a390 add_exit_phis
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:356
0x74a390 rewrite_into_loop_closed_ssa_1(bitmap_head*, unsigned int, int, loop*)
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:678
0x74a390 rewrite_into_loop_closed_ssa_1(bitmap_head*, unsigned int, int, loop*)
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:631
0xfa022b tree_ssa_lim
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-im.c:3126
0xfa022b execute
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-im.c:3173
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.
$ gcc-trunk -O3 small.c
during GIMPLE pass: lim
small.c: In function ‘main’:
small.c:4:5: internal compiler error: in compute_live_loop_exits, at
tree-ssa-loop-manip.c:247
    4 | int main() {
      |     ^~~~
0x74a390 compute_live_loop_exits
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:247
0x74a390 add_exit_phis_var
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:334
0x74a390 add_exit_phis
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:356
0x74a390 rewrite_into_loop_closed_ssa_1(bitmap_head*, unsigned int, int, loop*)
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:678
0x74a390 rewrite_into_loop_closed_ssa_1(bitmap_head*, unsigned int, int, loop*)
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:631
0xfa022b tree_ssa_lim
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-im.c:3126
0xfa022b execute
        /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-im.c:3173
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.
$ cat small.c
short a, b, d, f, g, j;
int c, e;
int *h;
int main() {
  int i = 0;
  for (; i < 3; i++)
  l:
    b = j;
  while (d)
    e++;
  g = f ? a : f;
  *h = g;
  if (c)
    goto l;
}

Reply via email to