From patchwork Mon May 16 08:43:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Marie de Rodat X-Patchwork-Id: 54003 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DC6643857831 for ; Mon, 16 May 2022 08:47:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC6643857831 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1652690861; bh=RjfirbWNXX8vS0W6OuCo1GFZvk2RfmmdxeS5LYrZ/Kw=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=JygUmop14L9wWsDZCk93OtmAKT8G9IFATWWVBluTLrDSA2xtkepGoDsVtUMZgDfpM 9BL9DD5QNtwzigMOtiZ2ouMb4JMwX4mB2kmBYYEcyE+kY9F7j7RPlc8gJHQgzx2sTC CiI0UjDVS2arzD8IW68j8yGEYQEbLKjM6A/CkdaI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 74D673857827 for ; Mon, 16 May 2022 08:43:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 74D673857827 Received: by mail-wr1-x432.google.com with SMTP id m1so19472270wrb.8 for ; Mon, 16 May 2022 01:43:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=RjfirbWNXX8vS0W6OuCo1GFZvk2RfmmdxeS5LYrZ/Kw=; b=Igzy+zFXrBV6WwL2t4xaJnIxQ5NTB9+yRkwYy1avbSqC/ZdU3Osdzm04P2RXZ2Maeo ynoVU9Gi+ovTjfnmyfiITx2ahMxyLCrvODGGaDPIh00StKFdsv+V+fskzZyMUtaZkGvS BjizpnLjnPKiMgS3S6yCr28J6YTD0hq03QwaDi3++PLY2IkKo7FhcrW2yvQlJf7JhkT/ qPwMMrtxJVcrBDDbXWDQ6/iyY3Nmt1YEEvdtdbUG4cQZGbb+MOwy5nHDd7+y1xL9k0n0 oV/PkU2rYpYGCwo8hm5Q8MhLPrvL3WdJEE5DKbNUvWuMatmG9Ft45XNNAtEbRo52mf25 9luQ== X-Gm-Message-State: AOAM531NRkd/KjLFQxnZlCghLyloLHEiwz3Zzu6wnXC9UXiPfNsxOqZD p/HcwYdbG9hy0muiY4ZGKrA6fys3tKwZNg== X-Google-Smtp-Source: ABdhPJxjZqPACIh0hSqMm5BGun4457bRGeE4H0EFGty9wKK4/hPzISByDZWNwhz0ylJNSXNV8+uJbA== X-Received: by 2002:a5d:6d8c:0:b0:20c:599a:4f7e with SMTP id l12-20020a5d6d8c000000b0020c599a4f7emr13354954wrs.324.1652690581276; Mon, 16 May 2022 01:43:01 -0700 (PDT) Received: from adacore.com ([45.147.211.82]) by smtp.gmail.com with ESMTPSA id i8-20020a05600c354800b003945cdd0d55sm10415502wmq.26.2022.05.16.01.43.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 01:43:00 -0700 (PDT) Date: Mon, 16 May 2022 08:43:00 +0000 To: gcc-patches@gcc.gnu.org Subject: [Ada] Map gnatlib-shared to gnatlib-shared-dual for aarch64-vx7r2 Message-ID: <20220516084300.GA3843424@adacore.com> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, 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 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-Patchwork-Original-From: Pierre-Marie de Rodat via Gcc-patches From: Pierre-Marie de Rodat Reply-To: Pierre-Marie de Rodat Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" This is an incremental change towards supporting shared libraries for VxWorks on aarch64. The aarch64-vx7r2 compiler supports compilation with -fpic/PIC. This change adds aarch64 to the list of CPUs for which GNATLIB_SHARED maps to gnatlib-shared-dual for vxworks7r2, so "make gnatlib-shared" actually builds a shared lib. While other adjustments will be needed to get the runtime tests to pass, this one is a necessary step and doesn't impair the rest. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * Makefile.rtl: Add aarch64 to the list of CPUs for which GNATLIB_SHARED maps to gnatlib-shared-dual for vxworks7r2. diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl --- a/gcc/ada/Makefile.rtl +++ b/gcc/ada/Makefile.rtl @@ -2854,7 +2854,7 @@ endif # Turn on shared gnatlib for specific vx7r2 targets for RTP runtimes. Once # all targets are ported the target_cpu selector can be removed. -ifeq ($(strip $(filter-out vxworks7r2 powerpc64 x86_64 rtp rtp-smp, $(target_os) $(target_cpu) $(THREAD_KIND))),) +ifeq ($(strip $(filter-out vxworks7r2 powerpc64 x86_64 aarch64 rtp rtp-smp, $(target_os) $(target_cpu) $(THREAD_KIND))),) GNATLIB_SHARED = gnatlib-shared-dual LIBRARY_VERSION := $(LIB_VERSION) endif