Commit 006a5f38 by Jakub Jelinek Committed by Jakub Jelinek

dwarf2out.c (modified_type_die, [...]): Use DW_TAG_rvalue_reference_type even…

dwarf2out.c (modified_type_die, [...]): Use DW_TAG_rvalue_reference_type even for -gdwarf-4 -fno-debug-types-section.

	* dwarf2out.c (modified_type_die, gen_reference_type_die): Use
	DW_TAG_rvalue_reference_type even for
	-gdwarf-4 -fno-debug-types-section.

From-SVN: r174449
parent 6e96f98a
2011-05-30 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (modified_type_die, gen_reference_type_die): Use
DW_TAG_rvalue_reference_type even for
-gdwarf-4 -fno-debug-types-section.
2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/46728 PR tree-optimization/46728
......
...@@ -13031,7 +13031,7 @@ modified_type_die (tree type, int is_const_type, int is_volatile_type, ...@@ -13031,7 +13031,7 @@ modified_type_die (tree type, int is_const_type, int is_volatile_type,
} }
else if (code == REFERENCE_TYPE) else if (code == REFERENCE_TYPE)
{ {
if (TYPE_REF_IS_RVALUE (type) && use_debug_types) if (TYPE_REF_IS_RVALUE (type) && dwarf_version >= 4)
mod_type_die = new_die (DW_TAG_rvalue_reference_type, comp_unit_die (), mod_type_die = new_die (DW_TAG_rvalue_reference_type, comp_unit_die (),
type); type);
else else
...@@ -20686,7 +20686,7 @@ gen_reference_type_die (tree type, dw_die_ref context_die) ...@@ -20686,7 +20686,7 @@ gen_reference_type_die (tree type, dw_die_ref context_die)
{ {
dw_die_ref ref_die, scope_die = scope_die_for (type, context_die); dw_die_ref ref_die, scope_die = scope_die_for (type, context_die);
if (TYPE_REF_IS_RVALUE (type) && use_debug_types) if (TYPE_REF_IS_RVALUE (type) && dwarf_version >= 4)
ref_die = new_die (DW_TAG_rvalue_reference_type, scope_die, type); ref_die = new_die (DW_TAG_rvalue_reference_type, scope_die, type);
else else
ref_die = new_die (DW_TAG_reference_type, scope_die, type); ref_die = new_die (DW_TAG_reference_type, scope_die, 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