www.digitalmars.com         C & C++   DMDScript  

D.gnu - strange segfault on powerpc64

For some reason the GDC build crashed on powerpc64
(using GCC 4.1.1, GDC 0.23, running Fedora Core 5)

../../gcc/libgcc2.c: In function __addvsi3:
../../gcc/libgcc2.c:64: internal compiler error: Segmenteringsfel
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The source code it failed on was the open brace of:

#ifdef L_addvsi3
__addvSI3 (Wtype a, Wtype b)
   const Wtype w = a + b;

   if (b >= 0 ? w < a : w > a)

This was when building the "nof" variant, so I used:
(borrowed from the regular Fedora system GCC compiler)

Tried to reproduce/debug, but by then it was gone ? :-|
Maybe it was some kind of fluke, or a system error...
Anyway, once it built it seems to be working properly.

Mar 06 2007