This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Java: new nodes in check-init.c
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Java: new nodes in check-init.c
- From: Andrew Haley <aph at pasanda dot cygnus dot co dot uk>
- Date: 14 Mar 2000 20:54:19 -0000
jc1 can expand some Java expressions into nodes we don't currently
handle when checking assignment. This patch adds them.
Checked in.
Andrew.
2000-02-14 Andrew Haley <aph@cygnus.com>
* check-init.c (check_init): Add new cases for unary and binary
tree nodes.
Index: check-init.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/check-init.c,v
retrieving revision 1.20
diff -c -2 -p -r1.20 check-init.c
*** check-init.c 2000/03/14 05:01:04 1.20
--- check-init.c 2000/03/14 20:50:59
*************** check_init (exp, before)
*** 623,626 ****
--- 623,632 ----
case NON_LVALUE_EXPR:
case INSTANCEOF_EXPR:
+ case FIX_CEIL_EXPR:
+ case FIX_FLOOR_EXPR:
+ case FIX_ROUND_EXPR:
+ case EXPON_EXPR:
+ case ABS_EXPR:
+ case FFS_EXPR:
/* Avoid needless recursion. */
exp = TREE_OPERAND (exp, 0);
*************** check_init (exp, before)
*** 656,659 ****
--- 662,674 ----
case MIN_EXPR:
case ARRAY_REF:
+ case LROTATE_EXPR:
+ case RROTATE_EXPR:
+ case CEIL_DIV_EXPR:
+ case FLOOR_DIV_EXPR:
+ case ROUND_DIV_EXPR:
+ case CEIL_MOD_EXPR:
+ case FLOOR_MOD_EXPR:
+ case ROUND_MOD_EXPR:
+ case EXACT_DIV_EXPR:
binop:
check_init (TREE_OPERAND (exp, 0), before);