diff options
author | Faisal Abbas <90.abbasfaisal@gmail.com> | 2022-07-30 20:54:06 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-08-25 12:40:26 +0100 |
commit | c628a66a92f72add62608c2c24cf0ec4c5ae45af (patch) | |
tree | 6d9dbd42ab1dcbc9b5287a1800bbb075edeb829f /gcc/rust/backend/rust-tree.h | |
parent | e8e58d54db23acc03bba3bd9a89cfe35cf3c2ba3 (diff) | |
download | gcc-c628a66a92f72add62608c2c24cf0ec4c5ae45af.zip gcc-c628a66a92f72add62608c2c24cf0ec4c5ae45af.tar.gz gcc-c628a66a92f72add62608c2c24cf0ec4c5ae45af.tar.bz2 |
rust-constexpr.cc: port over more cases to eval_constant_expression().
Its possible many of them are not useful for Rust so we can remove them
in the clean up expected later.
Diffstat (limited to 'gcc/rust/backend/rust-tree.h')
-rw-r--r-- | gcc/rust/backend/rust-tree.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-tree.h b/gcc/rust/backend/rust-tree.h index d4b7d86..966dbeb 100644 --- a/gcc/rust/backend/rust-tree.h +++ b/gcc/rust/backend/rust-tree.h @@ -1263,6 +1263,12 @@ extern GTY (()) tree cp_global_trees[CPTI_MAX]; in ascending tree code order. */ #define TYPE_PTROB_P(NODE) (TYPE_PTR_P (NODE) && TYPE_OBJ_P (TREE_TYPE (NODE))) +/* True if this CONSTRUCTOR contains PLACEHOLDER_EXPRs referencing the + CONSTRUCTOR's type not nested inside another CONSTRUCTOR marked with + CONSTRUCTOR_PLACEHOLDER_BOUNDARY. */ +#define CONSTRUCTOR_PLACEHOLDER_BOUNDARY(NODE) \ + (TREE_LANG_FLAG_5 (CONSTRUCTOR_CHECK (NODE))) + #if defined ENABLE_TREE_CHECKING #define LANG_DECL_MIN_CHECK(NODE) \ |