using =gcc-15.0.0_pre20250112 and optimizing at -O2 or -O3 produces ICE when building =webkit-gtk-2.46.5-r410 Reproducible: Always Actual Results: during GIMPLE pass: vect In file included from /var/tmp/portage/net-libs/webkit-gtk-2.46.5-r410/work/webkitgtk-2.46.5_build/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-f2e18ffc-19.cpp:5: /var/tmp/portage/net-libs/webkit-gtk-2.46.5-r410/work/webkitgtk-2.46.5/Source/JavaScriptCore/runtime/JSBigInt.cpp: In static member function ‘static bool JSC::JSBigInt::equals(JSC::JSBigInt*, JSC::JSBigInt*)’: /var/tmp/portage/net-libs/webkit-gtk-2.46.5-r410/work/webkitgtk-2.46.5/Source/JavaScriptCore/runtime/JSBigInt.cpp:1424:6: internal compiler error: in exact_div, at poly-int.h:2160 1424 | bool JSBigInt::equals(JSBigInt* x, JSBigInt* y) | ^~~~~~~~ 0x55e1d206ff8b internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/diagnostic-global-context.cc:517 0x55e1cf87e49f fancy_abort(char const*, int, char const*) /usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/diagnostic.cc:1722 0x55e1cf8320cf poly_int<1u, poly_result<unsigned long, if_nonpoly<int, int, poly_int_traits<int>::is_poly>::type, poly_coeff_pair_traits<unsigned long, if_nonpoly<int, int, poly_int_traits<int>::is_poly>::type>::result_kind>::type> exact_div<1u, unsigned long, int>(poly_int<1u, unsigned long> const&, int) /usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/poly-int.h:2160 0x55e1cf8320cf vect_compute_data_ref_alignment /usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vect-data-refs.cc:1365 0x55e1d1f4abee vect_analyze_data_refs_alignment(_loop_vec_info*) /usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vect-data-refs.cc:2946 0x55e1d09070eb vect_analyze_loop_2 /usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vect-loop.cc:2959 0x55e1d0909562 vect_analyze_loop_1 /usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vect-loop.cc:3478 0x55e1d0909e6b vect_analyze_loop(loop*, gimple*, vec_info_shared*) /usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vect-loop.cc:3638 0x55e1d09732ba try_vectorize_loop_1 /usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vectorizer.cc:1093 0x55e1d09732ba try_vectorize_loop /usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vectorizer.cc:1210 0x55e1d0973cd0 execute /usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vectorizer.cc:1326 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. adding env over-ride allows to build successfully with both -O2 and O3: CXXFLAGS="${COMMON_FLAGS} -fno-tree-vectorize"
I wouldn't say we need two for this one -- just bug 948072 should be enough. *** This bug has been marked as a duplicate of bug 948072 ***