From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by sourceware.org (Postfix) with ESMTP id E240F3857833 for ; Wed, 9 Sep 2020 17:42:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E240F3857833 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-564-AXyCM2tYNIaXXMuwiiUpew-1; Wed, 09 Sep 2020 13:41:58 -0400 X-MC-Unique: AXyCM2tYNIaXXMuwiiUpew-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E78C380F041; Wed, 9 Sep 2020 17:41:53 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-112-247.ams2.redhat.com [10.36.112.247]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6026A60BEC; Wed, 9 Sep 2020 17:41:51 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id 089HfcEg015685; Wed, 9 Sep 2020 19:41:38 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id 089Hf3DA015460; Wed, 9 Sep 2020 19:41:03 +0200 Date: Wed, 9 Sep 2020 19:41:02 +0200 From: Jakub Jelinek To: Segher Boessenkool Cc: Thomas Koenig , Jason Merrill , Ulrich Weigand , Pat Haugen , Tobias =?iso-8859-1?Q?Schl=FCter?= , =?iso-8859-1?Q?Fran=E7ois-Xavier?= Coudert , Paul Clarke , Jerry DeLisle , Tobias Burnus , Daniel Kraft , Joseph Myers , Paul Thomas , Janus Weil , Daniel Franke , Thomas =?iso-8859-1?Q?K=F6nig?= , Uros Bizjak , Erik Edelmann , Janne Blomqvist , Michael Meissner , gcc Mailing List , Pedro Franco de Carvalho , Tulio Magno Quites Machado Filho , Jan Hubicka , Carl Love , Richard Earnshaw , Richard Biener , Nathan Sidwell , Mikael Morin , "Carlos O'Donell" , Ramana Radhakrishnan Subject: Re: PowerPC long double Mangling Message-ID: <20200909174102.GS18149@tucnak> Reply-To: Jakub Jelinek References: <20200807205526.GA21089@ibm-tinman.the-meissners.org> <20200807211444.GA24949@ibm-tinman.the-meissners.org> <20200909153646.GY28786@gate.crashing.org> <20200909173222.GA28786@gate.crashing.org> MIME-Version: 1.0 In-Reply-To: <20200909173222.GA28786@gate.crashing.org> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0.001 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2020 17:42:01 -0000 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 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 we define an additional KIND > > number for __ieee128. > > Yes, Fortran has existing problems here (now *already*). Well, the Fortran kind case is the same thing as the change of the meaning of long double from __ibm128 to __ieee128. Neither C nor Fortran has special mangling for that, so for those languages it is a real ABI change, for C++ it is an ABI change too, but one that can be dealt for selected libraries through mangling and compiling stuff that refers to long double twice (e.g. libstdc++). For glibc I guess it can be dealt with using asm redirects of the math functions. Jakub