From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id 6EC793858D28; Fri, 12 Aug 2022 02:39:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6EC793858D28 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)] Revert patch. X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work097 X-Git-Oldrev: b7ac9cf57025d75f78125e5ee20eb81a9e1bb5ec X-Git-Newrev: 3dfe6754647f527dbe49bdbc1e34c065276ad537 Message-Id: <20220812023947.6EC793858D28@sourceware.org> Date: Fri, 12 Aug 2022 02:39:47 +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 02:39:47 -0000 https://gcc.gnu.org/g:3dfe6754647f527dbe49bdbc1e34c065276ad537 commit 3dfe6754647f527dbe49bdbc1e34c065276ad537 Author: Michael Meissner Date: Thu Aug 11 22:39:09 2022 -0400 Revert patch. 2022-08-11 Michael Meissner gcc/ Revert patches. * config/rs6000/rs6000-builtin.cc (rs6000_init_builtins): Always use the _Float128 type for __float128. Don't use the long double type. * ChangeLog.meissner: Update. Diff: --- gcc/ChangeLog.meissner | 11 +---------- gcc/config/rs6000/rs6000-builtin.cc | 8 ++++---- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog.meissner b/gcc/ChangeLog.meissner index 2e6a3764991..4ae59e38377 100644 --- a/gcc/ChangeLog.meissner +++ b/gcc/ChangeLog.meissner @@ -1,13 +1,4 @@ -==================== work097, patch008 - -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. +==================== work097, patch008 was reverted ==================== work097, patch007 diff --git a/gcc/config/rs6000/rs6000-builtin.cc b/gcc/config/rs6000/rs6000-builtin.cc index 1cc97fa49b3..e34a8f0cebf 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) { - /* 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; + if (TARGET_IEEEQUAD && TARGET_LONG_DOUBLE_128) + ieee128_float_type_node = long_double_type_node; + else + 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");