summaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-04-19 09:48:46 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2010-04-19 09:48:46 +0200
commit5a2fa9e8bf068aaacb57627c058b0d5891763857 (patch)
treef9163000e53082256164d9a61e169b2713881111 /gcc/tree.h
parent6e46695631394f346c197cc89ad72233ccfca130 (diff)
downloadgcc-5a2fa9e8bf068aaacb57627c058b0d5891763857.tar.gz
tree.h (ENUM_IS_SCOPED): Define.
* tree.h (ENUM_IS_SCOPED): Define. * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class for ENUM_IS_SCOPED enums. cp/ * cp-tree.h (SCOPED_ENUM_P, UNSCOPED_ENUM_P, SET_SCOPED_ENUM_P): Use ENUM_IS_SCOPED bit instead of TYPE_LANG_FLAG_5. testsuite/ * g++.dg/debug/dwarf2/enum1.C: New test. From-SVN: r158505
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index d900dc08638..7d8725639a0 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -457,6 +457,9 @@ struct GTY(()) tree_common {
CALL_CANNOT_INLINE_P in
CALL_EXPR
+
+ ENUM_IS_SCOPED in
+ ENUMERAL_TYPE
public_flag:
@@ -1162,6 +1165,9 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int,
/* Used to mark a CALL_EXPR as not suitable for inlining. */
#define CALL_CANNOT_INLINE_P(NODE) (CALL_EXPR_CHECK (NODE)->base.static_flag)
+/* Used to mark scoped enums. */
+#define ENUM_IS_SCOPED(NODE) (ENUMERAL_TYPE_CHECK (NODE)->base.static_flag)
+
/* In an expr node (usually a conversion) this means the node was made
implicitly and should not lead to any sort of warning. In a decl node,
warnings concerning the decl should be suppressed. This is used at