PR jit/64780: configure: --enable-host-shared and the jit
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 29 Jan 2015 16:25:14 +0000 (16:25 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 29 Jan 2015 16:25:14 +0000 (16:25 +0000)
ChangeLog:
PR jit/64780
* configure.ac: Require the user to explicitly specify
--enable-host-shared if the jit is enabled.
* configure: Regenerate.

From-SVN: r220253

ChangeLog
configure
configure.ac

index 360938735bfd8786e91ea7b594560c373b3a141e..ae98e615d55bf94177518b3a93cbcfc6566bc864 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-01-29  David Malcolm  <dmalcolm@redhat.com>
+
+       PR jit/64780
+       * configure.ac: Require the user to explicitly specify
+       --enable-host-shared if the jit is enabled.
+       * configure: Regenerate.
+
 2015-01-27  Robert Suchanek  <robert.suchanek@imgtec.com>
 
        * MAINTAINERS (Write After Approval): Add myself.
index 5860241b6d14225752858c237c8483bc38c1cacc..dd794dbe4627e2a0ec5affb3506d48fd8cc77c7c 100755 (executable)
--- a/configure
+++ b/configure
 
 
 
+# PR jit/64780: Require the user to explicitly specify
+# --enable-host-shared if the jit is enabled, hinting
+# that they might want to do a separate configure/build of
+# the jit, to avoid users from slowing down the rest of the
+# compiler by enabling the jit.
+if test ${host_shared} = "no" ; then
+  case "${enable_languages}" in
+    *jit*)
+      as_fn_error "
+Enabling language \"jit\" requires --enable-host-shared.
+
+--enable-host-shared typically slows the rest of the compiler down by
+a few %, so you must explicitly enable it.
+
+If you want to build both the jit and the regular compiler, it is often
+best to do this via two separate configure/builds, in separate
+directories, to avoid imposing the performance cost of
+--enable-host-shared on the regular compiler." "$LINENO" 5
+      ;;
+    *)
+      ;;
+  esac
+fi
+
 # Specify what files to not compare during bootstrap.
 
 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
index 267c8e61297f2864ba6e195466807991ed60ebf5..4ea5e0061bfbb213f118275b184293f806a970e7 100644 (file)
@@ -3467,6 +3467,30 @@ AC_ARG_ENABLE(host-shared,
 [host_shared=$enableval], [host_shared=no])
 AC_SUBST(host_shared)
 
+# PR jit/64780: Require the user to explicitly specify
+# --enable-host-shared if the jit is enabled, hinting
+# that they might want to do a separate configure/build of
+# the jit, to avoid users from slowing down the rest of the
+# compiler by enabling the jit.
+if test ${host_shared} = "no" ; then
+  case "${enable_languages}" in
+    *jit*)
+      AC_MSG_ERROR([
+Enabling language "jit" requires --enable-host-shared.
+
+--enable-host-shared typically slows the rest of the compiler down by
+a few %, so you must explicitly enable it.
+
+If you want to build both the jit and the regular compiler, it is often
+best to do this via two separate configure/builds, in separate
+directories, to avoid imposing the performance cost of
+--enable-host-shared on the regular compiler.])
+      ;;
+    *)
+      ;;
+  esac
+fi
+
 # Specify what files to not compare during bootstrap.
 
 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"