Commit e157be91 by Eric Botcazou Committed by Eric Botcazou

dwarf2out.c (add_scalar_info): Add back refererence to existing DIE if it has…

dwarf2out.c (add_scalar_info): Add back refererence to existing DIE if it has the DW_AT_data_member_location...

	* dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
	if it has the DW_AT_data_member_location attribute.

From-SVN: r273002
parent 6235b078
2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
* dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
if it has the DW_AT_data_member_location attribute.
2019-07-03 Richard Biener <rguenther@suse.de> 2019-07-03 Richard Biener <rguenther@suse.de>
* gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
......
...@@ -20845,6 +20845,7 @@ add_scalar_info (dw_die_ref die, enum dwarf_attribute attr, tree value, ...@@ -20845,6 +20845,7 @@ add_scalar_info (dw_die_ref die, enum dwarf_attribute attr, tree value,
if (decl_die != NULL) if (decl_die != NULL)
{ {
if (get_AT (decl_die, DW_AT_location) if (get_AT (decl_die, DW_AT_location)
|| get_AT (decl_die, DW_AT_data_member_location)
|| get_AT (decl_die, DW_AT_const_value)) || get_AT (decl_die, DW_AT_const_value))
{ {
add_AT_die_ref (die, attr, decl_die); add_AT_die_ref (die, attr, decl_die);
......
2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/specs/debug1.ads: New test.
2019-07-03 Martin Liska <mliska@suse.cz> 2019-07-03 Martin Liska <mliska@suse.cz>
PR tree-optimization/90892 PR tree-optimization/90892
......
-- { dg-do compile }
-- { dg-options "-cargs -g -dA -fgnat-encodings=minimal -margs" }
package Debug1 is
type Index_T is new Positive range 1 .. 128;
type Array_Type is array (Index_T range <>) of Integer;
type Record_Type (N : Index_T := 16) is record
A : Array_Type (1 .. N);
end record;
R : Record_Type;
end Debug1;
-- { dg-final { scan-assembler-times "DW_AT_upper_bound" 4 } }
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