Documentation patch: no_check_memory_usage

Craig Rodrigues rodrigc@mediaone.net
Fri Oct 20 11:42:00 GMT 2000


Hi,

The following patch is to extend.texi, and provides a small
example for the no_check_memory_usage function attribute.


2000-10-20  Craig Rodrigues <rodrigc@mediaone.net>

	* extend.texi: add a small example for using the
	no_check_memory_usage function attribute.  Thanks to
	Andrew Morton <morton@nortelnetworks.com> for providing
	the example.



--- extend.texi.old	Fri Oct 20 13:30:23 2000
+++ extend.texi	Fri Oct 20 14:21:25 2000
@@ -1634,6 +1634,17 @@
 you wish, without getting infinite recursion if they get compiled with
 @code{-fcheck-memory-usage}.
 
+@smallexample
+void chkr_check_exec (const void *) 
+   __attribute__ ((no_check_memory_usage));
+
+
+void chkr_check_exec (const void *ptr)
+@{
+	/* Check that we can execute at *ptr */
+@}
+@end smallexample
+
 @item regparm (@var{number})
 @cindex functions that are passed arguments in registers on the 386
 On the Intel 386, the @code{regparm} attribute causes the compiler to

-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net          


More information about the Gcc-patches mailing list