On 11/20/20 11:12 AM, Martin Sebor via Gcc-patches wrote:
> dump_function_to_file prints DECL_ATTRIBUTES but not TYPE_ATTRIBUTES
> when both can be important and helpful for debugging, especially with
> attributes that are added implicitly (such attribute access and
> the proposed internal attribute *dealloc).  The function also prints
> function arguments (and their types) but not its return type, again,
> leaving out a useful detail.  The attached tweak adds both to
> the dump.
>
> Martin
>
> gcc-dump-type-attr.diff
>
> gcc/ChangeLog:
>
>       * gcc/tree-cfg.c (dump_function_to_file): Print type attributes
>       and return type.
>
> gcc/testsuite/ChangeLog:
>       * gcc.dg/attr-access-4.c: New test.
OK
jeff

Reply via email to