From: Per Bothner Date: Wed, 9 Jun 2004 01:12:01 +0000 (-0700) Subject: * configure.ac: New --enable-mapped-location sets USE_MAPPED_LOCATION. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74ee16427180c49e1e2dfa01991770d2e3e7ab7e;p=gcc.git * configure.ac: New --enable-mapped-location sets USE_MAPPED_LOCATION. From-SVN: r82809 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a42b594d294..4740edb39e3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-06-08 Per Bothner + + * configure.ac: New --enable-mapped-location sets USE_MAPPED_LOCATION. + 2004-06-08 Richard Kenner * toplev.c (floor_log2_wide): Correct casts for 64-bit hosts. diff --git a/gcc/config.in b/gcc/config.in index 376759e70df..2de75fd55d0 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -542,6 +542,9 @@ /* Define if gcc should use -lunwind. */ #undef USE_LIBUNWIND_EXCEPTIONS +/* Define if location_t is fileline integer cookie. */ +#undef USE_MAPPED_LOCATION + /* Define to be the last portion of registry key on windows hosts. */ #undef WIN32_REGISTRY_KEY diff --git a/gcc/configure b/gcc/configure index 99b9901994d..fa069a3bef5 100755 --- a/gcc/configure +++ b/gcc/configure @@ -869,6 +869,7 @@ Optional Features: enable only specific categories of checks. Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold; default is misc,tree,gc,rtlflag + --enable-mapped-location location_t is fileline integer cookie --enable-coverage=LEVEL enable compiler\'s code coverage collection. Use to measure compiler performance and locate @@ -4583,6 +4584,22 @@ fi +# Check whether --enable-mapped-location or --disable-mapped-location was given. +if test "${enable_mapped_location+set}" = set; then + enableval="$enable_mapped_location" + +else + enable_mapped_location=no +fi; + +if test "$enable_mapped_location" = yes ; then + +cat >>confdefs.h <<\_ACEOF +#define USE_MAPPED_LOCATION 1 +_ACEOF + +fi + # Enable code coverage collection # Check whether --enable-coverage or --disable-coverage was given. if test "${enable_coverage+set}" = set; then @@ -5234,7 +5251,7 @@ if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then else ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` - echo "configure:5237: version of makeinfo is $ac_prog_version" >&5 + echo "configure:5254: version of makeinfo is $ac_prog_version" >&5 case $ac_prog_version in '') gcc_cv_prog_makeinfo_modern=no;; 4.[2-9]*) diff --git a/gcc/configure.ac b/gcc/configure.ac index 71f6f0d49a0..36068563972 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -513,6 +513,15 @@ fi AC_SUBST(valgrind_path_defines) AC_SUBST(valgrind_command) +AC_ARG_ENABLE(mapped-location, +[ --enable-mapped-location location_t is fileline integer cookie],, +enable_mapped_location=no) + +if test "$enable_mapped_location" = yes ; then + AC_DEFINE(USE_MAPPED_LOCATION, 1, +[Define if location_t is fileline integer cookie.]) +fi + # Enable code coverage collection AC_ARG_ENABLE(coverage, [ --enable-coverage[=LEVEL]