From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id D9D943858D35; Thu, 12 Jan 2023 03:40:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9D943858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673494850; bh=VwBR+j+zIvTbW5sIHsin6cf1YwcK5eqZN6WN5LpHGwU=; h=From:To:Subject:Date:From; b=AqNi9t1zLnW+eOCXgcGhUKgxs2pE6CgVZPK2934ZjeTwHeuROAyRfayY/Y1mfKO0J TrKLu+RDzSggyOzsF0w3sDYdDaV1juzsuGu1D9cIMLOT1rGK6+LEKnbItlCcSCRJsX jcB+CqmlivogzDu4bSX1H3sGdRNZ09/FTlhBwG5w= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michael Meissner To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/meissner/heads/work105y)] Undo patch X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work105y X-Git-Oldrev: 1a582dc50b583ed23200909dad817389f3cfe6f7 X-Git-Newrev: ac3c2b572b04621e230cd9d61c5372ff70cf07ee Message-Id: <20230112034050.D9D943858D35@sourceware.org> Date: Thu, 12 Jan 2023 03:40:50 +0000 (GMT) List-Id: https://gcc.gnu.org/g:ac3c2b572b04621e230cd9d61c5372ff70cf07ee commit ac3c2b572b04621e230cd9d61c5372ff70cf07ee Author: Michael Meissner Date: Wed Jan 11 22:39:07 2023 -0500 Undo patch Diff: --- libgcc/config/rs6000/quad-float128.h | 19 ++++++++++++++++--- libgcc/libgcc2.h | 5 ----- libgcc/soft-fp/quad.h | 2 -- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/libgcc/config/rs6000/quad-float128.h b/libgcc/config/rs6000/quad-float128.h index 3fa70d0e0a8..ae0622c744c 100644 --- a/libgcc/config/rs6000/quad-float128.h +++ b/libgcc/config/rs6000/quad-float128.h @@ -27,9 +27,22 @@ License along with the GNU C Library; if not, see . */ -/* Override quad.h's definitions for 128-bit floating point type. */ -#define TFtype _Float128 -#define TCtype _Complex _Float128 +/* quad.h defines the TFtype type by: + typedef float TFtype __attribute__ ((mode (TF))); + + This define forces it to use KFmode (aka, ieee 128-bit floating point). + However, when the compiler's default is changed so that long double is IEEE + 128-bit floating point, we need to go back to using TFmode and TCmode. */ +#ifndef __LONG_DOUBLE_IEEE128__ +#define TF KF + +/* We also need TCtype to represent complex ieee 128-bit float for + __mulkc3 and __divkc3. */ +typedef __complex float TCtype __attribute__ ((mode (KC))); + +#else +typedef __complex float TCtype __attribute__ ((mode (TC))); +#endif /* Force the use of the VSX instruction set. */ #if defined(_ARCH_PPC) && (!defined(__VSX__) || !defined(__FLOAT128__)) diff --git a/libgcc/libgcc2.h b/libgcc/libgcc2.h index a39c365d904..fc24ac34502 100644 --- a/libgcc/libgcc2.h +++ b/libgcc/libgcc2.h @@ -156,14 +156,9 @@ typedef float XFtype __attribute__ ((mode (XF))); typedef _Complex float XCtype __attribute__ ((mode (XC))); #endif #if LIBGCC2_HAS_TF_MODE -/* PowerPC would like to override this to be _Float128. */ -#ifndef TFtype typedef float TFtype __attribute__ ((mode (TF))); -#endif -#ifndef TCtype typedef _Complex float TCtype __attribute__ ((mode (TC))); #endif -#endif typedef int cmp_return_type __attribute__((mode (__libgcc_cmp_return__))); typedef int shift_count_type __attribute__((mode (__libgcc_shift_count__))); diff --git a/libgcc/soft-fp/quad.h b/libgcc/soft-fp/quad.h index 71f87d36ba9..3889bb44f1f 100644 --- a/libgcc/soft-fp/quad.h +++ b/libgcc/soft-fp/quad.h @@ -65,9 +65,7 @@ #define _FP_HIGHBIT_DW_Q \ ((_FP_W_TYPE) 1 << (_FP_WFRACBITS_DW_Q - 1) % _FP_W_TYPE_SIZE) -#ifndef TFtype typedef float TFtype __attribute__ ((mode (TF))); -#endif #if _FP_W_TYPE_SIZE < 64