Java: new nodes in check-init.c

Andrew Haley aph@pasanda.cygnus.co.uk
Tue Mar 14 12:54:00 GMT 2000


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);


More information about the Gcc-patches mailing list