diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2008-04-14 23:53:15 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2008-04-14 23:53:15 +0000 |
commit | 8edb93c4239c39fa64436840a5813cda17f4678c (patch) | |
tree | a7345e10e942e97fd4bb52832ef729df6951e837 /libstdc++-v3 | |
parent | 40f39798cea1409910ee900f17a37944eea0f7b7 (diff) | |
download | gcc-8edb93c4239c39fa64436840a5813cda17f4678c.zip gcc-8edb93c4239c39fa64436840a5813cda17f4678c.tar.gz gcc-8edb93c4239c39fa64436840a5813cda17f4678c.tar.bz2 |
re PR libstdc++/35816 (libstdc++ build during bootstrap is optimizing away atomic builtin check)
2008-04-14 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/35816
* acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Set CXXFLAGS to
-O0 when checking for atomic builtins.
* configure: Regenerate.
From-SVN: r134297
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 4 | ||||
-rwxr-xr-x | libstdc++-v3/configure | 6 |
3 files changed, 12 insertions, 5 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 358da48..fb3e622 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,12 @@ 2008-04-14 Benjamin Kosnik <bkoz@redhat.com> + PR libstdc++/35816 + * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Set CXXFLAGS to + -O0 when checking for atomic builtins. + * configure: Regenerate. + +2008-04-14 Benjamin Kosnik <bkoz@redhat.com> + * include/bits/c++config: Guard _LDBL_ macros with __cplusplus. 2008-04-10 Benjamin Kosnik <bkoz@redhat.com> diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index e1712b7..b25c5ad 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -2292,7 +2292,7 @@ int main() } EOF old_CXXFLAGS="$CXXFLAGS" - CXXFLAGS=-S + CXXFLAGS='-O0 -S' if AC_TRY_EVAL(ac_compile); then if grep __sync_fetch_and_add conftest.s >/dev/null 2>&1 ; then enable_atomic_builtins=no @@ -2303,6 +2303,7 @@ EOF atomicity_dir=cpu/generic/atomicity_builtins fi fi + AC_MSG_RESULT($enable_atomic_builtins) CXXFLAGS="$old_CXXFLAGS" rm -f conftest* @@ -2311,7 +2312,6 @@ EOF atomicity_dir=cpu/generic/atomicity_mutex fi AC_LANG_RESTORE - AC_MSG_RESULT($enable_atomic_builtins) ]) diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 6e6e199..8ce34b2 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -18104,7 +18104,7 @@ int main() } EOF old_CXXFLAGS="$CXXFLAGS" - CXXFLAGS=-S + CXXFLAGS='-O0 -S' if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -18122,6 +18122,8 @@ _ACEOF atomicity_dir=cpu/generic/atomicity_builtins fi fi + echo "$as_me:$LINENO: result: $enable_atomic_builtins" >&5 +echo "${ECHO_T}$enable_atomic_builtins" >&6 CXXFLAGS="$old_CXXFLAGS" rm -f conftest* @@ -18135,8 +18137,6 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - echo "$as_me:$LINENO: result: $enable_atomic_builtins" >&5 -echo "${ECHO_T}$enable_atomic_builtins" >&6 if test $atomicity_dir = cpu/generic/atomicity_mutex ; then { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5 |