From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52720 invoked by alias); 9 Oct 2015 23:19:03 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 52695 invoked by uid 89); 9 Oct 2015 23:19:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Oct 2015 23:19:01 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZkgwD-0007l4-TW from joseph_myers@mentor.com ; Fri, 09 Oct 2015 16:18:58 -0700 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.224.2; Sat, 10 Oct 2015 00:18:56 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.82) (envelope-from ) id 1ZkgwB-0005EH-7r; Fri, 09 Oct 2015 23:18:55 +0000 Date: Fri, 09 Oct 2015 23:19:00 -0000 From: Joseph Myers To: , Subject: Test for __cxa_thread_atexit_impl when cross-compiling libstdc++ for GNU targets Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2015-10/txt/msg01040.txt.bz2 I noticed that when testing glibc with a cross compiler I got UNSUPPORTED: nptl/tst-thread_local1 because the libstdc++-v3 configuration for cross compiling defaulted to __cxa_thread_atexit_impl not being available. This patch fixes GLIBCXX_CROSSCONFIG to run the same test (for the case covering targets with glibc) for __cxa_thread_atexit_impl as for native compilation, just as it runs most of the other tests done for native compilation (for these targets, it's not possible to build libstdc++ without already having built libc, so link tests are OK). Tested with no regressions for cross to arm-none-linux-gnueabi. OK to commit? 2015-10-09 Joseph Myers * crossconfig.m4 (GLIBCXX_CROSSCONFIG) <*-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-cygwin*>: Check for __cxa_thread_atexit_impl. * configure: Regenerate. Index: libstdc++-v3/crossconfig.m4 =================================================================== --- libstdc++-v3/crossconfig.m4 (revision 228601) +++ libstdc++-v3/crossconfig.m4 (working copy) @@ -156,6 +156,7 @@ GLIBCXX_CHECK_STDLIB_SUPPORT AC_DEFINE(_GLIBCXX_USE_RANDOM_TR1) GCC_CHECK_TLS + AC_CHECK_FUNCS(__cxa_thread_atexit_impl) AM_ICONV ;; *-mingw32*) -- Joseph S. Myers joseph@codesourcery.com