This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: GLIBCXX_CROSSCONFIG with newlib targets
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: bkoz at redhat dot com
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 19 Sep 2006 13:48:50 +1000
- Subject: Re: GLIBCXX_CROSSCONFIG with newlib targets
On September 12, 2006, Benjamin Kosnik wrote:
> Which has no link tests: historically this should be run on all
> targets then, and all the duplicate goo in crossconfig.m4 should be
> removed.
Here is a patch that does just that. It appears to work everywhere
that I tested it. It seems like a pretty hazardous patch for stage 3,
though -- would you prefer that I hold it back?
Ben
2006-09-19 Ben Elliston <bje@au.ibm.com>
* crossconfig.m4 (GLIBCXX_CROSSCONFIG): Remove invocations of
GLIBCXX_CHECK_COMPILER_FEATURES.
* configure.ac: Always invoke GLIBCXX_CHECK_COMPILER_FEATURES.
Remove invocations elsewhere.
* configure: Regenerate.
(diff for `configure' omitted for brevity)
Index: crossconfig.m4
===================================================================
--- crossconfig.m4 (revision 117048)
+++ crossconfig.m4 (working copy)
@@ -1,5 +1,5 @@
dnl
-dnl This file contains details for non-natives builds.
+dnl This file contains details for non-native builds.
dnl
AC_DEFUN([GLIBCXX_CROSSCONFIG],[
@@ -17,7 +17,6 @@ case "${host}" in
machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
sys/types.h])
- GLIBCXX_CHECK_COMPILER_FEATURES
# Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
GLIBCXX_CHECK_MATH_SUPPORT
GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
@@ -52,7 +51,6 @@ case "${host}" in
memory.h stdint.h stdlib.h strings.h string.h unistd.h \
wchar.h wctype.h machine/endian.h sys/ioctl.h sys/param.h \
sys/resource.h sys/stat.h sys/time.h sys/types.h sys/uio.h])
- GLIBCXX_CHECK_COMPILER_FEATURES
GLIBCXX_CHECK_LINKER_FEATURES
GLIBCXX_CHECK_MATH_SUPPORT
GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
Index: configure.ac
===================================================================
--- configure.ac (revision 117048)
+++ configure.ac (working copy)
@@ -124,6 +124,7 @@ if test $atomicity_dir = cpu/generic/ato
fi
fi
+GLIBCXX_CHECK_COMPILER_FEATURES
if $GLIBCXX_IS_NATIVE; then
@@ -135,7 +136,6 @@ if $GLIBCXX_IS_NATIVE; then
machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
sys/types.h sys/ipc.h sys/sem.h])
- GLIBCXX_CHECK_COMPILER_FEATURES
GLIBCXX_CHECK_LINKER_FEATURES
GLIBCXX_CHECK_MATH_SUPPORT
GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
@@ -210,7 +210,6 @@ else
fi
# Construct crosses by hand, eliminating bits that need ld...
- # GLIBCXX_CHECK_COMPILER_FEATURES
# GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
# GLIBCXX_CHECK_MATH_SUPPORT