This is the mail archive of the
mailing list for the GCC project.
Re: Enabling soft-float support in a new target
-----BEGIN PGP SIGNED MESSAGE-----
Hi GCCers, Ian
after completing a first pass over the newlib port for a simple RISC
target (let's call it "risc"), i'm trying to add softfloat support to
its gcc port. It works for INTEGER_ONLY.
First, i've taken example from t-mips Makefile fragment to take
account fp-bit.c, dp-bit.c in compilation. Second, i've added the
following segment in the
gcc/gcc/config.gcc script for the risc-*-* target.
case "$with_float" in
| soft | hard | softfp)
echo "Unknown floating point type used in
- --with-float=$with_float" 1>&2
After adding that, i assumed that --with-float=soft would do the job.
However, make stops with complaining the target (risc-elf) does not
I have also added related stuff (SOFT_FLOAT, HARD_FLOAT) flags in
config/risc/risc.h as well as the -msoft-float option (to force use of
soft-float at compile time).
However, it seems that the original MIPS target does not require
adding --with-float=soft in order to generate softfloat-aware
libraries (later on). Is this true?
I have a few more questions:
1. Is it possible to use softfloat for a target that does not have
floating-point registers? Are these needed at all in such case?
2. What code generation patterns are needed for softfloat to work?
None, or the "movsf", "movdf" ones?
Thanks in advance.
Ian Lance Taylor wrote:
> firstname.lastname@example.org writes:
>> i'm trying to add soft-float support for a simple RISC target.
> Copy the code in config/mips/t-mips, appropriately modified for
> your target.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----