From d2c172ed163a8a411245827bbe446e141248d3e8 Mon Sep 17 00:00:00 2001
From: QBos07 <qu...@outlook.de>
Date: Fri, 9 May 2025 15:33:54 +0000
Subject: [PATCH] Add superh cpus with floats from config.gcc
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 <qu...@outlook.de>
---
 config.sub                | 16 +++++++++++++--
 testsuite/config-sub.data | 41 +++++++++++++++++++++++++++++++++++++--
 2 files changed, 53 insertions(+), 4 deletions(-)
diff --git a/config.sub b/config.sub
index 4aaae46..261ae0f 100755
--- a/config.sub
+++ b/config.sub
@@ -1,10 +1,10 @@
 #! /bin/sh
 # Configuration validation subroutine script.
-#   Copyright 1992-2024 Free Software Foundation, Inc.
+#   Copyright 1992-2025 Free Software Foundation, Inc.
 # shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale
-timestamp='2024-05-27'
+timestamp='2025-05-09'
 # 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
@@ -1415,6 +1415,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 b528544..4b51997 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -925,8 +925,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
@@ -944,11 +956,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