summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-16 17:14:36 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-16 17:14:36 +0000
commitf726d6e8a0f28f69ee66cf121ce06cf55e28ca99 (patch)
tree07e3bec9cca58d6e11c079915fdc102d49ba66e7
parentca2751b645f00a5ed24db0807acc48a9fcacffc8 (diff)
downloadppe42-gcc-f726d6e8a0f28f69ee66cf121ce06cf55e28ca99.tar.gz
ppe42-gcc-f726d6e8a0f28f69ee66cf121ce06cf55e28ca99.zip
* cp-tree.h (enum tsubst_flags): Rename from enum tsubst_flags_t.
(tsubst_flags_t): Change typedef from enum type to int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146205 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/cp-tree.h8
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index c0fa5ba4995..1991ad6beac 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-16 Ian Lance Taylor <iant@google.com>
+
+ * cp-tree.h (enum tsubst_flags): Rename from enum tsubst_flags_t.
+ (tsubst_flags_t): Change typedef from enum type to int.
+
2009-04-16 Le-Chun Wu <lcwu@google.com>
* decl.c (check_initializer): Use TYPE_VECTOR_OPAQUE
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 849fdc736e4..e416edfe685 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -3566,7 +3566,7 @@ typedef enum linkage_kind {
} linkage_kind;
/* Bitmask flags to control type substitution. */
-typedef enum tsubst_flags_t {
+enum tsubst_flags {
tf_none = 0, /* nothing special */
tf_error = 1 << 0, /* give error messages */
tf_warning = 1 << 1, /* give warnings too */
@@ -3585,7 +3585,11 @@ typedef enum tsubst_flags_t {
when issuing other errors. */
/* Convenient substitution flags combinations. */
tf_warning_or_error = tf_warning | tf_error
-} tsubst_flags_t;
+};
+
+/* This type is used for parameters and variables which hold
+ combinations of the flags in enum tsubst_flags. */
+typedef int tsubst_flags_t;
/* The kind of checking we can do looking in a class hierarchy. */
typedef enum base_access {
OpenPOWER on IntegriCloud