This patch adds the leon3v7 version of libgcc to the leon3-elf target.

If approved, I'll need a maintainer to kindly commit on my behalf.

Thanks,

Pat Bernardi
Senior Software Engineer, AdaCore


2020-10-29  Pat Bernardi  <berna...@adacore.com <mailto:berna...@adacore.com>>

gcc/ChangeLog

        * config/sparc/t-leon3: Add leon3v7 version of libgcc.

libgcc/Changelog

        * config.host (sparc-*-elf*): Use sparc/t-softmul on leon3

---
gcc/config/sparc/t-leon3 | 4 ++--
libgcc/config.host       | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/config/sparc/t-leon3 b/gcc/config/sparc/t-leon3
index 283ca6c45c3..e5bad3d99cf 100644
--- a/gcc/config/sparc/t-leon3
+++ b/gcc/config/sparc/t-leon3
@@ -17,6 +17,6 @@
# <http://www.gnu.org/licenses/ <http://www.gnu.org/licenses/>>.

# Multilibs for LEON3
-MULTILIB_OPTIONS = msoft-float
-MULTILIB_DIRNAMES = soft
+MULTILIB_OPTIONS = mcpu=leon3v7 msoft-float
+MULTILIB_DIRNAMES = leon3v7 soft
MULTILIB_MATCHES = msoft-float=mno-fpu
diff --git a/libgcc/config.host b/libgcc/config.host
index 5576c8c3723..e58ba75c873 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -1283,7 +1283,7 @@ sparc64-*-openbsd*)
        ;;
sparc-*-elf*)
        case ${host} in
-       *-leon[3-9]*)
+       *-leon[4-9]*)
                ;;
        *)
                tmake_file="sparc/t-softmul"

Reply via email to