diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1999-02-02 04:20:34 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1999-02-02 04:20:34 -0800 |
commit | bb31662fadb407a0b9ed2d44a8171d830a060b05 (patch) | |
tree | 356e1e499a8298fbc7c62d9854aefcaea9fbff2f /gcc/java/jcf-write.c | |
parent | f044fba91499e83ed708cacffe65ad142d87e5f9 (diff) | |
download | gcc-bb31662fadb407a0b9ed2d44a8171d830a060b05.zip gcc-bb31662fadb407a0b9ed2d44a8171d830a060b05.tar.gz gcc-bb31662fadb407a0b9ed2d44a8171d830a060b05.tar.bz2 |
Optimize: `return (a ? b : c)' as: `if (a) return b; else return c;'.
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.
From-SVN: r24970
Diffstat (limited to 'gcc/java/jcf-write.c')
0 files changed, 0 insertions, 0 deletions