diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2020-11-15 17:41:52 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2020-11-15 17:41:52 +0000 |
commit | c454324bff9c448c2c6acf8f1b25f4af43d269e1 (patch) | |
tree | e035d7e864437980b02e5232d1ff49937dfec42f | |
parent | baf38d2e363971ed8baa5f82b2eaf21cd8e74aae (diff) | |
download | gcc-c454324bff9c448c2c6acf8f1b25f4af43d269e1.zip gcc-c454324bff9c448c2c6acf8f1b25f4af43d269e1.tar.gz gcc-c454324bff9c448c2c6acf8f1b25f4af43d269e1.tar.bz2 |
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) <E_SImode>: Also check
`operands[2]' for being symbolic with PIC rather than checking
`operands[1]' twice.
-rw-r--r-- | gcc/config/vax/vax.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index 4a1ecfa..ffb7475 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"; |