From c454324bff9c448c2c6acf8f1b25f4af43d269e1 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Sun, 15 Nov 2020 17:41:52 +0000 Subject: [PATCH] VAX: Correct a typo in PIC symbolic addition operand checks 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) : Also check `operands[2]' for being symbolic with PIC rather than checking `operands[1]' twice. --- gcc/config/vax/vax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index 4a1ecfa0da3..ffb7475ac74 100644 --- a/gcc/config/vax/vax.c +++ b/gcc/config/vax/vax.c @@ -1511,7 +1511,7 @@ vax_output_int_add (rtx_insn *insn, rtx *operands, machine_mode mode) 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"; -- 2.30.2