From patchwork Mon Nov 23 15:31:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 1404872 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=KFUMbRrD; dkim-atps=neutral Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cfrjh5GlCz9sRK for ; Tue, 24 Nov 2020 02:31:50 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5A035386EC59; Mon, 23 Nov 2020 15:31:48 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by sourceware.org (Postfix) with ESMTPS id 5384E385481C for ; Mon, 23 Nov 2020 15:31:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5384E385481C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nathanmsidwell@gmail.com Received: by mail-qk1-x72b.google.com with SMTP id i199so3829871qke.5 for ; Mon, 23 Nov 2020 07:31:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=VEgsno/G+bL3nI8kDSN9Ciaexb/a3jJOjLmYKO3/eDQ=; b=KFUMbRrDvEoSS8BGEvx8etwkt4NDoASy7q90lsSCH4+WG9VsRDIWNWhJtAzT6CEA3G a+dk4wRqxH3OldWfL2+AwSRpvp/FWNagc9tgTdZj2pmyG77JGdYSkGmPwHB6tjq/hKcM KKemI9oe2WXq1KrHXBUta8q7RJy3nakXuNfgjGZnbZl/1ARc2RGFibwdlGgfC0fCwqNW 4dCwsTrpj1nJBg+fDKXf2oRXdCM/zyeyM5wVr6OIe/SGW1hRIny0ZBO41IAQE7XDxiDq p8L/HScIQ3+1xCaBskrXnMHZR9FhpE63OlELR3Mwe78twstxuPUoPHX7ZrzqX3LZafvA CAYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-language; bh=VEgsno/G+bL3nI8kDSN9Ciaexb/a3jJOjLmYKO3/eDQ=; b=g/g3Zmt+XyOlU5rkJzpP8eoR8ALf+ZaL84RSQBUVYRW2THDnBMMpAAnnz+ACpmB2DF eM0CJ+zd9wc/Fi1z7RMoXrc6fw3G4bOq04OvgHuX7j5+BUFfxtyRtMpv69KDRMcxl/OR Cr9v/zDewhVpzRw6qoF8zaE+6oDGE2Q6uMd6J0Cy3ieNiavfzbpS7+a9TrNoiS20VbBu ZcVQKEQRORutafoBRZpr7N1mUuPWCpMbGm28S+60DnESpQpll0XMSTwRjP7vthoIntrr 2PD1qHWtZxBmA4k+I6SuypyZ3gSH647w9N6DvjXOvTrzqHOKhaQ+cbpP0etmYsp9G4lZ aTCg== X-Gm-Message-State: AOAM532k+XYogl5nCyNrjNDcY4qoyhKDYrRIaNTNsJczd8bIlxsgI6nd GNWMTRax47UNZoq30eW+Q7c= X-Google-Smtp-Source: ABdhPJwadqpSldXz7BJiGJs6Ns7O+paHrcwqlVus32DXjmL9G0IkswuW4ZQJEyo6H/dRocIwtxsnow== X-Received: by 2002:a37:af83:: with SMTP id y125mr16238811qke.410.1606145504652; Mon, 23 Nov 2020 07:31:44 -0800 (PST) Received: from ?IPv6:2620:10d:c0a8:1102:4c2:2316:c12a:3759? ([2620:10d:c091:480::1:bc23]) by smtp.googlemail.com with ESMTPSA id e4sm6976941qtc.54.2020.11.23.07.31.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Nov 2020 07:31:43 -0800 (PST) To: GCC Patches From: Nathan Sidwell Subject: c++: Add empty module.cc Message-ID: <96675e53-744b-f1ab-8dd1-3f5619e1849c@acm.org> Date: Mon, 23 Nov 2020 10:31:42 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Language: en-US X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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@gcc.gnu.org Sender: "Gcc-patches" This adds an empty module.cc file, along with make rules to build it. gcc/cp/ * module.cc: New dummy file. * Make-lang.in: Add rules to build module.o pushing to trunk diff --git c/gcc/cp/Make-lang.in w/gcc/cp/Make-lang.in index 6be4678776b..de64d592a0d 100644 --- c/gcc/cp/Make-lang.in +++ w/gcc/cp/Make-lang.in @@ -54,6 +54,9 @@ c++.serial: c++ CFLAGS-cp/g++spec.o += $(DRIVER_DEFINES) +CFLAGS-cp/module.o += -DHOST_MACHINE=\"$(host)\" \ + -DTARGET_MACHINE=\"$(target)\" + # Create the compiler driver for g++. GXX_OBJS = $(GCC_OBJS) cp/g++spec.o xg++$(exeext): $(GXX_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a $(LIBDEPS) @@ -81,7 +84,7 @@ CXX_AND_OBJCXX_OBJS = \ cp/error.o cp/except.o cp/expr.o \ cp/friend.o cp/init.o \ cp/lambda.o cp/lex.o cp/logic.o \ - cp/mangle.o cp/method.o \ + cp/mangle.o cp/method.o cp/module.o \ cp/name-lookup.o cp/optimize.o \ cp/parser.o cp/pt.o cp/ptree.o \ cp/rtti.o \ diff --git c/gcc/cp/module.cc w/gcc/cp/module.cc new file mode 100644 index 00000000000..596061b3c49 --- /dev/null +++ w/gcc/cp/module.cc @@ -0,0 +1,21 @@ +/* C++ modules. Experimental! + Copyright (C) 2017-2020 Free Software Foundation, Inc. + Written by Nathan Sidwell while at FaceBook + + This file is part of GCC. + + GCC is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + GCC is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +. */ + +/* This file intentionally left empty. */