From 22ad5e0a85cd25e2636b68434535bfa494b4edb4 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sun, 28 Apr 2013 17:29:01 +0000 Subject: [PATCH] stor-layout.c (finalize_size_functions): Allocate a structure and reset cfun before dumping the functions. * stor-layout.c (finalize_size_functions): Allocate a structure and reset cfun before dumping the functions. From-SVN: r198376 --- gcc/ChangeLog | 5 +++++ gcc/stor-layout.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6cce4a60c9b..7a15745a2c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-04-28 Eric Botcazou + + * stor-layout.c (finalize_size_functions): Allocate a structure and + reset cfun before dumping the functions. + 2013-04-27 Jakub Jelinek * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned. 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);