This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: soft-fp functions support without using libgcc
- From: Ian Lance Taylor <iant at google dot com>
- To: Sheheryar Zahoor Qazi <sheheryar dot zahoor dot qazi at gmail dot com>
- Cc: Paul_Koning at dell dot com, ian dot bolton at arm dot com, GCC Development <gcc at gcc dot gnu dot org>, Chung-Ju Wu <jasonwucj at gmail dot com>
- Date: Tue, 20 May 2014 09:08:30 -0700
- Subject: Re: soft-fp functions support without using libgcc
- Authentication-results: sourceware.org; auth=none
- References: <CANOiJWLsqPSyeCz3EkvYH4OWZrkC1KttqJ_jrQiwUMPFgh64XA at mail dot gmail dot com> <CAKOQZ8zOQg9dg_XauuVBYEtv_xHkN9icCX5X=F445y_G4Fu90g at mail dot gmail dot com> <2D02775B-8F70-487C-8FF8-B69B6006E1ED at dell dot com> <CANOiJWKqgtGPoHupWdjkkCa_7rfYi0xe+JU7E-bjxABi+QaiqA at mail dot gmail dot com>
On Tue, May 20, 2014 at 7:37 AM, Sheheryar Zahoor Qazi
<sheheryar.zahoor.qazi@gmail.com> wrote:
>>>If you have a working compiler that is missing some functions
>>>provided by libgcc, that should be sufficient to build libgcc.
> Meaning that even if i am unable build libgcc to my new architecture,
> I should be able to able to provide soft-fp support to the
> architecture?
You need to build soft-fp as part of libgcc. What I am saying is that
you don't need soft-fp support in order to build libgcc.
> Btw i get the following error when i build gcc:
> configure:2627: error: in
> `/target-arch/target-arch-gcc/builddir/target-arch/libgcc':
> configure:2630: error: cannot compute suffix of object files: cannot compile
You need to look in target-arch/libgcc/config.log to see what the
problem is.
> And regarding soft-fp, I get the following error when i use soft-fp
> functions in a test program:
> : In function `test':
> (.text+0x0): undefined reference to `__floatsisf'
> In function `test':
> : In function `test':
> (.text+0x2c): undefined reference to `__mulsf3'
> : In function `test':
> (.text+0x2e): undefined reference to `__fixsfsi'
>
> Is this due to libgcc build fail or it just linking error?
It's because libgcc was not built.
Ian