From 0b094f655adbcfc286d1e03937814129dd5fa640 Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Wed, 21 Jul 1999 14:51:24 +0000 Subject: lang.c (flag_use_divide_subroutine): New variable. 1999-07-15 Andrew Haley * 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. * parse.c: Rebuilt. * jvspec.c (lang_specific_driver): Always allow an extra arg (for a --specs= arg) even if not linking. * lang-options.h (DEFINE_LANG_NAME ("Java")): Add -fuse-divide-subroutine From-SVN: r28209 --- gcc/java/lang-options.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/java/lang-options.h') diff --git a/gcc/java/lang-options.h b/gcc/java/lang-options.h index db80b01..7ebc7ee 100644 --- a/gcc/java/lang-options.h +++ b/gcc/java/lang-options.h @@ -43,6 +43,8 @@ DEFINE_LANG_NAME ("Java") { "-fCLASSPATH", "Set class path" }, { "-I", "Add directory to class path" }, { "-foutput-class-dir", "Directory where class files should be written" }, + { "-fuse-divide-subroutine", "" }, + { "-fno-use-divide-subroutine", "Use built-in instructions for division" }, { "-Wredundant-modifiers", "Warn if modifiers are specified when not necessary"}, - { "-Wunsupported-jdk11", "Warn if `final' local variables are specified"}, + { "-Wunsupported-jdk11", "Warn if `final' local variables are specified"} -- cgit v1.1