Commit 953f0758 by Jakub Jelinek Committed by Jakub Jelinek

dwarf2out.c (gen_member_die): Only reparent_child instead of splice_child_die if...

	* dwarf2out.c (gen_member_die): Only reparent_child instead of
	splice_child_die if child doesn't have DW_AT_specification attribute.

From-SVN: r241622
parent e63d7e71
2016-10-27 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (gen_member_die): Only reparent_child instead of
splice_child_die if child doesn't have DW_AT_specification attribute.
2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com> 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
* config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline. * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
...@@ -22624,7 +22624,8 @@ gen_member_die (tree type, dw_die_ref context_die) ...@@ -22624,7 +22624,8 @@ gen_member_die (tree type, dw_die_ref context_die)
/* Handle inline static data members, which only have in-class /* Handle inline static data members, which only have in-class
declarations. */ declarations. */
if (child->die_tag == DW_TAG_variable if (child->die_tag == DW_TAG_variable
&& child->die_parent == comp_unit_die ()) && child->die_parent == comp_unit_die ()
&& get_AT (child, DW_AT_specification) == NULL)
{ {
reparent_child (child, context_die); reparent_child (child, context_die);
child->die_tag = DW_TAG_member; child->die_tag = DW_TAG_member;
......
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