[arm] EABI array cookies

Paul Brook paul@codesourcery.com
Tue Jun 29 14:26:00 GMT 2004


> You're missing the documentation for the new hooks again...

2004-06-29  Paul Brook  <paul@codesourcery.com>

	* doc/tm.texi: Document TARGET_CXX_GET_COOKIE_SIZE and
	TARGET_CXX_COOKIE_HAS_SIZE.

Index: gcc/doc/tm.texi
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/doc/tm.texi,v
retrieving revision 1.331
diff -u -p -r1.331 tm.texi
--- gcc/doc/tm.texi	25 Jun 2004 17:15:45 -0000	1.331
+++ gcc/doc/tm.texi	29 Jun 2004 12:56:42 -0000
@@ -8477,6 +8477,18 @@ This hook determines how guard variables
 @code{true} indicates the least significant bit should be used.
 @end deftypefn
 
+@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
+
+@deftypefn {Target Hook} bool TARGET_CXX_COOKIE_HAS_SIZE (void)
+This hook should return @code{true} if the element size should be stored in
+array cookies.  The default is to return @code{false}.
+@end deftypefn
+
 @node Misc
 @section Miscellaneous Parameters
 @cindex parameters, miscellaneous



More information about the Gcc-patches mailing list