Hi David & Ian, Thanks for the information. > > The soft-fp functions are included in libgcc. I believe the functions > only are invoked if named patterns for the operations do not exist in > the machine description or the named patterns report the operation as > unsupported in hardware through the FAIL code path. > > David > > Take a look at libgcc/config.host, notably the addition of t-softfp to > tmake_file. That refers to libgcc/config/t-softfp. I don't know if > that is all that you need, but hopefully it will move you one step > forward. > > Ian I have updated the t-<target> file in gcc/config/<target> folder to add t-soft-fp to the tmake_file. Now the soft-fp routines are getting used. I have one more doubt. Is there any way to obtain the following behavior? * By default the libgcc routines should be used. * If we specify the option say -msoft-fp during compilation, then the soft-fp routines should be used instead of default libgcc routines. I have done the modifications to support the "-msoft-fp" option. Please suggest how to proceed further. Thanks Rathish.C > -----Original Message----- > From: Ian Lance Taylor [mailto:iant@xxxxxxxxxx] > Sent: Tuesday, May 18, 2010 7:52 PM > To: Rathish C > Cc: gcc-help@xxxxxxxxxxx > Subject: Re: Adding "soft-fp" support to a new target > > Rathish C <Rathish.C@xxxxxxxxxxxxxxx> writes: > > > I am trying to add the soft-fp support to a new target. I have > > checked the implementation done in rs6000 port, and done the > > similar modifications to our port. I have made the following > > changes. > > > > (1) Added the following files > > t-fprules-softfp > > sfp-machine.h > > > > (2) Modified the file '/gcc/config.gcc' > > to include the above 2 files in 'tmake_file' > > > > But still the soft-fp routines are not getting linked. The default > > libraries are being taken. > > > > Please suggest the additional modifications required to support > > the soft-fp support. Also, please let me know the name of > > library built for soft-fp? > > Take a look at libgcc/config.host, notably the addition of t-softfp to > tmake_file. That refers to libgcc/config/t-softfp. I don't know if > that is all that you need, but hopefully it will move you one step > forward. > > Ian