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]

[patch] PR33600, fallout from pr33552 fix


Hi,

a thinko caused this.  Funny that it didn't trigger on any of the four 
test platforms, but on a kernel compile :-/

Will checkin when bootstrap and regtesting succeeds on i686.

Ciao,
Michael.
	PR inline-asm/33600
	* function.c (match_asm_constraints_1): Check for input
	being used in the outputs.

Index: gcc/function.c
===================================================================
--- gcc/function.c	(Revision 128890)
+++ gcc/function.c	(Arbeitskopie)
@@ -5716,7 +5716,7 @@ match_asm_constraints_1 (rtx insn, rtx *
 	 which wouldn't have happen without this pass.  So, iterate over
 	 all operands and replace all occurences of the register used.  */
       for (j = 0; j < noutputs; j++)
-	if (!rtx_equal_p (SET_DEST (p_sets[j]), output)
+	if (!rtx_equal_p (SET_DEST (p_sets[j]), input)
 	    && reg_overlap_mentioned_p (input, SET_DEST (p_sets[j])))
 	  SET_DEST (p_sets[j]) = replace_rtx (SET_DEST (p_sets[j]),
 					      input, output);


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