This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH handle writing bytecode for floating 5 operator
- To: egcs-patches at egcs dot cygnus dot com
- Subject: PATCH handle writing bytecode for floating 5 operator
- From: Per Bothner <bothner at cygnus dot com>
- Date: Wed, 10 Mar 1999 23:24:07 -0800
I checked this into egcs.
--Per Bothner
Cygnus Solutions bothner@cygnus.com http://www.cygnus.com/~bothner
Wed Mar 10 23:20:11 1999 Per Bothner <bothner@cygnus.com>
* jcf-write.c (generate_bytecode_insns): Handle __builtin_fmod, for %.
Index: jcf-write.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/java/jcf-write.c,v
retrieving revision 1.20
diff -u -p -r1.20 jcf-write.c
--- jcf-write.c 1999/02/21 23:47:07 1.20
+++ jcf-write.c 1999/03/11 07:20:00
@@ -2396,6 +2396,13 @@ generate_bytecode_insns (exp, target, st
}
nargs = state->code_SP - save_SP;
state->code_SP = save_SP;
+ if (f == soft_fmod_node)
+ {
+ RESERVE (1);
+ OP1 (OPCODE_drem);
+ NOTE_PUSH (2);
+ break;
+ }
if (TREE_CODE (exp) == NEW_CLASS_EXPR)
NOTE_POP (1); /* Pop implicit this. */
if (TREE_CODE (f) == FUNCTION_DECL && DECL_CONTEXT (f) != NULL_TREE)