aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-29 05:41:09 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-29 05:41:09 +0000
commit7763851d7ba744e7cafaee45f3b6f80294fce83f (patch)
treeb5ad770c4a09c8dfb6d7779665305a89d49a52f2 /gcc/tree-cfg.c
parent9aaeb8eebd1f047f49e1cf04415553c3bf6c19d2 (diff)
Dump function attributes
2015-09-29 Tom de Vries <tom@codesourcery.com> * tree-cfg.c (dump_function_to_file): Dump function attributes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228229 138bc75d-0d04-0410-961f-82ee72b054a4
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 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);