diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1999-02-19 08:33:20 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1999-02-19 08:33:20 -0800 |
commit | 68ae3b17eb0110b389d4caa7eee9c433843e7c73 (patch) | |
tree | 6b82b876bb9a612e39597faef317cc1f3ec3bd77 /gcc/java/java-tree.h | |
parent | 742855605950c43419bed950f7f0866cfbbc1c5d (diff) | |
download | gcc-68ae3b17eb0110b389d4caa7eee9c433843e7c73.zip gcc-68ae3b17eb0110b389d4caa7eee9c433843e7c73.tar.gz gcc-68ae3b17eb0110b389d4caa7eee9c433843e7c73.tar.bz2 |
Force left-to-right evaluation of binary operations etc.
T
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: r25327
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r-- | gcc/java/java-tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index df391a2..ad1880d 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -589,6 +589,7 @@ extern void add_interface PROTO ((tree, tree)); extern int find_in_current_zip PROTO ((char *, int, struct JCF **)); extern void append_gpp_mangled_classtype PROTO ((struct obstack *, char *)); extern void emit_unicode_mangled_name PROTO ((struct obstack *, char *, int)); +extern tree force_evaluation_order PROTO ((tree)); /* Access flags etc for a method (a FUNCTION_DECL): */ |