This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for Granlund's soft-fp lib
Phil Edwards <phil@jaj.com> writes:
> On Mon, Jun 30, 2003 at 09:05:36AM -0700, Zack Weinberg wrote:
>> If you would like to do the legwork to get it incorporated, we would
>> appreciate that considerably. What you'd have to do is
> [ some rather easy stuff ]
>> and then one at
>> a time modify ports that use fp-bit.c to use the new library instead.
>
> Zack, can you give a guess as to how easy/difficult this last step might be?
The actual modifications that need to be made are straightforward.
This is an opportunity to clean up by creating a centralized
config/t-softfp that contains all the Makefile magic necessary. Then
it's simply a matter of deleting the fp-bit rules from the port
t-fragments and sucking in config/t-softfp from config.gcc. (Port
t-fragments will still need to set some variables to control
behavior.)
The hard part is testing - you have to exercise the new floating point
thoroughly. People have harnesses for this, and emulators can be used
for most of the affected architectures, but it's not simply a matter
of "build this and run the testsuite", alas.
zw