]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Dump function attributes
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Sep 2015 05:41:09 +0000 (05:41 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Sep 2015 05:41:09 +0000 (05:41 +0000)
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

gcc/ChangeLog
gcc/tree-cfg.c

index dc4a1872f1112396f82649ff3fedea4bf8916da4..c6140493cee65b241065d4f4d6c6671c65c4a3d3 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-29  Tom de Vries  <tom@codesourcery.com>
+
+       * tree-cfg.c (dump_function_to_file): Dump function attributes.
+
 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        PR target/67716
index 712d8cc96332069537bfac1e8e56c2e863037314..e06ee28ab7928b3a3f8c2f5471eb3e09f3fb531a 100644 (file)
@@ -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);