From patchwork Wed Dec 20 14:14:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 181661 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2665687dyi; Wed, 20 Dec 2023 06:14:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPnHl9v13ndg3rjkf1hDAMILjSfqo1ksAxtYahKnuwfZ3a+oIAs8KSw8cYbTmPJiKOnI6r X-Received: by 2002:a05:6122:9aa:b0:4b6:dfda:5256 with SMTP id g42-20020a05612209aa00b004b6dfda5256mr2377107vkd.30.1703081698347; Wed, 20 Dec 2023 06:14:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703081698; cv=pass; d=google.com; s=arc-20160816; b=IE1oKanPVrqUfGDS3tQmDh4+CI/2ngT3bO+Dj3Esp6/oUFe49XqNcrMz43eN8+vvQM YZtx5GQM0RGJo6lUeYwHgsxLQ/2zLG9l8G+CAZfbOZG4LliITj6lMHc43ylMHOIPvBol 1vK3nemW02b5qseinj3mokjk0bNJLLzI9exxHW9Rr846KYPMUtsVGOH+tw4nH/EzU5D/ jp+CLgJmhYkqvfEjIWwbu+n7dqgVhmaxzkQPCcVzbpgK1bHtpG8741YmCWi1dVF8vqBc ohl8DfiQtIOS/dMdUmjh/xiuJseXSn4Cczzl1gBzGpKIWaWOgDdfgTir/vq2FFkFsjmX NSYQ== 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:mime-version:message-id:date :user-agent:references:in-reply-to:subject:to:from:ironport-sdr :arc-filter:dmarc-filter:delivered-to; bh=vw9ozG+o5gTQr3yedJCRzx8jhtJsiUYbt/V0krWyIGY=; fh=5ov3cih03XyYOhq51n5bxc0RhiKp9gevgC7yzH7UtDU=; b=ysnZ38d4faJi4FJT/UdroLdN2kA+UhM9fKjZB0/4TggZOLNW4YR+xpLMd72WMxJccT sUP7ZSHzMSVKv3v4upeW1lS36EOApMyfWfJpSbrUaeGFg+B6qjMwf/HjTchZsJopxys/ MQzYwxqSkwORjjSq4PYttLG17b3PbBCP4lA1lYNK17+z42jpJUlPLQDWgIbY90DcOhN1 AbT1u1Hn2FojsiQbUg/kcz5gdIivliJQBNlcJ3w5AVsrujKUeUIoMyPuMB3NZq/y1E13 iyZxPVacT8NRQm9eUT6w/zxVZTvKs2/sdSK5XDDiKWMo8g3Lbw/DcgCbmkGF1RSZpyDX G7eg== ARC-Authentication-Results: i=2; mx.google.com; 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 et15-20020a0561221c0f00b004b311385efesi5112604vkb.316.2023.12.20.06.14.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 06:14:58 -0800 (PST) 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; 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 05D7C385E010 for ; Wed, 20 Dec 2023 14:14:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id EDFAD3858D20 for ; Wed, 20 Dec 2023 14:14:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EDFAD3858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EDFAD3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=68.232.137.252 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703081675; cv=none; b=TFN1OFAJeToxb7+37MZjiqbqA7NJrLrtmwVO8kgOVi3Y2Wmo4jeN04Rb8VAFqnHy4ExI+S/ttK+/D2Urn2NvbDy8VY7osXi1H9pm6L1Vohc+jFdkwVaV/fEoeFT74K6MvcV4vr/qtvZBzokv8VOkDELvgWD66v425hn0wUi9nR4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703081675; c=relaxed/simple; bh=GQ7Kv6fzVxwLZbyCt6h+diBIDKQ2j7L6W/vkI/Ak8F4=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=HGWSpaqhLkWAdr6C4ky1KDhesP1V6Oqv1c86YkuOcf6BMMoFPriQG3fb0Zb8K9a09bvDyx/VUNuFqZnUGAnNoTuzUzWDydvc9SF8G9zJ3tjN1CPdTmgjC3IMHhkK117W2xNb26IFg5ef3sD6+qVDfivp24yXgIZHNSXkwSsB45g= ARC-Authentication-Results: i=1; server2.sourceware.org X-CSE-ConnectionGUID: TZx99QJVS8ytBUj8I6e6LQ== X-CSE-MsgGUID: 4ncgdsvjR+yRb9a/rSXR1Q== X-IronPort-AV: E=Sophos;i="6.04,291,1695715200"; d="scan'208,223";a="25810051" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 20 Dec 2023 06:14:31 -0800 IronPort-SDR: cPXQ9uaKCpLaSopBx/cB41v3Tgh0MPHGX7bwA2o1xgR1EM3QYTS42NYUe4H5HcEuTyTKWZC/3T Oc3ZE73cVb4fF1SkEfMMI8CEccfegH65xU/g01/RJXW9EumRdCyzsCBkyvV5tWScAH58xjdYia H3lVwiLfvdWf3IfiOl5ndSKfTksUuqVoZuhIPOuNYDoUhqWGA/B7Z1z6XUe+BuK1Akun3E+5km nausYryo2SKH/s6b/XiqpCJ/ZPAgEGjM7DAMuhbuJAgcc5T4EG3y0529tRVU1KFvvDcruhwFqb GQw= From: Thomas Schwinge To: , Andrew Stubbs , "Julian Brown" Subject: No libstdc++ for GCN (was: No libstdc++ for nvptx) In-Reply-To: <878uf3cipw.fsf@schwinge.name> References: <53C80524.3010508@codesourcery.com> <87ppfwiw78.fsf@schwinge.name> <878uf3cipw.fsf@schwinge.name> User-Agent: Notmuch/0.29.3+94~g74c3f1b (https://notmuchmail.org) Emacs/28.2 (x86_64-pc-linux-gnu) Date: Wed, 20 Dec 2023 15:14:25 +0100 Message-ID: <87edfhrmf2.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, 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.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: 1785810595011267116 X-GMAIL-MSGID: 1785810595011267116 Hi! On 2015-03-11T22:44:27+0100, I wrote: > I committed the following in r221362: > No libstdc++ for nvptx. > > The C++ front end insists to link against libstdc++ -- which we don't build: > > $ < build-gcc/gcc/testsuite/g++/g++.log grep -o 'error opening [^[:cntrl:]]*' | sort | uniq -c > 2 error opening libasan.a > 2 error opening libssp.a > 12075 error opening libstdc++.a > > Based on GCC trunk r220892: > > === g++ Summary === > > # of expected passes [-63221-]{+68841+} > # of unexpected failures [-11751-]{+8764+} > # of unexpected successes 6 > # of expected failures [-246-]{+249+} > # of unresolved testcases [-5950-]{+3353+} > # of unsupported tests [-4160-]{+4143+} > --- gcc/config/nvptx/nvptx.h > +++ gcc/config/nvptx/nvptx.h > +/* The C++ front end insists to link against libstdc++ -- which we don't build. > + Tell it to instead link against the innocuous libgcc. */ > +#define LIBSTDCXX "gcc" Pushed to master branch commit 4d9d015cf4054f5f9df14a2c11ce81379b6caf0f "No libstdc++ for GCN", see attached. (Both these commit are going to get reverted once I've got libstdc++-v3 enabled for GCN, nvptx, but until then, this further harmonizes my GCN vs. nvptx test results.) Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 From 4d9d015cf4054f5f9df14a2c11ce81379b6caf0f Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Thu, 13 Apr 2023 08:54:47 +0200 Subject: [PATCH] No libstdc++ for GCN Like commit d94fae044da071381b73a2ee8afa874b14fa3820 "No libstdc++ for nvptx" (2015) and elsewhere. Based on commit 5f1bed2a7af828103ca23a3546466a23e8dd2f30 (2023-12-16), there are a ton of progressions (for test cases not actually depending on libstdc++ symbols, obviously): === g++ Summary === # of expected passes [-178369-]{+189226+} # of unexpected failures [-19880-]{+14089+} # of unexpected successes 14 # of expected failures [-1684-]{+1685+} # of unresolved testcases [-9820-]{+4837+} # of unsupported tests [-11971-]{+11968+} ..., and only two benign "regressions": [-UNSUPPORTED:-]{+FAIL:+} g++.dg/init/array54.C -std=c++14 {+(test for excess errors)+} {+UNRESOLVED: g++.dg/init/array54.C -std=c++14 compilation failed to produce executable+} [Etc.] [...]/g++.dg/init/array54.C:5:10: fatal error: atomic: No such file or directory That's similar to a lof of other test cases intending to '#include' standard C++/libstdc++ headers; to be addressed in due time. PASS: g++.old-deja/g++.pt/const2.C -std=c++98 at line 5 (test for warnings, line ) [-PASS:-]{+FAIL:+} g++.old-deja/g++.pt/const2.C -std=c++98 (test for excess errors) [Etc.] ld: error: undefined symbol: A::i >>> referenced by /tmp/ccqXWCSh.o:(p) The 'error: undefined symbol' is expected here; maybe should simply in the test case 'dg-prune-output "referenced by"'? (This PASSed before, as the 'dg-message "i"' was satisfied by 'ld: error: unable to find library -lstdc++', eh...) gcc/ * config/gcn/gcn.h (LIBSTDCXX): Define to "gcc". --- gcc/config/gcn/gcn.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/gcn/gcn.h b/gcc/config/gcn/gcn.h index cb52be7a3a1..b8f2854d497 100644 --- a/gcc/config/gcn/gcn.h +++ b/gcc/config/gcn/gcn.h @@ -836,3 +836,7 @@ enum gcn_builtin_codes || M == V2SFmode || M == V2DImode || M == V2DFmode) \ ? 2 \ : 1) + +/* The C++ front end insists to link against libstdc++ -- which we don't build. + Tell it to instead link against the innocuous libgcc. */ +#define LIBSTDCXX "gcc" -- 2.34.1