From patchwork Wed Oct 25 11:06:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 158038 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2517446vqx; Wed, 25 Oct 2023 04:07:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOXB/dcf7tHb2NGgnVovo/tdHkFlrfCzWqRmto0J03soq0o/YgVoZLZfbSx3FrAzdFh3rd X-Received: by 2002:ad4:4b6b:0:b0:66d:7f65:71c9 with SMTP id m11-20020ad44b6b000000b0066d7f6571c9mr23779092qvx.9.1698232049669; Wed, 25 Oct 2023 04:07:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698232049; cv=pass; d=google.com; s=arc-20160816; b=G89SG1T6D85HCv4Y8G4AanCDkCQ8lvRoie/IAPKoCqXd4E550x5rFrdZO72hgrSSZo H85Hg4ojqG0rgkgRj1OUs2HBLClL/Bl/aV94DWtBhvcKNV8/RkOKHlbuR0f7nA6DbBRh OPKzcdMIdpRtQ0O/bPlucNef6fwVCAW5LenL716Sxe69/GRz00AnJ8dHWM0s29vgeKhw Ft1B+TO92I3z4NlP/fYFxpV1w07UoBIwWgT/1jjecJ3MZt8sn7JzXeB8zIAvdRxqBGwz rILON6wM+rLrzg7nSGjwDYzo0W3cLCaCrPENFZSwOwU9reDL0t3fzhcFLNUIgMNndBJ0 eaJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=4ICg4GLyKpf1C86CGQFuYeq/Nx18X/8YI6tog+9D9S4=; fh=s1GzlUPo1djGkCl3rkRJI30hDOSCVwGp0RAbVwQ8dxQ=; b=OIT5RWciQdxfsmlW53cccvef2g6etQhlI9UQA7MbCStaZ3coOJbx+1JzR7WDe/etlZ 8xxKTcwCuF7Tq1erpr7AB6Tllns1O7jbWTU7ygeRYVIJIVzVxUPnyZ9UU8aXvCARolJK KhUCraz0u8W+AaYyNLJbG6ehXmpp2KfGMapG48xo5FipBg/O5An8hIUvtzbV/KtsnO2f 0O+OPwiWBR4Mw9SBf0o52Y6Y/E+8NXVJi4voEaUp/1PteDv56HoIof8dc/+p6ymKpOyt PbWIbGdtjEVGWR03SdV+WK7GW+ExwI5pXRS9X/r6tkN0oaYokjS0jSvFZVww2nns9bJ/ gQwQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=O0lxi3NV; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id el7-20020ad459c7000000b0066d04196c29si8053740qvb.141.2023.10.25.04.07.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 04:07:29 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=O0lxi3NV; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 9A9CF386186C for ; Wed, 25 Oct 2023 11:07:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id 01DA6385DC14 for ; Wed, 25 Oct 2023 11:06:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 01DA6385DC14 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 01DA6385DC14 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698232011; cv=none; b=flbLoF/i5Wb8m98FZm/A7AZLvoU3PKnYRORO/Z3FZc/ejkYgvW+2Xhhfdn7Kerrvf3eGjAIFHlvOtZ+dfLnBVkC6nBWpPCiFO05Z8YQLExhye4tviQfrEhvswG7qoZQk3ueMCewbTgV9nf9j37RegZ6OAenJxqrXQJp+Fp/DGT8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698232011; c=relaxed/simple; bh=fb9HJlmCFF3hRtiRRBL8AhosoDKzxivbHv00LJaa8ag=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RCgQfTUFBrxsJ/yPnNFu/UXcibr2d3cT0zkOhiSmkFcI8vHACySbGBilmvCXX6vGMBfcugq0yNxsrh4HohaZRU3jLWa5TfA+yiGnCsWK71U3tqEmgxwh2zBFizS4I81MJ0ni2ClAGYHqZdC67QRSGR0I5M2HDhmaKh1loPcF78E= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-508126afc88so1592260e87.1 for ; Wed, 25 Oct 2023 04:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1698232008; x=1698836808; 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=4ICg4GLyKpf1C86CGQFuYeq/Nx18X/8YI6tog+9D9S4=; b=O0lxi3NVitTu0R5KIxRWAzVLE8Zo9DO5kQ9Qfi+h27UubhAkP93kXbDJ43V1q8sIwQ TKeiwx3MlVCgU4WtnmchQva8Y/8qsAQDFX/KoM33yAq8xNzqQnTQgYI+KWNPCZLoyi0J i9xrSB0rsjYjWWBHr0k3c09l/QKnPO+b4SGy5aApsOEleVS+7JFKqMPbp7S39Hjz63+E 4Gkem3/08jDEDv6QLqstXdrOoa+bUU67ZABQNq5v8o/go5HZDH0tNkt1jwv6yFBrVKNu 3gZ3O/0ZS6Z+lnGRLt6rvlX+LhdGBeZcmTG5L6eCuP/Js1v18LOq/wb2ZtGIwZMsbF3J N1hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698232008; x=1698836808; 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=4ICg4GLyKpf1C86CGQFuYeq/Nx18X/8YI6tog+9D9S4=; b=AukesQE3M4v7eX7pKaC9+hpY57zAUZPvQKoPJ4iSDK6qzLicANrApUKKpFpcIfnpAh dJUJ8ue6GHbTZXb6PcknK8lD0ncc7oKu/sTJv3V9y2qRjdaVxFwAO7GkfA5jkoqaFM/6 osDPpJJs9lz9GWzzSacvFgLr8zp3EffjQ/rXBV49rTD9Iy0fG/+Y9OPPdCPluj8A3rXh /lSDNVATv1QIekWXpZOCKuAmIFFoQEogDEWR0tEahOvFK1rhW+Df2FbN7z2EjRMJc0Qo Xe8OEnKoVyaKCshTy3/4gGeFmqyRU5PWTpHMKIucbUsacuydWL6R/hdjaZqgdkOPWvwz VRPg== X-Gm-Message-State: AOJu0Yx+yJUAWR4TswjL486zdwcnDmC+YZMFIqCBVA/UAlWSPpPeYKM1 8ymeu6NYXjx6toP/QRYpXPokqpB6PmTWPTJqqxbN X-Received: by 2002:a19:7516:0:b0:4ff:7004:545e with SMTP id y22-20020a197516000000b004ff7004545emr10342847lfe.4.1698232007830; Wed, 25 Oct 2023 04:06:47 -0700 (PDT) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id bi9-20020a05600c3d8900b003fc16ee2864sm14263608wmb.48.2023.10.25.04.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 04:06:47 -0700 (PDT) From: Arthur Cohen To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Pierre-Emmanuel Patry Subject: [PATCH v2 3/4] build: Add libgrust as compilation modules Date: Wed, 25 Oct 2023 13:06:48 +0200 Message-ID: <20231025110658.1232737-5-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231025110658.1232737-1-arthur.cohen@embecosm.com> References: <20231025110658.1232737-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.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 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780725369316862842 X-GMAIL-MSGID: 1780725369316862842 From: Pierre-Emmanuel Patry Define the libgrust directory as a host compilation module as well as for targets. ChangeLog: * Makefile.def: Add libgrust as host & target module. * configure.ac: Add libgrust to host tools list. gcc/rust/ChangeLog: * config-lang.in: Add libgrust as a target module for the rust language. Signed-off-by: Pierre-Emmanuel Patry Signed-off-by: Pierre-Emmanuel Patry --- Makefile.def | 2 ++ configure.ac | 3 ++- gcc/rust/config-lang.in | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.def b/Makefile.def index 15c068e4ac4..929a6f0a08e 100644 --- a/Makefile.def +++ b/Makefile.def @@ -149,6 +149,7 @@ host_modules= { module= libcc1; extra_configure_flags=--enable-shared; }; host_modules= { module= gotools; }; host_modules= { module= libctf; bootstrap=true; }; host_modules= { module= libsframe; bootstrap=true; }; +host_modules= { module= libgrust; }; target_modules = { module= libstdc++-v3; bootstrap=true; @@ -192,6 +193,7 @@ target_modules = { module= libgm2; lib_path=.libs; }; target_modules = { module= libgomp; bootstrap= true; lib_path=.libs; }; target_modules = { module= libitm; lib_path=.libs; }; target_modules = { module= libatomic; bootstrap=true; lib_path=.libs; }; +target_modules = { module= libgrust; }; // These are (some of) the make targets to be done in each subdirectory. // Not all; these are the ones which don't have special options. diff --git a/configure.ac b/configure.ac index 692dc716343..b2a5511bab1 100644 --- a/configure.ac +++ b/configure.ac @@ -133,7 +133,7 @@ build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" # these libraries are used by various programs built for the host environment #f -host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe" +host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust " # these tools are built for the host environment # Note, the powerpc-eabi build depends on sim occurring before gdb in order to @@ -164,6 +164,7 @@ target_libraries="target-libgcc \ target-libada \ target-libgm2 \ target-libgo \ + target-libgrust \ target-libphobos \ target-zlib" diff --git a/gcc/rust/config-lang.in b/gcc/rust/config-lang.in index aac66c9b962..8f071dcb0bf 100644 --- a/gcc/rust/config-lang.in +++ b/gcc/rust/config-lang.in @@ -29,4 +29,6 @@ compilers="rust1\$(exeext)" build_by_default="no" +target_libs="target-libffi target-libbacktrace target-libgrust" + gtfiles="\$(srcdir)/rust/rust-lang.cc"