From: Maciej W. Rozycki Date: Sun, 15 Nov 2020 17:41:52 +0000 (+0000) Subject: VAX: Correct a typo in PIC symbolic addition operand checks X-Git-Tag: basepoints/gcc-12~3220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c454324bff9c448c2c6acf8f1b25f4af43d269e1;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index 4a1ecfa0da35..ffb7475ac747 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";