summaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2013-04-28 17:29:01 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2013-04-28 17:29:01 +0000
commitc6cfb282dacb6e2c624d75e8da210c6c805723d1 (patch)
tree59bdecfde24eff9d10c65b553e0efd7f883eb57c /gcc/stor-layout.c
parentae915b7e5500872dadcbcde3b292fdbf621e4f48 (diff)
downloadgcc-c6cfb282dacb6e2c624d75e8da210c6c805723d1.tar.gz
* stor-layout.c (finalize_size_functions): Allocate a structure and
reset cfun before dumping the functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198376 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 67dd9587b99..5ad95b10030 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -290,6 +290,8 @@ finalize_size_functions (void)
for (i = 0; size_functions && size_functions->iterate (i, &fndecl); i++)
{
+ allocate_struct_function (fndecl, false);
+ set_cfun (NULL);
dump_function (TDI_original, fndecl);
gimplify_function_tree (fndecl);
dump_function (TDI_generic, fndecl);