Commit 10d712eb by Jonathan Wakely Committed by Jonathan Wakely

acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for --with-default-libstdcxx-abi

	* acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for
	--with-default-libstdcxx-abi
	* configure: Regenerate.
	* doc/xml/manual/configure.xml: Document valid arguments.

From-SVN: r225356
parent 4668d6f9
2015-07-02 Jonathan Wakely <jwakely@redhat.com>
* acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for
--with-default-libstdcxx-abi
* configure: Regenerate.
* doc/xml/manual/configure.xml: Document valid arguments.
2015-07-02 Uros Bizjak <ubizjak@gmail.com> 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
* libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
......
...@@ -3792,7 +3792,7 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_DUAL_ABI], [ ...@@ -3792,7 +3792,7 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_DUAL_ABI], [
fi fi
if test x"$enable_libstdcxx_dual_abi" != xyes; then if test x"$enable_libstdcxx_dual_abi" != xyes; then
AC_MSG_NOTICE([dual ABI is disabled]) AC_MSG_NOTICE([dual ABI is disabled])
default_libstdcxx_abi="c++98" default_libstdcxx_abi="gcc4-compatible"
fi fi
GLIBCXX_CONDITIONAL(ENABLE_DUAL_ABI, test $enable_libstdcxx_dual_abi = yes) GLIBCXX_CONDITIONAL(ENABLE_DUAL_ABI, test $enable_libstdcxx_dual_abi = yes)
]) ])
...@@ -3800,7 +3800,7 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_DUAL_ABI], [ ...@@ -3800,7 +3800,7 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_DUAL_ABI], [
dnl dnl
dnl Check to see which ABI should be enabled by default. dnl Check to see which ABI should be enabled by default.
dnl dnl
dnl --with-default-libstdcxx-abi={c++98,c++11} dnl --with-default-libstdcxx-abi={gcc4-compatible,new}
dnl dnl
dnl Defines: dnl Defines:
dnl _GLIBCXX_USE_CXX11_ABI (always defined, either to 1 or 0) dnl _GLIBCXX_USE_CXX11_ABI (always defined, either to 1 or 0)
...@@ -3812,14 +3812,16 @@ AC_DEFUN([GLIBCXX_DEFAULT_ABI], [ ...@@ -3812,14 +3812,16 @@ AC_DEFUN([GLIBCXX_DEFAULT_ABI], [
AS_HELP_STRING([--with-default-libstdcxx-abi], AS_HELP_STRING([--with-default-libstdcxx-abi],
[set the std::string ABI to use by default]), [set the std::string ABI to use by default]),
[case "$withval" in [case "$withval" in
c++98|gnu++98|c++03|gnu++03) default_libstdcxx_abi="c++98" ;; gcc4-compatible) default_libstdcxx_abi="gcc4-compatible" ;;
c++1?|gnu++1?) default_libstdcxx_abi="c++11" ;; new|cxx11) default_libstdcxx_abi="new" ;;
*) AC_MSG_ERROR([Invalid argument for --with-default-libstdcxx-abi]) ;; c++*|gnu++*) AC_MSG_ERROR([Supported arguments for --with-default-libstdcxx-abi have changed, use "new" or "gcc4-compatible"]) ;;
esac], *) AC_MSG_ERROR([Invalid argument for --with-default-libstdcxx-abi]) ;;
[default_libstdcxx_abi="c++11"]) esac
],
[default_libstdcxx_abi="new"])
AC_MSG_RESULT(${default_libstdcxx_abi}) AC_MSG_RESULT(${default_libstdcxx_abi})
fi fi
if test $default_libstdcxx_abi = "c++11"; then if test $default_libstdcxx_abi = "new"; then
glibcxx_cxx11_abi=1 glibcxx_cxx11_abi=1
glibcxx_cxx98_abi=0 glibcxx_cxx98_abi=0
else else
......
...@@ -78180,7 +78180,7 @@ fi ...@@ -78180,7 +78180,7 @@ fi
if test x"$enable_libstdcxx_dual_abi" != xyes; then if test x"$enable_libstdcxx_dual_abi" != xyes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: dual ABI is disabled" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: dual ABI is disabled" >&5
$as_echo "$as_me: dual ABI is disabled" >&6;} $as_echo "$as_me: dual ABI is disabled" >&6;}
default_libstdcxx_abi="c++98" default_libstdcxx_abi="gcc4-compatible"
fi fi
...@@ -78192,18 +78192,20 @@ $as_echo_n "checking for default std::string ABI to use... " >&6; } ...@@ -78192,18 +78192,20 @@ $as_echo_n "checking for default std::string ABI to use... " >&6; }
# Check whether --with-default-libstdcxx-abi was given. # Check whether --with-default-libstdcxx-abi was given.
if test "${with_default_libstdcxx_abi+set}" = set; then : if test "${with_default_libstdcxx_abi+set}" = set; then :
withval=$with_default_libstdcxx_abi; case "$withval" in withval=$with_default_libstdcxx_abi; case "$withval" in
c++98|gnu++98|c++03|gnu++03) default_libstdcxx_abi="c++98" ;; gcc4-compatible) default_libstdcxx_abi="gcc4-compatible" ;;
c++1?|gnu++1?) default_libstdcxx_abi="c++11" ;; new|cxx11) default_libstdcxx_abi="new" ;;
*) as_fn_error "Invalid argument for --with-default-libstdcxx-abi" "$LINENO" 5 ;; c++*|gnu++*) as_fn_error "Supported arguments for --with-default-libstdcxx-abi have changed, use \"new\" or \"gcc4-compatible\"" "$LINENO" 5 ;;
*) as_fn_error "Invalid argument for --with-default-libstdcxx-abi" "$LINENO" 5 ;;
esac esac
else else
default_libstdcxx_abi="c++11" default_libstdcxx_abi="new"
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${default_libstdcxx_abi}" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${default_libstdcxx_abi}" >&5
$as_echo "${default_libstdcxx_abi}" >&6; } $as_echo "${default_libstdcxx_abi}" >&6; }
fi fi
if test $default_libstdcxx_abi = "c++11"; then if test $default_libstdcxx_abi = "new"; then
glibcxx_cxx11_abi=1 glibcxx_cxx11_abi=1
glibcxx_cxx98_abi=0 glibcxx_cxx98_abi=0
else else
...@@ -389,9 +389,10 @@ ...@@ -389,9 +389,10 @@
<para> <para>
Set the default value for the <symbol>_GLIBCXX_USE_CXX11_ABI</symbol> Set the default value for the <symbol>_GLIBCXX_USE_CXX11_ABI</symbol>
macro (see <xref linkend="manual.intro.using.macros"/>). macro (see <xref linkend="manual.intro.using.macros"/>).
The default is <option>OPTION=c++11</option> which sets the macro to The default is <option>OPTION=new</option> which sets the macro to
<literal>1</literal>, <literal>1</literal>,
use <option>OPTION=c++98</option> to set it to <literal>0</literal>. use <option>OPTION=gcc4-compatible</option> to set it to
<literal>0</literal>.
This option does not change the library ABI. This option does not change the library ABI.
</para> </para>
</listitem></varlistentry> </listitem></varlistentry>
......
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