diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2008-06-27 17:26:14 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2008-06-27 17:26:14 +0000 |
commit | 70cf5bc1f101cb34ac6ecc867ea9c10325bb1f4d (patch) | |
tree | 71b4a651c695eb72a9af0e9437b077f03afc9e30 /gcc/function.c | |
parent | c5cb5d18b3e49588aadba045a8b4eb42cf343cb1 (diff) | |
download | gcc-70cf5bc1f101cb34ac6ecc867ea9c10325bb1f4d.zip gcc-70cf5bc1f101cb34ac6ecc867ea9c10325bb1f4d.tar.gz gcc-70cf5bc1f101cb34ac6ecc867ea9c10325bb1f4d.tar.bz2 |
function.c (allocate_struct_function): Only allocate a unique funcdef_no if the decl is nonzero.
gcc/
* function.c (allocate_struct_function): Only allocate a unique
funcdef_no if the decl is nonzero.
From-SVN: r137195
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c index c8d5e77..680b360 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)) |