mirror of git://gcc.gnu.org/git/gcc.git
tree.def (GOTO_EXPR): Modified documentation.
8 * tree.def (GOTO_EXPR): Modified documentation. * expr.c (expand_expr): Expand GOTO_EXPR into a goto or a computed goto. From-SVN: r22859
This commit is contained in:
parent
c27be9b9fc
commit
70e6ca43a3
|
|
@ -5919,6 +5919,13 @@ expand_expr (exp, target, tmode, modifier)
|
||||||
placeholder_list = TREE_CHAIN (placeholder_list);
|
placeholder_list = TREE_CHAIN (placeholder_list);
|
||||||
return target;
|
return target;
|
||||||
|
|
||||||
|
case GOTO_EXPR:
|
||||||
|
if (TREE_CODE (TREE_OPERAND (exp, 0)) == LABEL_DECL)
|
||||||
|
expand_goto (TREE_OPERAND (exp, 0));
|
||||||
|
else
|
||||||
|
expand_computed_goto (TREE_OPERAND (exp, 0));
|
||||||
|
return const0_rtx;
|
||||||
|
|
||||||
case EXIT_EXPR:
|
case EXIT_EXPR:
|
||||||
expand_exit_loop_if_false (NULL_PTR,
|
expand_exit_loop_if_false (NULL_PTR,
|
||||||
invert_truthvalue (TREE_OPERAND (exp, 0)));
|
invert_truthvalue (TREE_OPERAND (exp, 0)));
|
||||||
|
|
|
||||||
|
|
@ -721,7 +721,7 @@ DEFTREECODE (POPDCC_EXPR, "popdcc_expr", 's', 0)
|
||||||
The type should be void and the value should be ignored. */
|
The type should be void and the value should be ignored. */
|
||||||
DEFTREECODE (LABEL_EXPR, "label_expr", 's', 1)
|
DEFTREECODE (LABEL_EXPR, "label_expr", 's', 1)
|
||||||
|
|
||||||
/* GOTO. Operand 0 is a LABEL_DECL node.
|
/* GOTO. Operand 0 is a LABEL_DECL node or an expression.
|
||||||
The type should be void and the value should be ignored. */
|
The type should be void and the value should be ignored. */
|
||||||
DEFTREECODE (GOTO_EXPR, "goto_expr", 's', 1)
|
DEFTREECODE (GOTO_EXPR, "goto_expr", 's', 1)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue