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 55D523858D28 for ; Thu, 21 Jul 2022 05:35:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 55D523858D28 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 sslproxy03.your-server.de ([88.198.220.132]) by dedi548.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oEOqg-000AOb-Eo for gcc-patches@gcc.gnu.org; Thu, 21 Jul 2022 07:35:46 +0200 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEOqg-000MRF-LL for gcc-patches@gcc.gnu.org; Thu, 21 Jul 2022 07:35:46 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 5A7414801B0 for ; Thu, 21 Jul 2022 07:35:46 +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 ZSfQ1dGkHdqB for ; Thu, 21 Jul 2022 07:35:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id F0B2C4801A0 for ; Thu, 21 Jul 2022 07:35:45 +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 O_I6lTK2T9k4 for ; Thu, 21 Jul 2022 07:35:45 +0200 (CEST) Received: from zimbra.eb.localhost (unknown [192.168.96.242]) by mail.embedded-brains.de (Postfix) with ESMTPSA id CFB3A480136 for ; Thu, 21 Jul 2022 07:35:45 +0200 (CEST) From: Sebastian Huber To: gcc-patches@gcc.gnu.org Subject: [PATCH] RTEMS: Add -ftls-model=local-exec to multilibs Date: Thu, 21 Jul 2022 07:35:43 +0200 Message-Id: <20220721053543.15853-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/26607/Wed Jul 20 10:04:34 2022) X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2022 05:35:49 -0000 Use the local-exec TLS model for all multilibs of all RTEMS targets with = proper TLS support. gcc/ChangeLog: * config/arm/t-rtems (MULTILIB_EXTRA_OPTS): Define to use -ftls-model=3Dlocal-exec. * config/i386/t-rtems (MULTILIB_EXTRA_OPTS): Likewise. * config/m68k/t-rtems (MULTILIB_EXTRA_OPTS): Likewise. * config/microblaze/t-rtems (MULTILIB_EXTRA_OPTS): Likewise. * config/nios2/t-rtems (MULTILIB_EXTRA_OPTS): Likewise. * config/riscv/t-rtems (MULTILIB_EXTRA_OPTS): Likewise. * config/rs6000/t-rtems (MULTILIB_EXTRA_OPTS): Likewise. * config/sparc/t-rtems (MULTILIB_EXTRA_OPTS): Likewise. --- gcc/config/arm/t-rtems | 1 + gcc/config/i386/t-rtems | 1 + gcc/config/m68k/t-rtems | 1 + gcc/config/microblaze/t-rtems | 1 + gcc/config/nios2/t-rtems | 1 + gcc/config/riscv/t-rtems | 2 ++ gcc/config/rs6000/t-rtems | 1 + gcc/config/sparc/t-rtems | 2 ++ 8 files changed, 10 insertions(+) diff --git a/gcc/config/arm/t-rtems b/gcc/config/arm/t-rtems index b2fcf572bca..aaf11355b11 100644 --- a/gcc/config/arm/t-rtems +++ b/gcc/config/arm/t-rtems @@ -8,6 +8,7 @@ MULTILIB_EXCEPTIONS =3D MULTILIB_REUSE =3D MULTILIB_MATCHES =3D MULTILIB_REQUIRED =3D +MULTILIB_EXTRA_OPTS =3D ftls-model=3Dlocal-exec =20 # Enumeration of multilibs =20 diff --git a/gcc/config/i386/t-rtems b/gcc/config/i386/t-rtems index 692c99484b3..83b95a6e53d 100644 --- a/gcc/config/i386/t-rtems +++ b/gcc/config/i386/t-rtems @@ -24,3 +24,4 @@ MULTILIB_MATCHES +=3D march?pentium=3Dmarch?k6 march?pe= ntiumpro=3Dmarch?athlon MULTILIB_EXCEPTIONS =3D \ march=3Dpentium/*msoft-float* \ march=3Dpentiumpro/*msoft-float* +MULTILIB_EXTRA_OPTS =3D ftls-model=3Dlocal-exec diff --git a/gcc/config/m68k/t-rtems b/gcc/config/m68k/t-rtems index 0997afebc94..53a585e3018 100644 --- a/gcc/config/m68k/t-rtems +++ b/gcc/config/m68k/t-rtems @@ -7,3 +7,4 @@ M68K_MLIB_CPU +=3D && (match(MLIB, "^68") \ || MLIB =3D=3D "5329" \ || MLIB =3D=3D "5407" \ || MLIB =3D=3D "5475") +MULTILIB_EXTRA_OPTS =3D ftls-model=3Dlocal-exec diff --git a/gcc/config/microblaze/t-rtems b/gcc/config/microblaze/t-rtem= s index d0c38261aaa..c9c9716ab62 100644 --- a/gcc/config/microblaze/t-rtems +++ b/gcc/config/microblaze/t-rtems @@ -1 +1,2 @@ # Custom multilibs for RTEMS +MULTILIB_EXTRA_OPTS =3D ftls-model=3Dlocal-exec diff --git a/gcc/config/nios2/t-rtems b/gcc/config/nios2/t-rtems index beda8328bd2..3c9fbc69c83 100644 --- a/gcc/config/nios2/t-rtems +++ b/gcc/config/nios2/t-rtems @@ -8,6 +8,7 @@ MULTILIB_EXCEPTIONS =3D MULTILIB_REUSE =3D MULTILIB_MATCHES =3D MULTILIB_REQUIRED =3D +MULTILIB_EXTRA_OPTS =3D ftls-model=3Dlocal-exec =20 # Enumeration of multilibs =20 diff --git a/gcc/config/riscv/t-rtems b/gcc/config/riscv/t-rtems index 41f5927fc87..bb49e559ec5 100644 --- a/gcc/config/riscv/t-rtems +++ b/gcc/config/riscv/t-rtems @@ -1,3 +1,5 @@ +MULTILIB_EXTRA_OPTS =3D ftls-model=3Dlocal-exec + MULTILIB_OPTIONS =3D MULTILIB_DIRNAMES =3D =20 diff --git a/gcc/config/rs6000/t-rtems b/gcc/config/rs6000/t-rtems index 4f8c147be3e..ba7177bf0f5 100644 --- a/gcc/config/rs6000/t-rtems +++ b/gcc/config/rs6000/t-rtems @@ -23,6 +23,7 @@ MULTILIB_DIRNAMES =3D MULTILIB_MATCHES =3D MULTILIB_EXCEPTIONS =3D MULTILIB_REQUIRED =3D +MULTILIB_EXTRA_OPTS =3D ftls-model=3Dlocal-exec =20 MULTILIB_OPTIONS +=3D mcpu=3D403/mcpu=3D505/mcpu=3D603e/mcpu=3D604/mcpu=3D= 860/mcpu=3D7400/mcpu=3D8540/mcpu=3De6500 MULTILIB_DIRNAMES +=3D m403 m505 m603e m604 m860 m7400 m8540 me6500 diff --git a/gcc/config/sparc/t-rtems b/gcc/config/sparc/t-rtems index c58836c1e96..1917eda322e 100644 --- a/gcc/config/sparc/t-rtems +++ b/gcc/config/sparc/t-rtems @@ -17,6 +17,8 @@ # . # =20 +MULTILIB_EXTRA_OPTS =3D ftls-model=3Dlocal-exec + MULTILIB_OPTIONS =3D msoft-float mcpu=3Dv8/mcpu=3Dleon3/mcpu=3Dleon3v7/m= cpu=3Dleon \ mfix-ut699/mfix-at697f/mfix-gr712rc MULTILIB_DIRNAMES =3D soft v8 leon3 leon3v7 leon ut699 at697f gr712rc --=20 2.35.3