Hi! The r15-1124 commit had a typo in one of the FBSD_LINK_PG_NOTE macro uses.
Fixed thusly, tested with ../configure --target riscv64-unknown-freebsd14 --disable-bootstrap --enable-languages=c --disable-libsanitizer --disable-libgomp make -j32 Before it failed while compiling gcc.cc: In file included from ./tm.h:44, from ../../gcc/gcc.cc:35: ../../gcc/config/riscv/freebsd.h:45:5: error: expected ‘,’ or ‘;’ before ‘FBSD_LINK_PG_NOTES’ 45 | " FBSD_LINK_PG_NOTES " \ | ^~~~~~~~~~~~~~~~~~ ../../gcc/gcc.cc:1211:32: note: in expansion of macro ‘LINK_SPEC’ Now it fails later on during libgcc configury because I don't have corresponding binutils. Committed to trunk as obvious. 2025-04-08 Jakub Jelinek <ja...@redhat.com> PR target/119678 * config/riscv/freebsd.h (LINK_SPEC): Use FBSD_LINK_PG_NOTE rather than non-existing FBSD_LINK_PG_NOTES. --- gcc/config/riscv/freebsd.h.jj 2025-01-02 11:23:59.606915297 +0100 +++ gcc/config/riscv/freebsd.h 2025-04-08 12:25:34.019877747 +0200 @@ -42,7 +42,7 @@ along with GCC; see the file COPYING3. #define LINK_SPEC " \ -melf" XLEN_SPEC DEFAULT_ENDIAN_SPEC "riscv \ %{p:%nconsider using `-pg' instead of `-p' with gprof (1)} \ - " FBSD_LINK_PG_NOTES " \ + " FBSD_LINK_PG_NOTE " \ %{v:-V} \ %{assert*} %{R*} %{rpath*} %{defsym*} \ -X \ Jakub