From patchwork Sat May 4 15:04:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Boeckel X-Patchwork-Id: 1931353 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kitware.com header.i=@kitware.com header.a=rsa-sha256 header.s=google header.b=SMUBhBDC; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VWrZX5j32z23ts for ; Sun, 5 May 2024 01:05:24 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 898263844033 for ; Sat, 4 May 2024 15:05:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by sourceware.org (Postfix) with ESMTPS id B32633858C53 for ; Sat, 4 May 2024 15:04:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B32633858C53 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=kitware.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kitware.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B32633858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::82b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714835101; cv=none; b=cVY8CNeRvSS9qLDgaF8Jdnv/uzvcUmP6utijX+VXeqZ0kYZEw+RghvEAEPgQfycKqnxo8VCc2kzpT9Mx615B9xA2/s41JrIm7alnwngxxGg7Vyd4Vc7+NTyarvKOPAuLuZOsWNJB/kBTZWGqVJHWPrbiC8lIdZurdQJdKsRxOuU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714835101; c=relaxed/simple; bh=+P1XAUwKUSmkwgEjHovHin11f9JfuDYb6bQqD9h+9Dk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=cmg+PKvN7IFqb5BPsfXDCi7ew6vttXi1YydYlTM4W9dTgUoK/Zfkr5TcB+ZXYayMLWnE0r0lil//TP1Z4eKtinPfpfEIEAgTlQK1bdybKBd3svB4i8YTxtDpUAj5EIc6Sx3X5VsKaGrCicDVneQgyvmHCdvXWGEfpHwt1AigaQQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-43a317135a5so4355791cf.0 for ; Sat, 04 May 2024 08:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kitware.com; s=google; t=1714835099; x=1715439899; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iMq82vx738qxpVjIfSbTtkYBomlUa//FRW4zuobphbM=; b=SMUBhBDCXcIJwB51wFIMroky5u2SigNeH6gOxEobtBw3x0KKpP6I/Z+xiPRyarhDZo kJCUn+yPCSbqDTHmX5p3xPxH4z3aHbNFtxbhaP8BFiA/48JX/BAAqjJEgfuDXIq50AVN sc7+894ygUuyQp4FdNL5Z8UCtJreH5z5gtp8U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714835099; x=1715439899; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iMq82vx738qxpVjIfSbTtkYBomlUa//FRW4zuobphbM=; b=F7lSnYnCgf+uJ8REX0t9CGsTXLM1t82+7bNIwnxk9Sp9bvbt0D9xacsEbELolzDLPt V7+BdUfurLaSMcgMLXpMeZH3tFKbRlBWBAylTFOWYi3sl2qv3++pk2uAPcQLrlb2HGXR LKPXLmL0BNwe+EYlg6TCL+LiYB42ACIYGvDNzQo5e8yid9qACDj/c2YQDb/+syLNOmXq 7A8/j+gEbwSN0YaVVC5Ss6wVVGN2FjTYeCbStjRxGwq+rNvmQCEaQzxrn7CtDHEoohTK LHdpxrfb42WKZnJHlJe9ljARG4BY8IUA5uwyz2aqC2p1laD9wF4g++T4oN59l2h4DUBb 5SXA== X-Gm-Message-State: AOJu0Yy1BPBvZahNYnmgkROSS9I4s3fOHdEz5YTy7a04Rszyr2O9y0u5 CA68eR+o2hgHwkPTZwNx2Js50irq/k/ThlWMUlN7YjW/5uzO7ZZmfRvtKyrQbldyozEeWhpCBYE = X-Google-Smtp-Source: AGHT+IGt8576F2j69MQNz+D69IuPF4p74ymlgobb2i2O+13DLyawBTGYwRQuEHFIpTEHAtx15pZI2A== X-Received: by 2002:a05:622a:4e96:b0:43a:ccb4:ea5e with SMTP id dj22-20020a05622a4e9600b0043accb4ea5emr14622943qtb.6.1714835098887; Sat, 04 May 2024 08:04:58 -0700 (PDT) Received: from localhost (syn-142-105-146-128.res.spectrum.com. [142.105.146.128]) by smtp.gmail.com with ESMTPSA id hc17-20020a05622a2a1100b00437b4048972sm2908798qtb.18.2024.05.04.08.04.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 08:04:58 -0700 (PDT) From: Ben Boeckel To: gcc-patches@gcc.gnu.org Cc: Brad King , Roland Illig , Ben Boeckel Subject: [PATCH 1/4] libcpp/mkdeps: fix indentation Date: Sat, 4 May 2024 11:04:43 -0400 Message-ID: <20240504150446.473575-2-ben.boeckel@kitware.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240504150446.473575-1-ben.boeckel@kitware.com> References: <20240504150446.473575-1-ben.boeckel@kitware.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Fixes: 024f135a1e9 (p1689r5: initial support, 2023-09-01) Reported-by: Roland Illig libcpp/ * mkdeps.cc (fdeps_add_target): Fix indentation. Signed-off-by: Ben Boeckel --- libcpp/mkdeps.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libcpp/mkdeps.cc b/libcpp/mkdeps.cc index 4cf0cf09178..8762ead4c34 100644 --- a/libcpp/mkdeps.cc +++ b/libcpp/mkdeps.cc @@ -307,11 +307,12 @@ fdeps_add_target (struct mkdeps *d, const char *o, bool is_primary) { o = apply_vpath (d, o); if (is_primary) - { - if (d->primary_output) - d->fdeps_targets.push (d->primary_output); - d->primary_output = xstrdup (o); - } else + { + if (d->primary_output) + d->fdeps_targets.push (d->primary_output); + d->primary_output = xstrdup (o); + } + else d->fdeps_targets.push (xstrdup (o)); }