https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112707
Bug ID: 112707 Summary: gcc 14 outputs invalid assembly on ppc: Error: unrecognized opcode: `fctid' Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: csfore at posteo dot net Target Milestone: --- Created attachment 56682 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56682&action=edit original preprocessed file Error is first hit when building libvorbis-1.3.7-r1. Needs `gcc -O3 -ffast-math foo.i to reproduce`. It is successful on GCC 13 ` /tmp/ccv3vNGH.s: Assembler messages: /tmp/ccv3vNGH.s:34: Error: unrecognized opcode: `fctid' ` I believe this is a GCC bug given that Apple release notes[0] specifically state this instruction is 64-bit only (it's a bit down, but a search for the instruction should find it) [0]: https://opensource.apple.com/source/cctools/cctools-446.1/as/notes.auto.html gcc -v: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-unknown-linux-gnu/14/lto-wrapper Target: powerpc-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-14.0.0_pre20231119/work/gcc-14-20231119/configure --host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu --prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/14 --includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/14/include --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/14 --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/14/man --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/14/info --with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/14/include/g++-v14 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/powerpc-unknown-linux-gnu/14/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 14.0.0_pre20231119 p9' --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 --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --without-isl --enable-default-pie --enable-host-pie --disable-host-bind-now --enable-default-ssp Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20231119 (experimental) (Gentoo 14.0.0_pre20231119 p9)