From 70e6ca43a3a5a9d9a319c5c827f5db7513c1d0e3 Mon Sep 17 00:00:00 2001 From: Alexandre Petit-Bianco Date: Mon, 5 Oct 1998 15:36:16 -0700 Subject: 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 --- gcc/expr.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/expr.c') diff --git a/gcc/expr.c b/gcc/expr.c index 445f151..adb2d4a 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -5919,6 +5919,13 @@ expand_expr (exp, target, tmode, modifier) placeholder_list = TREE_CHAIN (placeholder_list); 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: expand_exit_loop_if_false (NULL_PTR, invert_truthvalue (TREE_OPERAND (exp, 0))); -- cgit v1.1