From: vries Date: Tue, 29 Sep 2015 05:41:09 +0000 (+0000) Subject: Dump function attributes X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7763851d7ba744e7cafaee45f3b6f80294fce83f;p=thirdparty%2Fgcc.git Dump function attributes 2015-09-29 Tom de Vries * 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 --- 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);