6 msgcurrent gcc trunk testsuite failure on cygwin: ...
1 msgquestion about switch table
1 msgLibjava is broken again
10 msgHelp in understanding ccp propagator
2 msgRedefinition of symbol ???
10 msgWhen was decimal floating point added to gcc?
1 msggcc-4.3-20070601 is now available
2 msgWhat is purpose of numbered variables??
7 msgPredictive commoning miscompiles 482.sphinx3 in...

DOC PATCH: attribute(alloc_size)
\ Marcus Meissner (1 Jun 2007)
. \ Marcus Meissner (1 Jun 2007)

3 msgsignal unwind and fp state
1 msgsynchronous cancel and 'terminate called withou...
4 msg__builtin_apply_args - GCC 4.1.1
6 msgOptimizations for itanium
29 msgGit repository with full GCC history
1 msgLinux Foundation Travel Fund and GCC Summit
1 msgcxx-reflection branch ?
6 msgAccess to symbol table??
1 msgDebug info generation (target: Fr30) - GCC 4.1.1
17 msgVery Fast: Directly Coded Lexical Analyzer
Subject:DOC PATCH: attribute(alloc_size)
Group:Gcc
From:Marcus Meissner
Date:1 Jun 2007


Hi,

addition of alloc_size attribute to the changes.html.

Ciao, Marcus
Index: htdocs/gcc-4.3/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.3/changes.html,v
retrieving revision 1.57
diff -u -r1.57 changes.html
--- htdocs/gcc-4.3/changes.html 25 May 2007 17:20:59 -0000 1.57
+++ htdocs/gcc-4.3/changes.html 1 Jun 2007 16:28:01 -0000
@@ -199,6 +199,18 @@
the diverse warnings enabled by <code>-Wextra</code>.
</li>

+ <li>
+ A new function attribute <code>alloc_size</code> has been added to
+ mark up <code>malloc</code> style functions. For constant sized
+ allocations this can be used to find out the size of the returned
+ pointer using the <code>__builtin_object_size()</code> function
+ for buffer overflow checking and similar.
+ This supplements the already built-in <code>malloc</code> and
+ <code>calloc</code> constant size handling and is useful for any
+ allocator function like g_malloc() from glib2 or HeapAlloc()
+ from the Win32 implementation in Wine.
+ </li>
+
</ul>

<h3>C++</h3>


© 2004-2008 readlist.com