OSDN Git Service

Optimize: `return (a ? b : c)' as: `if (a) return b; else return c;'.
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Feb 1999 12:20:34 +0000 (12:20 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Feb 1999 12:20:34 +0000 (12:20 +0000)
* jcf-write.c (generate_bytecode_return):  New function.
(generate_bytecode_insns):  Use it, for RETURN_EXPR.
* jcf-write.c (generate_bytecode_insns):  For REAL_CST that is 0 or 1,
generate special [fd]const_[01] instructions.
* jcf-parse.c (yyparse):  Don't emit_register_classes if -fsyntax-only.
* verify.c (verify_jvm_instructions):  Do INVALIDATE_PC after
handling OPCODE_lookupswitch or OPCODE_tableswitch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24970 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog

index 63e1254..292cf4c 100644 (file)
@@ -1,3 +1,17 @@
+Tue Feb  2 10:39:47 1999  Per Bothner  <bothner@cygnus.com>
+
+       Optimize: `return (a ? b : c)' as: `if (a) return b; else return c;'.
+       * jcf-write.c (generate_bytecode_return):  New function.
+       (generate_bytecode_insns):  Use it, for RETURN_EXPR.
+
+       * jcf-write.c (generate_bytecode_insns):  For REAL_CST that is 0 or 1,
+       generate special [fd]const_[01] instructions.
+       
+       * jcf-parse.c (yyparse):  Don't emit_register_classes if -fsyntax-only.
+
+       * verify.c (verify_jvm_instructions):  Do INVALIDATE_PC after
+       handling OPCODE_lookupswitch or OPCODE_tableswitch.
+
 Mon Feb  1 20:44:47 1999  Per Bothner  <bothner@cygnus.com>
 
        * parse.y (patch_method_invocation):  Handle calling static methods,