A breakage from http://gcc.gnu.org/ml/gcc-cvs/2001-11/msg00214.html

Kazu Hirata kazu@hxi.com
Tue Nov 13 15:03:00 GMT 2001


Hi,

http://gcc.gnu.org/ml/gcc-cvs/2001-11/msg00214.html

With the above patch, gcc.c-torture/execute/complex-2.c does not
compile any more with the following segfault.

(gdb) run -O1 -o complex-2.s complex-2.c
Starting program: /var/tmp/h8300-hms-gcc-head-1111-2/gcc/cc1 -O1 -o complex-2.s complex-2.c
Breakpoint 2 at 0x40054498: file exit.c, line 40.
Breakpoint 3 at 0x40052f19: file ../sysdeps/generic/abort.c, line 55.
 f main
Program received signal SIGSEGV, Segmentation fault.
0x08096016 in nonoverlapping_memrefs_p (x=0x401ab380, y=0x401b3c90)
    at /home/kazu/gnu/gcc/gcc-head/gcc/gcc/alias.c:1812
1812      sizex = (REG_P (rtlx) ? GET_MODE_SIZE (GET_MODE (rtlx))
(gdb) call print_rtl_single (stdout, 0x401ab380)
(mem:SF (plus:HI (reg/f:HI 6 r6)
        (const_int -20 [0xffffffec])) [0 c S4 A16])
$1 = 1
(gdb) call print_rtl_single (stdout, 0x401b3c90)
(mem:SF (value:HI) [0 c S4 A16])
$2 = 1
(gdb)

Removing all calls to nonoverlapping_memrefs_p makes complex-2.c
compile and run with no problem.  The port I used is h8300-hms.  Could
somebody take a look?

Thanks,

Kazu Hirata



More information about the Gcc-patches mailing list