]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
VAX: Correct a typo in PIC symbolic addition operand checks
authorMaciej W. Rozycki <macro@linux-mips.org>
Sun, 15 Nov 2020 17:41:52 +0000 (17:41 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Sun, 15 Nov 2020 17:41:52 +0000 (17:41 +0000)
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.

gcc/config/vax/vax.c

index 4a1ecfa0da35bc03a372e26af52c58a904813567..ffb7475ac74798148636f8469ff60653e57381fc 100644 (file)
@@ -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";