This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] native abi-check only
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 22 Aug 2002 20:36:46 -0700
- Subject: [v3] native abi-check only
Seems to have nuked the mips-elf cross, which is unfortunate.
Damn having to find startup code, libc.
So, have turned off abi-checking unless native. Presumably, this is
the only case when it's useful anyway.
tested x86/linux, synthetic cross
2002-08-22 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Set
GLIBCPP_BUILD_ABI_CHECK based on cross compiling, build, host
variables.
* aclocal.m4: Regenerate.
* testsuite/Makefile.am (noinst_PROGRAMS): Make conditional on
native compiling.
* testsuite/Makefile.in: Regenerate.
Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/acinclude.m4,v
retrieving revision 1.214
diff -c -p -r1.214 acinclude.m4
*** acinclude.m4 22 Aug 2002 20:05:55 -0000 1.214
--- acinclude.m4 23 Aug 2002 03:33:17 -0000
*************** AC_DEFUN(GLIBCPP_CONFIGURE_TESTSUITE, [
*** 2030,2035 ****
--- 2030,2039 ----
# Export file names for ABI checking.
baseline_file="${glibcpp_srcdir}/config/abi/${target_alias}/baseline_symbols.txt"
AC_SUBST(baseline_file)
+
+ # Don't do ABI checking unless native.
+ AM_CONDITIONAL(GLIBCPP_BUILD_ABI_CHECK,
+ test x"$build" == x"$host" && test -z "$with_cross_host")
])
Index: testsuite/Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/Makefile.am,v
retrieving revision 1.9
diff -c -p -r1.9 Makefile.am
*** testsuite/Makefile.am 22 Aug 2002 20:06:00 -0000 1.9
--- testsuite/Makefile.am 23 Aug 2002 03:33:17 -0000
*************** noinst_LIBRARIES = libv3test.a
*** 53,57 ****
--- 53,62 ----
libv3test_a_SOURCES = testsuite_hooks.cc
## Build support utilities.
+ ## Only build this as native, as need to find startup files and libc to link.
+ if GLIBCPP_BUILD_ABI_CHECK
noinst_PROGRAMS = abi_check
+ else
+ noinst_PROGRAMS =
+ endif
abi_check_SOURCES = abi_check.cc