current CVS version aborts in size_binops compiling Linux kernel

Horst von Brand vonbrand@pincoya.inf.utfsm.cl
Fri Mar 3 06:12:00 GMT 2000


Philipp Thomas <pthomas@suse.de> said:
> gcc version 2.96 20000302 (experimental) aborts while compiling
> linux/fs/isofs/namei.c with: 

[...]

> namei.c:206: Internal compiler error in `size_binop', at fold-const.c:1873

I traced this to stuff like:

struct {
       char a[10];
} *p;

f()
{
    int i;

    return p->a[-i];
}

Sure enough, egcs-20000228 on sparc-redhat-linux crashes the same way as it
does at home on i686-redhat-linux and as it does for you.

egcs-20000221 works fine.
-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513


More information about the Gcc-bugs mailing list