diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-25 23:32:32 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-25 23:32:32 +0000 |
commit | 68690e9ca13b2e6619a43547c204e8b720d7da56 (patch) | |
tree | 77d5417cd36576ef9bce5bd19a33744ec0efc8b6 /gcc/dwarf2out.c | |
parent | 060813d5b19953d9b3d9536e1e064c5e503eee59 (diff) | |
download | gcc-68690e9ca13b2e6619a43547c204e8b720d7da56.tar.gz |
* dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
for nested functions whose proper parent has not been output.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88116 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8ec62fe7829..3992c83189b 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -13574,6 +13574,8 @@ dwarf2out_finish (const char *filename) origin = lookup_decl_die (context); if (origin) add_child_die (origin, die); + else + add_child_die (comp_unit_die, die); } } } |