Commit e40a1c67 by Jason Merrill Committed by Jason Merrill

dwarf2out.c (add_abstract_origin_attribute): Don't call gen_abstract_function on…

dwarf2out.c (add_abstract_origin_attribute): Don't call gen_abstract_function on our context if we're a nested function.

        * dwarf2out.c (add_abstract_origin_attribute): Don't call
        gen_abstract_function on our context if we're a nested function.

From-SVN: r31798
parent a5fa6484
2000-02-04 Jason Merrill <jason@casey.cygnus.com>
* dwarf2out.c (add_abstract_origin_attribute): Don't call
gen_abstract_function on our context if we're a nested function.
2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz> 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite. * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
......
...@@ -7374,12 +7374,18 @@ add_abstract_origin_attribute (die, origin) ...@@ -7374,12 +7374,18 @@ add_abstract_origin_attribute (die, origin)
{ {
dw_die_ref origin_die = NULL; dw_die_ref origin_die = NULL;
/* We may have gotten separated from the block for the inlined if (die->die_tag != DW_TAG_subprogram)
function, if we're in an exception handler or some such; make {
sure that the abstract function has been written out. */ /* We may have gotten separated from the block for the inlined
tree fn = decl_function_context (origin); function, if we're in an exception handler or some such; make
if (fn) sure that the abstract function has been written out.
gen_abstract_function (fn);
Doing this for nested functions is wrong, however; functions are
distinct units, and our context might not even be inline. */
tree fn = decl_function_context (origin);
if (fn)
gen_abstract_function (fn);
}
if (TREE_CODE_CLASS (TREE_CODE (origin)) == 'd') if (TREE_CODE_CLASS (TREE_CODE (origin)) == 'd')
origin_die = lookup_decl_die (origin); origin_die = lookup_decl_die (origin);
......
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