diff options
author | Razya Ladelsky <razya@il.ibm.com> | 2007-01-10 10:21:50 +0000 |
---|---|---|
committer | Razya Ladelsky <razya@gcc.gnu.org> | 2007-01-10 10:21:50 +0000 |
commit | 3e87758a6b02a16a11d670c4c00dce09661dd084 (patch) | |
tree | 033712e9795d7747396d5e1f15d66beefe6a1139 /gcc/function.c | |
parent | 9b718f81fd2014633e4e21eb30e9aca9370a7bdf (diff) | |
download | gcc-3e87758a6b02a16a11d670c4c00dce09661dd084.zip gcc-3e87758a6b02a16a11d670c4c00dce09661dd084.tar.gz gcc-3e87758a6b02a16a11d670c4c00dce09661dd084.tar.bz2 |
function.c (get_last_funcdef_no): New function.
2007-01-10 Razya Ladelsky <razya@il.ibm.com>
* function.c (get_last_funcdef_no): New function.
* function.h (get_last_funcdef_no): Declare.
* tree-inline.c (initialize_cfun): Add initialization.
(tree_function_versioning): Cleanup.
From-SVN: r120638
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c index b657e24..e941c7c 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3773,6 +3773,14 @@ debug_find_var_in_block_tree (tree var, tree block) return NULL_TREE; } + +/* Return value of funcdef and increase it. */ +int +get_next_funcdef_no(void) +{ + return funcdef_no++; +} + /* Allocate a function structure for FNDECL and set its contents to the defaults. */ @@ -3787,7 +3795,7 @@ allocate_struct_function (tree fndecl) cfun->stack_alignment_needed = STACK_BOUNDARY; cfun->preferred_stack_boundary = STACK_BOUNDARY; - current_function_funcdef_no = funcdef_no++; + current_function_funcdef_no = get_next_funcdef_no (); cfun->function_frequency = FUNCTION_FREQUENCY_NORMAL; |