From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1921) id 17DBC3858D1E; Thu, 8 Sep 2022 05:32:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 17DBC3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662615164; bh=WW1KnwtpTN7obkY9yxYIop/+cvY89Toz4bqRFTii7ZI=; h=From:To:Subject:Date:From; b=xrEALXZNAou0a69xubCoGzLhbwbebouAHGmjpURLZAcfbpvDzDsvugzFS4CJWkkm/ xpLYjH159BsJ/nG4yTZZmP0pBihR8QbadrE0CDn3VAaobRW0qdgROsmkqvD9ek4z2Y cQaQtZR46aaJHXeWUcm/x1WNSsblNMtcpPjp8ILQ= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Sebastian Huber To: gcc-cvs@gcc.gnu.org Subject: [gcc r10-10976] RTEMS: Add -mvrsave multilibs X-Act-Checkin: gcc X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/releases/gcc-10 X-Git-Oldrev: b454c41f894e2b175f8f683a31a091ffb1a0b7f0 X-Git-Newrev: 66787009571353f0da110d356ece94f363a24d73 Message-Id: <20220908053244.17DBC3858D1E@sourceware.org> Date: Thu, 8 Sep 2022 05:32:44 +0000 (GMT) List-Id: https://gcc.gnu.org/g:66787009571353f0da110d356ece94f363a24d73 commit r10-10976-g66787009571353f0da110d356ece94f363a24d73 Author: Sebastian Huber Date: Thu Sep 1 10:22:47 2022 +0200 RTEMS: Add -mvrsave multilibs gcc/ChangeLog: * config/rs6000/rtems.h (CPP_OS_DEFAULT_SPEC): Define __PPC_VRSAVE__ if -mvrsave is present. * config/rs6000/t-rtems: Add -mvrsave multilib variants for -mcpu=e6500. Diff: --- gcc/config/rs6000/rtems.h | 3 ++- gcc/config/rs6000/t-rtems | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/config/rs6000/rtems.h b/gcc/config/rs6000/rtems.h index bd9057914c8..c5d4037551d 100644 --- a/gcc/config/rs6000/rtems.h +++ b/gcc/config/rs6000/rtems.h @@ -255,7 +255,8 @@ %{mcpu=821: %{!Dppc*: %{!Dmpc*: -Dmpc821} } } \ %{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } } \ %{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540} } } \ -%{mcpu=e6500: -D__PPC_CPU_E6500__}" +%{mcpu=e6500: -D__PPC_CPU_E6500__} \ +%{mvrsave: -D__PPC_VRSAVE__}" #undef ASM_SPEC #define ASM_SPEC "%{!m64:%(asm_spec32)}%{m64:%(asm_spec64)} %(asm_spec_common)" diff --git a/gcc/config/rs6000/t-rtems b/gcc/config/rs6000/t-rtems index 8065a0976ab..f2d72d11f1e 100644 --- a/gcc/config/rs6000/t-rtems +++ b/gcc/config/rs6000/t-rtems @@ -36,6 +36,9 @@ MULTILIB_DIRNAMES += nof MULTILIB_OPTIONS += mno-altivec MULTILIB_DIRNAMES += noaltivec +MULTILIB_OPTIONS += mvrsave +MULTILIB_DIRNAMES += vrsave + MULTILIB_MATCHES += ${MULTILIB_MATCHES_ENDIAN} MULTILIB_MATCHES += ${MULTILIB_MATCHES_SYSV} # Map 405 to 403 @@ -70,5 +73,7 @@ MULTILIB_REQUIRED += mcpu=7400/msoft-float MULTILIB_REQUIRED += mcpu=8540/msoft-float MULTILIB_REQUIRED += mcpu=860 MULTILIB_REQUIRED += mcpu=e6500/m32 +MULTILIB_REQUIRED += mcpu=e6500/m32/mvrsave MULTILIB_REQUIRED += mcpu=e6500/m32/msoft-float/mno-altivec MULTILIB_REQUIRED += mcpu=e6500/m64 +MULTILIB_REQUIRED += mcpu=e6500/m64/mvrsave