This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

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


Jeff Sturm <jsturm@one-point.com> writes:

> Can you tell me if this patch solves the problem?

I can't apply it.

> 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);

Looking for the closest match for that context, the changed line
is line 2704.

But it already reads "delete_insn (trial);". Is the
patch backwards? If I change the line to "delete_related_insns
(trial);" I get a compile time warning and a link error, there seems
to be no definition of delete_related_insns anywhere.

Regards,
/Niels


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