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

            Bug ID: 115009
           Summary: [15 regression] AVR: ICE in alloc, at
                    value-range-storage.cc:598
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manuel.lauss at googlemail dot com
  Target Milestone: ---

Created attachment 58146
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58146&action=edit
unreduced testcase

Building avr-libc-2.1.0/avr/lib/avr2/strftime.c with latest gcc-15 snapshot:

avr-gcc -c strftime-avr.i -Os
during GIMPLE pass: evrp
../../../libc/time/strftime.c: In function ‘pgm_copystring’:
../../../libc/time/strftime.c:322:1: internal compiler error: in alloc, at
value-range-storage.cc:598
  322 | }
      | ^

-Os is essential to trigger it.

# gcc -v
Reading specs from /usr/lib/gcc/avr/15/device-specs/specs-avr2
COLLECT_GCC=avr-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/avr/15/lto-wrapper
Target: avr
Configured with:
/tmp-ram/portage/cross-avr/gcc-15.0.9999/work/gcc-15.0.9999/configure
--host=x86_64-pc-linux-gnu --target=avr --build=x86_64-pc-linux-gnu
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/avr/gcc-bin/15
--includedir=/usr/lib/gcc/avr/15/include --datadir=/usr/share/gcc-data/avr/15
--mandir=/usr/share/gcc-data/avr/15/man
--infodir=/usr/share/gcc-data/avr/15/info
--with-gxx-include-dir=/usr/lib/gcc/avr/15/include/g++-v15
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/avr/15/python --enable-languages=c
--enable-obsolete --enable-secureplt --disable-werror --with-system-zlib
--enable-nls --without-included-gettext --disable-libunwind-exceptions
--enable-checking=yes,extra --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 15.0.9999 p, commit
f525de00d17a460aebb382c0d34529ddc383fb9d' --with-gcc-major-version-only
--enable-lto --disable-libstdcxx-pch --enable-poison-system-directories
--enable-shared --disable-threads --disable-gcov --disable-bootstrap
--enable-multilib --disable-fixed-point --disable-libgomp --disable-libssp
--disable-libada --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --without-isl
--disable-libsanitizer --disable-default-pie --enable-host-pie
--disable-host-bind-now --disable-default-ssp --disable-fixincludes
Thread model: single
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20240509 (experimental)
2790195500ec523cad9c7292816540e2fc19f456

Reply via email to