This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Make cstddef / cstdarg more robust (PR 69881)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- Cc: Jonathan Wakely <jwakely at redhat dot com>, "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>
- Date: Tue, 23 Feb 2016 11:09:12 +0100
- Subject: Re: [PATCH] Make cstddef / cstdarg more robust (PR 69881)
- Authentication-results: sourceware.org; auth=none
- References: <HE1PR07MB0905BE8B57CCF6328BE2A52FE4A40 at HE1PR07MB0905 dot eurprd07 dot prod dot outlook dot com> <20160223094232 dot GE3171 at redhat dot com> <HE1PR07MB0905DA9EC78E1EB09B0A9F87E4A40 at HE1PR07MB0905 dot eurprd07 dot prod dot outlook dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Feb 23, 2016 at 10:00:58AM +0000, Bernd Edlinger wrote:
> Previously the g++ default was --std=gnu++98,
> but gcc-6 changed the default to --std=gnu++14.
>
> And when building gcc-4.9, stage1 does not override that with
> --std=gnu++98.
>
> That has changed, and that triggers the latent bug.
So just use -std=gnu++98 in STAGE1_CXXFLAGS or configure with
CXX='g++ -std=gnu++98' if you try to build gcc-4.9 with gcc 6?
I really don't think we should work around this in GCC 6.
Jakub