aboutsummaryrefslogtreecommitdiff
path: root/gcc/read-rtl.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2020-12-05 18:26:24 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2020-12-05 18:26:24 +0000
commit91ae8fbc5aa02bd889492d3c04a7fcb95026a77e (patch)
tree37e369e06d42e1958c9deaa10e8867b7419e07aa /gcc/read-rtl.c
parenta27d5f9a73978f20cfef1796a94f6a1a82438146 (diff)
downloadgcc-91ae8fbc5aa02bd889492d3c04a7fcb95026a77e.zip
gcc-91ae8fbc5aa02bd889492d3c04a7fcb95026a77e.tar.gz
gcc-91ae8fbc5aa02bd889492d3c04a7fcb95026a77e.tar.bz2
VAX: Remove `c' operand format specifier overload
The `c' operand format specifier is handled directly by the middle end in `output_asm_insn': %cN means require operand N to be a constant and print the constant expression with no punctuation. however it resorts to the target for constants that are not valid addresses: else if (letter == 'c') { if (CONSTANT_ADDRESS_P (operands[opnum])) output_addr_const (asm_out_file, operands[opnum]); else output_operand (operands[opnum], 'c'); } The VAX backend expects the fallback never to happen and overloads `c' with the branch condition code. This is confusing however and it is not like we are short of letters, so instead make the branch condition code use `k', and then for consistency make `K' the reverse branch condition code format specifier. This is safe to do as we provide no means to use a computed branch condition code in user `asm'. gcc/ * config/vax/vax.c (print_operand): Replace `c' and `C' with `k' and `K' respectively. * config/vax/vax.md (*branch, *branch_reversed): Update accordingly.
Diffstat (limited to 'gcc/read-rtl.c')
0 files changed, 0 insertions, 0 deletions