https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117635
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Pietro Monteiro <[email protected]>: https://gcc.gnu.org/g:64b32bc302fce87827c675c2e7729a3cc9dfdc9d commit r17-658-g64b32bc302fce87827c675c2e7729a3cc9dfdc9d Author: Pietro Monteiro <[email protected]> Date: Thu May 21 17:59:56 2026 -0400 libffi: Integrate build with GCC >From commits: 5be7b66998127286fada45e4f23bd8a2056d553e - libffi: Integrate build with GCC 333efaea633971912f2208d37b7b62992759d400 - libffi: Add --enable-cet to configure 6a6d3817afa02bbcd2388c8e005da6faf88932f1 - Config,Darwin: Allow for configuring Darwin to use embedded runpath. 967d4171b2eb0557e86ba28996423353f0f1b141 - libffi: Consider '--with-build-sysroot=[...]' for target libraries' build-tree testing (instead of build-time 'CC' etc.) [PR109951] 35b05a02de1e8aee7c754a20f50736977c71caca - build: Derive object names in make_sunver.pl libffi/ChangeLog: PR libffi/117635 * Makefile.am (AUTOMAKE_OPTIONS): Add info-in-builddir. (ACLOCAL_AMFLAGS): Set to -I .. -I ../config. (SUBDIRS): Don't add doc. (TEXINFO_TEX): New. (MAKEINFOFLAGS): Likewise. (info_TEXINFOS): Likewise. (STAMP_GENINSRC): Likewise. (STAMP_BUILD_INFO): Likewise. (all-local): Likewise. (stamp-geninsrc): Likewise. (doc/libffi.info): Likewise. (stamp-build-info:): Likewise. (CLEANFILES): Likewise. (MAINTAINERCLEANFILES): Likewise. (AM_MAKEFLAGS): Likewise. (LTLDFLAGS): Replace libtool-ldflags with ../libtool-ldflags. (AM_CFLAGS): Add -Wall -g -fexceptions $(CET_FLAGS). (libffi.map-sun): Replace make_sunver.pl with ../contrib/make_sunver.pl. Pass $(libffi_la_OBJECTS), $(libffi_la_LIBADD) to make_sunver.pl unmodified. (libffi_la_LDFLAGS): Handle Darwin rpaths. (AM_CCASFLAGS): Add $(CET_FLAGS). (all-recursive): New. (install-recursive): Likewise. (mostlyclean-recursive): Likewise. (clean-recursive): Likewise. (distclean-recursive): Likewise. (maintainer-clean-recursive): Likewise. (dist-hook): Removed. Include $(top_srcdir)/../multilib.am. * Makefile.in: Regenerate. * configure: Regenerate. * configure.ac: Add AM_ENABLE_MULTILIB. Remove the frv*-elf check. (AX_ENABLE_BUILDDIR): Removed. (AM_INIT_AUTOMAKE): Add [no-dist]. Add --enable-generated-files-in-srcdir. (CET_FLAGS): Add GCC_CET_FLAGS and AC_SUBST. (AC_CONFIG_MACRO_DIR): Removed. (AM_CONDITIONAL([ENABLE_DARWIN_AT_RPATH])): New. (AX_COMPILER_VENDOR): Removed. (AX_CC_MAXOPT): Likewise. (AX_CFLAGS_WARN_ALL): Likewise. Remove the GCC check. (AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)): New. <local.exp>: Don't set 'CC_FOR_TARGET', 'CXX_FOR_TARGET', instead set 'SYSROOT_CFLAGS_FOR_TARGET'. (m4_warn([obsolete])): Removed. (LT_SYS_SYMBOL_USCORE): Likewise. (AX_CHECK_COMPILE_FLAG): Likewise. Remove --disable-docs. (ACX_CHECK_PROG_VER): Check makeinfo. (BUILD_DOCS): Updated. (exec-static-tramp): Don't enable use of static exec trampolines by default. Remove --disable-multi-os-directory. (GCC_WITH_TOOLEXECLIBDIR): New. Support cross host. Support --enable-multilib. (GCC_BASE_VER): New. (AC_CONFIG_FILES): Remove doc/Makefile. (AC_CONFIG_LINKS): New. * fficonfig.h.in: Regenerate. * include/Makefile.am (nodist_include_HEADERS): Removed. (gcc_version): New. (toollibffidir): Likewise. (toollibffi_HEADERS): Likewise. * include/Makefile.in: Regenerate. * man/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. Signed-off-by: Pietro Monteiro <[email protected]>
