* configure.ac: New --enable-mapped-location sets USE_MAPPED_LOCATION.
authorPer Bothner <per@bothner.com>
Wed, 9 Jun 2004 01:12:01 +0000 (18:12 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Wed, 9 Jun 2004 01:12:01 +0000 (18:12 -0700)
From-SVN: r82809

gcc/ChangeLog
gcc/config.in
gcc/configure
gcc/configure.ac

index a42b594d2943197573279ab74e424de67dff02f1..4740edb39e334c7db6d2d4d7bf9e121eaa6a45f7 100644 (file)
@@ -1,3 +1,7 @@
+2004-06-08  Per Bothner  <per@bothner.com>
+
+       * configure.ac:  New --enable-mapped-location sets USE_MAPPED_LOCATION.
+
 2004-06-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * toplev.c (floor_log2_wide): Correct casts for 64-bit hosts.
index 376759e70df8ddd8d01d5dd7f223f763eed5db08..2de75fd55d041095fe25fa89f4bf0205963eae3f 100644 (file)
 /* 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
 
index 99b9901994d76ba274c3647d8b400763f39a24c3..fa069a3bef550d1b1833b81861642e43c70e921c 100755 (executable)
@@ -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]*)
index 71f6f0d49a09dcc466c21d1b33ffd5f7167654cf..36068563972f238a6d4a3cbb1c72f54db24866da 100644 (file)
@@ -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]