Diff for /wikisrc/users/maya/vax-gcc.mdwn between versions 1.1 and 1.3

version 1.1, 2019/08/29 12:43:34 version 1.3, 2019/08/29 13:01:34
Line 2 Line 2
   
 # libgomp crash with -O2 #  # libgomp crash with -O2 #
 Repro:  Repro:
 ````  
 #!/bin/sh  
   
 cat << EOF > oacc.i      #!/bin/sh
 int a, b;      
 int e() {      cat << EOF > oacc.i
   short *c = 0;      int a, b;
   char d = c[a + 1];      int e() {
   b = d;        short *c = 0;
   a += 2;        char d = c[a + 1];
 }        b = d;
 EOF        a += 2;
 vax--netbsdelf-gcc -O2 -c oacc.i      }
 ````      EOF
 Asserts at emit-rtl.c:2310 gcc_assert (memory_address_addr_space_p (mode, addr, as));      vax--netbsdelf-gcc -O2 -c oacc.i
   
 NetBSD avoids it with a local diff to reload.c/dse.c.  Asserts at emit-rtl.c:2310 gcc_assert (memory_address_addr_space_p (mode, addr, as));
   
 It looks like a real bug in vax_legitimate_address_p not handling some addressing modes  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.

Removed from v.1.1  
changed lines
  Added in v.1.3


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb