From d0bd8245b26cd1e6e6540e5f0697c96703707c02 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 29 Jun 2014 01:31:40 +0200 Subject: [PATCH] * cgraph.c (dump_cgraph_node): Dump init&fini priorities. From-SVN: r212113 --- gcc/ChangeLog | 4 ++++ gcc/cgraph.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b6f82408ff0..17a510dbd49 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-06-28 Jan Hubicka + + * cgraph.c (dump_cgraph_node): Dump init&fini priorities. + 2014-06-28 Jan Hubicka * tree-inline.c (remap_type_1): Do not duplicate fields diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 7360f773421..43428be7bb4 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -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"); -- 2.30.2