From patchwork Fri Sep 13 01:08:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 1984936 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=b07m/n5E; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X4bmT3nMHz1y1C for ; Fri, 13 Sep 2024 11:08:52 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E5178385841C for ; Fri, 13 Sep 2024 01:08:50 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id B626E3858D28 for ; Fri, 13 Sep 2024 01:08:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B626E3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B626E3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::533 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726189707; cv=none; b=kYR7xifRFhFjgudV3NglNNiV066ukLzA82d7pLE59fIpKV9p9OfLj7jeKLg2zYYrDrMeSGl1zoaPJ9b6r4Tu3il2dsCbFfqXt94D5DnwRJ8mIi1ReoAhe3wCGJzy5cwIgrj/pV1sSh+pEXQDCyJxqhm5L4JOJVCKHTkyynoC4W4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726189707; c=relaxed/simple; bh=iBWgJGDCcEbW+ztykTJUZZ6aGL2D6mm3EU+YPt7E2yY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=EVb2oUlw079QE2PsmIuB4jO+joBebr7GRfGFo+RaMEEwiOMFADm3ApMf69ymB2j2nOr8veWZh0lc7qsoVm6d3+m3tliwqZyB7Q3uNjNEOkJF1/ou5D8UkViSO6vnVj1PSc3cTeoueI3nd9EOg0KSbeU9N0+2KnYXEvVaciRpp90= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-7cd8803fe0aso1215620a12.0 for ; Thu, 12 Sep 2024 18:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1726189703; x=1726794503; darn=gcc.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=RIeMVY9yqL1lWIMMzAYbl53EIIspm1WNEqPrmTlEmyA=; b=b07m/n5EVnkETdqF4R2j8oyA2I48TsxLHJQdy/wQflGE6aXD0LeBlvJ4hDsJhkkFHk c+r1+0LQphhDQdDdWLHSgsL/AVr3pvS4P+m6pak6x+OUAJAn4JlIniOumz1eMH73tylb n4abUKNi9djtjPRnaABcTwMY2Gb+LvqPN9VyA04pVf3mj4UNaTHgYhYB/KQqa/jTPavw RYHLTUaAfcBl9mGAkNgnBCb/V1YfOaSxpWLUlgsKyVjeKaqTX6bW730eeW9YgHb6jf9h rFBFPry8i91CPxIdYJz+ytKgn12fmRshcxPLnIk8veC10+gKS/PGdAVdHn1uPlbrnhzs aKLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726189703; x=1726794503; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RIeMVY9yqL1lWIMMzAYbl53EIIspm1WNEqPrmTlEmyA=; b=W6sTuVLxpjQ8yahOWRO+MHGj3seLlQIR49CcfTWhjX3c8FEI94Xtfw9f1ACx7nrPGv usu5lCy78zr0MD7byGCow4/GudHEILGWdK/F35V02rkHrVGh4SqjQvMvDp0F30uuL1q2 FhyAjm0gV5bMT31y06YE9uzJi6UtMp5G+pb4sD32/+Y3QU464+nPEdiElTdAJqyIuDyY Z+p4eXdFLq0A7X5p+EM2W8Zp8vupXtrQSrk5txohpfR3QqjfLaggh4oJRjy/1FFDbyJ7 lEX75IAh5LAcVKqUSrPRln7UOr180KfrabEnw2iiXf02PiYz+ttduCqq4jeQiEcisZJ4 WbOg== X-Gm-Message-State: AOJu0YxrdlkqtzwcoP8dtjg+ErDk4ISuek0sgFq1ed8o8G9sG8jPTcCt eIVux0YUZpx/e5sou6b6eGlUSHYGFPiROgpk8Pftijz1VMLLugI9TeV4TpBG1w== X-Google-Smtp-Source: AGHT+IGGIZb/D0PPi814H9vZj8PanDaz0GMCN0Q4GtNX8PQRDQv1gkRo+9rYUKV4piFpzQHXxE099w== X-Received: by 2002:a17:90a:4b44:b0:2da:9115:15ce with SMTP id 98e67ed59e1d1-2db9ff94036mr4611761a91.15.1726189703497; Thu, 12 Sep 2024 18:08:23 -0700 (PDT) Received: from free.home ([2804:14c:4d1:44a5:f4d9:b7a4:4fb8:376f]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dbb9c508ebsm376454a91.4.2024.09.12.18.08.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 18:08:22 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 48D189om2724879 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 12 Sep 2024 22:08:10 -0300 From: Alexandre Oliva To: Mike Stump Cc: GCC Patches , Rainer Orth , libstdc++@gcc.gnu.org Subject: [PATCH] testsuite: a few more hostedlib adjustments Organization: Free thinker, does not speak for AdaCore References: <600FDF8F-67C5-408F-BD24-9A3964A8BFA1@comcast.net> <1BBDEF3B-4E5C-4096-A980-C90F09B35AB6@comcast.net> <61ABC28E-CA92-431C-ADB4-F7166C82ADD9@comcast.net> Date: Thu, 12 Sep 2024 22:08:09 -0300 In-Reply-To: <61ABC28E-CA92-431C-ADB4-F7166C82ADD9@comcast.net> (Mike Stump's message of "Thu, 12 Sep 2024 14:50:06 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, WEIRD_QUOTING 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: 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~incoming=patchwork.ozlabs.org@gcc.gnu.org On Sep 12, 2024, Mike Stump wrote: > On Sep 3, 2024, at 11:44 PM, Alexandre Oliva wrote: >> >> Here's an updated and refreshed version that gets trunk built with >> --disable-hosted-libstdcxx on x86_64-linux-gnu to not get any spurious >> fails during in-tree testing. Also bootstrapped on hosted >> x86_64-linux-gnu. Ok to install? > Ok. Thanks. There's more! Regstrapped on x86_64-linux-gnu, also tested on the same platform with --disable-hosted-libstdcxx. Ok to install? This adjusts some recently-added tests that won't compile without a hostedlib libstdc++, missed in the patch that just went in, and also an old test that I'd missed because it also failed in my baseline. for gcc/testsuite/ChangeLog * g++.dg/coroutines/pr108620.C: Skip if !hostedlib because of unavailable headers. * g++.dg/other/profile1.C: Likewise. * g+.dg/ext/pragma-unroll-lambda-lto.C: Skip if !hostedlib because of unavailable declarations. --- gcc/testsuite/g++.dg/coroutines/pr108620.C | 2 ++ .../g++.dg/ext/pragma-unroll-lambda-lto.C | 1 + gcc/testsuite/g++.dg/other/profile1.C | 1 + 3 files changed, 4 insertions(+) diff --git a/gcc/testsuite/g++.dg/coroutines/pr108620.C b/gcc/testsuite/g++.dg/coroutines/pr108620.C index e8016b9f8a233..22bf0c18bac45 100644 --- a/gcc/testsuite/g++.dg/coroutines/pr108620.C +++ b/gcc/testsuite/g++.dg/coroutines/pr108620.C @@ -1,3 +1,5 @@ +// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } } + // https://gcc.gnu.org/PR108620 #include #include diff --git a/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C b/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C index 144c4c3269249..64cdf90f34d33 100644 --- a/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C +++ b/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C @@ -1,5 +1,6 @@ // { dg-do link { target c++11 } } // { dg-options "-O2 -flto -fdump-rtl-loop2_unroll" } +// { dg-skip-if "requires hosted libstdc++ for cstdlib rand" { ! hostedlib } } #include diff --git a/gcc/testsuite/g++.dg/other/profile1.C b/gcc/testsuite/g++.dg/other/profile1.C index a4bf6b3d0fea7..99844373189e0 100644 --- a/gcc/testsuite/g++.dg/other/profile1.C +++ b/gcc/testsuite/g++.dg/other/profile1.C @@ -2,6 +2,7 @@ // { dg-do run } // { dg-require-profiling "" } // { dg-options "-fnon-call-exceptions -fprofile-arcs" } +// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } } #include