From patchwork Fri Aug 15 15:51:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 380312 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 75AE7140097 for ; Sat, 16 Aug 2014 01:52:01 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=GbT0XeTBKKQbSGk5dtjrVuYs6TBlTpAYs9B4VBV4JgpQmu4ufl7hQ 7Ytt7oTd88C5PftQHUVuBeu2Q+g3UbynIYCH5xYMvgF2bqxvrajTeYE1Pmfobgiu 0OXMfzuvqho36WUKe82m4aedEUZaEYJXyunHjlL3HtN9EibN4AwGj8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=l10dbB1MJCG88+KpbNEXhxkwPYM=; b=TkencQHr8x4ky40dy2wi bQcL6eHMcF4hCONwQR3j9HI5q5krwWYp7F8A8vrJPNmLpW8C9lylGxzItacqRvP9 4yUbk2Ilim2dSbtwwY/aMQjzFT8sDRn6WlPVmuoxN0CTe32zlbO0vpeps34Al8S2 fCY5C9S9IkSwUPQ51t0iHzc= Received: (qmail 3849 invoked by alias); 15 Aug 2014 15:51:36 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 3822 invoked by uid 89); 15 Aug 2014 15:51:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 15 Aug 2014 15:51:34 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7FFpXnf018552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Aug 2014 11:51:33 -0400 Received: from localhost (ovpn-116-102.ams2.redhat.com [10.36.116.102]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7FFpWLN014900; Fri, 15 Aug 2014 11:51:32 -0400 Date: Fri, 15 Aug 2014 16:51:31 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [patch] libstdc++/62159 add missing headers for freestanding implementation Message-ID: <20140815155131.GN6927@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) This seems to fix PR 62159, in that I can now include all the required headers in a C++11 program using a compiler built with --disable-libstdcxx-hosted, but 'make check' doesn't do anything for freestanding builds - should I be doing anything else to test it? commit bfaeb3f86ca436a0e344442b1f0bdcc9fa7128ae Author: Jonathan Wakely Date: Fri Aug 15 16:38:55 2014 +0100 PR libstdc++/62154 * include/Makefile.am (install-freestanding-headers): Add missing C++11 headers. * include/Makefile.in: Regenerate. diff --git a/libstdc++-v3/include/Makefile.am b/libstdc++-v3/include/Makefile.am index e469586..be19b5b 100644 --- a/libstdc++-v3/include/Makefile.am +++ b/libstdc++-v3/include/Makefile.am @@ -1231,6 +1231,8 @@ endif install-freestanding-headers: $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/bits $(mkinstalldirs) $(DESTDIR)${host_installdir} + $(INSTALL_DATA) ${glibcxx_srcdir}/include/bits/atomic_base.h \ + $(DESTDIR)${gxx_include_dir}/bits $(INSTALL_DATA) ${glibcxx_srcdir}/include/bits/c++0x_warning.h \ $(DESTDIR)${gxx_include_dir}/bits for file in ${host_srcdir}/os_defines.h ${host_builddir}/c++config.h \ @@ -1238,9 +1240,12 @@ install-freestanding-headers: ${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h; do \ $(INSTALL_DATA) $${file} $(DESTDIR)${host_installdir}; done $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${std_builddir} + $(INSTALL_DATA) ${std_builddir}/atomic $(DESTDIR)${gxx_include_dir}/${std_builddir} $(INSTALL_DATA) ${std_builddir}/limits $(DESTDIR)${gxx_include_dir}/${std_builddir} + $(INSTALL_DATA) ${std_builddir}/type_traits $(DESTDIR)${gxx_include_dir}/${std_builddir} $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${c_base_builddir} - for file in cstddef cstdlib cstdarg; do \ + for file in ciso646 cstddef cfloat climits cstdint cstdlib \ + cstdalign cstdarg cstdbool; do \ $(INSTALL_DATA) ${c_base_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${c_base_builddir}; done # The real deal.