This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs-20000110 and 17 crash: -O -ggdb3, inline function redefined as out of line


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]