https://gcc.gnu.org/g:0ce2d03df98e94d3f4d3177a1a8149f67db55c0a

commit 0ce2d03df98e94d3f4d3177a1a8149f67db55c0a
Author: Michael Meissner <[email protected]>
Date:   Mon Nov 16 18:15:10 2026 -0500

    Make -mfloat16 default on little endian 64-bit Linux.
    
    This patch changes the default for 16-bit floating point on 64-bit little 
endian
    Linux server systems.  During development, _Float16 and __bf16 were 
disabled by
    default.
    
    2026-11-16  Michael Meissner  <[email protected]>
    
            * config/rs6000/rs6000.cc (POWERPC_FLOAT16_DEFAULT): Enable by 
default
            on 64-bit little endian Linux systems.

Diff:
---
 gcc/config/rs6000/rs6000.cc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc
index faf17fc0d8df..4108692e7b8c 100644
--- a/gcc/config/rs6000/rs6000.cc
+++ b/gcc/config/rs6000/rs6000.cc
@@ -103,6 +103,12 @@ static tree rs6000_mangle_decl_assembler_name (tree, tree);
 #endif
 #endif
 
+/* Enable 16-bit floating point by default on little endian 64-bit Linux
+   systems.  */
+#if !defined(POWERPC_FLOAT16_DEFAULT) && defined(LINUX64_DEFAULT_ABI_ELFv2)
+#define POWERPC_FLOAT16_DEFAULT        1
+#endif
+
 /* Don't enable PC-relative addressing if the target does not support it.  */
 #ifndef PCREL_SUPPORTED_BY_OS
 #define PCREL_SUPPORTED_BY_OS  0

Reply via email to