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

            Bug ID: 89677
           Summary: internal compiler error: in wide_int_to_tree_1, at
                    tree.c:1549
           Product: gcc
           Version: 8.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: konstantin.vladimirov at gmail dot com
  Target Milestone: ---

Reproduction after creduce:

---
a, b, d;
unsigned c;
float e, f, g;
h() {
  float *i = &g;
  for (; c < 10; c += 3)
    for (; d; d += 3) {
      a = *i;
      g = f + 0;
      f = b + *i + (b - e + 305219) + -b + 3;
    }
}
---

Compiler information:

---
> gcc -v
Reading specs from
/apps/gcc/8.1.0/.bin/../lib64/gcc/x86_64-suse-linux/8.1.0/specs
COLLECT_GCC=/apps/gcc/8.1.0/.bin/gcc
COLLECT_LTO_WRAPPER=/apps/gcc/8.1.0/.bin/../libexec/gcc/x86_64-suse-linux/8.1.0/lto-wrapper
Target: x86_64-suse-linux
Configured with: ./configure --prefix=/apps/gcc/8.1.0
--libdir=/apps/gcc/8.1.0/lib64 --libexecdir=/apps/gcc/8.1.0/libexec
--bindir=/apps/gcc/8.1.0/bin --with-isl=/apps/gcc/8.1.0
--with-libelf=/apps/gcc/8.1.0 --with-mpfr=/apps/gcc/8.1.0
--with-gmp=/apps/gcc/8.1.0 --with-mpc=/apps/gcc/8.1.0
--disable-gnu-unique-object --enable-gold=yes --enable-lto
--enable-languages=c,c++,objc,fortran --build=x86_64-suse-linux
--host=x86_64-suse-linux --target=x86_64-suse-linux --enable-libotm
--disable-multilib --disable-bootstrap --disable-libstdcxx-pch
Thread model: posix
gcc version 8.1.0 (GCC)
---

Compile with:

> gcc -w -O1 minimize.c -S

You will see:

---
during GIMPLE pass: cunroll
minimize.c: In function ‘h’:
minimize.c:4:1: internal compiler error: in wide_int_to_tree_1, at tree.c:1549
 h() {
 ^
0x620ba8 ???
        ../sysdeps/x86_64/elf/start.S:113
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.
---

Reply via email to