This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: soft-float support
- From: "Graeme Peterson" <gp at qnx dot com>
- To: gp at qnx dot com (Graeme Peterson)
- Cc: aph at redhat dot com (Andrew Haley), gcc at gcc dot gnu dot org
- Date: Tue, 8 Oct 2002 17:39:21 -0400 (EDT)
- Subject: Re: soft-float support
This got it working. I also had to add:
# Do not build libgcc1.
LIBGCC1 =
CROSS_LIBGCC1 =
Thanks, all.
GP
>
> I dug a little and found this, which I copied from t-rs6000:
>
> LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c tramp.S
>
> dp-bit.c: $(srcdir)/config/fp-bit.c
> cat $(srcdir)/config/fp-bit.c > dp-bit.c
>
> fp-bit.c: $(srcdir)/config/fp-bit.c
> echo '#define FLOAT' > fp-bit.c
> cat $(srcdir)/config/fp-bit.c >> fp-bit.c
>
> I'm building it now, but the comment at the top of fp-bit.c
> seems promising:
>
> "/* This is a software floating point library which can be used instead of
> the floating point routines in libgcc1.c for targets without hardware
> floating point. */ "
>
> Think that might be it? :-)
>
> GP
>
> >
> > Graeme Peterson writes:
> > > Hi, all.
> > >
> > > I have done some searching, and it seems that gcc (in this case
> > > 2.95.3 targetting ppc-QNX6) does not have support for statically
> > > linked software emulated floating point instructions.
> > >
> > > Can someone clarify for me what is required to get this going? Do
> > > I need to implement the floating point emulation and tell gcc to
> > > use it in place of the fadd in the __adddf3 call? If so, how do I
> > > do that?
> >
> > You need to specify the multilibs in your target file for qnx.
> >
> > For example, in the current gcc source, gcc/config/rs6000/t-rs6000
> > contains
> >
> > MULTILIB_OPTIONS = msoft-float
> > MULTILIB_DIRNAMES = soft-float
> >
> > Andrew.
> >
>
>