diff options
author | Jakub Jelinek <jakub@redhat.com> | 2003-07-28 17:42:24 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2003-07-28 17:42:24 +0200 |
commit | 5dfa45d043db04ebddf4081364661e0784304d39 (patch) | |
tree | 171abb9dcfe266e6906e8910ab7d2a2a3a72cce0 /gcc/configure | |
parent | 66584e64179362cd8d96b676ea793e9fee38788d (diff) | |
download | gcc-5dfa45d043db04ebddf4081364661e0784304d39.zip gcc-5dfa45d043db04ebddf4081364661e0784304d39.tar.gz gcc-5dfa45d043db04ebddf4081364661e0784304d39.tar.bz2 |
configure.in (--enable-checking): Add fold category.
* configure.in (--enable-checking): Add fold category.
(ENABLE_FOLD_CHECKING): Define if requested.
* configure: Rebuilt.
* config.in: Rebuilt.
* doc/install.texi: Document it.
* fold-const.c: Include md5.h.
[ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
[ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
print_fold_checksum): New functions.
* fold-const.c (fold): Never modify argument passed to fold, instead
change a copy and return it.
* convert.c (convert_to_integer): Likewise.
testsuite/
* gcc.c-torture/compile/20030725-1.c: New test.
From-SVN: r69886
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/configure b/gcc/configure index cbb57e7..c102e87 100755 --- a/gcc/configure +++ b/gcc/configure @@ -34,7 +34,7 @@ ac_help="$ac_help --enable-checking[=LIST] enable expensive run-time checks. With LIST, enable only specific categories of checks. - Categories are: misc,tree,rtl,rtlflag,gc,gcac; + Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold; default is misc,tree,gc,rtlflag" ac_help="$ac_help --enable-coverage[=LEVEL] @@ -1933,6 +1933,7 @@ ac_rtl_checking= ac_rtlflag_checking= ac_gc_checking= ac_gc_always_collect= +ac_fold_checking= case "${enableval}" in yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ; ac_rtlflag_checking=1 ;; @@ -1949,6 +1950,7 @@ no) ;; rtl) ac_rtl_checking=1 ;; gc) ac_gc_checking=1 ;; gcac) ac_gc_always_collect=1 ;; + fold) ac_fold_checking=1 ;; valgrind) ac_checking_valgrind=1 ;; *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;; esac @@ -2000,6 +2002,12 @@ if test x$ac_gc_always_collect != x ; then EOF fi +if test x$ac_fold_checking != x ; then + cat >> confdefs.h <<\EOF +#define ENABLE_FOLD_CHECKING 1 +EOF + +fi valgrind_path_defines= valgrind_command= if test x$ac_checking_valgrind != x ; then |