fix ia64 g++.dg/other/static11.C

Richard Henderson rth@redhat.com
Mon Dec 13 10:47:00 GMT 2004


The problem is that, after reload pseudos are not always registers;
reload may smash them to MEMs.  Asking for a REG_USERVAR_P of a MEM
receives an rtl-flags checking abort.

Given that there *are* no pseudos after reload, it seems silly to
dump *any* of this information.


r~


        * cfg.c (dump_flow_info): Don't dump pseudo info after reload.

Index: cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfg.c,v
retrieving revision 1.79
diff -c -p -d -u -r1.79 cfg.c
--- cfg.c	29 Nov 2004 18:01:07 -0000	1.79
+++ cfg.c	13 Dec 2004 10:43:13 -0000
@@ -517,7 +517,8 @@ dump_flow_info (FILE *file)
   basic_block bb;
   static const char * const reg_class_names[] = REG_CLASS_NAMES;
 
-  if (reg_n_info)
+  /* There are no pseudo registers after reload.  Don't dump them.  */
+  if (reg_n_info && !reload_completed)
     {
       int max_regno = max_reg_num ();
       fprintf (file, "%d registers.\n", max_regno);



More information about the Gcc-patches mailing list