This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] fix java dumps
- From: Richard Henderson <rth at twiddle dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 18 Nov 2003 18:23:10 -0800
- Subject: [tree-ssa] fix java dumps
The very first dumps that java produces, before we get into
tree_rest_of_compilation, don't have cfun set.
r~
* tree-cfg.c (dump_function_to_file): Mind when cfun is null.
Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-cfg.c,v
retrieving revision 1.1.4.219
diff -u -p -r1.1.4.219 tree-cfg.c
--- tree-cfg.c 18 Nov 2003 23:06:36 -0000 1.1.4.219
+++ tree-cfg.c 19 Nov 2003 02:20:56 -0000
@@ -3554,7 +3554,7 @@ dump_function_to_file (tree fn, FILE *fi
/* When gimple is lowered, the variables are no longer available in the
bind_exprs, so display them separately. */
- if (cfun->unexpanded_var_list)
+ if (cfun && cfun->unexpanded_var_list)
{
ignore_topmost_bind = true;