From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id 689943858D1E for ; Mon, 9 Oct 2023 14:18:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 689943858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-577e62e2adfso2412138a12.2 for ; Mon, 09 Oct 2023 07:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696861106; x=1697465906; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=uZPllGdpUBy8tnB6geEhbtDbT2LL7CoX9aNXNwwkgOg=; b=i4+bU8h/qAjALOCcBg/TzhEcI6D4BNlhZ/0LtKBwE9NR2AV2gOtALJCICxXvwGnlJ1 P4x5c4V3kpp7o354R42QO0AFkx2RDbb+TKwzsG7lpzjqp5m0S6/EwN4wCtaE625AJSws 8JNjUytI6h2gdPVmvGU+r1hmBkLU5+Uur5IqOpn9j4TlbsIRpCLAsdyXdXWj8zSNAxBl a/BUR3HAzE9K6mldmsPwjcQjwouFBEWuR30RmOSfV94wwnLg10ce4XcZ/G5uJ92GniIE JHRZeBl60qZSNvmX+tl3bmmnkS8PIy6SMZwRzEGuAMjLJYVp1Tosp0QqKxGBDtSxaywQ XWxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696861106; x=1697465906; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uZPllGdpUBy8tnB6geEhbtDbT2LL7CoX9aNXNwwkgOg=; b=ewUmX++t2b1f1a/6+6celPTBQkX99eZq2RDs74aaVDhbLaFFHUeimi6HIGbwXT61+z 9HwJriRGUL/shTIzO95Eo5VdwIeMtH2FBrTe+0byI1s3tARa19Zyc3gDsmENEf5Juq+X 2PWCeLo0mFQ1wO74NJ9XKVdRQmys3DxlW3HGaV0CuTBEyatwMLZar9tBQwQ0kWrjyLVm ySn24xvfWZWUj4AvSDtBaKk440g0kS03UTHZrd514u2TCIyXqyLZs80bNoDfi+LI+qiF SzdfEqDDswDyVjRwCXi0xK+30ueQWHv/JcFdHx7JUkSLY7wsCWwFayYH52oUBGu/6vlM 9d3g== X-Gm-Message-State: AOJu0YyMHrGHwrSoAYjbdNyMLs+1cbT+qlPviy8slkuSl6HyHd7S3Mt3 hd7GXChLGRgL0d70I52SFK4= X-Google-Smtp-Source: AGHT+IHH2T3AoeoljFDFQRzE7BSDgzg949kdWJMLeeyBpWRzpdNJwYPoe73CtQcFjoSCpHW9T9IJzQ== X-Received: by 2002:a17:90a:9481:b0:26b:6a2f:7d90 with SMTP id s1-20020a17090a948100b0026b6a2f7d90mr13523457pjo.23.1696861106305; Mon, 09 Oct 2023 07:18:26 -0700 (PDT) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id 30-20020a17090a001e00b002791d5a3e29sm9127242pja.6.2023.10.09.07.18.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Oct 2023 07:18:25 -0700 (PDT) Message-ID: <7559017e-8caf-49f8-9f6c-d37ddb2992a6@gmail.com> Date: Mon, 9 Oct 2023 08:18:22 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 2/4] RISC-V: Refactor riscv_option_override and riscv_convert_vector_bits. [NFC] Content-Language: en-US To: Kito Cheng , gcc-patches@gcc.gnu.org, kito.cheng@gmail.com, palmer@dabbelt.com, rdapp@ventanamicro.com, juzhe.zhong@rivai.ai References: <20231003090934.12182-1-kito.cheng@sifive.com> <20231003090934.12182-3-kito.cheng@sifive.com> From: Jeff Law In-Reply-To: <20231003090934.12182-3-kito.cheng@sifive.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 List-Id: On 10/3/23 03:09, Kito Cheng wrote: > Allow those funciton apply from a local gcc_options rather than the > global options. > > Preparatory for target attribute, sperate this change for eaiser reivew > since it's a NFC. > > gcc/ChangeLog: > > * config/riscv/riscv.cc (riscv_convert_vector_bits): Get setting > from argument rather than get setting from global setting. > (riscv_override_options_internal): New, splited from > riscv_override_options, also take a gcc_options argument. > (riscv_option_override): Splited most part to > riscv_override_options_internal. OK once prerequisites are approved and installed. jeff