diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-25 17:50:25 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-25 17:50:25 +0000 |
commit | 8acdd6b325e8189a00f108206ecae5f9a50a9fca (patch) | |
tree | 455351255e0958640980f2c8a5dd59fcd19c75ae /gcc/cgraph.c | |
parent | 0cea2d0758e22397bf1217e91fe59077804393fc (diff) | |
download | gcc-8acdd6b325e8189a00f108206ecae5f9a50a9fca.tar.gz |
* cgraph.c (dump_cgraph_varpool_node): Don't crash if called
before cgraph_function_flags_ready.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117203 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) |