Re: PowerPC long double Mangling

2020-09-15 Thread Jakub Jelinek via Gcc
On Tue, Sep 15, 2020 at 01:37:20AM -0400, Michael Meissner wrote: > > What's the benefit of having __float128 and IEEE long double be > > distinct types? That complicates things for libraries like libstdc++. > > If we want to support using "__float128" with C++ iostreams then we > > need yet anothe

Re: PowerPC long double Mangling

2020-09-14 Thread Michael Meissner via Gcc
On Wed, Sep 09, 2020 at 02:42:36PM +0100, Jonathan Wakely wrote: > Sorry for the slow reply to this. > > On Fri, 7 Aug 2020 at 22:14, Michael Meissner wrote: > > > > One issue with doing the transition is what mangling should be used with the > > new long double. > > > > At the moment, the curren

Re: PowerPC long double Mangling

2020-09-09 Thread Segher Boessenkool
On Wed, Sep 09, 2020 at 07:41:02PM +0200, Jakub Jelinek wrote: > On Wed, Sep 09, 2020 at 12:32:22PM -0500, Segher Boessenkool wrote: > > On Wed, Sep 09, 2020 at 07:06:41PM +0200, Thomas Koenig wrote: > > > Am 09.09.20 um 17:36 schrieb Segher Boessenkool: > > > >You can use both __ibm128 and __ieee1

Re: PowerPC long double Mangling

2020-09-09 Thread Jakub Jelinek via Gcc
On Wed, Sep 09, 2020 at 12:32:22PM -0500, Segher Boessenkool wrote: > On Wed, Sep 09, 2020 at 07:06:41PM +0200, Thomas Koenig wrote: > > Am 09.09.20 um 17:36 schrieb Segher Boessenkool: > > >You can use both __ibm128 and __ieee128 in one program, so it isn't an > > >ABI change. Only the default of

Re: PowerPC long double Mangling

2020-09-09 Thread Segher Boessenkool
On Wed, Sep 09, 2020 at 07:06:41PM +0200, Thomas Koenig wrote: > Am 09.09.20 um 17:36 schrieb Segher Boessenkool: > >You can use both __ibm128 and __ieee128 in one program, so it isn't an > >ABI change. Only the default of what "long double" means changes. And > >we have been there before, there

Re: PowerPC long double Mangling

2020-09-09 Thread Thomas Koenig via Gcc
Am 09.09.20 um 17:36 schrieb Segher Boessenkool: You can use both __ibm128 and __ieee128 in one program, so it isn't an ABI change. Only the default of what "long double" means changes. And we have been there before, there is the "e" mangling as well... For Fortran, it is an ABI change unless

Re: PowerPC long double Mangling

2020-09-09 Thread Segher Boessenkool
Hi! On Wed, Sep 09, 2020 at 02:42:36PM +0100, Jonathan Wakely wrote: > On Fri, 7 Aug 2020 at 22:14, Michael Meissner wrote: > > But assuming we want compatibility with libraries like glibc and libstdc++, > > I > > think we will have to continue to use "g" for __ibm128. Yes. > > With the long d

Re: PowerPC long double Mangling

2020-09-09 Thread Jonathan Wakely via Gcc
Sorry for the slow reply to this. On Fri, 7 Aug 2020 at 22:14, Michael Meissner wrote: > > One issue with doing the transition is what mangling should be used with the > new long double. > > At the moment, the current mangling is: > long double "g" > __float128 "u9__ieee1

PowerPC long double Mangling

2020-08-07 Thread Michael Meissner via Gcc
One issue with doing the transition is what mangling should be used with the new long double. At the moment, the current mangling is: long double "g" __float128 "u9__ieee128" __ibm128"g" Obviously this will have to change in the future. It is unfortunate