[PATCH, PR 43835] Make IPA-SRA give up if certain function attributes are present

Jakub Jelinek jakub@redhat.com
Thu Apr 22 20:34:00 GMT 2010


On Thu, Apr 22, 2010 at 07:29:18PM +0200, Martin Jambor wrote:
> +  for (type_attrs = TYPE_ATTRIBUTES (TREE_TYPE (node->decl));
> +       type_attrs;
> +       type_attrs = TREE_CHAIN (type_attrs))
> +    if (is_attribute_p ("nonnull", TREE_PURPOSE (type_attrs))
> +	|| is_attribute_p ("format", TREE_PURPOSE (type_attrs))
> +	|| is_attribute_p ("format_arg", TREE_PURPOSE (type_attrs)))
> +      return false;

I believe alloc_size attribute needs to be treated the same and
sentinel attribute likewise.

	Jakub



More information about the Gcc-patches mailing list