https://gcc.gnu.org/g:58ecd2eb507ab216861408cf10ec05efc4e8344e

commit r15-1034-g58ecd2eb507ab216861408cf10ec05efc4e8344e
Author: Kewen Lin <li...@linux.ibm.com>
Date:   Wed Jun 5 04:23:04 2024 -0500

    darwin: Replace use of LONG_DOUBLE_TYPE_SIZE
    
    Joseph pointed out "floating types should have their mode,
    not a poorly defined precision value" in the discussion[1],
    as he and Richi suggested, the existing macros
    {FLOAT,{,LONG_}DOUBLE}_TYPE_SIZE will be replaced with a
    hook mode_for_floating_type.  To be prepared for that, this
    patch is to replace use of LONG_DOUBLE_TYPE_SIZE in darwin
    with TYPE_PRECISION of long_double_type_node.
    
    [1] https://gcc.gnu.org/pipermail/gcc-patches/2024-May/651209.html
    
    gcc/ChangeLog:
    
            * config/darwin.cc (darwin_patch_builtins): Use TYPE_PRECISION of
            long_double_type_node to replace LONG_DOUBLE_TYPE_SIZE.

Diff:
---
 gcc/config/darwin.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/darwin.cc b/gcc/config/darwin.cc
index 63b8c509405..9129378be37 100644
--- a/gcc/config/darwin.cc
+++ b/gcc/config/darwin.cc
@@ -3620,7 +3620,7 @@ darwin_patch_builtin (enum built_in_function fncode)
 void
 darwin_patch_builtins (void)
 {
-  if (LONG_DOUBLE_TYPE_SIZE != 128)
+  if (TYPE_PRECISION (long_double_type_node) != 128)
     return;
 
 #define PATCH_BUILTIN(fncode) darwin_patch_builtin (fncode);

Reply via email to