public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* RFA: MEP: Fix use of delete_insn.
@ 2012-06-29  9:22 Nick Clifton
  2012-06-29 20:15 ` DJ Delorie
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Clifton @ 2012-06-29  9:22 UTC (permalink / raw)
  To: dj; +Cc: gcc-patches

Hi DJ,

  The delete_insn() function no longer returns the insn after the one
  that has been deleted, so gcc/config/mep/mep.c:mep_reorg_regmove() no
  longer compiles.  The patch below is a simple fix for the problem, but
  I was not sure whether it would be better to use
  next_nonnote_nondebug_insn() instead.  What do you think ?

Cheers
  Nick

gcc/ChangeLog
2012-06-29  Nick Clifton  <nickc@redhat.com>

	* config/mep/mep.c (mep_reorg_regmove): Get next insn before
	calling delete_insn.

Index: gcc/config/mep/mep.c
===================================================================
--- gcc/config/mep/mep.c	(revision 189064)
+++ gcc/config/mep/mep.c	(working copy)
@@ -5096,7 +5096,8 @@
 					       follow, where))
 		{
 		  count ++;
-		  next = delete_insn (insn);
+		  next = NEXT_INSN (insn);
+		  delete_insn (insn);
 		  if (dump_file)
 		    {
 		      fprintf (dump_file, "\n----- Success!  new insn:\n\n");

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-03 15:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-29  9:22 RFA: MEP: Fix use of delete_insn Nick Clifton
2012-06-29 20:15 ` DJ Delorie
2012-07-02  8:25   ` nick clifton
2012-07-02 17:38     ` DJ Delorie
2012-07-03 15:53       ` nick clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).