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: Jonathan Wakely <jwakely at redhat dot com>
- To: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- Cc: "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 09:42:32 +0000
- 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>
On 23/02/16 07:15 +0000, Bernd Edlinger wrote:
as described in the PR 69881 it happens quite often that cstddef is
called with __need_size_t because we still support gmp-4.3.2 which
is installed by contrib/download_prerequisites. This causes a kind
of undefined behavior. It is just by chance that this does not cause
the gcc-6 boot-strap to fail, but it causes gcc-4.9 bootstrap to fail
when the gcc-6 version of cstddef is around. So it looks like a
regression, because the new cstddef is more fragile than before.
Is it? cstddef hasn't been changed since 2013-06-11. cstdarg hasn't
been changed since 2011-01-30.
What made them more fragile?