From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from einhorn-mail-out.in-berlin.de (einhorn-mail-out.in-berlin.de [217.197.80.21]) by sourceware.org (Postfix) with ESMTPS id C4B593842439 for ; Fri, 4 Dec 2020 13:38:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C4B593842439 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ubuntu.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=doko@ubuntu.com X-Envelope-From: doko@ubuntu.com Received: from authenticated.user (localhost [127.0.0.1]) by einhorn.in-berlin.de with ESMTPSA id 0B4Dctwc021602 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 4 Dec 2020 14:38:55 +0100 Subject: Re: [PATCH] RISC-V: Canonicalize --with-arch To: Kito Cheng , Jim Wilson Cc: GCC Patches References: <20201201081313.68385-1-kito.cheng@sifive.com> From: Matthias Klose Message-ID: <5cabdbd3-2317-59d0-b12d-f6611efd1103@ubuntu.com> Date: Fri, 4 Dec 2020 14:38:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Fri, 04 Dec 2020 13:38:59 -0000 On 12/4/20 9:07 AM, Kito Cheng via Gcc-patches wrote: > Committed, thanks :) > > On Thu, Dec 3, 2020 at 8:51 AM Jim Wilson wrote: >> >> On Tue, Dec 1, 2020 at 12:13 AM Kito Cheng wrote: >>> >>> - We would like to canonicalize the arch string for --with-arch for >>> easier handling multilib, so split canonicalization part to a stand >>> along script to shared the logic. >>> >>> gcc/ChangeLog: >>> >>> * config/riscv/multilib-generator (arch_canonicalize): Move >>> code to arch-canonicalize, and call that script to canonicalize arch >>> string. >>> (canonical_order): Move code to arch-canonicalize. >>> (LONG_EXT_PREFIXES): Ditto. >>> (IMPLIED_EXT): Ditto. >>> * config/riscv/arch-canonicalize: New. >>> * config.gcc (riscv*-*-*): Canonicalize --with-arch. >> >> >> Looks OK to me. that breaks the bootstrap if python is not available. The python command might not be available, so please check for python3, python, or python2. And it adds an unconditional build dependency on python for building the riscv targets. Matthias