Commit 7441a352 by Nathan Sidwell

configure.in (--enable-new-gxx-abi): New option.

	* configure.in (--enable-new-gxx-abi): New option.
	* acconfig.h (ENABLE_NEW_GXX_ABI): New define.
	* Makefile.in (GXX_ABI_FLAG): New variable.
	* configure: Regenerate.

From-SVN: r31387
parent 7f7680a9
......@@ -164,6 +164,9 @@ GCC_FOR_TARGET = ./xgcc -B$(build_tooldir)/bin/ -B./ -I$(build_tooldir)/include
# It also specifies -I./include to find, e.g., stddef.h.
GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) -I./include $(TCFLAGS)
# Specify the abi to use when building the c++ runtime
GXX_ABI_FLAG=@GXX_ABI_FLAG@
# Sed command to transform gcc to installed name. Overwritten by configure.
program_transform_name = @program_transform_name@
program_transform_cross_name = s,^,$(target_alias)-,
......
......@@ -4,6 +4,9 @@
/* Define if printf supports "%p". */
#undef HAVE_PRINTF_PTR
/* Define if you want to always select the new-abi for g++. */
#undef ENABLE_NEW_GXX_ABI
/* Define if you want more run-time sanity checks. This one gets a grab
bag of miscellaneous but relatively cheap checks. */
#undef ENABLE_CHECKING
......
......@@ -4588,6 +4588,18 @@ fi])
AC_SUBST(GGC)
echo "Using $GGC for garbage collection."
# Build a new-abi (c++) system
AC_ARG_ENABLE(new-gxx-abi,
[ --enable-new-gxx-abi
select the new abi for g++. You must select an ABI
at configuration time, so that the correct runtime
support is built. You cannot mix ABIs.],
[AC_DEFINE(ENABLE_NEW_GXX_ABI)
GXX_ABI_FLAG='-fnew-abi'
echo "Building a new-abi g++ compiler."
])
AC_SUBST(GXX_ABI_FLAG)
# Make empty files to contain the specs and options for each language.
# Then add #include lines to for a compiler that has specs and/or options.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment