Commit 773392af by Pierre-Marie de Rodat Committed by Eric Botcazou

decl.c (gnat_to_gnu_entity): Do not clobber gnat_entity_name with temporary…

decl.c (gnat_to_gnu_entity): Do not clobber gnat_entity_name with temporary names for XUP and XUT types.

	* gcc-interface/decl.c (gnat_to_gnu_entity): Do not clobber
	gnat_entity_name with temporary names for XUP and XUT types.

From-SVN: r237324
parent 52b7270a
2016-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not clobber
gnat_entity_name with temporary names for XUP and XUT types.
2016-06-10 Martin Sebor <msebor@redhat.com> 2016-06-10 Martin Sebor <msebor@redhat.com>
PR c/71392 PR c/71392
......
...@@ -2335,10 +2335,12 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition) ...@@ -2335,10 +2335,12 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition)
gnat_name = Packed_Array_Impl_Type (gnat_entity); gnat_name = Packed_Array_Impl_Type (gnat_entity);
else else
gnat_name = gnat_entity; gnat_name = gnat_entity;
if (gnat_encodings != DWARF_GNAT_ENCODINGS_MINIMAL) tree xup_name
gnu_entity_name = create_concat_name (gnat_name, "XUP"); = (gnat_encodings == DWARF_GNAT_ENCODINGS_MINIMAL)
create_type_decl (gnu_entity_name, gnu_fat_type, artificial_p, ? get_entity_name (gnat_name)
debug_info_p, gnat_entity); : create_concat_name (gnat_name, "XUP");
create_type_decl (xup_name, gnu_fat_type, artificial_p, debug_info_p,
gnat_entity);
/* Create the type to be designated by thin pointers: a record type for /* Create the type to be designated by thin pointers: a record type for
the array and its template. We used to shift the fields to have the the array and its template. We used to shift the fields to have the
...@@ -2348,11 +2350,11 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition) ...@@ -2348,11 +2350,11 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition)
Note that GDB can handle standard DWARF information for them, so we Note that GDB can handle standard DWARF information for them, so we
don't have to name them as a GNAT encoding, except if specifically don't have to name them as a GNAT encoding, except if specifically
asked to. */ asked to. */
if (gnat_encodings != DWARF_GNAT_ENCODINGS_MINIMAL) tree xut_name
gnu_entity_name = create_concat_name (gnat_name, "XUT"); = (gnat_encodings == DWARF_GNAT_ENCODINGS_MINIMAL)
else ? get_entity_name (gnat_name)
gnu_entity_name = get_entity_name (gnat_name); : create_concat_name (gnat_name, "XUT");
tem = build_unc_object_type (gnu_template_type, tem, gnu_entity_name, tem = build_unc_object_type (gnu_template_type, tem, xut_name,
debug_info_p); debug_info_p);
SET_TYPE_UNCONSTRAINED_ARRAY (tem, gnu_type); SET_TYPE_UNCONSTRAINED_ARRAY (tem, gnu_type);
......
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