gcc-3.0.1 generates invalid assembler (undefined label) on sparc

Jeff Sturm jsturm@one-point.com
Tue Jan 1 10:30:00 GMT 2002


On 1 Jan 2002, Niels Möller wrote:
> Jeff Sturm <jsturm@one-point.com> writes:
> > Thanks for the report.  This is likely related to java/5183 which
> > is currently under investigation.  (One workaround is to compile with
> > -fno-delayed-branch.)
> 
> It looks a little similar. I didn't get any errors when compiling the
> java library, though.

Yeah, the java failure isn't really a java problem, it has to do with
branch delay slot scheduling.

Can you tell me if this patch solves the problem?

Index: reorg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reorg.c,v
retrieving revision 1.67
diff -u -p -r1.67 reorg.c
--- reorg.c	2001/10/11 03:16:03	1.67
+++ reorg.c	2002/01/01 18:21:06
@@ -2710,7 +2710,7 @@ fill_slots_from_thread (insn, condition,
 			  if (new_thread == trial)
 			    new_thread = thread;
 			}
-		      delete_related_insns (trial);
+		      delete_insn (trial);
 		    }
 		  else
 		    new_thread = next_active_insn (trial);



More information about the Gcc-bugs mailing list