This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PING] [PATCH, libstdc++] Add missing free-standing headers to install rule
- From: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Cc: Jonathan Wakely <jwakely at redhat dot com>
- Date: Wed, 16 Mar 2016 08:32:09 +0000
- Subject: [PING] [PATCH, libstdc++] Add missing free-standing headers to install rule
- Authentication-results: sourceware.org; auth=none
- Authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=hotmail.de;
- References: <VI1PR07MB0911F2B49AE4FBDDD72EEA2EE4B20 at VI1PR07MB0911 dot eurprd07 dot prod dot outlook dot com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:23
Ping...
Hi,
when the free-standing libstdc++-headers are installed, the C++ header
file <new> does not always compile, because it includes <exception> and this
includes under certain conditions (__cplusplus >= 201103L &&
ATOMIC_INT_LOCK_FREE > 1) the header file <bits/nested_exception.h>
but that fails to compile because it needs <bits/move.h> which is not installed.
This condition depends on the target, and for instance an arm-eabi
eCos compiler fails to compile <new> with -mcpu=cortex-a9 and the
default C++ standard option, while it is OK with ARMv4 CPUs.
Therefore this patch adds move.h and concept_check.h to the installed headers,
unconditionally.
I've verified that the <new> header compiles on an eCos cross compiler.
Boot-strapped and regression-tested on x86_64-pc-linux-gnu.
Is it OK for trunk?
Thanks
Bernd.