Commit 38a31425 by Alexander Sotirov Committed by Gerald Pfeifer

re PR c/9177 (-fdump-translation-unit: C front end deletes function_decl AST…

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
parent 2f50999f
2003-04-18 Alexander Sotirov <sluncho@mirizma.org>
PR c/9177
* c-decl.c (c_expand_body): Don't garbage collect the function
body if we are going to dump it later.
2003-04-18 Richard Henderson <rth@redhat.com> 2003-04-18 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove. * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
......
...@@ -6244,7 +6244,8 @@ finish_function (nested, can_defer_p) ...@@ -6244,7 +6244,8 @@ finish_function (nested, can_defer_p)
c_expand_body (fndecl); 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. */ /* Allow the body of the function to be garbage collected. */
DECL_SAVED_TREE (fndecl) = NULL_TREE; DECL_SAVED_TREE (fndecl) = NULL_TREE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment