This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-3.0.1 generates invalid assembler (undefined label) on sparc
- From: Jeff Sturm <jsturm at one-point dot com>
- To: =?X-UNKNOWN?Q?Niels_M=F6ller?= <nisse at lysator dot liu dot se>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 1 Jan 2002 13:30:39 -0500 (EST)
- Subject: Re: gcc-3.0.1 generates invalid assembler (undefined label) on sparc
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);