From acd693d10c5d694eb221071d0b171edbada6202a Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 8 Feb 1999 13:39:33 -0800 Subject: output.h (current_function_has_computed_jump): Rename from current_function_addresses_labels. * output.h (current_function_has_computed_jump): Rename from current_function_addresses_labels. * function.h (struct function): Likewise for addresses_labels member. * rtl.h (FUNCTION_FLAGS_HAS_COMPUTED_JUMP): Likewise. * function.c (current_function_has_computed_jump): Likewise. Update all references. * integrate.c (function_cannot_inline_p): Test current_function_has_computed_jump instead of addresses_labels. (initialize_for_inline): Likewise save. (output_inline_function): Likewise restore. * expr.c (expand_expr): Don't reference addresses_labels variables. * stmt.c (expand_computed_goto): Set has_computed_jump. From-SVN: r25100 --- gcc/function.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index 1b692c1..c9ec569 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -148,10 +148,9 @@ int current_function_contains_functions; int current_function_sp_is_unchanging; -/* Nonzero if the function being compiled has the address of its - labels taken. */ +/* Nonzero if the function being compiled issues a computed jump. */ -int current_function_addresses_labels; +int current_function_has_computed_jump; /* Nonzero if the current function is a thunk (a lightweight function that just adjusts one of its arguments and forwards to another function), so @@ -525,7 +524,7 @@ push_function_context_to (context) p->has_nonlocal_label = current_function_has_nonlocal_label; p->has_nonlocal_goto = current_function_has_nonlocal_goto; p->contains_functions = current_function_contains_functions; - p->addresses_labels = current_function_addresses_labels; + p->has_computed_jump = current_function_has_computed_jump; p->is_thunk = current_function_is_thunk; p->args_size = current_function_args_size; p->pretend_args_size = current_function_pretend_args_size; @@ -598,7 +597,7 @@ pop_function_context_from (context) current_function_contains_functions = p->contains_functions || p->inline_obstacks || context == current_function_decl; - current_function_addresses_labels = p->addresses_labels; + current_function_has_computed_jump = p->has_computed_jump; current_function_name = p->name; current_function_decl = p->decl; current_function_pops_args = p->pops_args; @@ -5582,7 +5581,7 @@ init_function_start (subr, filename, line) current_function_has_nonlocal_goto = 0; current_function_contains_functions = 0; current_function_sp_is_unchanging = 0; - current_function_addresses_labels = 0; + current_function_has_computed_jump = 0; current_function_is_thunk = 0; current_function_returns_pcc_struct = 0; -- cgit v1.1