https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212
--- Comment #352 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> --- Since I'm unable to build WebKit with -O2 due to memory constraints, I'm building with -O1 now. This unfortunately triggered another ICE which does not show with -O2: /usr/bin/g++-15 -DBUILDING_GTK__=1 -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DGETTEXT_PACKAGE=\"WebKitGTK-4.1\" -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DPAS_BMALLOC=1 -DSKCMS_DISABLE_HSW -DSKCMS_DISABLE_SKX -DSKIA_IMPLEMENTATION=1 -DSK_ASSUME_GL=0 -DSK_ASSUME_GL_ES=1 -DSK_ASSUME_WEBGL=0 -DSK_CODEC_DECODES_PNG -DSK_DISABLE_LEGACY_GL_MAKE_NATIVE_INTERFACE -DSK_DISABLE_LEGACY_IMAGE_READBUFFER -DSK_DISABLE_LEGACY_INIT_DECODERS -DSK_DISABLE_LEGACY_PNG_WRITEBUFFER -DSK_DISABLE_TRACING -DSK_DISABLE_WEBGL_INTERFACE -DSK_ENABLE_PRECOMPILE -DSK_GAMMA_APPLY_TO_A8 -DSK_GANESH -DSK_GL -DSK_R32_SHIFT=16 -DSK_RELEASE -DSK_TYPEFACE_FACTORY_FREETYPE -I/home/glaubitz/webkit2gtk-real/webkit2gtk-2.46.0/Source/ThirdParty/skia -isystem /usr/include/freetype2 -fdiagnostics-color=always -Wextra -Wall -pipe -fmax-errors=20 -Wno-odr -Wno-stringop-overread -Wno-stringop-overflow -Wno-nonnull -Wno-array-bounds -Wno-expansion-to-defined -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -g0 -O1 -ffile-prefix-map=/home/glaubitz/webkit2gtk-real/webkit2gtk-2.46.0=. -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 --param ggc-min-expand=10 -DNDEBUG -DG_DISABLE_CAST_CHECKS -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -fPIC -fvisibility=hidden -ffp-contract=off -fstrict-aliasing -Wno-attributes -Wno-cast-align -Wno-dangling-reference -Wno-deprecated -Wno-psabi -Wno-suggest-attribute=format -Wno-undef -Wno-uninitialized -Wno-unused-parameter -std=c++23 -MD -MT Source/ThirdParty/skia/CMakeFiles/Skia.dir/src/gpu/ganesh/ops/GrOvalOpFactory.cpp.o -MF Source/ThirdParty/skia/CMakeFiles/Skia.dir/src/gpu/ganesh/ops/GrOvalOpFactory.cpp.o.d -o Source/ThirdParty/skia/CMakeFiles/Skia.dir/src/gpu/ganesh/ops/GrOvalOpFactory.cpp.o -c /home/glaubitz/webkit2gtk-real/webkit2gtk-2.46.0/Source/ThirdParty/skia/src/gpu/ganesh/ops/GrOvalOpFactory.cpp /home/glaubitz/webkit2gtk-real/webkit2gtk-2.46.0/Source/ThirdParty/skia/src/gpu/ganesh/ops/GrOvalOpFactory.cpp: In member function 'virtual void EllipticalRRectOp::onPrepareDraws(GrMeshDrawTarget*)': /home/glaubitz/webkit2gtk-real/webkit2gtk-2.46.0/Source/ThirdParty/skia/src/gpu/ganesh/ops/GrOvalOpFactory.cpp:3046:10: error: invalid calls_comdat_local flag 3046 | void onPrepareDraws(GrMeshDrawTarget* target) override { | ^~~~~~~~~~~~~~ _ZN17EllipticalRRectOp14onPrepareDrawsEP16GrMeshDrawTarget/8902 (virtual void EllipticalRRectOp::onPrepareDraws(GrMeshDrawTarget*)) Type: function definition analyzed Visibility: externally_visible semantic_interposition public weak comdat comdat_group:_ZN17EllipticalRRectOp14onPrepareDrawsEP16GrMeshDrawTarget one_only visibility:hidden virtual Same comdat group as: _ZN5skgpuL33skgpu_init_static_unique_key_onceEP18SkAlignedSTStorageILi1ENS_9UniqueKeyEE/4008 Address is taken. References: Referring: _ZTV17EllipticalRRectOp/13231 (addr) Availability: available Function flags: count:37098082 (estimated locally) body Called by: Calls: __builtin_unreachable/15832 (18579353 (estimated locally),0.50 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (283467839 (estimated locally),7.64 per call) __builtin_object_size/14912 (283467839 (estimated locally),7.64 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) __memcpy_chk/14913 (858993456 (estimated locally),23.15 per call) __builtin_object_size/14912 (858993456 (estimated locally),23.15 per call) _ZNK8SkRGBA4fIL11SkAlphaType2EE12toBytes_RGBAEv/14911 (107374184 (estimated locally),2.89 per call) __memcpy_chk/14913 (107374184 (estimated locally),2.89 per call) __builtin_object_size/14912 (107374184 (estimated locally),2.89 per call) _ZN18GrResourceProvider26createPatternedIndexBufferEPKtiiiPKN5skgpu9UniqueKeyE/14974 (2087437 (estimated locally),0.06 per call) _ZN18GrResourceProvider23findResourceByUniqueKeyERKN5skgpu9UniqueKeyE/14975 (11976116 (estimated locally),0.32 per call) _ZN18GrResourceProvider26createPatternedIndexBufferEPKtiiiPKN5skgpu9UniqueKeyE/14974 (2087437 (estimated locally),0.06 per call) _ZN18GrResourceProvider23findResourceByUniqueKeyERKN5skgpu9UniqueKeyE/14975 (11976116 (estimated locally),0.32 per call) __atomic_load_1/14961 (129116047 (estimated locally),3.48 per call) __atomic_store_1/14973 (14191407 (estimated locally),0.38 per call) _ZN5skgpuL33skgpu_init_static_unique_key_onceEP18SkAlignedSTStorageILi1ENS_9UniqueKeyEE/4008 (14191407 (estimated locally),0.38 per call) __atomic_load_1/14961 (35928347 (estimated locally),0.97 per call) __atomic_load_1/14961 (129116047 (estimated locally),3.48 per call) __atomic_store_1/14973 (14191407 (estimated locally),0.38 per call) _ZN5skgpuL33skgpu_init_static_unique_key_onceEP18SkAlignedSTStorageILi1ENS_9UniqueKeyEE/4008 (14191407 (estimated locally),0.38 per call) __atomic_load_1/14961 (35928347 (estimated locally),0.97 per call) __cxa_guard_release/14963 (3912597 (estimated locally),0.11 per call) __cxa_guard_acquire/14962 (11856354 (estimated locally),0.32 per call) __atomic_load_1/14961 (35928347 (estimated locally),0.97 per call) __cxa_guard_release/14963 (3912597 (estimated locally),0.11 per call) __cxa_guard_acquire/14962 (11856354 (estimated locally),0.32 per call) __atomic_load_1/14961 (35928347 (estimated locally),0.97 per call) __cxa_guard_release/14963 (3912597 (estimated locally),0.11 per call) __cxa_guard_acquire/14962 (11856354 (estimated locally),0.32 per call) __atomic_load_1/14961 (35928347 (estimated locally),0.97 per call) __cxa_guard_release/14963 (3912597 (estimated locally),0.11 per call) __cxa_guard_acquire/14962 (11856354 (estimated locally),0.32 per call) __atomic_load_1/14961 (35928347 (estimated locally),0.97 per call) _Z8SkDebugfPKcz/14910 (2886976 (estimated locally),0.08 per call) _ZN12GrMeshDrawOp13PatternHelperC1EP16GrMeshDrawTarget15GrPrimitiveTypej5sk_spIK8GrBufferEiiii/14968 (29428909 (estimated locally),0.79 per call) _Z8SkDebugfPKcz/14910 (6499438 (estimated locally),0.18 per call) _ZN12GrMeshDrawOp17createProgramInfoEP16GrMeshDrawTarget/14908 (6466196 (estimated locally),0.17 per call) Polymorphic indirect call of type const struct GrBuffer token:3(6570490 (estimated locally),0.18 per call) num speculative call targets: 0 Outer type (dynamic):struct GrBuffer (or a derived type) (maybe in construction) offset 0 Polymorphic indirect call of type const struct GrBuffer token:3(20600236 (estimated locally),0.56 per call) num speculative call targets: 0 Outer type (dynamic):struct GrBuffer (or a derived type) (maybe in construction) offset 0 Polymorphic indirect call of type const struct GrMeshDrawTarget token:18(214748368 (estimated locally),5.79 per call) num speculative call targets: 0 Outer type (dynamic):struct GrMeshDrawTarget (or a derived type) (maybe in construction) offset 0 Polymorphic indirect call of type const struct GrMeshDrawTarget token:22(35928347 (estimated locally),0.97 per call) num speculative call targets: 0 Outer type (dynamic):struct GrMeshDrawTarget (or a derived type) (maybe in construction) offset 0 during IPA pass: inline /home/glaubitz/webkit2gtk-real/webkit2gtk-2.46.0/Source/ThirdParty/skia/src/gpu/ganesh/ops/GrOvalOpFactory.cpp:3046:10: internal compiler error: verify_cgraph_node failed 0x2b7c113f __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x2b7c1223 __libc_start_main_impl ./csu/libc-start.c:360 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions. I will try to figured out what optimization flag triggered the ICE. Also, I will provide the preprocessed source in the next comment as usual.