From patchwork Mon Aug 7 11:07:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Arsen_Arsenovi=C4=87?= X-Patchwork-Id: 131939 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1426044vqr; Mon, 7 Aug 2023 05:57:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHLwNZ+mEF/jN8eH3jItripgRbG+D6jBSMeS4rDP8AW9teo7OJhdcDXmDtyx0enAYVEUM8 X-Received: by 2002:a17:906:2253:b0:99b:f554:1f1c with SMTP id 19-20020a170906225300b0099bf5541f1cmr9195120ejr.14.1691413041498; Mon, 07 Aug 2023 05:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691413041; cv=none; d=google.com; s=arc-20160816; b=eN7Qp4KEMdv9wpWFcKuhGMURbfKHVtCPP1Y7iWDAHOjB9JSHGxYkdR1O40wfvy5EGh xk+5cfoEg67yrx3RayReQoBop86VNUZZ8PBI+P/uacIVavp8yfpUX9QJrdhERZ3leSqP MBlb8q5VPBXZlsd1z43Cx6eBWxVWKED97qmwcD2b+1iNoPuAZ+DiadGpRtY4rSm93SfB bNXkT4F1jMUMupA9elN+bkjcppKY2a9ZxcVOzp1X/I1UTaGyDwn23kmDRVoocH9U2DPH +pMW95Xxc2Qc4MefIhBAMqtnvZzjIvSZpdf4nW7rOSZIF4Fu1cpbd6WidPfpX6l/1+Sq tlMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from: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:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=8FpMdLy3Pv+jroa2Rq4Q+2KBiPT0N5KhJldOIhHTDAQ=; fh=Gn/MsOUI2xzHSCHgOeyFX6rVgqhxTRO3EXoZE1TqZNk=; b=B7cqaXUyikKHrfphMzoGUvFsBGaIBEYcy8iKNU7BsjWUH1quXclcOYBvQXMe8s022f w3yppG/fxmc4mjSeUtAMZPiouz7J81HN5/Cbowp6vusJgQ1hwaLxoekwZSfC3+MaZPyy s+/YaPiU6hMDEjniVQEW+lISlnoPViTjV8jwjSq+U8gh+IbO+b9teQqgrwAQmnAh0PLl 6b6Sgk3yz8J0zMsbPxLUXlnd8Ahh0ZDuhwiKptEOLPTizHG65Y38OoSwHZASV58lvOg9 J9juGlY73D35oaZluA7YxhhkPvt05ET6AkX7YxxJV4HbqI5n3AVNwODqx0NbbberZx1T YeJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=oAVmWZyx; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id la15-20020a170906ad8f00b009889cad765dsi4331233ejb.352.2023.08.07.05.57.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 05:57:21 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=oAVmWZyx; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 831433857707 for ; Mon, 7 Aug 2023 12:57:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 831433857707 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691413038; bh=8FpMdLy3Pv+jroa2Rq4Q+2KBiPT0N5KhJldOIhHTDAQ=; 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=oAVmWZyxKpZ2inUWLX0+9iFmsCCzA/i3l8UJJdj5eHx48CIaO0RyNqgryvUcd7fOG LUQDXYkLEWueLa5Nuu0M8OBY3YRy8mN3Bm4lRX6KFyfi6LYZwiRM40Y2GQ+rB3eqgW 8Q01Fk91GOqro6pK8NFtk2T/pI7QEeN15ROU72rg= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) by sourceware.org (Postfix) with ESMTPS id 80192385700C; Mon, 7 Aug 2023 11:19:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 80192385700C Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4RKDP56zqYz9snW; Mon, 7 Aug 2023 13:19:37 +0200 (CEST) To: gdb-patches@sourceware.org, binutils@sourceware.org Cc: Iain Buclaw Subject: [PATCH 25/45] Add D front-end, libphobos library, and D2 testsuite. Date: Mon, 7 Aug 2023 13:07:28 +0200 Message-ID: <20230807111029.2320238-26-arsen@aarsen.me> In-Reply-To: <20230807111029.2320238-1-arsen@aarsen.me> References: <20230807111029.2320238-1-arsen@aarsen.me> MIME-Version: 1.0 X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_INFOUSMEBIZ, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Arsen_Arsenovi=C4=87_via_Binutils?= From: =?utf-8?q?Arsen_Arsenovi=C4=87?= Reply-To: =?utf-8?q?Arsen_Arsenovi=C4=87?= Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773575121258702300 X-GMAIL-MSGID: 1773575121258702300 From: Iain Buclaw ChangeLog: * config-ml.in: Treat GDC and GDCFLAGS like other compiler/flag environment variables. config/ChangeLog: * multi.m4: Set GDC. Cherry picked from GCC commit b4c522fabd0df7be08882d2207df8b2765026110 --- ChangeLog | 24 ++++++++++++++++++++++++ config-ml.in | 16 +++++++++++++++- config/ChangeLog | 4 ++++ 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 356ac165782..c817c1d702d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,27 @@ +2018-10-28 Iain Buclaw + + * Makefile.def (target_modules): Add libphobos. + (flags_to_pass): Add GDC, GDCFLAGS, GDC_FOR_TARGET and + GDCFLAGS_FOR_TARGET. + (dependencies): Make libphobos depend on libatomic, libbacktrace + configure, and zlib configure. + (language): Add language d. + * Makefile.in: Rebuild. + * Makefile.tpl (BUILD_EXPORTS): Add GDC and GDCFLAGS. + (HOST_EXPORTS): Add GDC. + (POSTSTAGE1_HOST_EXPORTS): Add GDC and GDC_FOR_BUILD. + (BASE_TARGET_EXPORTS): Add GDC. + (GDC_FOR_BUILD, GDC, GDCFLAGS): New variables. + (GDC_FOR_TARGET, GDC_FLAGS_FOR_TARGET): New variables. + (EXTRA_HOST_FLAGS): Add GDC. + (STAGE1_FLAGS_TO_PASS): Add GDC. + (EXTRA_TARGET_FLAGS): Add GDC and GDCFLAGS. + * config-ml.in: Treat GDC and GDCFLAGS like other compiler/flag + environment variables. + * configure: Rebuild. + * configure.ac: Add target-libphobos to target_libraries. Set and + substitute GDC_FOR_BUILD and GDC_FOR_TARGET. + 2023-07-03 Nick Clifton 2.41 Branch Point. diff --git a/config-ml.in b/config-ml.in index 9177fe63fbb..1c66748b65f 100644 --- a/config-ml.in +++ b/config-ml.in @@ -510,6 +510,7 @@ multi-do: prefix="$(prefix)" \ exec_prefix="$(exec_prefix)" \ GOCFLAGS="$(GOCFLAGS) $${flags}" \ + GDCFLAGS="$(GDCFLAGS) $${flags}" \ CXXFLAGS="$(CXXFLAGS) $${flags}" \ LIBCFLAGS="$(LIBCFLAGS) $${flags}" \ LIBCXXFLAGS="$(LIBCXXFLAGS) $${flags}" \ @@ -741,7 +742,7 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then break fi done - ml_config_env='CC="${CC_}$flags" CXX="${CXX_}$flags" F77="${F77_}$flags" GFORTRAN="${GFORTRAN_}$flags" GOC="${GOC_}$flags"' + ml_config_env='CC="${CC_}$flags" CXX="${CXX_}$flags" F77="${F77_}$flags" GFORTRAN="${GFORTRAN_}$flags" GOC="${GOC_}$flags" GDC="${GDC_}$flags"' if [ "${with_target_subdir}" = "." ]; then CC_=$CC' ' @@ -749,6 +750,7 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then F77_=$F77' ' GFORTRAN_=$GFORTRAN' ' GOC_=$GOC' ' + GDC_=$GDC' ' else # Create a regular expression that matches any string as long # as ML_POPDIR. @@ -813,6 +815,18 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then esac done + GDC_= + for arg in ${GDC}; do + case $arg in + -[BIL]"${ML_POPDIR}"/*) + GDC_="${GDC_}"`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\\1/p"`' ' ;; + "${ML_POPDIR}"/*) + GDC_="${GDC_}"`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`' ' ;; + *) + GDC_="${GDC_}${arg} " ;; + esac + done + if test "x${LD_LIBRARY_PATH+set}" = xset; then LD_LIBRARY_PATH_= for arg in `echo "$LD_LIBRARY_PATH" | tr ':' ' '`; do diff --git a/config/ChangeLog b/config/ChangeLog index d14ec0f9a82..3a9a577afc1 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2018-10-28 Iain Buclaw + + * multi.m4: Set GDC. + 2022-12-31 Nick Clifton * 2.40 branch created.