From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by sourceware.org (Postfix) with ESMTP id B6B9038582B3 for ; Wed, 10 Aug 2022 20:06:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B6B9038582B3 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.crashing.org Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 27AK41a5019051; Wed, 10 Aug 2022 15:04:02 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 27AK40Bh019050; Wed, 10 Aug 2022 15:04:00 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 10 Aug 2022 15:04:00 -0500 From: Segher Boessenkool To: Tulio Magno Quites Machado Filho Cc: Michael Meissner via Gcc , Michael Meissner , "Kewen.Lin" , David Edelsohn , Peter Bergner , Will Schmidt , Jason Merrill , Nathan Sidwell , Mike Stump , Iain Sandoe , Joseph Myers , Alan Modra , Nick Clifton , Jeff Law , Jakub Jelinek , Richard Biener , "David S. Miller" , "Carlos O'Donell" , libc-alpha@sourceware.org Subject: Re: Resend: Potential upcoming changes in mangling to PowerPC GCC Message-ID: <20220810200400.GD25951@gate.crashing.org> References: <871qtnc1q9.fsf@linux.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871qtnc1q9.fsf@linux.ibm.com> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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, 10 Aug 2022 20:06:20 -0000 On Wed, Aug 10, 2022 at 04:55:42PM -0300, Tulio Magno Quites Machado Filho wrote: > Michael Meissner via Gcc writes: > > Because long double mangles the same as either __float128 or __ibm128, you > > cannot write programs like: > > > > double convert (__ibm128 x) { return x; } > > double convert (__float128 x) { return x; } > > double convert (long double x) { return x; } > > > > You would have to write on a system with long double being IBM 128-bit: > > > > double convert (__float128 x) { return x; } > > double convert (long double x) { return x; } > > > > or on a system with long double being IEEE 128-bit: > > > > double convert (__ibm128 x) { return x; } > > double convert (long double x) { return x; } > > Does that mean, when long double is IEEE 128-bit, the compiler won't support > _Float128/__float128 ? You can write double convert (__ibm128 x) { return x; } double convert (__ieee128 x) { return x; } as well. "__ieee128" and "long double" are the same type then (and the same as _Float128 and __float128 as well). Segher