This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcj bytecode generation patch
Per pointed out the correct solution offline. I am committing this.
2000-01-30 Anthony Green <green@redhat.com>
* jcf-write.c (generate_bytecode_insns): Use TYPE_IS_WIDE to
determine how many stack slots to pop.
Index: gcc/java/jcf-write.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jcf-write.c,v
retrieving revision 1.46
diff -u -r1.46 jcf-write.c
--- jcf-write.c 2000/01/29 22:40:07 1.46
+++ jcf-write.c 2000/01/31 05:31:36
@@ -1625,7 +1625,7 @@
/* COND_EXPR can be used in a binop. The stack must be adjusted. */
if (TREE_TYPE (exp) != void_type_node)
- NOTE_POP (TYPE_PRECISION (TREE_TYPE (exp)) > 32 ? 2 : 1);
+ NOTE_POP (TYPE_IS_WIDE (TREE_TYPE (exp)) ? 2 : 1);
}
break;
case CASE_EXPR:
AG
--
Anthony Green Red Hat
Sunnyvale, California