From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by sourceware.org (Postfix) with ESMTPS id 736BA3858D32 for ; Sun, 22 Jan 2023 19:30:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 736BA3858D32 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-pj1-x1031.google.com with SMTP id lp10so6468521pjb.4 for ; Sun, 22 Jan 2023 11:30:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CR4XTBjcbZnkE9TfoaOE7eODjRj7T9EmLIQpLislYOU=; b=UrVBYWqNMX8QYooiUdkMK8Bzr5Io8Jq/r2TT8xKOv49iawB348KLyToBgrBQ1ruhCu 8fC3qB8BmYEGPXj9lBv7XudjA04CNV2qFKR10lyNNV4EYzaLULhZGsUMsPBaOaYimhI6 8TVte8tKEGnaXuz9v4RqAdFUuXRbyrQATw0qMFX6aua+1p98xXa7tJeU6stvkhI8Flab RwdApG1wdzL+4V7ldZ17vmnYOXnwfKqqzuZVmGMvx5hFnPGq0g6ZNrjvO8Lhko929cmL VOUaHfWbbEAWgxuOrOBZ7Zjp1TEgNyWoOVybIK7Uiy19OVL8p6KsrUoN3Rihc7S1/imv Rv4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc: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=CR4XTBjcbZnkE9TfoaOE7eODjRj7T9EmLIQpLislYOU=; b=JTqJQOtp4wn0bbsY3sKSNURkdArdnLox7VQo8CWwlCu0OiTd4KR9NoI/77OhkwqGaC lV+7Qv+20MLzXbY7G1f496tvudaksbNkXpWX/XyKnsUMKbe6Cc+z+2EvIHR4Wn5oXIRu MM4QmTmlOnM7E/Za1QJ+Hm6plLI0PY3vBeWCtV2V2n+B/7jQbaKjuYS/wWMO+n4wVaTU e2IdGVuldmJ9WWucL1mGr2j1NMf2IfhDziZSlyk+tdq/R5OOEqZYafdREKiEcvRI5neA i/jJGnT9myYdpt4tfcSQVziTPQyXyb0EfdqK1yC7N+sYO74Wq2IL/LCu8YKVSUjzgj+Q w9/Q== X-Gm-Message-State: AFqh2kpqllwj4Fp+Rmentt3fjUxK/50yXK8hw6j4+nr7p5sAmYKyBixn qfvxODqgJI2e8v6hcOdmCUQ= X-Google-Smtp-Source: AMrXdXsfnodhBfUn2v3H7D9X+PKbiS918Bp5+fzbjrM2G/ku2V3T/mOQZFAyYtGMNUPSw/bNW9pnJg== X-Received: by 2002:a17:902:ee51:b0:194:87e5:8fa2 with SMTP id 17-20020a170902ee5100b0019487e58fa2mr23452750plo.6.1674415838430; Sun, 22 Jan 2023 11:30:38 -0800 (PST) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id az4-20020a170902a58400b0019251e959b1sm56175plb.262.2023.01.22.11.30.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Jan 2023 11:30:37 -0800 (PST) Message-ID: <3024b476-01fb-9e89-c277-37fc7f568082@gmail.com> Date: Sun, 22 Jan 2023 12:30:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH] RISC-V: Add :: for static function calling to avoid confusing Content-Language: en-US To: juzhe.zhong@rivai.ai, gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, palmer@dabbelt.com References: <20230118031650.70285-1-juzhe.zhong@rivai.ai> From: Jeff Law In-Reply-To: <20230118031650.70285-1-juzhe.zhong@rivai.ai> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,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 1/17/23 20:16, juzhe.zhong@rivai.ai wrote: > From: Ju-Zhe Zhong > > Since we have same function in class and static function calling get_avl. > Adding :: to avoid codes confusing. > > gcc/ChangeLog: > > * config/riscv/riscv-vsetvl.cc (pass_vsetvl::get_backward_fusion_type): Add ::. Is there any reasonable way to avoid having the same name? ISTM that's the root of the problem and adding "::" is just papering over the real issue. Jeff