aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2019-08-13 15:02:30 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2019-08-13 15:02:30 +0000
commit82614ffbfdb57dcc490a752f0d398bbe2a774864 (patch)
tree10ce03d6aa40c5fb82145e078e53d9d132b151fa /gcc
parent8fc306e94b9eb85ec21697fedda1ea4aead751f8 (diff)
downloadgcc-82614ffbfdb57dcc490a752f0d398bbe2a774864.zip
gcc-82614ffbfdb57dcc490a752f0d398bbe2a774864.tar.gz
gcc-82614ffbfdb57dcc490a752f0d398bbe2a774864.tar.bz2
* cp-tree.h (DECL_MUTABLE_P): Use FIELD_DECL_CHECK.
From-SVN: r274381
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/cp-tree.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index e325825..5f1dff8 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2019-08-13 Marek Polacek <polacek@redhat.com>
+
+ * cp-tree.h (DECL_MUTABLE_P): Use FIELD_DECL_CHECK.
+
2019-08-10 Jakub Jelinek <jakub@redhat.com>
* parser.c (cp_parser_omp_clause_name): Parse device_type.
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 72ee1d6..bdb7778 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -3065,9 +3065,9 @@ struct GTY(()) lang_decl {
(DECL_NONSTATIC_MEMBER_FUNCTION_P (NODE) \
|| TREE_CODE (NODE) == FIELD_DECL)
-/* Nonzero for _DECL means that this member object type
+/* Nonzero for a FIELD_DECL means that this member object type
is mutable. */
-#define DECL_MUTABLE_P(NODE) (DECL_LANG_FLAG_0 (NODE))
+#define DECL_MUTABLE_P(NODE) (DECL_LANG_FLAG_0 (FIELD_DECL_CHECK (NODE)))
/* Nonzero for _DECL means that this constructor or conversion function is
non-converting. */