aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lang.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@cygnus.com>1999-07-21 14:28:33 +0000
committerAndrew Haley <aph@gcc.gnu.org>1999-07-21 14:28:33 +0000
commitaa4759c11cc78443455b69fca236c24ff89c91a1 (patch)
tree7a86e6410656ef434107be5353da306f7adf35c0 /gcc/java/lang.c
parent9c1ce4332e0bfc9289296fde205af0eb3a21e50b (diff)
downloadgcc-aa4759c11cc78443455b69fca236c24ff89c91a1.zip
gcc-aa4759c11cc78443455b69fca236c24ff89c91a1.tar.gz
gcc-aa4759c11cc78443455b69fca236c24ff89c91a1.tar.bz2
lang.c (flag_use_divide_subroutine): New variable.
1999-07-15 Andrew Haley <aph@cygnus.com> * lang.c (flag_use_divide_subroutine): New variable. * typeck.c: (convert_ieee_real_to_integer): Bounds check fp-to-integer conversion. (convert): Call convert_ieee_real_to_integer when flag_fast_math is not set. * expr.c (build_java_soft_divmod): New function. (build_java_binop): Call build_java_soft_divmod if flag_use_divide_subroutine is set. * decl.c: soft_idiv_node, soft_irem_node, soft_ldiv_node, tree soft_lrem_node: new builtin functions. (init_decl_processing) Initialize the new builtins. * java-tree.h soft_idiv_node, soft_irem_node, soft_ldiv_node, tree soft_lrem_node: new builtin functions. (build_java_soft_divmod): New function. * parse.y: Call build_java_soft_divmod if flag_use_divide_subroutine is set. From-SVN: r28208
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r--gcc/java/lang.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index cd6fb3b..976ed64 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -105,6 +105,9 @@ int flag_not_overriding = 0;
/* When non zero, warns that final local are treated as non final. */
int flag_static_local_jdk1_1 = 0;
+/* When non zero, call a library routine to do integer divisions. */
+int flag_use_divide_subroutine = 1;
+
/* From gcc/flags.h, and indicates if exceptions are turned on or not. */
extern int flag_new_exceptions;
@@ -123,6 +126,7 @@ lang_f_options[] =
{"assume-compiled", &flag_assume_compiled, 1},
{"emit-class-file", &flag_emit_class_files, 1},
{"emit-class-files", &flag_emit_class_files, 1},
+ {"use-divide-subroutine", &flag_use_divide_subroutine, 1},
};
JCF *current_jcf;