From: Tom de Vries Date: Tue, 29 Sep 2015 05:41:09 +0000 (+0000) Subject: Dump function attributes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2943f6f71601fa523f777d974f889efe8cf9b66b;p=gcc.git Dump function attributes 2015-09-29 Tom de Vries * tree-cfg.c (dump_function_to_file): Dump function attributes. From-SVN: r228229 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dc4a1872f11..c6140493cee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-09-29 Tom de Vries + + * tree-cfg.c (dump_function_to_file): Dump function attributes. + 2015-09-29 Kaz Kojima PR target/67716 diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 712d8cc9633..e06ee28ab79 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -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);