egcs-20000110 and 17 crash: -O -ggdb3, inline function redefined as out of line
Horst von Brand
vonbrand@sleipnir.valparaiso.cl
Wed Jan 19 00:46:00 GMT 2000
i686, RedHat 6.1, binutils-2.9.0.22 for building egcs-2000010 and 17
The following crashes gcc -O -ggdb3 with:
tst.c: In function `odd':
tst.c:18: Internal compiler error in `add_abstract_origin_attribute', at dwarf2out.c:7523
extern __inline__ int
odd(int i)
{
return i & 0x1;
}
int
foo(int i, int j)
{
return odd(i + j);
}
int
odd(int i)
{
return i & 0x1;
}
Both egcs-1.1.2-24 (RedHat 6.1) and gcc-2.95.2 work fine.
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile +56 32 672616
More information about the Gcc-bugs
mailing list