Message ID | 20230606205025.3164738-4-ben.boeckel@kitware.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=gXoTEeM8; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QbN5K12TWz20WP for <incoming@patchwork.ozlabs.org>; Wed, 7 Jun 2023 06:54:45 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 37CE4388203F for <incoming@patchwork.ozlabs.org>; Tue, 6 Jun 2023 20:54:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37CE4388203F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686084882; bh=CrEgDI2aW8LsY+ZGTTIE5uGXn3CtticpEVlYJN0LRgo=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=gXoTEeM8dhkrxlwZohN8wM8f3t8UDFgRsIYBjcPrKWlfFtrfv+atfRq2PpYMgn3mF L+/3lR+rASe9JzjeGGKdBsvAogr8JHGSScNzP4jCprHo/HW/Z8YioYIEtDYkq2rflT 1EnegI95uuEo4AxOLTDjGimCL6QPjxdQkLhsPlbo= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by sourceware.org (Postfix) with ESMTPS id A66AE385773A for <gcc-patches@gcc.gnu.org>; Tue, 6 Jun 2023 20:50:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A66AE385773A Received: by mail-qt1-x82e.google.com with SMTP id d75a77b69052e-3f80fef8b48so38506121cf.0 for <gcc-patches@gcc.gnu.org>; Tue, 06 Jun 2023 13:50:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686084639; x=1688676639; 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=CrEgDI2aW8LsY+ZGTTIE5uGXn3CtticpEVlYJN0LRgo=; b=A488QmCl+qlZVS8FelynzPRHHhK8m/MK7+oARcDubb01Nkx3PJQ9ViIjEhwLGR+jfw d//48oViRy/eTzwJySrPMx5MZabP3ugn0FHL8+ve2j6/fo8s+xV8DnnZiKDVutfvrAsm jkpzCxifGwmt3kTRZ5dTUY6X4AigKRAN6jmBsyb51ZbO1jY5iR0bjyr21d/n+0Qrd8GC 7J+SX/3BeX7OEbNMZqpMbC73GKCTMy84CR+hod11A5UQuUfOAo8K7Y3SE4W+dR9H9gpv tDcJTF3sDyy8XA/D2sEhxFXHQnj26K0DThg2mP0T8JQzD62axxk/lBmwuBa+1j9AQ6EO 1Npg== X-Gm-Message-State: AC+VfDzN/SW8Ilwo7E3Uim4xmFYWGAcJnblIDEZxkJQhUkyLFSaJ9+CE XxFOZuYAgvnJvQQrdDeP0Ro0HaIgcBAqB7pqAXQHVg== X-Google-Smtp-Source: ACHHUZ6I6DaMTUmIdLU5mCQDBv0G1K+Nlg9SY4nVXI/wYUcgvfO2xGj2GmjmrspaHo5asMOb4//EFA== X-Received: by 2002:ac8:7f54:0:b0:3f9:b187:9c63 with SMTP id g20-20020ac87f54000000b003f9b1879c63mr1187848qtk.12.1686084638997; Tue, 06 Jun 2023 13:50:38 -0700 (PDT) Received: from localhost (cpe-142-105-146-128.nycap.res.rr.com. [142.105.146.128]) by smtp.gmail.com with ESMTPSA id t5-20020ac86a05000000b003f4f6ac0052sm3658337qtr.95.2023.06.06.13.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 13:50:38 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Ben Boeckel <ben.boeckel@kitware.com>, jason@redhat.com, nathan@acm.org, fortran@gcc.gnu.org, gcc@gcc.gnu.org, brad.king@kitware.com Subject: [PATCH v6 3/4] c++modules: report imported CMI files as dependencies Date: Tue, 6 Jun 2023 16:50:24 -0400 Message-Id: <20230606205025.3164738-4-ben.boeckel@kitware.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230606205025.3164738-1-ben.boeckel@kitware.com> References: <20230606205025.3164738-1-ben.boeckel@kitware.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.4 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, T_SCC_BODY_TEXT_LINE 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Ben Boeckel via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Ben Boeckel <ben.boeckel@kitware.com> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> |
Series |
P1689R5 support
|
expand
|
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc index c80f139eb82..e88ce0a1818 100644 --- a/gcc/cp/module.cc +++ b/gcc/cp/module.cc @@ -18966,6 +18966,9 @@ module_state::do_import (cpp_reader *reader, bool outermost) dump () && dump ("CMI is %s", file); if (note_module_cmi_yes || inform_cmi_p) inform (loc, "reading CMI %qs", file); + /* Add the CMI file to the dependency tracking. */ + if (cpp_get_deps (reader)) + deps_add_dep (cpp_get_deps (reader), file); fd = open (file, O_RDONLY | O_CLOEXEC | O_BINARY); e = errno; }
They affect the build, so report them via `-MF` mechanisms. gcc/cp/ * module.cc (do_import): Report imported CMI files as dependencies. Signed-off-by: Ben Boeckel <ben.boeckel@kitware.com> --- gcc/cp/module.cc | 3 +++ 1 file changed, 3 insertions(+)