# Various GCC/vax issues and invesigation # # libgomp crash with -O2 # Repro: ```` #!/bin/sh cat << EOF > oacc.i int a, b; int e() { short *c = 0; char d = c[a + 1]; b = d; a += 2; } EOF vax--netbsdelf-gcc -O2 -c oacc.i ```` Asserts at emit-rtl.c:2310 gcc_assert (memory_address_addr_space_p (mode, addr, as)); NetBSD avoids it with a local diff to reload.c/dse.c. It looks like a real bug in vax_legitimate_address_p not handling some addressing modes