From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ITa6NQq+BWtf+TIAWB0awg (envelope-from ) for ; Tue, 24 Nov 2026 11:40:42 -0500 Received: by simark.ca (Postfix, from userid 112) id D7F661E166; Tue, 24 Nov 2026 11:40:42 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 2B4DE1E023 for ; Tue, 24 Nov 2026 11:40:42 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B6DC24705E19 for ; Tue, 24 Nov 2026 16:40:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B6DC24705E19 Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 89417446DF5B for ; Tue, 24 Nov 2026 16:39:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 89417446DF5B Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 89417446DF5B Authentication-Results: sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795538356; cv=none; b=LMLeAFgoB+q9UCfPEJntTHJWK3bkwMW79kk9VeSIPE6yZFRN1YQdy29uK3Z6qe+Blc4Jy9qJ/T/3nPztX5FIQXNPv4ehkRlmrxeitNsEev5NxTIfp4UpIqdbjrdy4Fmnrwbqgvt9oK5VZPs6j13zTrLqHYKl8yuB1ZQsSNOfPkU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795538356; c=relaxed/simple; bh=4cfRNzbb2WfJZWj79x5ERZK2xV1EI9DU95Vhj0qAUn8=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=YQSeejTJckfW7m2Hm7FpVU66f6rt4MZPXc8iLRamv5URGQD9mMnohxSwJQaw8LYp5aku00mvtnaY6FeZoGXTKKy5mqiVv4mrptKrSyjJNWwWqGhaqNgTVGBMxsO1KrDpleHXhQacE76slmDeM1pKFtEuXDeET7CWE9t0bn0MB88= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89417446DF5B Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 6AOGdAD5182288 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Nov 2026 11:39:14 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 6AOGdAD5182288 Received: by simark.ca (Postfix) id EA29A1E167; Tue, 24 Nov 2026 11:39:09 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [pushed 4/4] gdb/aix-thread: fix misleading indentation in store_regs_user_thread Date: Tue, 24 Nov 2026 11:38:56 -0500 Message-ID: <20261124163901.185016-4-simon.marchi@efficios.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261124163901.185016-1-simon.marchi@efficios.com> References: <20261124163901.185016-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Tue, 24 Nov 2026 16:39:10 +0000 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Building aix-thread.c on AIX fails with: ../../../src/binutils-gdb/gdb/aix-thread.c:1699:7: error: this 'for' clause does not guard... [-Werror=misleading-indentation] The checks for the vrsave and vscr registers are indented as if they were part of the for loop body, but they are not. Fix the indentation. Change-Id: Ib2c6df20937779b4edd339a0d14076f1891ae185 --- gdb/aix-thread.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index 8f2c626c1641..967175e6682f 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -1701,10 +1701,11 @@ store_regs_user_thread (const struct regcache *regcache, pthdb_pthread_t pdtid) &(vmx.__vr[i])); ctx.vmx.__vr[i] = vmx.__vr[i]; } - if (REG_VALID == regcache->get_register_status (tdep->ppc_vrsave_regnum)) - ctx.vmx.__vrsave = vmx.__vrsave; - if (REG_VALID == regcache->get_register_status (tdep->ppc_vrsave_regnum - 1)) - ctx.vmx.__vscr = vmx.__vscr; + if (REG_VALID == regcache->get_register_status (tdep->ppc_vrsave_regnum)) + ctx.vmx.__vrsave = vmx.__vrsave; + if (REG_VALID + == regcache->get_register_status (tdep->ppc_vrsave_regnum - 1)) + ctx.vmx.__vscr = vmx.__vscr; } /* Fill vsx registers. */ -- 2.56.1