libffi: Integrate testsuite with GCC testsuite
commit4824ed41ba7cd63e60fd9f8769a58b79935a90d1
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 30 Aug 2021 21:31:46 +0000 (30 14:31 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 20 Oct 2021 12:35:52 +0000 (20 05:35 -0700)
tree8c0b5bce915ec0e32f1774a0790dbc1aba50952e
parent5be7b66998127286fada45e4f23bd8a2056d553e
libffi: Integrate testsuite with GCC testsuite

* testsuite/lib/libffi.exp (load_gcc_lib): Load library from GCC
testsuite.
Load target-supports.exp and target-supports-dg.exp.
(libffi-init): Use libraries in GCC build tree.
(libffi_target_compile): Link with -shared-libgcc -lstdc++ for
C++ sources.
libffi/testsuite/lib/libffi.exp