From patchwork Mon Aug 2 16:16:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 1512510 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=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4Gdjmp6ftTz9s24 for ; Tue, 3 Aug 2021 02:16:26 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 55376388A43E for ; Mon, 2 Aug 2021 16:16:24 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id AE0B5386191C for ; Mon, 2 Aug 2021 16:16:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AE0B5386191C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: 7+MXwJqRM7BPSDZI2EqJvl/zEl0AOLRakmcjahsPZqk7Q0hxQZ6e6YEtIopbDeH1WMPAjTxnRo KHomeaoGRHghOANkyOw1a6TEEc16TxsVpc1Ihb0RY1OkIbLp6FT9bpgj0RiAdGYHiL1gg3FW0m wTfnfc9ThTofsvfEDpyKuzNCCDStKY84NcJm/reLB5Q8vIwQfQTkIa8j7mJPm+Yv/rBuIGO3W0 I0hoiMT6X7Wcts0n0Qg/YdH+v4cYAn+z9QEFD6ychKFsYOMGfOAlFWRZ0d5HCzACakXrJ4lk43 E4cyx+1bSOEa/iUuE9Eh1z7Z X-IronPort-AV: E=Sophos;i="5.84,289,1620720000"; d="scan'208";a="64360456" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 02 Aug 2021 08:16:14 -0800 IronPort-SDR: HLrLfrSCzCv27HNu+xyW7tpk0MD4dDw5+0ycjbCf4UC/Y1CfMGdeFEbuABAge87JxL9EOEc4cm YK4lIhE3GrWq3HHuSSweA5ED4HOdj++ZVwSgCradL1cONq0rijvRjf+wlYDlhfdsQPbJVQ2LJX kPLhMt6bvHrzgBa+z4FHrLbMlVdawBfnLWw4pAC51ygHVRRQNCeGOo/k0DVaKEz6fL7NCCeTNn 4A9abGeyNuylMPpjm/uLq8LL5fRBf7nnqGxphxlqTg9Jq3hjA8tYTQu9todB7EG1FN3bxZ8ksK 4Gw= Date: Mon, 2 Aug 2021 16:16:10 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: Fix build of nptl/tst-thread_local1.cc with GCC 12 Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-09.mgc.mentorg.com (139.181.222.9) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3125.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" The test nptl/tst-thread_local1.cc fails to build with GCC mainline because of changes to what libstdc++ headers implicitly include what other headers: tst-thread_local1.cc: In function 'int do_test()': tst-thread_local1.cc:177:5: error: variable 'std::array >, 2> do_thread_X' has initializer but incomplete type 177 | do_thread_X | ^~~~~~~~~~~ Fix this by adding an explicit include of . Tested with build-many-glibcs.py for aarch64-linux-gnu. diff --git a/nptl/tst-thread_local1.cc b/nptl/tst-thread_local1.cc index 9608afa..338aafe 100644 --- a/nptl/tst-thread_local1.cc +++ b/nptl/tst-thread_local1.cc @@ -21,6 +21,7 @@ #include #include +#include #include #include #include