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

            Bug ID: 122131
           Summary: internal compiler error  on powerpc during GIMPLE
                    pass: vect
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: csfore at posteo dot net
  Target Milestone: ---
            Target: powerpc

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

Notes:
- -O2 -maltivec are required
- Discovered on hardware, reduced through cross compiling

```
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-unknown-linux-gnu/16/lto-wrapper
Target: powerpc-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-16.0.0_p20250928/work/gcc-16-20250928/configure
--host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu
--prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/16
--includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/16/include
--datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/16
--mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/16/man
--infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/16/info
--with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/16/include/g++-v16
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/powerpc-unknown-linux-gnu/16/python
--enable-languages=c,c++,fortran --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
16.0.0_p20250928 p14' --with-gcc-major-version-only --enable-libstdcxx-time
--enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --disable-multilib
--disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp
--disable-libada --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --without-isl
--enable-default-pie --enable-host-pie --enable-host-bind-now
--enable-default-ssp --disable-fixincludes
--with-gxx-libcxx-include-dir=/usr/include/c++/v1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20250928 (experimental) (Gentoo 16.0.0_p20250928 p14)
```

```
$ powerpc-unknown-linux-gnu-gcc -O2 -maltivec -c ls.i
during GIMPLE pass: vect
ls.i: In function ‘sort_filesquote_name_buf’:
ls.i:4:6: internal compiler error: Segmentation fault
    4 | void sort_filesquote_name_buf(char* p) {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.gentoo.org/> for instructions.
```

Reply via email to