From patchwork Fri Feb 9 16:53:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 199005 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp985874dyd; Fri, 9 Feb 2024 08:56:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHapPx6K60kb7t1jyvpC9smge1/nj/yOhrvjNSmBxJEk2hw+FsONwYxNqM2rwXSIleBZ6I X-Received: by 2002:a1f:da03:0:b0:4c0:254f:75d5 with SMTP id r3-20020a1fda03000000b004c0254f75d5mr2340048vkg.10.1707497767678; Fri, 09 Feb 2024 08:56:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707497767; cv=pass; d=google.com; s=arc-20160816; b=H6ZcdlKr7RovEhBCjA7iSEeQFwqFICuT1Mgh2/tta8q1hMITP2Oz4H98rAfG7t7EQ5 tOftD5br0vEiQmVzURJ9+XgnY9Ma/dKCVjtFBH5FT+8Ee1ag2h8zzXzMRBnHlCTRAmol 4UITzf7ALYGGGw3mS4cAZfNopv/DkLUjqnA4+9MNjBOHjwVv9m35l14/v3JHNgrmKXPN s+BQ6dZ2TyNFOAGB5jTe3SYhlMfiyxD3y5Vspv2ruVy1cP4UZfwLQd3ylpDeH79HY5u0 kU/7V7z85Rs75gKmXgdilqJK8PpPza9osyv9yzPoIPygzlaE7HH1W7OYRoB9zLxO+fnp C9hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:to:from:cc :content-transfer-encoding:mime-version:message-id:date:subject :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=/TRZzpHs7KyS4iwkRQ1KTwRViWbHUgdyhZ0OEj1BmWM=; fh=Qxk7Hd3bmMKAejzGJxiaryZ5eclT0kEKHKEkbSJxXBA=; b=LpQ3IkF+PARMK0vmX/aDB3+CnAdgOzl36srZq5wrm+LQq7pmZI7x2JEu/TOHKdx+aV gMMk9/SVQxiCvmwW+atnU0lutW0lOAvIf3pLvhAD7R7q9O2Ii0BTXhYJXHgpO35HEVC4 34F8FqSfIbaJwbX7JRGVUtkKQP5K5OHo21Q15jfAIczLT9qovG+5UJnBl4/A4fNMwGz3 eAO80BsF/BDV58tadySifPXLisFk4gtdqZpxMYGk6V1MeSdAlbc9Qm6DpMLwU6ooYlro 27s+6uIy8aUIRU916S9I1a/ynmqC7k1QYzS/Yh7R8KiCW0b4JyJb+IPTlQE0mlvE5knU xuEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=UwB2zSnR; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" X-Forwarded-Encrypted: i=2; AJvYcCUTGUficSytk01fXSe9t8dqKdmWQ8HIRGL5eu5VjRj1L9HTq/H/KLR6IEsSUOUi+lmz/wQONAufghUB7xqbffVZVy3IKw== Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 15-20020a0562140dcf00b0068c71d0cf61si2269862qvt.446.2024.02.09.08.56.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 08:56:07 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=UwB2zSnR; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 62EBD3858432 for ; Fri, 9 Feb 2024 16:56:07 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 3FD283858407 for ; Fri, 9 Feb 2024 16:55:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3FD283858407 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3FD283858407 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707497714; cv=none; b=Jv7LrTwr/JGX5sEEj1+/ZJh/AeIFTnvD6bLeZsera7nkIhb8EO/jMrAveXNXTlcVwfEJSygP8sm6R7sAJ8L0QfN0MRmkS9DQUHmtcD/THygyJ30Mmf9GvwHP6IhIWTqSQdP/6iA0nSQ528MlVdPBkER2d42Q94+22VP45VyRiP4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707497714; c=relaxed/simple; bh=x7IrIcXJxuvE05cKIpvqG42AMqCcEi2OayLApvOMrS0=; h=DKIM-Signature:Subject:Date:Message-ID:MIME-Version:From:To; b=rIY/sxmR6nR41U9bjVjWCyepF4Lo8dgWA1u/Yl1ph7sH4piSZW9nbTuM8sU/CbST6qlPkQZdmFlD4ee0IYhtcODfqXwgZh3/s5ZwwUTVcv4wWklxV8X/Lu5pIq6DRnYCS3wPsG205vMvYrijjE+uL8sv5WIL33tqWwtMAQ9gd7U= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6d9f94b9186so994975b3a.0 for ; Fri, 09 Feb 2024 08:55:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1707497709; x=1708102509; darn=gcc.gnu.org; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:from:to:cc:subject:date:message-id:reply-to; bh=/TRZzpHs7KyS4iwkRQ1KTwRViWbHUgdyhZ0OEj1BmWM=; b=UwB2zSnR5uJtuOCHLLQjjPr0bWAui03BKicZJySZzbOTSqoa8uaW686CjcGZ5Rtes/ DpBwON+yO9If/S9/2LmLCb5J+1JktZarG/252sM/vGaFa1963u+8MpVcaSaa6wQ3BB+b LMt793ikfS01OPPgnFP4GqBgL/tU6ZevGVAWoNRmUCNiov1XfOTex90lUdExk0woItBo fQ830NCIqrxJ2/nDuR5oE2p9EMGfuGQ0194mEohy/3BvE1SON770CdUrm7csuLEPm0jf VjfFaK+1B89vJoa7ymwYGa2vuSWwH4TcEZJ8ZDOKoDtF6/Z+sWqUj12gVoX5XeO6X23/ TQ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707497709; x=1708102509; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/TRZzpHs7KyS4iwkRQ1KTwRViWbHUgdyhZ0OEj1BmWM=; b=hwOR9o1mFsa4Wx4RvOqBt/XsyouADg5ntK0hgigJ2JNrFAsFhy6q/hkXC6DT+ssayM NLSJAD9QozQC8kA8KEMT77+wk1nbryUWdDUOLL76Bud0GpsEw6KvK5NP6Aicxx4AXlUI 65oJYdYyUPTPYc3xjzTLWVse89TGdjRpgUrNof9x2FVSPX/zF0eBagqYHHdzR+5QXBbK ljdKXhK63PYc5blRrz36jadHR+D6JEy8J79ZkIRPRMlcthdl9tqjG3t8MLDck+Xtxn7v Zvd2VEYmfCOv0DOP9ms7BncFOBRLG7m2U/Ssr/bZT2Rp2dL6vS/69ZWAbJxn9AFuHwCq yjbA== X-Gm-Message-State: AOJu0Yy4KLzW0JJhHwBMm4JfDYjYe9QYijZq9Hj+9SQP8ihRsNZ/T/TS kUrI3pzvHtYWAJIbtlHRkSq6idXEsbir0MR/alR93qw91/xR8Zg1HrclKfGIpmlktAND35tYI8d 9 X-Received: by 2002:a05:6a00:1806:b0:6de:37a5:9111 with SMTP id y6-20020a056a00180600b006de37a59111mr2591880pfa.24.1707497709070; Fri, 09 Feb 2024 08:55:09 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUVfJO2hpoijx6OeQR4i/xr0HC3ZPZ5XZgFB1xXZyTrqsYjH0GnY2nO7eViMlGMwA2WOzmX0OT3Duy3bk/xiswHsg== Received: from localhost ([192.184.165.199]) by smtp.gmail.com with ESMTPSA id k13-20020aa7820d000000b006e03c7e74fesm740344pfi.126.2024.02.09.08.55.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 08:55:08 -0800 (PST) Subject: [PATCH] RISC-V: Point our Python scripts at python3 Date: Fri, 9 Feb 2024 08:53:24 -0800 Message-ID: <20240209165323.20623-2-palmer@rivosinc.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Cc: Palmer Dabbelt From: Palmer Dabbelt To: gcc-patches@gcc.gnu.org, jbglaw@lug-owl.de X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790441179181783606 X-GMAIL-MSGID: 1790441179181783606 This builds for me, and I frequently have python-is-python3 type packages installed so I think I've been implicitly testing it for a while. Looks like Kito's tested similar configurations, and the bugzilla indicates we should be moving over. gcc/ChangeLog: PR 109668 * config/riscv/arch-canonicalize: Move to python3 * config/riscv/multilib-generator: Likewise --- I am in no way a Python expert, but I think this is functionally a NOP for the configurations I've been building/testing. It's passing a simple cross build. --- gcc/config/riscv/arch-canonicalize | 2 +- gcc/config/riscv/multilib-generator | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/riscv/arch-canonicalize b/gcc/config/riscv/arch-canonicalize index 629bed85347..8f7d040cdeb 100755 --- a/gcc/config/riscv/arch-canonicalize +++ b/gcc/config/riscv/arch-canonicalize @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Tool for canonical RISC-V architecture string. # Copyright (C) 2011-2024 Free Software Foundation, Inc. diff --git a/gcc/config/riscv/multilib-generator b/gcc/config/riscv/multilib-generator index 1a957878d0c..25cb6762ea7 100755 --- a/gcc/config/riscv/multilib-generator +++ b/gcc/config/riscv/multilib-generator @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # RISC-V multilib list generator. # Copyright (C) 2011-2024 Free Software Foundation, Inc.