From: Jan Hubicka Date: Sun, 24 Jun 2007 23:24:10 +0000 (+0200) Subject: re PR tree-optimization/30563 (ice for legal code with flags -O2 -fno-unit-at-a-time) X-Git-Tag: releases/gcc-4.3.0~4308 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a84c0988cc751a0f4d98368e05a042a26a984d0;p=thirdparty%2Fgcc.git re PR tree-optimization/30563 (ice for legal code with flags -O2 -fno-unit-at-a-time) PR middle-end/30563 * cgraphunit.c (cgraph_analyze_function): Fix ordering problem. From-SVN: r125991 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 679e5faa8db4..616b31149360 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-06-24 Jan Hubicka + + PR middle-end/30563 + * cgraphunit.c (cgraph_analyze_function): Fix ordering problem. + 2007-06-24 Sebastian Pop PR middle-end/32461 diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 1dba95bb06ab..ac8472f23a45 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -760,6 +760,7 @@ cgraph_analyze_function (struct cgraph_node *node) current_function_decl = decl; push_cfun (DECL_STRUCT_FUNCTION (decl)); cgraph_lower_function (node); + node->analyzed = true; if (!flag_unit_at_a_time) { @@ -771,7 +772,6 @@ cgraph_analyze_function (struct cgraph_node *node) bitmap_obstack_release (NULL); } - node->analyzed = true; pop_cfun (); current_function_decl = NULL; }