+2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * configure.ac: Split CHECKING_P into CHECKING_P and
+ ENABLE_EXTRA_CHECKING.
+ * configure: Regenerated.
+ * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
+ * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
+
2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
PR other/31566
Check the return value of new in C++.
fchecking
-Common Var(flag_checking) Init(CHECKING_P)
+Common Var(flag_checking) Init(CHECKING_P ? ENABLE_EXTRA_CHECKING ? 2 : 1 : 0)
Perform internal consistency checkings.
fchecking=
#endif
-/* Define to 1 if you want more run-time sanity checks. This one gets a grab
- bag of miscellaneous but relatively cheap checks. Define to 2 if you want
- also extra run-time checking that might affect code generation. */
+/* Define to 0/1 if you want more run-time sanity checks. This one gets a grab
+ bag of miscellaneous but relatively cheap checks. */
#ifndef USED_FOR_TARGET
#undef CHECKING_P
#endif
+/* Define to 0/1 if you want also extra run-time checking that might affect
+ code generation. */
+#ifndef USED_FOR_TARGET
+#undef ENABLE_EXTRA_CHECKING
+#endif
+
+
/* Define 0/1 to force the choice for exception handling model. */
#ifndef USED_FOR_TARGET
#undef CONFIG_SJLJ_EXCEPTIONS
nocommon_flag=""
if test x$ac_checking != x ; then
- if test x$ac_extra_checking != x ; then
- ac_checking=2
- fi
-cat >>confdefs.h <<_ACEOF
-#define CHECKING_P $ac_checking
-_ACEOF
+$as_echo "#define CHECKING_P 1" >>confdefs.h
nocommon_flag=-fno-common
else
fi
+if test x$ac_extra_checking != x ; then
+
+$as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
+
+else
+ $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
+
+fi
if test x$ac_df_checking != x ; then
$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 18479 "configure"
+#line 18482 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 18585 "configure"
+#line 18588 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
nocommon_flag=""
if test x$ac_checking != x ; then
- if test x$ac_extra_checking != x ; then
- ac_checking=2
- fi
- AC_DEFINE_UNQUOTED(CHECKING_P, $ac_checking,
-[Define to 1 if you want more run-time sanity checks. This one gets a grab
- bag of miscellaneous but relatively cheap checks. Define to 2 if you want
- also extra run-time checking that might affect code generation.])
+ AC_DEFINE(CHECKING_P, 1,
+[Define to 0/1 if you want more run-time sanity checks. This one gets a grab
+bag of miscellaneous but relatively cheap checks.])
nocommon_flag=-fno-common
else
AC_DEFINE(CHECKING_P, 0)
fi
AC_SUBST(nocommon_flag)
+if test x$ac_extra_checking != x ; then
+ AC_DEFINE(ENABLE_EXTRA_CHECKING, 1,
+[Define to 0/1 if you want extra run-time checking that might affect code
+generation.])
+else
+ AC_DEFINE(ENABLE_EXTRA_CHECKING, 0)
+fi
if test x$ac_df_checking != x ; then
AC_DEFINE(ENABLE_DF_CHECKING, 1,
[Define if you want more run-time sanity checks for dataflow.])