From 2943f6f71601fa523f777d974f889efe8cf9b66b Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 29 Sep 2015 05:41:09 +0000 Subject: [PATCH] Dump function attributes 2015-09-29 Tom de Vries * tree-cfg.c (dump_function_to_file): Dump function attributes. From-SVN: r228229 --- gcc/ChangeLog | 4 ++++ gcc/tree-cfg.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dc4a1872f111..c6140493cee6 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 712d8cc96332..e06ee28ab792 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); -- 2.47.3