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

            Bug ID: 129210
           Summary: ICE: Segmentation fault
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mario-baumann at web dot de
  Target Milestone: ---

Created attachment 66359
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66359&action=edit
delta reduced test file

Hi All,
The following code throws an ICE segfault with -O2 or higher and works fine
with -O1 or -O0.

---
> /opt/Gcc/17.0.0/bin/gfortran -m64 -ffixed-line-length-132 -O2 -c foo.F
during GIMPLE pass: vect
foo.F:1:7:

    1 |       SUBROUTINE FOO (N, F1, X1, Y1, IA, T1)
      |       ^~~~~~~~~~~~~~
internal compiler error: Segmentation fault: 11
/opt/Gcc/17.0.0/libexec/gcc/x86_64-apple-darwin21/17.0.0/f951 foo.F
-ffixed-form -cpp=/Users/mario/tmp/ccPFhhQY.fi -quiet -D__DYNAMIC__ foo.F -fPIC
-quiet -dumpbase foo.F -dumpbase-ext .F -m64 -mmacosx-version-min=12.0.0
-mtune=core2 -march=core2 -O2 -ffixed-line-length-132 -fintrinsic-modules-path
/opt/Gcc/17.0.0/lib/gcc/x86_64-apple-darwin21/17.0.0/finclude -o
/Users/mario/tmp/ccvNcG4e.s

---
> /opt/Gcc/17.0.0/bin/gfortran -v
Using built-in specs.
COLLECT_GCC=/opt/Gcc/17.0.0/bin/gfortran
COLLECT_LTO_WRAPPER=/opt/Gcc/17.0.0/libexec/gcc/x86_64-apple-darwin21/17.0.0/lto-wrapper
Target: x86_64-apple-darwin21
Configured with: /opt/Gcc/17.0.0/.src/configure --prefix=/opt/Gcc/17.0.0
--build=x86_64-apple-darwin21 --enable-languages=c,c++,fortran --enable-lto
--enable-stage1-checking --enable-libstdcxx-time --disable-nls
--disable-libquadmath --disable-libquadmath-support
--with-sysroot=/opt/Gcc/17.0.0/.sys --with-ld=/opt/local/bin/ld
--with-ar=/opt/local/bin/ar --with-as=/opt/local/bin/as --with-system-zlib
--with-libiconv-type=static --with-pkgversion=git-revision-235305
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20261201 (experimental) (git-revision-235305)

Reply via email to