diff options
author | Alexander Sotirov <sluncho@mirizma.org> | 2003-04-18 19:39:29 +0000 |
---|---|---|
committer | Gerald Pfeifer <gerald@gcc.gnu.org> | 2003-04-18 19:39:29 +0000 |
commit | 38a314251e0da0ed3c70f18c66c8877a35e24bdd (patch) | |
tree | 3e9c8b8550da943e8a9dbd5b9490de806b573762 /gcc/c-decl.c | |
parent | 2f50999f20fd126f617513d23e16e49d5d752a06 (diff) | |
download | gcc-38a314251e0da0ed3c70f18c66c8877a35e24bdd.zip gcc-38a314251e0da0ed3c70f18c66c8877a35e24bdd.tar.gz gcc-38a314251e0da0ed3c70f18c66c8877a35e24bdd.tar.bz2 |
re PR c/9177 (-fdump-translation-unit: C front end deletes function_decl AST nodes and breaks debugging dumps.)
PR c/9177
* c-decl.c (c_expand_body): Don't garbage collect the function
body if we are going to dump it later.
From-SVN: r65787
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index c852bd7..ee98785 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6244,7 +6244,8 @@ finish_function (nested, can_defer_p) c_expand_body (fndecl); - if (uninlinable) + /* Keep the function body if it's needed for inlining or dumping. */ + if (uninlinable && !dump_enabled_p (TDI_all)) { /* Allow the body of the function to be garbage collected. */ DECL_SAVED_TREE (fndecl) = NULL_TREE; |