This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Use abi_tag attribute on std::list
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 3 Oct 2014 17:32:57 +0200 (CEST)
- Subject: Re: [patch] Use abi_tag attribute on std::list
- Authentication-results: sourceware.org; auth=none
- References: <20141003130447 dot GD4197 at redhat dot com> <alpine dot DEB dot 2 dot 11 dot 1410031600040 dot 1565 at laptop-mg dot saclay dot inria dot fr> <20141003144955 dot GH4197 at redhat dot com> <20141003152426 dot GI4197 at redhat dot com>
- Reply-to: libstdc++ at gcc dot gnu dot org
On Fri, 3 Oct 2014, Jonathan Wakely wrote:
Marc, this is the relative diff to go back to what I had earlier, with
the size in the _List_impl in case you want to aply it locally (the
dg-error tests are off-by-one with this patch)
Thanks. For PR 61347, to avoid offsetof, I will actually need to
change:
- __detail::_List_node_base _M_node;
- size_t _M_size;
+ _List_node<size_t> _M_node;
and store the size in _M_node._M_data. Since I will have to touch it
anyway, don't feel forced to move it to _M_impl.
--
Marc Glisse