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
This commit is contained in:
Janis Johnson 2002-05-07 22:52:19 +00:00 committed by Janis Johnson
parent 44a147ad2e
commit 4c76f8561e
5 changed files with 346 additions and 316 deletions

View File

@ -1,3 +1,9 @@
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>
* c-common.c (c_common_init): Set options->unsigned_wchar.

View File

@ -287,6 +287,11 @@
at runtime. This is quite expensive. */
#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
other memory allocation checks. This is quite expensive. */
#undef ENABLE_GC_CHECKING

629
gcc/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -187,15 +187,17 @@ AC_ARG_ENABLE(checking,
[ --enable-checking[=LIST]
enable expensive run-time checks. With LIST,
enable only specific categories of checks.
Categories are: misc,tree,rtl,gc,gcac; default
is misc,tree,gc],
Categories are: misc,tree,rtl,rtlflag,gc,gcac;
default is misc,tree,gc,rtlflag],
[ac_checking=
ac_tree_checking=
ac_rtl_checking=
ac_rtlflag_checking=
ac_gc_checking=
ac_gc_always_collect=
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) ;;
*) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
set fnord $enableval; shift
@ -205,6 +207,7 @@ no) ;;
case $check in
misc) ac_checking=1 ;;
tree) ac_tree_checking=1 ;;
rtlflag) ac_rtlflag_checking=1 ;;
rtl) ac_rtl_checking=1 ;;
gc) ac_gc_checking=1 ;;
gcac) ac_gc_always_collect=1 ;;
@ -215,7 +218,7 @@ no) ;;
esac
],
# 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
AC_DEFINE(ENABLE_CHECKING, 1,
[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
of the optimizer and back end) to be checked for dynamic type safety
at runtime. This is quite expensive.])
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
AC_DEFINE(ENABLE_GC_CHECKING, 1,
[Define if you want the garbage collector to do object poisoning and

View File

@ -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,
but off for releases. More control over the checks may be had by
specifying @var{list}; the categories of checks available are
@samp{misc}, @samp{tree}, @samp{gc}, @samp{rtl} and @samp{gcac}. The
default when @var{list} is not specified is @samp{misc,tree,gc}; the
@samp{misc}, @samp{tree}, @samp{gc}, @samp{rtl}, @samp{rtlflag} and
@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.
@item --enable-nls