This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix g++.eh/badalloc.C failure


Richard Henderson wrote:
> 
> On Tue, Dec 18, 2001 at 09:59:15AM +0000, Nathan Sidwell wrote:
> > These '4's are an attempt at padding the allocation to some large alignment.
> 
> I see.  In which case, this alternate uses 'aligned' to grab
> BIGGEST_ALIGNMENT.
neat!

> !   size = (size + __alignof__(object) + 1) & - __alignof__(object);
                                         - 1 ?
nathan

-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]