]> git.ipfire.org Git - thirdparty/gcc.git/commit
VAX: Fix invalid RTX operand access in `nonindexed_address_p'
authorMaciej W. Rozycki <macro@orcam.me.uk>
Sat, 14 Feb 2026 14:24:46 +0000 (14:24 +0000)
committerMaciej W. Rozycki <macro@orcam.me.uk>
Sat, 14 Feb 2026 14:24:46 +0000 (14:24 +0000)
commitfeda1cfe152e2d74ddc66278448b2cb8ec1f6234
treed9bb4c3d0bc30fce78d1d357419bbafe6e7666d5
parentedced0fe1e28a37c75b4e2c80a2a12db93d5002c
VAX: Fix invalid RTX operand access in `nonindexed_address_p'

Replace an unguarded early access to the incoming RTX's operand 0 in
`nonindexed_address_p' with direct accesses at the actual use places,
fixing a libgcc build error:

during RTL pass: reload
.../libgcc/libgcc2.c: In function '__udiv_w_sdiv':
.../libgcc/libgcc2.c:649:1: internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'r' (rtx reg) in nonindexed_address_p, at config/vax/vax.cc:1826

where `--enable-checking=rtl' has been specified so as to enable RTL
consistency checks.

gcc/
* config/vax/vax.cc (nonindexed_address_p): Move incoming RTX's
operand 0 access to the actual use places.
gcc/config/vax/vax.cc