# HG changeset patch # User Rik # Date 1383070189 25200 # Node ID 26e9312e692875f59228aa383260013d0aac92d0 # Parent 224e76250443553a6e11dada44fdb1212c987711 Build JIT compiler by default, but do not enable it by default. * configure.ac: Switch build_jit to "yes". * libinterp/corefcn/pt-jit.cc: Initialize Vjit_enable to false (disable at runtime). * libinterp/octave.cc: Process new --jit-compiler option. * libinterp/options-usage.h: Document new --jit-compiler option. Remove old --no-jit-compiler option. diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -718,12 +718,12 @@ ### Check for the LLVM library -build_jit=no +build_jit=yes AC_ARG_ENABLE([jit], [AS_HELP_STRING([--enable-jit], [(EXPERIMENTAL) enable JIT compiler])], - [if test "$enableval" = yes; then - build_jit=yes + [if test "$enableval" = no; then + build_jit=no fi], []) diff --git a/libinterp/corefcn/pt-jit.cc b/libinterp/corefcn/pt-jit.cc --- a/libinterp/corefcn/pt-jit.cc +++ b/libinterp/corefcn/pt-jit.cc @@ -42,7 +42,7 @@ static bool Vdebug_jit = false; -static bool Vjit_enable = true; +static bool Vjit_enable = false; static int Vjit_startcnt = 1000; diff --git a/libinterp/octave.cc b/libinterp/octave.cc --- a/libinterp/octave.cc +++ b/libinterp/octave.cc @@ -639,6 +639,10 @@ Fdebug_jit (octave_value (true)); break; + case JIT_COMPILER_OPTION: + Fjit_enable (octave_value (true)); + break; + case LINE_EDITING_OPTION: forced_line_editing = true; break; @@ -655,10 +659,6 @@ set_initial_path = false; break; - case NO_JIT_COMPILER_OPTION: - Fjit_enable (octave_value (false)); - break; - case NO_LINE_EDITING_OPTION: line_editing = false; break; diff --git a/libinterp/options-usage.h b/libinterp/options-usage.h --- a/libinterp/options-usage.h +++ b/libinterp/options-usage.h @@ -33,8 +33,8 @@ [--echo-commands] [--eval CODE] [--exec-path path]\n\ [--force-gui] [--help] [--image-path path]\n\ [--info-file file] [--info-program prog] [--interactive]\n\ - [--line-editing] [--no-gui] [--no-history] [--no-init-file]\n\ - [--no-init-path] [--no-jit-compiler] [--no-line-editing]\n\ + [--jit-compiler] [--line-editing] [--no-gui] [--no-history]\n\ + [--no-init-file] [--no-init-path] [--no-line-editing]\n\ [--no-site-file] [--no-window-system] [--norc] [-p path]\n\ [--path path] [--persist] [--silent] [--traditional]\n\ [--verbose] [--version] [file]"; @@ -55,11 +55,11 @@ #define INFO_FILE_OPTION 7 #define INFO_PROG_OPTION 8 #define DEBUG_JIT_OPTION 9 -#define LINE_EDITING_OPTION 10 -#define NO_GUI_OPTION 11 -#define NO_INIT_FILE_OPTION 12 -#define NO_INIT_PATH_OPTION 13 -#define NO_JIT_COMPILER_OPTION 14 +#define JIT_COMPILER_OPTION 10 +#define LINE_EDITING_OPTION 11 +#define NO_GUI_OPTION 12 +#define NO_INIT_FILE_OPTION 13 +#define NO_INIT_PATH_OPTION 14 #define NO_LINE_EDITING_OPTION 15 #define NO_SITE_FILE_OPTION 16 #define PERSIST_OPTION 17 @@ -80,12 +80,12 @@ { "info-file", required_argument, 0, INFO_FILE_OPTION }, { "info-program", required_argument, 0, INFO_PROG_OPTION }, { "interactive", no_argument, 0, 'i' }, + { "jit-compiler", no_argument, 0, JIT_COMPILER_OPTION }, { "line-editing", no_argument, 0, LINE_EDITING_OPTION }, { "no-gui", no_argument, 0, NO_GUI_OPTION }, { "no-history", no_argument, 0, 'H' }, { "no-init-file", no_argument, 0, NO_INIT_FILE_OPTION }, { "no-init-path", no_argument, 0, NO_INIT_PATH_OPTION }, - { "no-jit-compiler", no_argument, 0, NO_JIT_COMPILER_OPTION }, { "no-line-editing", no_argument, 0, NO_LINE_EDITING_OPTION }, { "no-site-file", no_argument, 0, NO_SITE_FILE_OPTION }, { "no-window-system", no_argument, 0, 'W' }, @@ -126,12 +126,12 @@ --info-file FILE Use top-level info file FILE.\n\ --info-program PROGRAM Use PROGRAM for reading info files.\n\ --interactive, -i Force interactive behavior.\n\ + --jit-compiler Enable the JIT compiler.\n\ --line-editing Force readline use for command-line editing.\n\ --no-gui Disable the graphical user interface.\n\ --no-history, -H Don't save commands to the history list\n\ --no-init-file Don't read the ~/.octaverc or .octaverc files.\n\ --no-init-path Don't initialize function search path.\n\ - --no-jit-compiler Disable the JIT compiler.\n\ --no-line-editing Don't use readline for command-line editing.\n\ --no-site-file Don't read the site-wide octaverc file.\n\ --no-window-system, -W Disable window system, including graphics.\n\