Commit a98b1078 by Richard Kenner

(finish_decl): Put RTL and other stuff in permanent_obstack if DECL

is.

From-SVN: r7679
parent 0c1c8ea6
...@@ -3592,7 +3592,8 @@ finish_decl (decl, init, asmspec_tree) ...@@ -3592,7 +3592,8 @@ finish_decl (decl, init, asmspec_tree)
if (TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == FUNCTION_DECL) if (TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == FUNCTION_DECL)
{ {
if (flag_traditional && allocation_temporary_p ()) if ((flag_traditional || TREE_PERMANENT (decl))
&& allocation_temporary_p ())
{ {
push_obstacks_nochange (); push_obstacks_nochange ();
end_temporary_allocation (); end_temporary_allocation ();
......
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