public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* error while x-compiling libgcc2.c
@ 2009-03-25 15:33 Florent DEFAY
  2009-03-25 18:50 ` Georg-Johann Lay
  0 siblings, 1 reply; 8+ messages in thread
From: Florent DEFAY @ 2009-03-25 15:33 UTC (permalink / raw)
  To: gcc-help

Hi,

I am workingon a new port.
Target: 16 bits, no hard mul.

My problem is when I try to compile libgcc2, it finishes with error:
__________________________________________________________________
/home/guest1/gcc/build_target/./gcc/xgcc
-B/home/guest1/gcc/build_target/./gcc/
-B/home/guest1/target/target/bin/ -B/home/guest1/target/target/lib/
-isystem /home/guest1/target/target/include -isystem
/home/guest1/target/target/sys-include -O2 -g -g -O2 -O2  -O2 -g -g
-O2   -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include   -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc  -I. -I. -I../.././gcc -I../../../gcc-4.3.3/libgcc
-I../../../gcc-4.3.3/libgcc/. -I../../../gcc-4.3.3/libgcc/../gcc
-I../../../gcc-4.3.3/libgcc/../include   -o _muldi3.o -MT _muldi3.o
-MD -MP -MF _muldi3.dep -DL_muldi3 -c
../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c \

xgcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [_muldi3.o] Error 1
_________________________________________________________________


Here is the piece of code in libgcc2.c which provokes the crash:
_________________________________________________________________
#ifdef L_muldi3
DWtype
__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;
}
#endif
_________________________________________________________________


More precisely the crash is on this line:
 DWunion w = {.ll = __umulsidi3 (uu.s.low, vv.s.low)};

I don't know what's wrong in my machine description. I tried to
include a pattern "umulsidi3" but it does not change anything.
I do not find the definition of this __umulsidi3.

Has someone any idea ? any clue ?

Thank you.
Regards.

Florent

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: error while x-compiling libgcc2.c
@ 2009-03-31  6:19 ganesh gopalasubramanian
  2009-03-31  6:51 ` Florent DEFAY
  0 siblings, 1 reply; 8+ messages in thread
From: ganesh gopalasubramanian @ 2009-03-31  6:19 UTC (permalink / raw)
  To: spira.inhabitant; +Cc: gcc-help

Hi Florent,

I am facing the problem too. How did u sort that out?

Ganesh

> Hi,
>
> I am workingon a new port.
> Target: 16 bits, no hard mul.
>
> My problem is when I try to compile libgcc2, it finishes with error:
> __________________________________________________________________
> /home/guest1/gcc/build_target/./gcc/xgcc
> -B/home/guest1/gcc/build_target/./gcc/
> -B/home/guest1/target/target/bin/ -B/home/guest1/target/target/lib/
> -isystem /home/guest1/target/target/include -isystem
> /home/guest1/target/target/sys-include -O2 -g -g -O2 -O2  -O2 -g -g
> -O2   -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE   -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
> -isystem ./include   -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
> -Dinhibit_libc  -I. -I. -I../.././gcc -I../../../gcc-4.3.3/libgcc
> -I../../../gcc-4.3.3/libgcc/. -I../../../gcc-4.3.3/libgcc/../gcc
> -I../../../gcc-4.3.3/libgcc/../include   -o _muldi3.o -MT _muldi3.o
> -MD -MP -MF _muldi3.dep -DL_muldi3 -c
> ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c \
>
> xgcc: Internal error: Segmentation fault (program cc1)
> Please submit a full bug report.
> See <http://gcc.gnu.org/bugs.html> for instructions.
> make: *** [_muldi3.o] Error 1
> _________________________________________________________________
>
>
> Here is the piece of code in libgcc2.c which provokes the crash:
> _________________________________________________________________
> #ifdef L_muldi3
> DWtype
> __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;
> }
> #endif
> _________________________________________________________________
>
>
> More precisely the crash is on this line:
> DWunion w = {.ll = __umulsidi3 (uu.s.low, vv.s.low)};
>
> I don't know what's wrong in my machine description. I tried to
> include a pattern "umulsidi3" but it does not change anything.
> I do not find the definition of this __umulsidi3.
>
> Has someone any idea ? any clue ?
>
> Thank you.
> Regards.
>
> Florent

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-31 14:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-25 15:33 error while x-compiling libgcc2.c Florent DEFAY
2009-03-25 18:50 ` Georg-Johann Lay
2009-03-31  6:19 ganesh gopalasubramanian
2009-03-31  6:51 ` Florent DEFAY
2009-03-31  7:01   ` ganesh gopalasubramanian
2009-03-31  7:29     ` Florent DEFAY
2009-03-31  7:47       ` Florent DEFAY
2009-03-31 14:23     ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).