diff mbox series

[committed] VAX: Correct a typo in PIC symbolic addition operand checks

Message ID alpine.LFD.2.21.2011151648440.4064799@eddie.linux-mips.org
State Accepted
Headers show
Series [committed] VAX: Correct a typo in PIC symbolic addition operand checks | expand

Commit Message

Maciej W. Rozycki Nov. 15, 2020, 5:43 p.m. UTC
Fix a typo and check both SImode addition operands for being incorrectly 
symbolic in PIC mode before issuing a diagnostic dump of the offending 
RTL expression.

	gcc/
	* config/vax/vax.c (vax_output_int_add) <E_SImode>: Also check
	`operands[2]' for being symbolic with PIC rather than checking
	`operands[1]' twice.
---
Hi,

 No regressions in `vax-netbsdelf' testing; this diagnostic dump is not 
supposed to trigger.  Committed as obvious.

  Maciej
---
 gcc/config/vax/vax.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

gcc-vax-debug-int-add.diff
diff mbox series

Patch

Index: gcc/gcc/config/vax/vax.c
===================================================================
--- gcc.orig/gcc/config/vax/vax.c
+++ gcc/gcc/config/vax/vax.c
@@ -1511,7 +1511,7 @@  vax_output_int_add (rtx_insn *insn, rtx
 
       if (flag_pic
 	  && (symbolic_operand (operands[1], SImode)
-	      || symbolic_operand (operands[1], SImode)))
+	      || symbolic_operand (operands[2], SImode)))
 	debug_rtx (insn);
 
       return "addl3 %1,%2,%0";