aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2013-11-11 16:55:29 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2013-11-11 16:55:29 +0000
commit1448093c327947d4b1a644c42ef82ce064d1dc31 (patch)
tree9d801bea0646b4030a6ef1115de2690dafea369c /gcc/tree.h
parent7008512d47e0b608da552569a5e2bb2eb1789bae (diff)
downloadgcc-1448093c327947d4b1a644c42ef82ce064d1dc31.zip
gcc-1448093c327947d4b1a644c42ef82ce064d1dc31.tar.gz
gcc-1448093c327947d4b1a644c42ef82ce064d1dc31.tar.bz2
tree.h (CONSTRUCTOR_NO_CLEARING): Define.
* tree.h (CONSTRUCTOR_NO_CLEARING): Define. * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it. * tree.def (CONSTRUCTOR): Likewise. * doc/generic.texi (CONSTRUCTOR): Likewise. Update description. * gimplify.c (gimplify_init_constructor): Do not clear the object when the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set. ada/ * gcc-interface/utils2.c (gnat_build_constructor): Also set the flag CONSTRUCTOR_NO_CLEARING on the constructor. From-SVN: r204677
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index c4b23d0..3633caf 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -957,6 +957,8 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int,
(&(*CONSTRUCTOR_ELTS (NODE))[IDX])
#define CONSTRUCTOR_NELTS(NODE) \
(vec_safe_length (CONSTRUCTOR_ELTS (NODE)))
+#define CONSTRUCTOR_NO_CLEARING(NODE) \
+ (CONSTRUCTOR_CHECK (NODE)->base.public_flag)
/* Iterate through the vector V of CONSTRUCTOR_ELT elements, yielding the
value of each element (stored within VAL). IX must be a scratch variable