From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id A10B4385842A for ; Tue, 10 Oct 2023 13:51:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A10B4385842A 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-pl1-x633.google.com with SMTP id d9443c01a7336-1c9bca1d96cso3378155ad.3 for ; Tue, 10 Oct 2023 06:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696945880; x=1697550680; 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=5N3HyhFyuc7flodML7z52l5GKuJ2o+88yf3AJL3rSL4=; b=GMFp+18+j8wROmZij/AnTSmCnI6uv1zo27d6656NwOe1v+yOadjXjrsQfoP9P38qaX cbWxP1Dbm1KPf8BkSK8BWG2TYBEmEhCoEVikPY6+luSYb9DDkkYZrHF2Z9LVwQPljeCT SprTrINIPxb2cWXBogSmj4nSAg1JxS1zC+2ye0aJ3ZMFwceL9t4M8B/GoN469axqYsIV HaEb7byMCt1on1o3NFOGpgDLXDwQCu2tq9SABsJ5b4ntmuq8RV7AXB9LdE8jHzLtd+02 0L316eJJdzRPlWI8cKt27Hm0fD6D3hXVq1jn28kFuG8NeEnBNIt7fZc0Bqqkob0WdGw8 e3Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945880; x=1697550680; 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=5N3HyhFyuc7flodML7z52l5GKuJ2o+88yf3AJL3rSL4=; b=SzQhnfjFWXfD9RsvEV48BcbGAXbzC55zvI/RiUrYz82TktTDHZaDITzxJIyqpwC6sY 7ocKsWPl+kQs8QmchowEPNLfsDrTNFBNRE7Bxg3EwEwoQ7onaoRxgvMY3WDotIrh0jTq xc/8WrH6PbikKNwurklJWjzf/mTUqItWkMuTdA3G6gVtwAqyDXaqTkk4qjQAsjcLST8c end1qXR1uWA5xjvCANBISo9REIKWajkIgFOm+14+rBoBlnqe+3A8KRjCeEs7yEQeC4Ig 8AFWIuvpRFF0Jjs89UVBqJVbl12aRB1vnxxOLMaBFdktvukfkW/vHCdHg/C4oHnPfu2b p3wQ== X-Gm-Message-State: AOJu0YxRXFpfGHJ3FUKnvYqN+k+8VdUYF1olIB1tU+ykzA80M89fYUTc v+/nmP9IXUrQ26/ngCARJLI= X-Google-Smtp-Source: AGHT+IG59NXqoismfriV2L6m0kPXFzHIrOFNyWJQsfaN2CYS5tTYHqV2Wo1oGsSwxemknsHuN0Medg== X-Received: by 2002:a17:903:493:b0:1c6:1d52:2778 with SMTP id jj19-20020a170903049300b001c61d522778mr13309116plb.1.1696945880249; Tue, 10 Oct 2023 06:51:20 -0700 (PDT) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id f12-20020a170902ab8c00b001c444106bcasm11788556plr.46.2023.10.10.06.51.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Oct 2023 06:51:19 -0700 (PDT) Message-ID: Date: Tue, 10 Oct 2023 07:51:16 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 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: <20231010041305.9111-1-kito.cheng@sifive.com> <20231010041305.9111-3-kito.cheng@sifive.com> From: Jeff Law In-Reply-To: <20231010041305.9111-3-kito.cheng@sifive.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.6 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,URIBL_BLACK 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 10/9/23 22:13, 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. jeff