summaryrefslogtreecommitdiff
path: root/libstdc++-v3/crossconfig.m4
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@gcc.gnu.org>2007-09-14 14:50:26 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-09-14 14:50:26 +0000
commitd9dced13700cc3e2ee269d9dcdb7383fb6034501 (patch)
tree5fe65fdbed9bdd4d82e32814abcd604d2cdc1549 /libstdc++-v3/crossconfig.m4
parentea4ba342859a1d405d60b07712d0d6020e89dadf (diff)
configure.ac (mips*-sde-elf*): New stanza.
* configure.ac (mips*-sde-elf*): New stanza. Add target-libiberty to $skipdirs and only disable gprof for newlib. Use the normal mips*-elf* handling in other respects. * configure: Regnerate. gcc/ 2007-xx-xx Nigel Stephens <nigel@mips.com> David Ung <davidu@mips.com> Thiemo Seufer <ths@mips.com> Richard Sandiford <richard@codesourcery.com> * config.gcc (mips*-sde-elf*): Add support for the SDE C libraries. * configure.ac: Add a mipssde threading type. * configure: Regenerate. * config/mips/sdemtk.h: New file. * config/mips/t-sdemtk: Likewise. * config/mips/sdemtk.opt: Likewise. * gthr-mipssde.h: Likewise. * config/mips/sde.h (FUNCTION_PROFILER): Move to config/mips/sdemtk.h. * config/mips/mips.h (MIPS_SAVE_REG_FOR_PROFILING_P): New macro. (MIPS_ICACHE_SYNC): New macro, split from ... * config/mips/mips.md (clear_cache): ...here. * config/mips/mips.c (mips_save_reg_p): Check MIPS_SAVE_REG_FOR_PROFILING_P on profiled functions. (build_mips16_function_stub): Use targetm.strip_name_encoding. (build_mips16_call_stub): Likewise. libstdc++-v3/ 2007-xx-xx Thiemo Seufer <ths@mips.com> * crossconfig.m4 (mips*-sde-elf*): New stanza. * configure: Regenerate. From-SVN: r128495
Diffstat (limited to 'libstdc++-v3/crossconfig.m4')
-rw-r--r--libstdc++-v3/crossconfig.m432
1 files changed, 32 insertions, 0 deletions
diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4
index cbfc2d98044..27df06069b5 100644
--- a/libstdc++-v3/crossconfig.m4
+++ b/libstdc++-v3/crossconfig.m4
@@ -9,6 +9,38 @@ case "${host}" in
# This is a freestanding configuration; there is nothing to do here.
;;
+ mips*-sde-elf*)
+ # These definitions are for the SDE C library rather than newlib.
+ AC_CHECK_HEADERS([float.h inttypes.h locale.h \
+ stdint.h stdlib.h string.h unistd.h wchar.h \
+ machine/endian.h sys/ioctl.h sys/resource.h \
+ sys/stat.h sys/time.h sys/types.h sys/uio.h])
+ SECTION_FLAGS='-ffunction-sections -fdata-sections'
+ AC_SUBST(SECTION_FLAGS)
+ GLIBCXX_CHECK_COMPILER_FEATURES
+ GLIBCXX_CHECK_LINKER_FEATURES
+ GLIBCXX_CHECK_MATH_SUPPORT
+ GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
+ GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
+ GLIBCXX_CHECK_STDLIB_SUPPORT
+ GLIBCXX_CHECK_S_ISREG_OR_S_IFREG
+ AC_DEFINE(HAVE_SIGSETJMP)
+ AC_DEFINE(HAVE_GETPAGESIZE)
+ AC_DEFINE(HAVE_WRITEV)
+ AC_DEFINE(HAVE_INT64_T)
+
+ AC_DEFINE(HAVE_LIBM)
+ AC_DEFINE(HAVE_COPYSIGN)
+ AC_DEFINE(HAVE_FINITE)
+ AC_DEFINE(HAVE_HYPOT)
+ AC_DEFINE(HAVE_ISNAN)
+ AC_DEFINE(HAVE_ISINF)
+
+ AC_DEFINE(HAVE_LDEXPF)
+ AC_DEFINE(HAVE_MODF)
+ AC_DEFINE(HAVE_SQRTF)
+ ;;
+
*-darwin*)
# Darwin versions vary, but the linker should work in a cross environment,
# so we just check for all the features here.