From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id 64A623858401 for ; Thu, 1 Sep 2022 08:22:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 64A623858401 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embedded-brains.de Received: from sslproxy05.your-server.de ([78.46.172.2]) by dedi548.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oTfTO-0000Kk-3F; Thu, 01 Sep 2022 10:22:50 +0200 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTfTN-000BHu-Vp; Thu, 01 Sep 2022 10:22:50 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id A7CBD4800BB; Thu, 1 Sep 2022 10:22:49 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id PyLVU0i-R72y; Thu, 1 Sep 2022 10:22:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 656C64801BE; Thu, 1 Sep 2022 10:22:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BWrMtiZMks7c; Thu, 1 Sep 2022 10:22:49 +0200 (CEST) Received: from zimbra.eb.localhost (unknown [192.168.96.242]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 4585C4800E9; Thu, 1 Sep 2022 10:22:49 +0200 (CEST) From: Sebastian Huber To: devel@rtems.org, gcc-patches@gcc.gnu.org Subject: [PATCH/gcc] RTEMS: Add -mvrsave multilibs Date: Thu, 1 Sep 2022 10:22:47 +0200 Message-Id: <20220901082247.83318-1-sebastian.huber@embedded-brains.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.103.6/26644/Wed Aug 31 09:53:02 2022) X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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=3De6500. --- 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 7ea9ebdb77b..683004eb07c 100644 --- a/gcc/config/rs6000/rtems.h +++ b/gcc/config/rs6000/rtems.h @@ -252,7 +252,8 @@ %{mcpu=3D821: %{!Dppc*: %{!Dmpc*: -Dmpc821} } } \ %{mcpu=3D860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } } \ %{mcpu=3D8540: %{!Dppc*: %{!Dmpc*: -Dppc8540} } } \ -%{mcpu=3De6500: -D__PPC_CPU_E6500__}" +%{mcpu=3De6500: -D__PPC_CPU_E6500__} \ +%{mvrsave: -D__PPC_VRSAVE__}" =20 #undef ASM_DEFAULT_SPEC #define ASM_DEFAULT_SPEC "-mppc%{m64:64}" diff --git a/gcc/config/rs6000/t-rtems b/gcc/config/rs6000/t-rtems index 66c20aadea5..278ebb69e60 100644 --- a/gcc/config/rs6000/t-rtems +++ b/gcc/config/rs6000/t-rtems @@ -36,6 +36,9 @@ MULTILIB_DIRNAMES +=3D nof gprsdouble MULTILIB_OPTIONS +=3D mno-spe/mno-altivec MULTILIB_DIRNAMES +=3D nospe noaltivec =20 +MULTILIB_OPTIONS +=3D mvrsave +MULTILIB_DIRNAMES +=3D vrsave + MULTILIB_MATCHES +=3D ${MULTILIB_MATCHES_ENDIAN} MULTILIB_MATCHES +=3D ${MULTILIB_MATCHES_SYSV} # Map 405 to 403 @@ -76,5 +79,7 @@ MULTILIB_REQUIRED +=3D mcpu=3D8540/msoft-float/mno-spe MULTILIB_REQUIRED +=3D mcpu=3D8540/mfloat-gprs=3Ddouble MULTILIB_REQUIRED +=3D mcpu=3D860 MULTILIB_REQUIRED +=3D mcpu=3De6500/m32 +MULTILIB_REQUIRED +=3D mcpu=3De6500/m32/mvrsave MULTILIB_REQUIRED +=3D mcpu=3De6500/m32/msoft-float/mno-altivec MULTILIB_REQUIRED +=3D mcpu=3De6500/m64 +MULTILIB_REQUIRED +=3D mcpu=3De6500/m64/mvrsave --=20 2.26.2