Minor reload debugging fix

Jeffrey A Law law@cygnus.com
Thu Sep 14 09:33:00 GMT 2000


We were dumping to stderr instead of the requested stream in
debug_reload_to_stream.  This patch fixes the problem:

	* reload.c (debug_reload_to_stream): Send all output to the
	requested stream or stderr if no stream was explicitly requested.

Index: reload.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/reload.c,v
retrieving revision 1.128
diff -c -3 -p -r1.128 reload.c
*** reload.c	2000/09/11 13:13:00	1.128
--- reload.c	2000/09/14 16:32:16
*************** debug_reload_to_stream (f)
*** 6641,6647 ****
  	fprintf (f, ", optional");
  
        if (rld[r].nongroup)
! 	fprintf (stderr, ", nongroup");
  
        if (rld[r].inc != 0)
  	fprintf (f, ", inc by %d", rld[r].inc);
--- 6641,6647 ----
  	fprintf (f, ", optional");
  
        if (rld[r].nongroup)
! 	fprintf (f, ", nongroup");
  
        if (rld[r].inc != 0)
  	fprintf (f, ", inc by %d", rld[r].inc);
*************** debug_reload_to_stream (f)
*** 6685,6697 ****
        prefix = "\n\t";
        if (rld[r].secondary_in_icode != CODE_FOR_nothing)
  	{
! 	  fprintf (stderr, "%ssecondary_in_icode = %s", prefix,
  		   insn_data[rld[r].secondary_in_icode].name);
  	  prefix = ", ";
  	}
  
        if (rld[r].secondary_out_icode != CODE_FOR_nothing)
! 	fprintf (stderr, "%ssecondary_out_icode = %s", prefix,
  		 insn_data[rld[r].secondary_out_icode].name);
  
        fprintf (f, "\n");
--- 6685,6697 ----
        prefix = "\n\t";
        if (rld[r].secondary_in_icode != CODE_FOR_nothing)
  	{
! 	  fprintf (f, "%ssecondary_in_icode = %s", prefix,
  		   insn_data[rld[r].secondary_in_icode].name);
  	  prefix = ", ";
  	}
  
        if (rld[r].secondary_out_icode != CODE_FOR_nothing)
! 	fprintf (f, "%ssecondary_out_icode = %s", prefix,
  		 insn_data[rld[r].secondary_out_icode].name);
  
        fprintf (f, "\n");









More information about the Gcc-patches mailing list