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

            Bug ID: 126995
           Summary: [17 regression] ICE when building cairo-1.18.4 in
                    vect_schedule_slp_node
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

```
$ gcc -c ./src/libcairo.so.2.11804.4.p/cairo-spline.c.i -O3 -march=x86-64-v3
[...]
during GIMPLE pass: slp
../cairo-1.18.4/src/cairo-spline.c: In function ‘_cairo_spline_decompose_into’:
../cairo-1.18.4/src/cairo-spline.c:240:1: internal compiler error: in
vect_schedule_slp_node, at tree-vect-slp.cc:12263
  240 | _cairo_spline_decompose_into (cairo_spline_knots_t *s1,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/libexec/gcc/x86_64-pc-linux-gnu/17/cc1 -fpreprocessed
./src/libcairo.so.2.11804.4.p/cairo-spline.c.i -quiet -dumpbase
cairo-spline.c.i -dumpbase-ext .i -march=x86-64-v3 -mtls-dialect=gnu2 -O3
-foffload-options=-fno-stack-protector -o /tmp/ccrjTvpd.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.gentoo.org/> for instructions.
```

```
#0  fancy_abort (file=0x555558b67588
"/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/gcc/tree-vect-slp.cc",
line=12263, function=0x555558a4e70b "vect_schedule_slp_node")
    at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/diagnostics/context.cc:1780
#1  0x00005555565265b7 in vect_schedule_slp_node
(place_only=place_only@entry=true, vinfo=vinfo@entry=0x555559d0d890,
node=node@entry=0x555559bf4ac8, instance=instance@entry=0x555559d42b00)
    at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/tree-vect-slp.cc:12263
#2  0x0000555558593735 in vect_schedule_scc (place_only=true,
vinfo=vinfo@entry=0x555559d0d890, node=<optimized out>,
node@entry=0x555559bf4ac8, instance=instance@entry=0x555559d42b00,
scc_info=...,
    maxdfs=@0x7fffffffd0dc: 133, stack=...) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/tree-vect-slp.cc:12638
#3  0x0000555558593667 in vect_schedule_scc (place_only=true,
vinfo=vinfo@entry=0x555559d0d890, node=<optimized out>,
node@entry=0x555559bf4a10, instance=instance@entry=0x555559d42b00,
scc_info=...,
    maxdfs=@0x7fffffffd0dc: 133, stack=...) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/tree-vect-slp.cc:12618
#4  0x0000555558593667 in vect_schedule_scc (place_only=true,
vinfo=0x555559d0d890, node=<optimized out>, instance=0x555559d42b00,
scc_info=..., maxdfs=@0x7fffffffd0dc: 133, stack=...)
    at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/tree-vect-slp.cc:12618
#5  0x0000555557e2febd in vect_schedule_slp (vinfo=0x555559d0d890,
slp_instances=..., place_only=true) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/tree-vect-slp.cc:12794
#6  0x0000555557e1e935 in vect_slp_analyze_bb_1 (bb_vinfo=0x555559d0d890,
n_stmts=<optimized out>, fatal=<synthetic pointer>: <optimized out>,
dataref_groups=<optimized out>)
    at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/tree-vect-slp.cc:10397
#7  vect_slp_region (bbs=..., datarefs=..., dataref_groups=0x7fffffffd3d8,
n_stmts=374, orig_loop=0x0) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/tree-vect-slp.cc:10450
#8  0x0000555557e19ed1 in vect_slp_bbs (bbs=..., orig_loop=orig_loop@entry=0x0)
at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/tree-vect-slp.cc:10673
#9  0x0000555557e193c1 in vect_slp_function (fun=fun@entry=0x7fffe8d45a90) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/tree-vect-slp.cc:10795
#10 0x0000555557e18ced in (anonymous namespace)::pass_slp_vectorize::execute
(this=<optimized out>, fun=0x7fffe8d45a90) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/tree-vectorizer.cc:1573
#11 0x0000555557851ec5 in execute_one_pass (pass=pass@entry=0x555559a81190) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/passes.cc:2646
#12 0x00005555579ceda9 in execute_pass_list_1 (pass=0x555559a81190) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/passes.cc:2757
#13 0x00005555579cedc8 in execute_pass_list_1 (pass=0x555559a81130) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/passes.cc:2758
#14 0x00005555579cedc8 in execute_pass_list_1 (pass=0x555559a7ecb0) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/passes.cc:2758
#15 0x00005555579ce83c in execute_pass_list (fn=0x7fffe8d45a90, pass=<optimized
out>) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/passes.cc:2768
#16 0x000055555795c314 in cgraph_node::expand (this=0x7fffe8d5e110) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/cgraphunit.cc:1874
#17 0x00005555578468af in expand_all_functions () at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/cgraphunit.cc:2057
#18 symbol_table::compile (this=<optimized out>) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/cgraphunit.cc:2435
#19 0x000055555843610a in symbol_table::finalize_compilation_unit
(this=0x7fffe9206000) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/cgraphunit.cc:2626
#20 0x00005555583d1804 in compile_file () at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/toplev.cc:482
#21 0x000055555838609b in do_compile () at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/toplev.cc:2226
#22 toplev::main (this=this@entry=0x7fffffffd9a6, argc=<optimized out>,
argv=<optimized out>) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/toplev.cc:2394
#23 0x00005555583849f9 in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/main.cc:39
```

```

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/17/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/17
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/17/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/17
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/17/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/17/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/17/include/g++-v17
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/17/python
--enable-libphobos --enable-objc-gc
--enable-languages=c,c++,d,objc,obj-c++,fortran,ada,algol68,m2,jit
--enable-obsolete --enable-secureplt --disable-werror --with-system-zlib
--enable-nls --without-included-gettext --disable-libunwind-exceptions
--enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo Hardened 17.0.9999 p, commit
cb0bef329c3c99175a317e206f3e376f2fb6690d' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch
--enable-linker-build-id --enable-libada --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --with-tls=gnu2 --enable-multilib
--with-multilib-list=m32,mx32,m64 --disable-fixed-point --with-abi=m64
--enable-targets=all --enable-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--disable-cet --enable-systemtap --enable-valgrind-annotations
--enable-valgrind-interop --disable-vtable-verify --disable-libvtv --with-zstd
--with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie
--enable-host-bind-now --enable-default-ssp --disable-fixincludes
--with-gxx-libcxx-include-dir=/usr/include/c++/v1 --enable-host-shared
--enable-libgdiagnostics --with-build-config='bootstrap-O3 bootstrap-lto'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20260820 (experimental)
222f7f90191563a71dfbc710c8de950ace91c439 (Gentoo Hardened 17.0.9999 p, commit
cb0bef329c3c99175a317e206f3e376f2fb6690d)
```

Reply via email to