internal compiler error in libgcc with gcc4.7.0

Georg-Johann Lay gjl@gcc.gnu.org
Thu Jun 21 17:36:00 GMT 2012


Gaganpreet Kaur schrieb:
> Hi,
> 
> I have been trying to cross-compile gcc-4.7.0 for new target (my_cpu) and
> getting following error at build time.
> 
> My build environment is:
> -----------------------
> Binutils for Target: binutils-2.21
> Target CPU: 8-bit processor
> 
> Make Result:
> ------------
> <snip>
> /cygdrive/d/gcc-dir/source/gcc-4.7.0/libgcc/libgcc2.c: In function
> ‘__mulhi3’:
> /cygdrive/d/gcc-dir/source/gcc-4.7.0/libgcc/libgcc2.c:549:1: internal
> compiler error: Segmentation fault
> 
> <snip>
> 
> Here is the snip of libgcc2.c file at line no. 549
> ---------------------------------------------
> <snip>
> __muldi3 (DWtype u, DWtype v)
> {
>   const DWunion uu = {.ll = u};
>   const DWunion vv = {.ll = v};
>   DWunion w = {.ll = __umulsidi3 (uu.s.low, vv.s.low)};
> 
>   w.s.high += ((UWtype) uu.s.low * (UWtype) vv.s.high
>       + (UWtype) uu.s.high * (UWtype) vv.s.low);
> 
>   return w.ll;
> }
> <snip>
> 
> Any pointers to fix this issue are very much appreciated.

The problem is not in the libgcc code.

The problem is in the source of your my-cpu-gcc.
Thus, you have to debug your compiler proper to find out where and
why cc1 crashes.

Johann



More information about the Gcc-help mailing list