From: Andrew Pinski Date: Thu, 6 Oct 2005 22:14:37 +0000 (+0000) Subject: re PR middle-end/22216 (ICE during GC) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4bb1e03799cec1328ad9e84907ff55cbc4168e58;p=gcc.git 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 --- 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 =