public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Small haifa-sched.c cleanup
@ 1997-09-30 12:41 Thomas Koenig
  1997-09-30 22:10 ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Koenig @ 1997-09-30 12:41 UTC (permalink / raw)
  To: egcs

Here's a small fix for haifa-sched.c which eliminates an unneeded
initialization.  As can be seen from the patch, head and tail are both
initialized a little bit further down, so the initialization at the
beginning is wrong.

[Do I really need a ChangeLog entry for this kind of stuff?  If so, here
it is]

Tue Sep 30 21:38:51 CEST 1997

	* haifa-sched.c: (get_block_head_tail) Remove unneeded initialization
          from beginning

--- haifa-sched.c.orig	Tue Sep 30 21:18:31 1997
+++ haifa-sched.c	Tue Sep 30 21:18:51 1997
@@ -4808,16 +4808,16 @@
 __inline static void
 get_block_head_tail (bb, headp, tailp)
      int bb;
      rtx *headp;
      rtx *tailp;
 {
 
-  rtx head = *headp;
-  rtx tail = *tailp;
+  rtx head;
+  rtx tail;
   int b;
 
   b = BB_TO_BLOCK (bb);
 
   /* HEAD and TAIL delimit the basic block being scheduled.  */
   head = basic_block_head[b];
   tail = basic_block_end[b];

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Small haifa-sched.c cleanup
  1997-09-30 12:41 Small haifa-sched.c cleanup Thomas Koenig
@ 1997-09-30 22:10 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1997-09-30 22:10 UTC (permalink / raw)
  To: Thomas König; +Cc: egcs

  In message < 199709301940.UAA03180@mvmap66.ciw.uni-karlsruhe.de >you write:
  > [Do I really need a ChangeLog entry for this kind of stuff?  If so, here
  > it is]
Yup.  Basically everything needs a ChangeLog entry except typos.

  > Tue Sep 30 21:38:51 CEST 1997
  > 
  > 	* haifa-sched.c: (get_block_head_tail) Remove unneeded initialization
  >           from beginning
Thanks.  I've installed this patch.

jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-09-30 22:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-30 12:41 Small haifa-sched.c cleanup Thomas Koenig
1997-09-30 22:10 ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).