This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] V3 PATCH: Add support for aligned storage
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: Gabriel Dos Reis <gdr at nerim dot net>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 1 Aug 2002 12:34:28 -0400
- Subject: Re: [RFC] V3 PATCH: Add support for aligned storage
- References: <m3fzxzj5j5.fsf@uniton.integrable-solutions.net> <20020801091730.072df280.bkoz@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Aug 01, 2002 at 09:17:30AM -0700, Benjamin Kosnik wrote:
>
> > 2002-08-01 Gabriel Dos Reis <gdr@nerim.net>
> >
> > * include/ext/storage: New file.
> > * include/bits/storage.h: Like wise.
> > * src/globals.cc (std): #include "bits/storage.h". Use
> > aligned_storage<> instead of explicit manual type alignment.
> > * include/Makefile.am (ext_headers): Add ext/storage
> > (bits_headers): Add bits/storage.h
> > * include/Makefile.in: Regenerate.
>
> You need to kill the include/bits/storage.h file and move everything to
> /include/ext/storage.
>
> There should be nothing in
>
> > + namespace __gnu_cxx
>
> in include/bits
>
> Other than that, looks good. Did you see the GNATS bug about alignment
> on 16 byte boundaries, and Jakub's response that says this is not
> possible for sizes above 8? You might want to document this, and test
> the limits of aligned_storage.
Would it be possible to overload new operator here to call memalign(3)?
Jakub