From: Ian Lance Taylor <iant@google.com>
To: Florent DEFAY <spira.inhabitant@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: new port : libgcc ? newlib ?
Date: Fri, 13 Mar 2009 15:32:00 -0000 [thread overview]
Message-ID: <m3bps5h22b.fsf@google.com> (raw)
In-Reply-To: <8502af3c0903130809u65aa1655g4384af7ed93b7caa@mail.gmail.com> (Florent DEFAY's message of "Fri\, 13 Mar 2009 16\:09\:04 +0100")
Florent DEFAY <spira.inhabitant@gmail.com> writes:
> Thank you for your reply. I can precise some things:
>
>>> Then I tried this (just like msp430) :
>>>
>>> LIB1ASMSRC = target/mulhi3.S
>>> LIB1ASMFUNCS = __mulhi3
>>
>> Looks right, assuming you've written mulhi3.S.
>
> I have.
> Will the function __mulhi3 be placed in libgcc.a?
Yes.
> Then, to compile a
> program which use multiplications, should I link with -lgcc option?
The gcc driver will automatically link with -lgcc, unless you use
something like the -nodefaultlibs option.
> Now, the problem is that the port is not complete and, as a
> consequence, when compiling libgcc2.c this happens :
> /home/me/gcc/build_target/./gcc/xgcc
> -B/home/me/gcc/build_target/./gcc/ -B/home/me/target/target/bin/
> -B/home/me/target/target/lib/ -isystem /home/me/target/target/include
> -isystem /home/me/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 \
>
> ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c: In function ‘__mulsi3’:
> ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c:560: internal compiler
> error: Segmentation fault
>
> I would like (temporarily) not to compile libgcc2. But, in the same
> time, enable compiling of my multhi3. Is that possible? It would be a
> libgcc without libgcc2.
There is no simply way to do this. You can control it to some extent by
setting LIB2FUNCS_EXCLUDE in your t-* file. See, e.g.,
config/spu/t-spu-elf.
Ian
prev parent reply other threads:[~2009-03-13 15:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-13 9:46 Florent DEFAY
2009-03-13 14:21 ` Ian Lance Taylor
2009-03-13 15:09 ` Florent DEFAY
2009-03-13 15:32 ` Ian Lance Taylor [this message]
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=m3bps5h22b.fsf@google.com \
--to=iant@google.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).