This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH handle writing bytecode for floating 5 operator


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]