Commit 5acbdd12 by Kazu Hirata Committed by Kazu Hirata

function.c (push_function_context_to): Don't set contains_functions.

	* function.c (push_function_context_to): Don't set
	contains_functions.
	* function.h (function): Remove contains_functions.
	(current_function_contains_functions): Remove.

From-SVN: r97837
parent da25d93e
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
* c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove. * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
* function.c (push_function_context_to): Don't set
contains_functions.
* function.h (function): Remove contains_functions.
(current_function_contains_functions): Remove.
2005-04-08 Ulrich Weigand <uweigand@de.ibm.com> 2005-04-08 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/tpf.h (ASM_SPEC): Define. * config/s390/tpf.h (ASM_SPEC): Define.
......
...@@ -242,21 +242,10 @@ find_function_data (tree decl) ...@@ -242,21 +242,10 @@ find_function_data (tree decl)
variables. */ variables. */
void void
push_function_context_to (tree context) push_function_context_to (tree context ATTRIBUTE_UNUSED)
{ {
struct function *p; struct function *p;
if (context)
{
if (context == current_function_decl)
cfun->contains_functions = 1;
else
{
struct function *containing = find_function_data (context);
containing->contains_functions = 1;
}
}
if (cfun == 0) if (cfun == 0)
init_dummy_function_start (); init_dummy_function_start ();
p = cfun; p = cfun;
......
...@@ -380,9 +380,6 @@ struct function GTY(()) ...@@ -380,9 +380,6 @@ struct function GTY(())
function. */ function. */
unsigned int has_nonlocal_goto : 1; unsigned int has_nonlocal_goto : 1;
/* Nonzero if function being compiled contains nested functions. */
unsigned int contains_functions : 1;
/* Nonzero if the current function is a thunk, i.e., a lightweight /* Nonzero if the current function is a thunk, i.e., a lightweight
function implemented by the output_mi_thunk hook) that just function implemented by the output_mi_thunk hook) that just
adjusts one of its arguments and forwards to another adjusts one of its arguments and forwards to another
...@@ -452,7 +449,6 @@ extern int trampolines_created; ...@@ -452,7 +449,6 @@ extern int trampolines_created;
#define current_function_calls_setjmp (cfun->calls_setjmp) #define current_function_calls_setjmp (cfun->calls_setjmp)
#define current_function_calls_alloca (cfun->calls_alloca) #define current_function_calls_alloca (cfun->calls_alloca)
#define current_function_calls_eh_return (cfun->calls_eh_return) #define current_function_calls_eh_return (cfun->calls_eh_return)
#define current_function_contains_functions (cfun->contains_functions)
#define current_function_is_thunk (cfun->is_thunk) #define current_function_is_thunk (cfun->is_thunk)
#define current_function_args_info (cfun->args_info) #define current_function_args_info (cfun->args_info)
#define current_function_args_size (cfun->args_size) #define current_function_args_size (cfun->args_size)
......
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