Commit e8eebd31 by Kazu Hirata Committed by Kazu Hirata

stmt.c (expand_start_case_dummy): Remove.

	* stmt.c (expand_start_case_dummy): Remove.
	* tree.h: Remove the corresponding prototype.

From-SVN: r78534
parent 8f2de5f1
2004-02-26 Kazu Hirata <kazu@cs.umass.edu> 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
* stmt.c (expand_start_case_dummy): Remove.
* tree.h: Remove the corresponding prototype.
2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
* builtins.c (apply_args_register_offset): Remove. * builtins.c (apply_args_register_offset): Remove.
* tree.h: Remove the corresponding prototype. * tree.h: Remove the corresponding prototype.
......
...@@ -220,8 +220,7 @@ struct nesting GTY(()) ...@@ -220,8 +220,7 @@ struct nesting GTY(())
conditional branch points. */ conditional branch points. */
rtx last_unconditional_cleanup; rtx last_unconditional_cleanup;
} GTY ((tag ("BLOCK_NESTING"))) block; } GTY ((tag ("BLOCK_NESTING"))) block;
/* For switch (C) or case (Pascal) statements, /* For switch (C) or case (Pascal) statements. */
and also for dummies (see `expand_start_case_dummy'). */
struct nesting_case struct nesting_case
{ {
/* The insn after which the case dispatch should finally /* The insn after which the case dispatch should finally
...@@ -4443,32 +4442,6 @@ expand_start_case (int exit_flag, tree expr, tree type, ...@@ -4443,32 +4442,6 @@ expand_start_case (int exit_flag, tree expr, tree type,
start_cleanup_deferral (); start_cleanup_deferral ();
} }
/* Start a "dummy case statement" within which case labels are invalid
and are not connected to any larger real case statement.
This can be used if you don't want to let a case statement jump
into the middle of certain kinds of constructs. */
void
expand_start_case_dummy (void)
{
struct nesting *thiscase = ALLOC_NESTING ();
/* Make an entry on case_stack for the dummy. */
thiscase->desc = CASE_NESTING;
thiscase->next = case_stack;
thiscase->all = nesting_stack;
thiscase->depth = ++nesting_depth;
thiscase->exit_label = 0;
thiscase->data.case_stmt.case_list = 0;
thiscase->data.case_stmt.start = 0;
thiscase->data.case_stmt.nominal_type = 0;
thiscase->data.case_stmt.default_label = 0;
case_stack = thiscase;
nesting_stack = thiscase;
start_cleanup_deferral ();
}
static void static void
check_seenlabel (void) check_seenlabel (void)
......
...@@ -3026,7 +3026,6 @@ extern void expand_decl (tree); ...@@ -3026,7 +3026,6 @@ extern void expand_decl (tree);
extern int expand_decl_cleanup (tree, tree); extern int expand_decl_cleanup (tree, tree);
extern int expand_decl_cleanup_eh (tree, tree, int); extern int expand_decl_cleanup_eh (tree, tree, int);
extern void expand_anon_union_decl (tree, tree, tree); extern void expand_anon_union_decl (tree, tree, tree);
extern void expand_start_case_dummy (void);
extern HOST_WIDE_INT all_cases_count (tree, int *); extern HOST_WIDE_INT all_cases_count (tree, int *);
extern void check_for_full_enumeration_handling (tree); extern void check_for_full_enumeration_handling (tree);
extern void declare_nonlocal_label (tree); extern void declare_nonlocal_label (tree);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment