[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-patches
Subject: Re: [arm] EABI array cookies
From: Mark Mitchell <mark () codesourcery ! com>
Date: 2004-06-30 22:01:53
Message-ID: 40E33851.5020300 () codesourcery ! com
[Download RAW message or body]
Paul Brook wrote:
> On Tuesday 29 June 2004 14:31, Nick Burrett wrote:
>
>>Paul Brook wrote:
>>
>>>>You're missing the documentation for the new hooks again...
>>>
>>>+@deftypefn {Target Hook} tree TARGET_CXX_GET_COOKIE_SIZE (tree
>>>@var{type}) +This hook returns the size of the cookie to use when
>>>allocating an array +whose elements have the indicated @var{type}.
>>>Assumes that it is already +known that a cookie is needed. The default
>>>is
>>>+@code{max(sizeof (size_t), alignof(type))}.
>>>+@end deftypefn
>>
>>It would be useful to expand on this to at minimum point the reader to
>>further information about these 'cookies' so that they can determine
>>whether or not they need to define this target hook.
>
>
> I've added a bit mentioning that the default comes from the Section 2.7 of the
> C++ ABI.
Given that, and Benjamin's OK, and assuming you've incorporated the
other comments about typos, the patch is fine.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic