aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2015-09-29 05:41:09 +0000
committerTom de Vries <vries@gcc.gnu.org>2015-09-29 05:41:09 +0000
commit2943f6f71601fa523f777d974f889efe8cf9b66b (patch)
treeb5ad770c4a09c8dfb6d7779665305a89d49a52f2 /gcc/tree-cfg.c
parent4c22199569f701692b3fe1116f2ff5b03c303931 (diff)
downloadgcc-2943f6f71601fa523f777d974f889efe8cf9b66b.zip
gcc-2943f6f71601fa523f777d974f889efe8cf9b66b.tar.gz
gcc-2943f6f71601fa523f777d974f889efe8cf9b66b.tar.bz2
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
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 712d8cc..e06ee28 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);