aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2019-04-30 20:23:45 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2019-04-30 20:23:45 +0000
commit598f50d7891b420331f2027e60ba63824d335bad (patch)
treef1b9c4af86038992bfe1c5f2afe79dc1873aa6b0 /gcc/tree.h
parent41003284ed4f91dfa7d20afa00b9bace5feea4df (diff)
downloadgcc-598f50d7891b420331f2027e60ba63824d335bad.zip
gcc-598f50d7891b420331f2027e60ba63824d335bad.tar.gz
gcc-598f50d7891b420331f2027e60ba63824d335bad.tar.bz2
[GC PATCH] Correct TS marking of _EXPR nodes
https://gcc.gnu.org/ml/gcc-patches/2019-04/msg01266.html gcc/ * tree.h (MARK_TS_EXP): New. gcc/c-family/ * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR. gcc/cp/ * cp-objcp-common.c (cp_common_init_ts): Use MARK_TS_EXP for _EXPR nodes. Call c_common_init_ts. From-SVN: r270711
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index f030082..d65affe 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -114,6 +114,10 @@ as_internal_fn (combined_fn code)
(MARK_TS_DECL_WITH_VIS (C), \
tree_contains_struct[C][TS_DECL_NON_COMMON] = true)
+#define MARK_TS_EXP(C) \
+ (MARK_TS_TYPED (C), \
+ tree_contains_struct[C][TS_EXP] = true)
+
/* Returns the string representing CLASS. */
#define TREE_CODE_CLASS_STRING(CLASS)\