This is the mail archive of the gcc@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]

Re: Current CVS source on m68k-next-nextstep3 chokes on first stage2 compile with segmentation violation


An unintialized variable problem.  Here is a patch to fix it.

Tue Mar 24 13:10:38 1998  Jim Wilson  <wilson@cygnus.com>

	* loop.c (scan_loop): Initialize move_insn_first to zero.

Index: loop.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/loop.c,v
retrieving revision 1.36
diff -p -r1.36 loop.c
*** loop.c	1998/03/20 14:58:10	1.36
--- loop.c	1998/03/24 21:10:31
*************** scan_loop (loop_start, end, nregs, unrol
*** 950,955 ****
--- 950,956 ----
  		  m->done = 0;
  		  m->forces = 0;
  		  m->move_insn = 0;
+ 		  m->move_insn_first = 0;
  		  m->partial = 1;
  		  /* If the insn may not be executed on some cycles,
  		     we can't clear the whole reg; clear just high part.


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