stor-layout.c (finalize_size_functions): Allocate a structure and reset cfun before...
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 28 Apr 2013 17:29:01 +0000 (17:29 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 28 Apr 2013 17:29:01 +0000 (17:29 +0000)
* stor-layout.c (finalize_size_functions): Allocate a structure and
reset cfun before dumping the functions.

From-SVN: r198376

gcc/ChangeLog
gcc/stor-layout.c

index 6cce4a60c9b191f6293587abb646d355b12a6269..7a15745a2c6cf89aaa5307fb89abc88ed639b8fa 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-28  Eric Botcazou  <ebotcazou@gcc.gnu.org>
+
+       * stor-layout.c (finalize_size_functions): Allocate a structure and
+       reset cfun before dumping the functions.
+
 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
 
        * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
index 67dd9587b9954a53cdbe0c68ae6716d97699db6e..5ad95b10030b8250b328537627c86783c4f90c35 100644 (file)
@@ -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);