From: Richard Henderson Date: Mon, 25 Sep 2006 17:50:25 +0000 (-0700) Subject: cgraph.c (dump_cgraph_varpool_node): Don't crash if called before cgraph_function_fla... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6aa5c6ba9b46b33f9cebcd1fe799e829c418e4f6;p=gcc.git cgraph.c (dump_cgraph_varpool_node): Don't crash if called before cgraph_function_flags_ready. * cgraph.c (dump_cgraph_varpool_node): Don't crash if called before cgraph_function_flags_ready. From-SVN: r117203 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 245b081ee9f..49c51ced7a7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-09-25 Richard Henderson + + * cgraph.c (dump_cgraph_varpool_node): Don't crash if called + before cgraph_function_flags_ready. + 2006-09-24 Zdenek Dvorak Adam Nemet diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 372b90d5eaa..3e5dab1f94e 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -786,7 +786,10 @@ void dump_cgraph_varpool_node (FILE *f, struct cgraph_varpool_node *node) { fprintf (f, "%s:", cgraph_varpool_node_name (node)); - fprintf (f, " availability:%s", availability_names [cgraph_variable_initializer_availability (node)]); + fprintf (f, " availability:%s", + cgraph_function_flags_ready + ? availability_names[cgraph_variable_initializer_availability (node)] + : "not-ready"); if (DECL_INITIAL (node->decl)) fprintf (f, " initialized"); if (node->needed)