From patchwork Fri Jul 22 07:29:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 116 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f503:0:0:0:0:0 with SMTP id q3csp109947wro; Fri, 22 Jul 2022 00:30:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v+0xSJPVgJlSEml1Y1dooD/Dk5hF7uPC7/Yp8ZoJQvNWxy9vD/UXruDRTA0aBQM66QXatP X-Received: by 2002:a17:907:e90:b0:72b:d0a7:9dd5 with SMTP id ho16-20020a1709070e9000b0072bd0a79dd5mr2206582ejc.18.1658475039311; Fri, 22 Jul 2022 00:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658475039; cv=none; d=google.com; s=arc-20160816; b=GW8PdkdT4ABbLy+sBPYYeoH6LkYQz8KQIiJTQE6afsf61V64sv/gODVcogfz5+u9Rt YH7BzOCDZf76QFCqusSnVQBEn0aHLoeUU1sihAFS8TOHzuZ4Q7UfYIF9Cn7UtGjz5TzY e9IMRe6LlBOV6iV+PbH9/3TF1O6hCy/LkcXtXLkiOk+re4Kamdd79/5Gcc1WOaM4/yYa iez2+TOPAsUzS5J1sqAwPuzX+8WhVGIfkwkbXpd/cgH2b9VRVkadb67vHns48B+e1xAZ G4Nz8CVc8dQ2oueVZHQendiy8IpBo8AdQ9ouunKXWhN8kM2aec+WzB8EbaronZtfJTou eKDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:to:subject:from:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=CWG5KAduCoLAS72VE2SbTTIlihr+GMr6clnk6nnUXAM=; b=0qakiTmqlJsrwgB6K4kD/k2iLr4qKrVN5dJAQZhZ/GM2IOpDFd1Vn4tgQ+wpOC8mVT yBgd/QyFAiT0gry7E8eWK0tj6/6ldztZGfs5iqbDBDwHq0HG6tPPaHbZpMF3Ndno2PKk RGy4ERUAIWVYHyiiAX/AKSsJbL8SZZnGgET9UCufO4D6d4VQOTXCqVatcTOIqSwP48Z0 /moYjUcJKSNej3Ccn+WGbxhhX39KGDU9yuuQee4OMhdlecEtu0sWIq26hdAnIZOBOWrX bKPu5n5YdGsycolxNB22qWNsKfGbOONC2WijEJ557UAYnCcqSwmiZ54BAL40XkJALg35 CfSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=WcVkYgWV; dkim=neutral (no key) header.i=@gcc.gnu.org; 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 sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id va1-20020a17090711c100b00726a74341e7si4525927ejb.823.2022.07.22.00.30.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 00:30:39 -0700 (PDT) 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=@suse.cz header.s=susede2_rsa header.b=WcVkYgWV; dkim=neutral (no key) header.i=@gcc.gnu.org; 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 8D5E7383542A for ; Fri, 22 Jul 2022 07:30:21 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id B07293835839 for ; Fri, 22 Jul 2022 07:29:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B07293835839 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 04E0433C39 for ; Fri, 22 Jul 2022 07:29:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1658474993; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CWG5KAduCoLAS72VE2SbTTIlihr+GMr6clnk6nnUXAM=; b=WcVkYgWVeYZj65PZV6HBvRN4jDABigJvMfVwmZY9dR8+3SFUwlMsKINGCm3zItcqs4k6ct ddQHBZOweN0LWAWwKB8ouXBam3LX0lALDwsy9gjAFb58TOgHty9U/Z3j3vOtg1U1Vabl1S YUKFns3PQBl/evj73mn/blKqroKmpAc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1658474993; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CWG5KAduCoLAS72VE2SbTTIlihr+GMr6clnk6nnUXAM=; b=qEdFI6OQFQth2lFsiaNNxRgaeVn9uhY6dbTTER8b84Z75wjcTQqvBClJhHAxm6evVWnbhm gfNXJdtV1isXALBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D6CFB134A9 for ; Fri, 22 Jul 2022 07:29:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id esioMfBR2mK1LwAAMHmgww (envelope-from ) for ; Fri, 22 Jul 2022 07:29:52 +0000 Message-ID: <06d603cf-06e3-30ba-bb5a-9ad8b6ed44de@suse.cz> Date: Fri, 22 Jul 2022 09:29:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH][pushed] remove 'continue' as last statement in loop To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_SOFTFAIL, 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 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: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-LABELS: =?utf-8?b?IlxcSW1wb3J0YW50Ig==?= X-GMAIL-THRID: =?utf-8?q?1739037123206854721?= X-GMAIL-MSGID: =?utf-8?q?1739037123206854721?= PR other/106370 gcc/cp/ChangeLog: * init.cc (sort_mem_initializers): Remove continue as last stmt in a loop. libiberty/ChangeLog: * _doprnt.c: Remove continue as last stmt in a loop. --- gcc/cp/init.cc | 1 - libiberty/_doprnt.c | 1 - 2 files changed, 2 deletions(-) diff --git a/gcc/cp/init.cc b/gcc/cp/init.cc index a4a0a0ac0c2..edca8437f64 100644 --- a/gcc/cp/init.cc +++ b/gcc/cp/init.cc @@ -1436,7 +1436,6 @@ sort_mem_initializers (tree t, tree mem_inits) continue; splice: *p = TREE_CHAIN (*p); - continue; } } diff --git a/libiberty/_doprnt.c b/libiberty/_doprnt.c index cebaa16056b..c7232d858c6 100644 --- a/libiberty/_doprnt.c +++ b/libiberty/_doprnt.c @@ -55,7 +55,6 @@ Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ putc(CHAR, stream); \ ptr++; \ total_printed++; \ - continue; \ } while (0) #define PRINT_TYPE(TYPE) \