Force left-to-right evaluation of binary operations etc.
authorPer Bothner <bothner@gcc.gnu.org>
Fri, 19 Feb 1999 16:33:18 +0000 (08:33 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Fri, 19 Feb 1999 16:33:18 +0000 (08:33 -0800)
commit742855605950c43419bed950f7f0866cfbbc1c5d
treef91030069f52afee0467bda834f76d3f91ecf256
parentc60ca7db2a2b90250208144231af8928acaf8adb
Force left-to-right evaluation of binary operations etc.

Force left-to-right evaluation of binary operations etc.
* expr.c (force_evaluation_order), java-tree.h:  New function.
* parse.y (java_complete_lhs):  Pass binary operations, procedure
calls, and ARRAY_REFs to force_evaluation_order.
(various):  Set TREE_SIDE_EFFECTS more carefully.
Tolerate random (non-UTF8) encoding in comments without complaining.
* lex.c (java_read_char):  Return 0xFFFE if bad UTF8 encoding.
(java_is_eol):  Handle '\r' followed by '\n' instead of vice versa.
* parse.y (resolve_qualified_expression_name):  Handle error_mark.
(java_complete_node case EXPR_WITH_FILE_LOCATION):  Likewise.
* parse.y (java_complete_lhs):  Ignore an empty statement in a
COMPOUND_EXPR.  Don't complain about empty statement after return.

From-SVN: r25326
gcc/java/expr.c