https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120351
Sam James <sjames at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |target Keywords| |assemble-failure, | |wrong-code --- Comment #1 from Sam James <sjames at gcc dot gnu.org> --- Please always include relevant files as attachments. See https://gcc.gnu.org/bugs/#need. Anyway, I can reproduce it: ``` $ g++-14 /tmp/a.cxx -O2 -c -mfpu=neon $ g++-15 /tmp/a.cxx -O2 -c -mfpu=neon /tmp/ccTgsrnS.s: Assembler messages: /tmp/ccTgsrnS.s:47: Error: ARM register expected -- `ldrex r1,[s14]' /tmp/ccTgsrnS.s:49: Error: ARM register expected -- `strex r2,r1,[s14]' ``` ``` Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/15/lto-wrapper Target: armv7a-unknown-linux-gnueabihf Configured with: /var/tmp/portage/sys-devel/gcc-15.1.9999/work/gcc-15.1.9999/configure --host=armv7a-unknown-linux-gnueabihf --build=armv7a-unknown-linux-gnueabihf --prefix=/usr --bindir=/usr/armv7a-unknown-linux-gnueabihf/gcc-bin/15 --includedir=/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/15/include --datadir=/usr/share/gcc-data/armv7a-unknown-linux-gnueabihf/15 --mandir=/usr/share/gcc-data/armv7a-unknown-linux-gnueabihf/15/man --infodir=/usr/share/gcc-data/armv7a-unknown-linux-gnueabihf/15/info --with-gxx-include-dir=/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/armv7a-unknown-linux-gnueabihf/15/python --enable-libphobos --enable-objc-gc --enable-languages=c,c++,d,objc,obj-c++,fortran,ada,rust --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 15.1.9999 p, commit 931f2ec7eafda39ea33684e191c9e2e8b4239fdc' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-fixed-point --with-float=hard --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --enable-libgomp --disable-libssp --enable-libada --disable-systemtap --disable-valgrind-annotations --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 --with-build-config=bootstrap-O3 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.1.1 20250518 848e7b119cc4558aec8f473dced811ae8b54829f (Gentoo 15.1.9999 p, commit 931f2ec7eafda39ea33684e191c9e2e8b4239fdc) ```