dwarf2out.c (add_abstract_origin_attribute): Call gen_abstract_function on our function context.

* dwarf2out.c (add_abstract_origin_attribute): Call
        gen_abstract_function on our function context.

From-SVN: r31078
This commit is contained in:
Jason Merrill 1999-12-23 05:26:55 +00:00 committed by Jason Merrill
parent 6165fb6bf5
commit 44db1d9c57
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
1999-12-22 Jason Merrill <jason@casey.cygnus.com>
* dwarf2out.c (add_abstract_origin_attribute): Call
gen_abstract_function on our function context.
Thu Dec 23 03:57:10 1999 Hans-Peter Nilsson <hp@bitrange.com>
* Makefile.in (INTEGRATE_H): Fix typo: INTEGRATE_H, not INTREGRATE_H.

View File

@ -7505,6 +7505,13 @@ add_abstract_origin_attribute (die, origin)
{
dw_die_ref origin_die = NULL;
/* We may have gotten separated from the block for the inlined
function, if we're in an exception handler or some such; make
sure that the abstract function has been written out. */
tree fn = decl_function_context (origin);
if (fn)
gen_abstract_function (fn);
if (TREE_CODE_CLASS (TREE_CODE (origin)) == 'd')
origin_die = lookup_decl_die (origin);
else if (TREE_CODE_CLASS (TREE_CODE (origin)) == 't')