2005-10-06 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Oct 2005 22:14:37 +0000 (22:14 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Oct 2005 22:14:37 +0000 (22:14 +0000)
        PR middle-end/22216
        PR middle-end/23651
        * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
        out return_label and naked_return_label.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105066 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cfgexpand.c

index 3e873e4..c7ad196 100644 (file)
@@ -1,3 +1,10 @@
+2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR middle-end/22216
+       PR middle-end/23651
+       * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
+       out return_label and naked_return_label.
+
 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
        
        * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
index d2c8655..7c58e55 100644 (file)
@@ -1578,6 +1578,10 @@ tree_expand_cfg (void)
     (*debug_hooks->outlining_inline_function) (current_function_decl);
 
   TREE_ASM_WRITTEN (current_function_decl) = 1;
+
+  /* After expanding, the return labels are no longer needed. */
+  return_label = NULL;
+  naked_return_label = NULL;
 }
 
 struct tree_opt_pass pass_expand =