From: ganesh gopalasubramanian <gganeshgcc@gmail.com>
To: spira.inhabitant@gmail.com
Cc: gcc-help@gcc.gnu.org
Subject: Re: error while x-compiling libgcc2.c
Date: Tue, 31 Mar 2009 06:19:00 -0000 [thread overview]
Message-ID: <7238340b0903302319u1a887a8bq53fcfad8953dce8e@mail.gmail.com> (raw)
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
next reply other threads:[~2009-03-31 6:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-31 6:19 ganesh gopalasubramanian [this message]
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
-- strict thread matches above, loose matches on Subject: below --
2009-03-25 15:33 Florent DEFAY
2009-03-25 18:50 ` Georg-Johann Lay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7238340b0903302319u1a887a8bq53fcfad8953dce8e@mail.gmail.com \
--to=gganeshgcc@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=spira.inhabitant@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).