This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]