Commit 6aa5c6ba by Richard Henderson Committed by Richard Henderson

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
parent 902f7d1a
2006-09-25 Richard Henderson <rth@redhat.com>
* cgraph.c (dump_cgraph_varpool_node): Don't crash if called
before cgraph_function_flags_ready.
2006-09-24 Zdenek Dvorak <dvorakz@suse.cz>
Adam Nemet <anemet@caviumnetworks.com>
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment