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 RFA] Handle blockage insn in mode-switching.c/create_pre_exit


Ian Lance Taylor <iant@google.com> wrote:
> For safety please also check that ASM_STRING is the empty string.  OK
> with that change.

Thanks for the review.  For the record, I'll check the patch
below in after the retest.

Regards,
	kaz
--
--- ORIG/trunk/gcc/mode-switching.c	2006-09-06 07:03:37.000000000 +0900
+++ LOCAL/trunk/gcc/mode-switching.c	2007-03-10 08:03:47.000000000 +0900
@@ -259,6 +259,12 @@ create_pre_exit (int n_entities, int *en
 			last_insn = return_copy;
 			continue;
 		      }
+		    if (GET_CODE (PATTERN (return_copy)) == ASM_INPUT
+			&& strcmp (XSTR (PATTERN (return_copy), 0), "") == 0)
+		      {
+			last_insn = return_copy;
+			continue;
+		      }
 		    /* If the return register is not (in its entirety)
 		       likely spilled, the return copy might be
 		       partially or completely optimized away.  */


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