Dump function attributes

2015-09-29  Tom de Vries  <tom@codesourcery.com>

	* tree-cfg.c (dump_function_to_file): Dump function attributes.

From-SVN: r228229
This commit is contained in:
Tom de Vries 2015-09-29 05:41:09 +00:00 committed by Tom de Vries
parent 4c22199569
commit 2943f6f716
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2015-09-29 Tom de Vries <tom@codesourcery.com>
* tree-cfg.c (dump_function_to_file): Dump function attributes.
2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/67716

View File

@ -7369,6 +7369,13 @@ dump_function_to_file (tree fndecl, FILE *file, int flags)
}
fprintf (file, ")\n");
if (DECL_ATTRIBUTES (fndecl) != NULL_TREE)
{
fprintf (file, "[ ");
print_generic_expr (file, DECL_ATTRIBUTES (fndecl), dump_flags);
fprintf (file, "]\n");
}
if (flags & TDF_VERBOSE)
print_node (file, "", fndecl, 2);