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

            Bug ID: 124291
           Summary: [16 regression] ICE when building firefox-148.0
                    (decide_about_value, at ipa-cp.cc:6069)
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: needs-source
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

This is with PGO but hoping I can reproduce without that.

```
$ g++ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong
-fstrict-flex-arrays=1 -fno-rtti -pthread -fno-sized-deallocation
-fno-aligned-new -ffunction-sections -fdata-sections -fno-math-errno
-fno-exceptions -pipe -fPIC -march=native -fno-semantic-interposition
-mtls-dialect=gnu2 -fdiagnostics-color=always -Wa,-O2 -Wa,-mtune=znver4 -pipe
-Werror=strict-aliasing -frecord-gcc-switches -fdiagnostics-show-context=3
-fdiagnostics-color=always -fdiagnostics-urls=never --param=ggc-min-expand=150
-gdwarf-4 -O3 -fomit-frame-pointer -funwind-tables -shared -Wl,-z,defs
-Wl,--gc-sections -Wl,-h,libxul.so -o ../../../dist/bin/libxul.so
-Wl,@/var/tmp/portage/www-client/firefox-148.0/work/firefox_build/toolkit/library/build/libxul_so.list
 -B
/var/tmp/portage/www-client/firefox-148.0/work/firefox_build/build/unix/elfhack
-Wl,--real-linker,/usr/lib/gcc/x86_64-pc-linux-gnu/16/../../../../x86_64-pc-linux-gnu/bin/ld.bfd
-flto=16 -flifetime-dse=1 -march=native -fno-semantic-interposition
-mtls-dialect=gnu2 -fdiagnostics-color=always -Wa,-O2 -Wa,-mtune=znver4 -pipe
-Werror=strict-aliasing -frecord-gcc-switches -fdiagnostics-show-context=3
-fdiagnostics-color=always -fdiagnostics-urls=never --param=ggc-min-expand=150
-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
-Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,relro -Wl,-z,now
-Wl,--undefined-version -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags
-Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc
-fuse-ld=bfd -fstack-protector-strong
-Wl,-rpath-link,/var/tmp/portage/www-client/firefox-148.0/work/firefox_build/dist/bin
-fprofile-use ../../../js/src/build/libjs_static.a
../../../build/pure_virtual/libpure_virtual.a
../../../x86_64-unknown-linux-gnu/release/libgkrust.a
../../../dist/bin/libmozsandbox.so ../../../dist/bin/libgkcodecs.so
../../../dist/bin/liblgpllibs.so ../../../dist/bin/libmozsqlite3.so
../../../dist/bin/libmozgtk.so ../../../dist/bin/libmozwayland.so
-Wl,--version-script,libxul.so.symbols  -licui18n -licuuc -lresolv -lgraphite2
-laom -ldav1d -ldl -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrandr
-lXrender -ldrm -lasound -lgbm -lpthread -lc -lffi -lplds4 -lplc4 -lnspr4 -lz
-lm -lssl3 -lsmime3 -lnss3 -lnssutil3 -lfreetype -lfontconfig -lgtk-3 -lgdk-3
-lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo
-lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lrt -ljpeg -lwebpdemux
-lwebp -levent -lvpx -lpixman-1 -ldbus-1 -lxcb-shm -lX11-xcb -lXcursor -lXi
-lxcb
[... lots of -Wodr warnings ...]
during IPA pass: cp
lto1: internal compiler error: in decide_about_value, at ipa-cp.cc:6069
/usr/libexec/gcc/x86_64-pc-linux-gnu/16/lto1 -march=znver4 -mmmx -mpopcnt -msse
-msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -msse4a -mno-fma4 -mno-xop
-mfma -mavx512f -mbmi -mbmi2 -maes -mpclmul -mavx512vl -mavx512bw -mavx512dq
-mavx512cd -mavx512vbmi -mavx512ifma -mavx512vpopcntdq -mavx512vbmi2 -mgfni
-mvpclmulqdq -mavx512vnni -mavx512bitalg -mavx512bf16 -mno-avx512vp2intersect
-mno-3dnow -madx -mabm -mno-cldemote -mclflushopt -mclwb -mclzero -mcx16
-mno-enqcmd -mf16c -mfsgsbase -mfxsr -mno-hle -msahf -mno-lwp -mlzcnt -mmovbe
-mno-movdir64b -mno-movdiri -mmwaitx -mno-pconfig -mpku -mprfchw -mno-ptwrite
-mrdpid -mrdrnd -mrdseed -mno-rtm -mno-serialize -mno-sgx -msha -mshstk
-mno-tbm -mno-tsxldtrk -mvaes -mno-waitpkg -mwbnoinvd -mxsave -mxsavec
-mxsaveopt -mxsaves -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-uintr
-mno-hreset -mno-kl -mno-widekl -mno-avxvnni -mno-avx512fp16 -mno-avxifma
-mno-avxvnniint8 -mno-avxneconvert -mno-cmpccxadd -mno-amx-fp16 -mno-prefetchi
-mno-raoint -mno-amx-complex -mno-avxvnniint16 -mno-sm3 -mno-sha512 -mno-sm4
-mno-apxf -mno-usermsr -mno-avx10.1 -mno-avx10.2 -mno-amx-avx512 -mno-amx-tf32
-mno-amx-fp8 -mno-movrs -mno-amx-movrs -mno-avx512bmm -quiet -dumpbase
../../../dist/bin/libxul.so.wpa -mmmx -mpopcnt -msse -msse2 -msse3 -mssse3
-msse4.1 -msse4.2 -mavx -mavx2 -msse4a -mno-fma4 -mno-xop -mfma -mavx512f -mbmi
-mbmi2 -maes -mpclmul -mavx512vl -mavx512bw -mavx512dq -mavx512cd -mavx512vbmi
-mavx512ifma -mavx512vpopcntdq -mavx512vbmi2 -mgfni -mvpclmulqdq -mavx512vnni
-mavx512bitalg -mavx512bf16 -mno-avx512vp2intersect -mno-3dnow -madx -mabm
-mno-cldemote -mclflushopt -mclwb -mclzero -mcx16 -mno-enqcmd -mf16c -mfsgsbase
-mfxsr -mno-hle -msahf -mno-lwp -mlzcnt -mmovbe -mno-movdir64b -mno-movdiri
-mmwaitx -mno-pconfig -mpku -mprfchw -mno-ptwrite -mrdpid -mrdrnd -mrdseed
-mno-rtm -mno-serialize -mno-sgx -msha -mshstk -mno-tbm -mno-tsxldtrk -mvaes
-mno-waitpkg -mwbnoinvd -mxsave -mxsavec -mxsaveopt -mxsaves -mno-amx-tile
-mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-kl -mno-widekl
-mno-avxvnni -mno-avx512fp16 -mno-avxifma -mno-avxvnniint8 -mno-avxneconvert
-mno-cmpccxadd -mno-amx-fp16 -mno-prefetchi -mno-raoint -mno-amx-complex
-mno-avxvnniint16 -mno-sm3 -mno-sha512 -mno-sm4 -mno-apxf -mno-usermsr
-mno-avx10.1 -mno-avx10.2 -mno-amx-avx512 -mno-amx-tf32 -mno-amx-fp8 -mno-movrs
-mno-amx-movrs -mno-avx512bmm -mtune=znver4 -mtls-dialect=gnu2
-mtls-dialect=gnu2 -mtls-dialect=gnu2 -g -gdwarf-4 -O3 -O3
-Werror=strict-aliasing -Werror=strict-aliasing -fdiagnostics-color=always
-fdiagnostics-urls=never -fno-openmp -fno-openacc -fcf-protection=full
-fstack-protector-strong -fstrict-flex-arrays=1 -ffunction-sections
-fdata-sections -fno-math-errno -fno-exceptions -fPIC
-fdiagnostics-show-context=3 -fomit-frame-pointer -funwind-tables
-flifetime-dse=1 -fno-semantic-interposition -frecord-gcc-switches
-fdiagnostics-show-context=3 -fuse-ld=bfd -fstack-protector-strong
-fprofile-use -foffload-options=-l_GCC_stdc++ -foffload-options=-l_GCC_m
-fltrans-output-list=/tmp/ccBrnp5F.ltrans.out -fwpa=16
-fresolution=/tmp/ccPQr0NF.res -flinker-output=dyn --param=ggc-min-expand=150
--param=ggc-min-expand=150 -foffload-options=-fno-stack-protector
@/tmp/ccld8dno
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.gentoo.org/> for instructions.
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/x86_64-pc-linux-gnu/binutils-bin/9999/ld.bfd: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
```

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/16/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.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/16
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include/g++-v16
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/16/python
--enable-libphobos --enable-languages=c,c++,d,fortran,ada,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 16.0.9999 p, commit
2a3c253e4db7a75166116d361b6a5e89e383bd2b' --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
--enable-cet --enable-systemtap --disable-valgrind-annotations
--disable-valgrind-interop --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 --enable-host-shared
--enable-libgdiagnostics --with-build-config='bootstrap-O3 bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.1 20260227 (experimental)
622b68c6e14b9c289f64709ca772b02cb5855cb1 (Gentoo Hardened 16.0.9999 p, commit
2a3c253e4db7a75166116d361b6a5e89e383bd2b)
```

Reply via email to