aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-04-20 10:33:47 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2010-04-20 10:33:47 +0200
commit1197ce8e5a17e9a543175bbefd1f58be1707fb23 (patch)
treeca3c2eaa773ac8ebec72826d5fd3ba0c0df9b99d /gcc/tree.h
parent72e2cf162959f344ec2e9a7488858a18574e3db1 (diff)
downloadgcc-1197ce8e5a17e9a543175bbefd1f58be1707fb23.zip
gcc-1197ce8e5a17e9a543175bbefd1f58be1707fb23.tar.gz
gcc-1197ce8e5a17e9a543175bbefd1f58be1707fb23.tar.bz2
tree.h (TYPE_REF_IS_RVALUE): Define.
* tree.h (TYPE_REF_IS_RVALUE): Define. * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die, should_move_die_to_comdat, prune_unused_types_walk): Handle DW_TAG_rvalue_reference_type like DW_TAG_reference_type. (modified_type_die, gen_reference_type_die): Emit DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type if TYPE_REF_IS_RVALUE and -gdwarf-4. * cp-tree.h (TYPE_REF_IS_RVALUE): Remove. * g++.dg/debug/dwarf2/rv1.C: New test. From-SVN: r158542
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 7d87256..f73be79 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -504,6 +504,9 @@ struct GTY(()) tree_common {
OMP_CLAUSE_PRIVATE_OUTER_REF in
OMP_CLAUSE_PRIVATE
+ TYPE_REF_IS_RVALUE in
+ REFERENCE_TYPE
+
protected_flag:
TREE_PROTECTED in
@@ -1347,6 +1350,10 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int,
/* Used in classes in C++. */
#define TREE_PROTECTED(NODE) ((NODE)->base.protected_flag)
+/* True if reference type NODE is a C++ rvalue reference. */
+#define TYPE_REF_IS_RVALUE(NODE) \
+ (REFERENCE_TYPE_CHECK (NODE)->base.private_flag)
+
/* Nonzero in a _DECL if the use of the name is defined as a
deprecated feature by __attribute__((deprecated)). */
#define TREE_DEPRECATED(NODE) \