diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-30 17:43:44 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-30 17:43:44 +0000 |
commit | a56359e20a83bd214230c1862081dc2ccb2649b1 (patch) | |
tree | 9c7a0b079ee897b64ab59317dccda35e632b164a /gcc/cp/dump.c | |
parent | 06365dafc2a8dc6d7c1dab5649e9acc27475c0e4 (diff) | |
download | gcc-a56359e20a83bd214230c1862081dc2ccb2649b1.tar.gz |
* cp-tree.h (lang_decl_flags): Add global_ctor_p and
global_dtor_p. Add init_priority.
(DECL_ACCESS): Adjust accordingly.
(DECL_GLOBAL_CTOR_P, DECL_GLOBAL_DTOR_P): New macros.
(GLOBAL_INIT_PRIORITY): Likewise.
* decl.c (lang_mark_tree): Adjust accordingly.
(start_objects): Set DECL_GLOBAL_CTOR_P, DECL_GLOBAL_DTOR_P,
and GLOBAL_INIT_PRIORITY.
* dump.c (dequeue_and_dump): Print them.
* ir.texi: Document them.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/dump.c')
-rw-r--r-- | gcc/cp/dump.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c index 747e28d9707..7420c972ae0 100644 --- a/gcc/cp/dump.c +++ b/gcc/cp/dump.c @@ -625,6 +625,15 @@ dequeue_and_dump (di) dump_string (di, "operator"); if (DECL_CONV_FN_P (t)) dump_string (di, "conversion"); + if (DECL_GLOBAL_CTOR_P (t) || DECL_GLOBAL_DTOR_P (t)) + { + if (DECL_GLOBAL_CTOR_P (t)) + dump_string (di, "global init"); + if (DECL_GLOBAL_DTOR_P (t)) + dump_string (di, "global fini"); + dump_int (di, "prio", GLOBAL_INIT_PRIORITY (t)); + } + if (dump_children_p) dump_child ("body", DECL_SAVED_TREE (t)); } |