summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-27 17:26:14 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-27 17:26:14 +0000
commit285aabd1d55bedb2e708afdb3a7980d0fb909a2d (patch)
tree71b4a651c695eb72a9af0e9437b077f03afc9e30 /gcc/function.c
parent58cdf9daf2787376e5b772cfdfe53fdcf8b97c54 (diff)
downloadgcc-285aabd1d55bedb2e708afdb3a7980d0fb909a2d.tar.gz
gcc/
* function.c (allocate_struct_function): Only allocate a unique funcdef_no if the decl is nonzero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137195 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c
index c8d5e77daaa..680b3604859 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3843,8 +3843,6 @@ allocate_struct_function (tree fndecl, bool abstract_p)
cfun = GGC_CNEW (struct function);
- current_function_funcdef_no = get_next_funcdef_no ();
-
cfun->function_frequency = FUNCTION_FREQUENCY_NORMAL;
init_eh_for_function ();
@@ -3860,6 +3858,7 @@ allocate_struct_function (tree fndecl, bool abstract_p)
{
DECL_STRUCT_FUNCTION (fndecl) = cfun;
cfun->decl = fndecl;
+ current_function_funcdef_no = get_next_funcdef_no ();
result = DECL_RESULT (fndecl);
if (!abstract_p && aggregate_value_p (result, fndecl))