config.gcc can use the target triple to decide wich floating point modi it 
should use.
Allow such triples to make them usable

Signed-off-by: QBos07 <[email protected]>
---
 config.sub                | 14 ++++++++++++-
 testsuite/config-sub.data | 41 +++++++++++++++++++++++++++++++++++++--
 2 files changed, 52 insertions(+), 3 deletions(-)

diff --git a/config.sub b/config.sub
index 3d35cde..171b837 100755
--- a/config.sub
+++ b/config.sub
@@ -4,7 +4,7 @@
 
 # shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale
 
-timestamp='2025-07-10'
+timestamp='2025-07-24'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -1416,6 +1416,18 @@ case $cpu-$vendor in
                        | sh[23]ele \
                        | sh[24]a \
                        | sh[24]ae[lb] \
+                       | sh4_nofpu \
+                       | sh4_nofpue[lb] \
+                       | sh[24]a_nofpu \
+                       | sh[24]a_nofpue[lb] \
+                       | sh4_single \
+                       | sh4_singlee[lb] \
+                       | sh[24]a_single \
+                       | sh[24]a_singlee[lb] \
+                       | sh4_single_only \
+                       | sh4_single_onlye[lb] \
+                       | sh[24]a_single_only \
+                       | sh[24]a_single_onlye[lb] \
                        | sh[lb]e \
                        | she[lb] \
                        | shl \
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index 93b403c..91974e0 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -940,8 +940,20 @@ sh2                                                
sh2-unknown-none
 sh2-elf                                                sh2-unknown-elf
 sh2a                                           sh2a-unknown-none
 sh2a-elf                                       sh2a-unknown-elf
+sh2a_nofpu                                     sh2a_nofpu-unknown-none
+sh2a_nofpu-elf                                 sh2a_nofpu-unknown-elf
+sh2a_single                                    sh2a_single-unknown-none
+sh2a_single-elf                                        sh2a_single-unknown-elf
+sh2a_single_only                               sh2a_single_only-unknown-none
+sh2a_single_only-elf                           sh2a_single_only-unknown-elf
 sh2aeb                                         sh2aeb-unknown-none
 sh2aeb-elf                                     sh2aeb-unknown-elf
+sh2a_nofpueb                                   sh2a_nofpueb-unknown-none
+sh2a_nofpueb-elf                               sh2a_nofpueb-unknown-elf
+sh2a_singleeb                                  sh2a_singleeb-unknown-none
+sh2a_singleeb-elf                              sh2a_singleeb-unknown-elf
+sh2a_single_onlyeb                             sh2a_single_onlyeb-unknown-none
+sh2a_single_onlyeb-elf                         sh2a_single_onlyeb-unknown-elf
 sh2e                                           sh2e-unknown-none
 sh2e-elf                                       sh2e-unknown-elf
 sh2eb                                          sh2eb-unknown-none
@@ -959,11 +971,36 @@ sh3ele-elf                                        
sh3ele-unknown-elf
 sh3le-elf                                      sh3le-unknown-elf
 sh4                                            sh4-unknown-none
 sh4-elf                                                sh4-unknown-elf
+sh4_nofpu                                      sh4_nofpu-unknown-none
+sh4_nofpu-elf                                  sh4_nofpu-unknown-elf
+sh4_single                                     sh4_single-unknown-none
+sh4_single-elf                                 sh4_single-unknown-elf
+sh4_single_only                                        
sh4_single_only-unknown-none
+sh4_single_only-elf                            sh4_single_only-unknown-elf
+sh4eb-elf                                      sh4eb-unknown-elf
+sh4_nofpueb                                    sh4_nofpueb-unknown-none
+sh4_nofpueb-elf                                        sh4_nofpueb-unknown-elf
+sh4_singleeb                                   sh4_singleeb-unknown-none
+sh4_singleeb-elf                               sh4_singleeb-unknown-elf
+sh4_single_onlyeb                              sh4_single_onlyeb-unknown-none
+sh4_single_onlyeb-elf                          sh4_single_onlyeb-unknown-elf
+sh4le-elf                                      sh4le-unknown-elf
+sh4a                                           sh4a-unknown-none
 sh4a-elf                                       sh4a-unknown-elf
+sh4a_nofpu                                     sh4a_nofpu-unknown-none
+sh4a_nofpu-elf                                 sh4a_nofpu-unknown-elf
+sh4a_single                                    sh4a_single-unknown-none
+sh4a_single-elf                                        sh4a_single-unknown-elf
+sh4a_single_only                               sh4a_single_only-unknown-none
+sh4a_single_only-elf                           sh4a_single_only-unknown-elf
 sh4aeb                                         sh4aeb-unknown-none
 sh4aeb-elf                                     sh4aeb-unknown-elf
-sh4eb-elf                                      sh4eb-unknown-elf
-sh4le-elf                                      sh4le-unknown-elf
+sh4a_nofpueb                                   sh4a_nofpueb-unknown-none
+sh4a_nofpueb-elf                               sh4a_nofpueb-unknown-elf
+sh4a_singleeb                                  sh4a_singleeb-unknown-none
+sh4a_singleeb-elf                              sh4a_singleeb-unknown-elf
+sh4a_single_onlyeb                             sh4a_single_onlyeb-unknown-none
+sh4a_single_onlyeb-elf                         sh4a_single_onlyeb-unknown-elf
 sh5el-elf                                      sh5le-unknown-elf
 sh5el-netbsd                                   sh5le-unknown-netbsd
 sh64                                           sh64-unknown-none
-- 
2.43.0


Reply via email to