From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Content-Type: text/plain; charset="US-ASCII" 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: , X-List-Received-Date: Mon, 02 Aug 2021 16:16:17 -0000 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 -- Joseph S. Myers joseph@codesourcery.com