From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id 137F93858D28; Fri, 12 Aug 2022 01:11:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 137F93858D28 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/work097)] Make __float128 use the _Float128 type. X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work097 X-Git-Oldrev: 2014c1c94faf39e804d7a41793bf4fc826aebd04 X-Git-Newrev: 5781bb7754809e81cbb661c891b28c6d2a1f1432 Message-Id: <20220812011150.137F93858D28@sourceware.org> Date: Fri, 12 Aug 2022 01:11:50 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2022 01:11:50 -0000 https://gcc.gnu.org/g:5781bb7754809e81cbb661c891b28c6d2a1f1432 commit 5781bb7754809e81cbb661c891b28c6d2a1f1432 Author: Michael Meissner Date: Thu Aug 11 21:11:26 2022 -0400 Make __float128 use the _Float128 type. 2022-08-11 Michael Meissner gcc/ * config/rs6000/rs6000-builtin.cc (rs6000_init_builtins): Always use the _Float128 type for __float128. Don't use the long double type. Diff: --- gcc/config/rs6000/rs6000-builtin.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/rs6000/rs6000-builtin.cc b/gcc/config/rs6000/rs6000-builtin.cc index e34a8f0cebf..1cc97fa49b3 100644 --- a/gcc/config/rs6000/rs6000-builtin.cc +++ b/gcc/config/rs6000/rs6000-builtin.cc @@ -733,10 +733,10 @@ rs6000_init_builtins (void) if (TARGET_FLOAT128_TYPE) { - if (TARGET_IEEEQUAD && TARGET_LONG_DOUBLE_128) - ieee128_float_type_node = long_double_type_node; - else - ieee128_float_type_node = float128_type_node; + /* Always make the type used by __float128 to be the same as the + _Float128 type. The C23 standard will want long double to be a + different type than _Float128, so don't use the long double type. */ + ieee128_float_type_node = float128_type_node; t = build_qualified_type (ieee128_float_type_node, TYPE_QUAL_CONST); lang_hooks.types.register_builtin_type (ieee128_float_type_node, "__ieee128");