Message ID | CB76A8DB-48CA-4B0A-857E-36957B70A35C@sandoe-acoustics.co.uk |
---|---|
State | New |
Headers | show |
On 09/02/2010 11:48 AM, IainS wrote: > Index: libgcc/Makefile.in > =================================================================== > --- libgcc/Makefile.in (revision 163732) > +++ libgcc/Makefile.in (working copy) > @@ -384,9 +384,9 @@ ifneq ($(LIB2_SIDITI_CONV_FUNCS),) > # functions are built with a wordsize of 4; the TImode functions are > # built with the same labels, but a wordsize of 8. > > -sifuncs = $(subst XX,si,$(swfloatfuncs)) > -difuncs = $(subst XX,di,$(dwfloatfuncs)) > -tifuncs = $(subst XX,ti,$(dwfloatfuncs)) > +sifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst > XX,si,$(swfloatfuncs))) > +difuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst > XX,di,$(dwfloatfuncs))) > +tifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst > XX,ti,$(dwfloatfuncs))) > > iter-items := $(sifuncs) $(difuncs) $(tifuncs) > iter-labels := $(sifuncs) $(difuncs) $(difuncs) > Index: gcc/config/i386/t-darwin > =================================================================== > --- gcc/config/i386/t-darwin (revision 163732) > +++ gcc/config/i386/t-darwin (working copy) > @@ -2,3 +2,4 @@ MULTILIB_OPTIONS = m64 > MULTILIB_DIRNAMES = x86_64 > LIB2_SIDITI_CONV_FUNCS=yes > LIB2FUNCS_EXTRA = $(srcdir)/config/darwin-64.c > +LIB2FUNCS_EXCLUDE = _fixtfdi _fixunstfdi _floatditf _floatunditf > > > Ok. Paolo
Uros, On 3 Sep 2010, at 14:10, Paolo Bonzini wrote: > On 09/02/2010 11:48 AM, IainS wrote: >> Index: libgcc/Makefile.in >> =================================================================== >> --- libgcc/Makefile.in (revision 163732) >> +++ libgcc/Makefile.in (working copy) >> @@ -384,9 +384,9 @@ ifneq ($(LIB2_SIDITI_CONV_FUNCS),) >> # functions are built with a wordsize of 4; the TImode functions are >> # built with the same labels, but a wordsize of 8. >> >> -sifuncs = $(subst XX,si,$(swfloatfuncs)) >> -difuncs = $(subst XX,di,$(dwfloatfuncs)) >> -tifuncs = $(subst XX,ti,$(dwfloatfuncs)) >> +sifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst >> XX,si,$(swfloatfuncs))) >> +difuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst >> XX,di,$(dwfloatfuncs))) >> +tifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst >> XX,ti,$(dwfloatfuncs))) >> >> iter-items := $(sifuncs) $(difuncs) $(tifuncs) >> iter-labels := $(sifuncs) $(difuncs) $(difuncs) >> Index: gcc/config/i386/t-darwin >> =================================================================== >> --- gcc/config/i386/t-darwin (revision 163732) >> +++ gcc/config/i386/t-darwin (working copy) >> @@ -2,3 +2,4 @@ MULTILIB_OPTIONS = m64 >> MULTILIB_DIRNAMES = x86_64 >> LIB2_SIDITI_CONV_FUNCS=yes >> LIB2FUNCS_EXTRA = $(srcdir)/config/darwin-64.c >> +LIB2FUNCS_EXCLUDE = _fixtfdi _fixunstfdi _floatditf _floatunditf >> >> >> > > Ok. this needs to be applied as part of your LIBGCC2_HAS_TF_MODE patch - could you do that? ... or split the darwin entry from your patch and I'll apply both - (when all is approved ) cheers, Iain
On Fri, Sep 3, 2010 at 3:39 PM, IainS <developer@sandoe-acoustics.co.uk> wrote: > this needs to be applied as part of your LIBGCC2_HAS_TF_MODE patch - could > you do that? Done (I hope I didn't mess something). This is the final combined ChangeLog: libgcc/ChangeLog: 2010-09-03 Uros Bizjak <ubizjak@gmail.com> PR target/45476 * Makefile.in (sifuncs, difuncs, tifuncs): Filter out LIB2FUNCS_EXCLUDE functions. gcc/ChangeLog: 2010-09-03 Uros Bizjak <ubizjak@gmail.com> Iain Sandoe <iains@gcc.gnu.org> PR target/45476 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New. * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE): New defines. gcc/testsuite/ChangeLog: 2010-09-03 Uros Bizjak <ubizjak@gmail.com> PR target/45476 * gcc.target/i386/float128-1.c: Enable for all x86 targets. * gcc.target/i386/float128-2.c: Ditto. I have also enabled gcc.target/i386/float128-[12].c tests for all x86 targets, to mirror gcc.dg/torture/fp-int-convert-float128.c and to prevent missing libgcc2 TFmode functions in future. Enjoy __float128 floats ;) Uros.
Index: libgcc/Makefile.in =================================================================== --- libgcc/Makefile.in (revision 163732) +++ libgcc/Makefile.in (working copy) @@ -384,9 +384,9 @@ ifneq ($(LIB2_SIDITI_CONV_FUNCS),) # functions are built with a wordsize of 4; the TImode functions are # built with the same labels, but a wordsize of 8. -sifuncs = $(subst XX,si,$(swfloatfuncs)) -difuncs = $(subst XX,di,$(dwfloatfuncs)) -tifuncs = $(subst XX,ti,$(dwfloatfuncs)) +sifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,si,$ (swfloatfuncs))) +difuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,di,$ (dwfloatfuncs))) +tifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,ti,$ (dwfloatfuncs))) iter-items := $(sifuncs) $(difuncs) $(tifuncs) iter-labels := $(sifuncs) $(difuncs) $(difuncs) Index: gcc/config/i386/t-darwin =================================================================== --- gcc/config/i386/t-darwin (revision 163732) +++ gcc/config/i386/t-darwin (working copy) @@ -2,3 +2,4 @@ MULTILIB_OPTIONS = m64 MULTILIB_DIRNAMES = x86_64 LIB2_SIDITI_CONV_FUNCS=yes LIB2FUNCS_EXTRA = $(srcdir)/config/darwin-64.c +LIB2FUNCS_EXCLUDE = _fixtfdi _fixunstfdi _floatditf _floatunditf