aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2007-06-25 01:24:10 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2007-06-24 23:24:10 +0000
commit6a84c0988cc751a0f4d98368e05a042a26a984d0 (patch)
treefc3a73fc8a53c6c3fc90f09dbfe19ab5c59c439f
parent7bcb8bf5f1054a3bdee2a3d545403a11e4ae1ffd (diff)
downloadgcc-6a84c0988cc751a0f4d98368e05a042a26a984d0.zip
gcc-6a84c0988cc751a0f4d98368e05a042a26a984d0.tar.gz
gcc-6a84c0988cc751a0f4d98368e05a042a26a984d0.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cgraphunit.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 679e5fa..616b311 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-24 Jan Hubicka <jh@suse.cz>
+
+ PR middle-end/30563
+ * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
+
2007-06-24 Sebastian Pop <sebpop@gmail.com>
PR middle-end/32461
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 1dba95b..ac8472f 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;
}