Commit 4c76f856 by Janis Johnson Committed by Janis Johnson

config.in (ENABLE_RTL_FLAG_CHECKING): New.

	* config.in (ENABLE_RTL_FLAG_CHECKING): New.
	* configure.in (ac_rtlflag_checking): New.
	* doc/install.texi (--enable-checking): Document RTL flag checking.
	* configure: Regenerated.

From-SVN: r53272
parent 44a147ad
2002-05-07 Janis Johnson <janis187@us.ibm.com>
* config.in (ENABLE_RTL_FLAG_CHECKING): New.
* configure.in (ac_rtlflag_checking): New.
* doc/install.texi (--enable-checking): Document RTL flag checking.
2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk> 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
* c-common.c (c_common_init): Set options->unsigned_wchar. * c-common.c (c_common_init): Set options->unsigned_wchar.
......
...@@ -287,6 +287,11 @@ ...@@ -287,6 +287,11 @@
at runtime. This is quite expensive. */ at runtime. This is quite expensive. */
#undef ENABLE_RTL_CHECKING #undef ENABLE_RTL_CHECKING
/* Define if you want RTL flag accesses to be checked against the RTL
codes that are supported for each access macro. This is relatively
cheap. */
#undef ENABLE_RTL_FLAG_CHECKING
/* Define if you want the garbage collector to do object poisoning and /* Define if you want the garbage collector to do object poisoning and
other memory allocation checks. This is quite expensive. */ other memory allocation checks. This is quite expensive. */
#undef ENABLE_GC_CHECKING #undef ENABLE_GC_CHECKING
......
...@@ -187,15 +187,17 @@ AC_ARG_ENABLE(checking, ...@@ -187,15 +187,17 @@ AC_ARG_ENABLE(checking,
[ --enable-checking[=LIST] [ --enable-checking[=LIST]
enable expensive run-time checks. With LIST, enable expensive run-time checks. With LIST,
enable only specific categories of checks. enable only specific categories of checks.
Categories are: misc,tree,rtl,gc,gcac; default Categories are: misc,tree,rtl,rtlflag,gc,gcac;
is misc,tree,gc], default is misc,tree,gc,rtlflag],
[ac_checking= [ac_checking=
ac_tree_checking= ac_tree_checking=
ac_rtl_checking= ac_rtl_checking=
ac_rtlflag_checking=
ac_gc_checking= ac_gc_checking=
ac_gc_always_collect= ac_gc_always_collect=
case "${enableval}" in case "${enableval}" in
yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;; yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
ac_rtlflag_checking=1 ;;
no) ;; no) ;;
*) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
set fnord $enableval; shift set fnord $enableval; shift
...@@ -205,6 +207,7 @@ no) ;; ...@@ -205,6 +207,7 @@ no) ;;
case $check in case $check in
misc) ac_checking=1 ;; misc) ac_checking=1 ;;
tree) ac_tree_checking=1 ;; tree) ac_tree_checking=1 ;;
rtlflag) ac_rtlflag_checking=1 ;;
rtl) ac_rtl_checking=1 ;; rtl) ac_rtl_checking=1 ;;
gc) ac_gc_checking=1 ;; gc) ac_gc_checking=1 ;;
gcac) ac_gc_always_collect=1 ;; gcac) ac_gc_always_collect=1 ;;
...@@ -215,7 +218,7 @@ no) ;; ...@@ -215,7 +218,7 @@ no) ;;
esac esac
], ],
# Enable some checks by default for development versions of GCC # Enable some checks by default for development versions of GCC
[ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;]) [ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;])
if test x$ac_checking != x ; then if test x$ac_checking != x ; then
AC_DEFINE(ENABLE_CHECKING, 1, AC_DEFINE(ENABLE_CHECKING, 1,
[Define if you want more run-time sanity checks. This one gets a grab [Define if you want more run-time sanity checks. This one gets a grab
...@@ -233,6 +236,12 @@ if test x$ac_rtl_checking != x ; then ...@@ -233,6 +236,12 @@ if test x$ac_rtl_checking != x ; then
of the optimizer and back end) to be checked for dynamic type safety of the optimizer and back end) to be checked for dynamic type safety
at runtime. This is quite expensive.]) at runtime. This is quite expensive.])
fi fi
if test x$ac_rtlflag_checking != x ; then
AC_DEFINE(ENABLE_RTL_FLAG_CHECKING, 1,
[Define if you want RTL flag accesses to be checked against the RTL
codes that are supported for each access macro. This is relatively
cheap.])
fi
if test x$ac_gc_checking != x ; then if test x$ac_gc_checking != x ; then
AC_DEFINE(ENABLE_GC_CHECKING, 1, AC_DEFINE(ENABLE_GC_CHECKING, 1,
[Define if you want the garbage collector to do object poisoning and [Define if you want the garbage collector to do object poisoning and
......
...@@ -782,8 +782,9 @@ compiler and may only work properly if you are building the compiler ...@@ -782,8 +782,9 @@ compiler and may only work properly if you are building the compiler
with GCC@. This is on by default when building from CVS or snapshots, with GCC@. This is on by default when building from CVS or snapshots,
but off for releases. More control over the checks may be had by but off for releases. More control over the checks may be had by
specifying @var{list}; the categories of checks available are specifying @var{list}; the categories of checks available are
@samp{misc}, @samp{tree}, @samp{gc}, @samp{rtl} and @samp{gcac}. The @samp{misc}, @samp{tree}, @samp{gc}, @samp{rtl}, @samp{rtlflag} and
default when @var{list} is not specified is @samp{misc,tree,gc}; the @samp{gcac}. The
default when @var{list} is not specified is @samp{misc,tree,gc,rtlflag}; the
checks @samp{rtl} and @samp{gcac} are very expensive. checks @samp{rtl} and @samp{gcac} are very expensive.
@item --enable-nls @item --enable-nls
......
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