This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/4] enhance overflow and truncation detection in strncpy and strncat (PR 81117)
On Mon, 14 Aug 2017, Martin Sebor wrote:
> /* This header provides a declarative way of describing the attributes
> - that are applied to some functions by default.
> + that are applied to some built-in functions by default. Attributes
> + that apply to types or variables but not functions need not and
> + should not be defined here.
It's not just type and variable attributes that shouldn't be here. Any
function attribute that's not used by at least one built-in function
shouldn't be here either. Every tree constructed here adds to startup
costs; they should only be present if actually used.
--
Joseph S. Myers
joseph@codesourcery.com