summaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-28 04:56:35 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-28 04:56:35 +0000
commit3541e1130504244cf334a9d3f471377bd276c949 (patch)
tree59d5e4829907404d9cd123482f4ad1565deac1eb /gcc/flags.h
parenteb32e911e2e75329903d38e72ff207ede5ca722c (diff)
downloadgcc-3541e1130504244cf334a9d3f471377bd276c949.tar.gz
* toplev.c (flag_evaluation_order): New global variable.
* flags.h (flag_evaluation_order): Prototype here. * expr.c (expand_operands): If we need to preserve observable evaluation order, protect exp1 from clobbering exp0's result. * java/lang.c (java_init_options): Set flag_evaluation_order. * java/expr.c (force_evaluation_order): Don't attempt to force evaluation order of binary operations using save_expr. * java/parse.y (java_complete_lhs): No longer need to call force_evaluation_order when constructing binary operators. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71873 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index 823aaefb32d..4d6ea074174 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -604,6 +604,9 @@ extern int flag_trapv;
/* Nonzero if the signed arithmetic overflow should wrap around. */
extern int flag_wrapv;
+/* Nonzero if subexpressions must be evaluated from left-to-right. */
+extern int flag_evaluation_order;
+
/* Value of the -G xx switch, and whether it was passed or not. */
extern unsigned HOST_WIDE_INT g_switch_value;
extern bool g_switch_set;