diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2005-07-03 01:14:56 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2005-07-03 01:14:56 +0000 |
commit | 7f3b2bdaaffb46e225d7652507df297bcbf3b647 (patch) | |
tree | 8a78cec45f0a8ab8c42a0303b9473ffe104c02fb /gcc/c-decl.c | |
parent | ea40ba9c04882ea2ddf987e2783f98cc38bac081 (diff) | |
download | gcc-7f3b2bdaaffb46e225d7652507df297bcbf3b647.zip gcc-7f3b2bdaaffb46e225d7652507df297bcbf3b647.tar.gz gcc-7f3b2bdaaffb46e225d7652507df297bcbf3b647.tar.bz2 |
re PR c++/18279 (missing function bodies from -fdump-translation-unit)
PR c++/18279
* c-decl.c (c_write_global_declarations): Dump contents of
external scope to.
* tree-dump.c (dequeue_and_dump): Dump abstract origin of a
decl.
<TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>,
<LABEL_EXPR>,
<GOTO_EXPR>, <SWITCH_EXPR>: Add.
(dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
is enabled.
Co-Authored-By: Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
From-SVN: r101544
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 04d095c..d516ffe 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -7541,6 +7541,17 @@ c_write_global_declarations (void) through wrapup_global_declarations and check_global_declarations. */ for (t = all_translation_units; t; t = TREE_CHAIN (t)) c_write_global_declarations_1 (BLOCK_VARS (DECL_INITIAL (t))); + if (ext_block) + { + tree tmp = BLOCK_VARS (ext_block); + int flags; + FILE * stream = dump_begin (TDI_tu, &flags); + if (stream && tmp) + { + dump_node (tmp, flags & ~TDF_SLIM, stream); + dump_end (TDI_tu, stream); + } + } c_write_global_declarations_1 (BLOCK_VARS (ext_block)); /* Generate functions to call static constructors and destructors |