tree.h (struct tree_decl): Add malloc_flag.
authorAnthony Green <green@cygnus.com>
Sun, 28 Nov 1999 20:45:34 +0000 (20:45 +0000)
committerAnthony Green <green@gcc.gnu.org>
Sun, 28 Nov 1999 20:45:34 +0000 (20:45 +0000)
commit140592a0131cb2dc88d3f55b2671977f20c85be2
tree64c16fe212dcb5f1d77505bd5b8e158441e8665e
parent8b4b9b7ad3d1bbc16516a5a73a6ba3c3c21d1822
tree.h (struct tree_decl): Add malloc_flag.

* tree.h (struct tree_decl): Add malloc_flag.
(DECL_IS_MALLOC): Define.
* c-common.c (attrs): Add A_MALLOC attribute.
(init_attributes): Add this attribute to the table.
(decl_attributes): Handle malloc attribute.
* calls.c (special_function_p): Check for the malloc attribute.
* extend.texi (Function Attributes): Document malloc attribute.

From-SVN: r30689
gcc/ChangeLog
gcc/c-common.c
gcc/calls.c
gcc/extend.texi
gcc/tree.h