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]

fix dump_flow_info


I don't recall exactly where I saw this, but we shouldn't be
trying to dump reg_n_info when it doesn't exist.

The patch below is with -b to discard re-intention confusion.


r~


        * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.

Index: cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfg.c,v
retrieving revision 1.34.2.12
diff -c -p -d -b -r1.34.2.12 cfg.c
*** cfg.c	19 Aug 2003 22:13:05 -0000	1.34.2.12
--- cfg.c	17 Sep 2003 23:44:21 -0000
*************** dump_flow_info (FILE *file)
*** 493,498 ****
--- 493,499 ----
    static const char * const reg_class_names[] = REG_CLASS_NAMES;
  
    fprintf (file, "%d registers.\n", max_regno);
+   if (reg_n_info)
      for (i = FIRST_PSEUDO_REGISTER; i < max_regno; i++)
        if (REG_N_REFS (i))
  	{


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