diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-29 16:25:14 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-29 16:25:14 +0000 |
commit | 5c524c74dd6449f28e5513977ff02abf411d65d7 (patch) | |
tree | 3e5a350e954a658d2efdc71bb3a05bae5e0210c9 | |
parent | dbe1241ef3cae41f34c6b230749f0149db01c3cb (diff) | |
download | gcc-5c524c74dd6449f28e5513977ff02abf411d65d7.tar.gz |
PR jit/64780: configure: --enable-host-shared and the jit
ChangeLog:
PR jit/64780
* configure.ac: Require the user to explicitly specify
--enable-host-shared if the jit is enabled.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220253 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | configure | 24 | ||||
-rw-r--r-- | configure.ac | 24 |
3 files changed, 55 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 360938735bf..ae98e615d55 100644 --- 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. diff --git a/configure b/configure index 5860241b6d1..dd794dbe462 100755 --- a/configure +++ b/configure @@ -14750,6 +14750,30 @@ fi +# 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/*" diff --git a/configure.ac b/configure.ac index 267c8e61297..4ea5e0061bf 100644 --- a/configure.ac +++ b/configure.ac @@ -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/*" |