From 4bb1e03799cec1328ad9e84907ff55cbc4168e58 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 6 Oct 2005 22:14:37 +0000 Subject: [PATCH] re PR middle-end/22216 (ICE during GC) 2005-10-06 Andrew Pinski 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. From-SVN: r105066 --- gcc/ChangeLog | 7 +++++++ gcc/cfgexpand.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e873e4e6b7..c7ad196dc77 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2005-10-06 Andrew Pinski + + 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 * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index d2c865556af..7c58e556490 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -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 =