https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121593
--- Comment #4 from Marc Mutz <marc.mutz at hotmail dot com> --- > Can you try `-flifetime-dse=0 -fstack-reuse=none` ? They do not, not when added with CXXFLAGS (which adds them in front of the options): ``` c++ -DBACKTRACE_HEADER=\"execinfo.h\" -DCore_EXPORTS -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC_COMPAT -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QPAIR -DQT_NO_QSNPRINTF -DQT_NO_STD_FORMAT_SUPPORT -DQT_NO_USING_NAMESPACE -DQT_STRICT_QLIST_ITERATORS -DQT_TYPESAFE_FLAGS -DQT_USE_NODISCARD_FILE_OPEN -DQT_USE_QSTRINGBUILDER -D_GLIBCXX_ASSERTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/marc/Qt/qtbase-submit-build/src/corelib/Core_autogen/include -I/home/marc/Qt/qtbase-submit-build/include -I/home/marc/Qt/qtbase-submit-build/include/QtCore -I/home/marc/Qt/qtbase-submit/src/corelib -I/home/marc/Qt/qtbase-submit-build/src/corelib -I/home/marc/Qt/qtbase-submit-build/src/corelib/global -I/home/marc/Qt/qtbase-submit-build/src/corelib/kernel -I/home/marc/Qt/qtbase-submit/src/corelib/../3rdparty/tinycbor/src -I/home/marc/Qt/qtbase-submit-build/include/QtCore/6.11.0 -I/home/marc/Qt/qtbase-submit-build/include/QtCore/6.11.0/QtCore -I/home/marc/Qt/qtbase-submit/src/corelib/../3rdparty/forkfd -I/home/marc/Qt/qtbase-submit-build/src/corelib/.rcc -I/home/marc/Qt/qtbase-submit-build/mkspecs/linux-g++ -isystem /d/openssl/32-dev/include -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include \ \ -flifetime-dse=0 -fstack-reuse=none \ \ -g -DNDEBUG -O3 -std=gnu++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wno-expansion-to-defined -U_FORTIFY_SOURCE -Wsuggest-override -fcf-protection=full -D_FORTIFY_SOURCE=2 -ftrivial-auto-var-init=pattern -fstack-protector-strong -fstack-clash-protection -fexceptions -MD -MT src/corelib/CMakeFiles/Core.dir/serialization/qxmlstream.cpp.o -MF src/corelib/CMakeFiles/Core.dir/serialization/qxmlstream.cpp.o.d -o src/corelib/CMakeFiles/Core.dir/serialization/qxmlstream.cpp.o -c /home/marc/Qt/qtbase-submit/src/corelib/serialization/qxmlstream.cpp ``` I'll try with a newer GCC 15 tomorrow (CEST).