From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id BBD70385803B for ; Wed, 24 Nov 2021 19:44:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BBD70385803B Received: by mail-pl1-x62c.google.com with SMTP id v19so2718114plo.7 for ; Wed, 24 Nov 2021 11:44:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=KknqGdadyFEikHpJPq1WAgTBgoPH5oqW/wHWT5AdKaM=; b=z8EIPtsgZDcKT1jaPKi58FIZfd8hrbjY/K0p7c80ETYyiLzxu4j3tqwOoMzKo8OEnl bJJNZzk2zHSYppF20t+4sbgdPu+BQwr3Jm/9b59GvnUAOw2yRQB2HNBCPlj/Gc1ko56r pZjS0I4pC6kfRvi2AOZK6uNsLkDZfjwJGAD8owVn+V6zt9eMrKCVc6YtnR+fYOhPoo7k TlXWS9CpqTe+6WJ7Q56P2ybtWF8C8+Q1suqBOiLAopHhbYzXv/hRPGfP/E2SU+K4JMnd OBXssHGi7dPi05nSAzJuEHZ73WLjf6TR3reTEC9H5CNoGBTUNdiovUz0kRSdI9r0vxKC 86Dw== X-Gm-Message-State: AOAM531hN0kmHTtUDiE47JvvXtn1bBqPNEn/MJYgSbexivl+CExhhuV4 hQ3a5KDwrsGkSCeS8C1qNlQ= X-Google-Smtp-Source: ABdhPJy4dMSyLaEQXMz94Ye0kcsMU5lYAcEiM3i8W+LMHPqkz6yVpf3OCb0dVH9QvzkieIIA6ZEqpA== X-Received: by 2002:a17:903:22c4:b0:141:deda:a744 with SMTP id y4-20020a17090322c400b00141dedaa744mr21789211plg.25.1637783081698; Wed, 24 Nov 2021 11:44:41 -0800 (PST) Received: from [192.168.1.24] (65-130-77-39.slkc.qwest.net. [65.130.77.39]) by smtp.gmail.com with ESMTPSA id y32sm485493pfa.145.2021.11.24.11.44.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Nov 2021 11:44:41 -0800 (PST) Message-ID: Date: Wed, 24 Nov 2021 12:44:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: Reduce scope of a few 'class loop *loop' variables (was: [PATCH v4] Use range-based for loops for traversing loops) Content-Language: en-US To: Thomas Schwinge , gcc-patches@gcc.gnu.org References: <0a8b77ba-1d54-1eff-b54d-d2cb1e769e09@linux.ibm.com> <79a93b1f-6417-234c-a785-fdc598dfb92c@linux.ibm.com> <878s1o8e2s.fsf@euler.schwinge.homeip.net> <45eedc54-f588-b720-d6c7-8a23a36752d0@linux.ibm.com> <874k81y6ln.fsf@euler.schwinge.homeip.net> From: Jeff Law In-Reply-To: <874k81y6ln.fsf@euler.schwinge.homeip.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Wed, 24 Nov 2021 19:44:44 -0000 On 11/24/2021 7:24 AM, Thomas Schwinge wrote: > Hi! > > On 2021-07-30T15:58:36+0800, "Kewen.Lin" wrote: >> on 2021/7/30 下午3:18, Thomas Schwinge wrote: >>> Curious why in some instances we're not removing the 'class loop *loop' >>> declaration, I had a look, and this may suggest some further clean-up? >> [...] I like your nice proposed further clean-up, >> thanks for doing that! > Ping for my patch to "Reduce scope of a few 'class loop *loop' variables", > see attached. OK for the trunk.  Sorry about the wait. jeff