From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id C83F63858D1E for ; Fri, 20 Jan 2023 17:06:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C83F63858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=foss.arm.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=foss.arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0E248113E; Fri, 20 Jan 2023 09:06:51 -0800 (PST) Received: from [10.57.37.229] (unknown [10.57.37.229]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8C53E3F67D; Fri, 20 Jan 2023 09:06:08 -0800 (PST) Message-ID: <914e3eb3-a77d-98b9-1fcd-7169fe79f517@foss.arm.com> Date: Fri, 20 Jan 2023 17:06:08 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [GCC][PATCH v4] arm: Add pacbti related multilib support for armv8.1-m.main. Content-Language: en-GB To: Srinath Parvathaneni , gcc Patches Cc: Richard Earnshaw , Kyrylo Tkachov References: From: Richard Earnshaw In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3489.6 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT,NICE_REPLY_A,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 13/01/2023 17:46, Srinath Parvathaneni via Gcc-patches wrote: > Hi, > > This patch adds the support for pacbti multlilib linking by making > "-mbranch-protection=none" as default multilib option for arm-none-eabi > target. > > Eg 1. > > If the passed command line flags are (without mbranch-protection): > a) -march=armv8.1-m.main+mve -mfloat-abi=hard -mfpu=auto > > "-mbranch-protection=none" will be used in the multilib matching. > > Eg 2. > > If the passed command line flags are (with mbranch-protection): > a) -march=armv8.1-m.main+mve+pacbti -mfloat-abi=hard -mfpu=auto -mbranch-protection=pac-ret > > "-mbranch-protection=standard" will be used in the multilib matching. > > Regression tested on arm-none-eabi and bootstrapped on arm-none-linux-gnueabihf. > > Ok for master? > > Regards, > Srinath. > > gcc/ChangeLog: > > 2023-01-11 Srinath Parvathaneni > > * config.gcc ($tm_file): Update variable. > * config/arm/arm-mlib.h: Create new header file. > * config/arm/t-rmprofile (MULTI_ARCH_DIRS_RM): Rename mbranch-protection > multilib arch directory. > (MULTILIB_REUSE): Add multilib reuse rules. > (MULTILIB_MATCHES): Add multilib match rules. > > gcc/testsuite/ChangeLog: > > 2023-01-11 Srinath Parvathaneni > > * gcc.target/arm/multilib.exp (multilib_config "rmprofile"): Update > tests. > * gcc.target/arm/pac-12.c: New test. > * gcc.target/arm/pac-13.c: Likewise. > * gcc.target/arm/pac-14.c: Likewise. OK. R.