File:  [NetBSD Developer Wiki] / wikisrc / users / maya / vax-gcc.mdwn
Revision 1.3: download - view: text, annotated - select for diffs
Thu Aug 29 13:01:34 2019 UTC (5 months, 3 weeks ago) by maya
Branches: MAIN
CVS tags: HEAD
more info, more markdown

# Various GCC/vax issues and invesigation #

# libgomp crash with -O2 #

    cat << EOF > oacc.i
    int a, b;
    int e() {
      short *c = 0;
      char d = c[a + 1];
      b = d;
      a += 2;
    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](5f534f20bc66738c05c442a8f20088f55335b653/external/gpl3/gcc/dist/libgcc/gthr-posix.h#L418) to reload.c/dse.c.  
It looks like a real bug in vax_legitimate_address_p not handling some addressing modes.  
The code to handle offset(reg)[index] might be off: it doesn't like if neither xfoo0, xfoo1 are constant.

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb