This is the mail archive of the gcc-patches@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: [patch] Combine looses libcall notes


Paul Brook <paul@codesourcery.com> writes:

> Index: gcc/combine.c
> ===================================================================
> RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/combine.c,v
> retrieving revision 1.485
> diff -u -p -r1.485 combine.c
> --- gcc/combine.c	5 Apr 2005 14:50:28 -0000	1.485
> +++ gcc/combine.c	6 Apr 2005 14:51:49 -0000
> @@ -12062,7 +12062,7 @@ distribute_notes (rtx notes, rtx from_in
>  	  /* If the insn previously containing this note still exists,
>  	     put it back where it was.  Otherwise move it to the previous
>  	     insn.  Adjust the corresponding REG_LIBCALL note.  */
> -	  if (!NOTE_P (from_insn))
> +	  if (!NOTE_P (from_insn) && PATTERN (from_insn) != pc_rtx)
>  	    place = from_insn;
>  	  else
>  	    {

If you do wind up checking in this patch, how would you feel about
defining some macros so we don't have really cryptic stuff stuff like
  PATTERN (tem) = pc_rtx;
and
  PATTERN (from_insn) != pc_rtx
?

Ian


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