gen_abstract_function on our function context.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31078
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
{
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')