+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.
}
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
atomicity_dir=cpu/generic/atomicity_builtins
fi
fi
+ AC_MSG_RESULT($enable_atomic_builtins)
CXXFLAGS="$old_CXXFLAGS"
rm -f conftest*
atomicity_dir=cpu/generic/atomicity_mutex
fi
AC_LANG_RESTORE
- AC_MSG_RESULT($enable_atomic_builtins)
])
}
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=$?
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*
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