dwarf2out.c (modified_type_die, [...]): Use DW_TAG_rvalue_reference_type even for...
authorJakub Jelinek <jakub@redhat.com>
Mon, 30 May 2011 19:21:26 +0000 (21:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 30 May 2011 19:21:26 +0000 (21:21 +0200)
* 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

gcc/ChangeLog
gcc/dwarf2out.c

index 410355c36f1e4806c35ce91b4ce093fbddc7259b..5e9badfde866bc63f4f21bdd7dc42a7b03efc91a 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        PR tree-optimization/46728
index 55453a3622c98ea631fc0adc4dbbc81d09bfce0f..7ec1e931eed523dab0a53318d167b810a4ce83de 100644 (file)
@@ -13031,7 +13031,7 @@ modified_type_die (tree type, int is_const_type, int is_volatile_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 (),
                                type);
       else
@@ -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);
 
-  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);
   else
     ref_die = new_die (DW_TAG_reference_type, scope_die, type);