* cgraph.c (dump_cgraph_node): Dump init&fini priorities.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 28 Jun 2014 23:31:40 +0000 (01:31 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 28 Jun 2014 23:31:40 +0000 (23:31 +0000)
From-SVN: r212113

gcc/ChangeLog
gcc/cgraph.c

index b6f82408ff01110de08fbe3f48295085c715b587..17a510dbd49b47947ce7930294ea440e8e71410e 100644 (file)
@@ -1,3 +1,7 @@
+2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
+
+       * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
+
 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
 
        * tree-inline.c (remap_type_1): Do not duplicate fields
index 7360f7734216b636b42ac520e51651f4c2668e4c..43428be7bb42a787556767f052d9569de47d8c33 100644 (file)
@@ -1986,6 +1986,10 @@ dump_cgraph_node (FILE *f, struct cgraph_node *node)
     fprintf (f, " only_called_at_exit");
   if (node->tm_clone)
     fprintf (f, " tm_clone");
+  if (DECL_STATIC_CONSTRUCTOR (node->decl))
+    fprintf (f," static_constructor (priority:%i)", node->get_init_priority ());
+  if (DECL_STATIC_DESTRUCTOR (node->decl))
+    fprintf (f," static_destructor (priority:%i)", node->get_fini_priority ());
 
   fprintf (f, "\n");