]> gcc.gnu.org Git - gcc.git/commitdiff
jcf-write.c (generate_bytecode_insns): Handle __builtin_fmod, for %.
authorPer Bothner <bothner@gcc.gnu.org>
Wed, 10 Mar 1999 23:22:47 +0000 (15:22 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Wed, 10 Mar 1999 23:22:47 +0000 (15:22 -0800)

* jcf-write.c (generate_bytecode_insns):  Handle __builtin_fmod, for %.

From-SVN: r25682

gcc/java/jcf-write.c

index 42d32d27ffa64fe5bbd7f00cd94595eb64f5424c..7a9cb91ac3a8b821de7f412c4436f305ead3c4e2 100644 (file)
@@ -2396,6 +2396,13 @@ generate_bytecode_insns (exp, target, state)
          }
        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)
This page took 0.058586 seconds and 5 git commands to generate.