diff options
author | Richard Henderson <rth@redhat.com> | 2004-08-22 14:58:48 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-08-22 14:58:48 -0700 |
commit | 7f5e63076a3e596e2dd88825f0fe2659c20a5e84 (patch) | |
tree | 8c78d03d629c9690690dd3a65b9e2d84e426d6dd /gcc/tree.h | |
parent | f8d0aee5c105df1c5d073a9a91fb467cd603f600 (diff) | |
download | gcc-7f5e63076a3e596e2dd88825f0fe2659c20a5e84.zip gcc-7f5e63076a3e596e2dd88825f0fe2659c20a5e84.tar.gz gcc-7f5e63076a3e596e2dd88825f0fe2659c20a5e84.tar.bz2 |
tree.h (SAVE_EXPR_RESOLVED_P): New.
* tree.h (SAVE_EXPR_RESOLVED_P): New.
* gimplify.c (gimplify_save_expr): Use it.
* expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
on the temporary variable.
From-SVN: r86387
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -232,6 +232,8 @@ struct tree_common GTY(()) ASM_EXPR TYPE_CACHED_VALUES_P in ..._TYPE + SAVE_EXPR_RESOLVED_P in + SAVE_EXPR private_flag: @@ -788,6 +790,11 @@ extern void tree_operand_check_failed (int, enum tree_code, of cached values, or is something else. */ #define TYPE_CACHED_VALUES_P(NODE) (TYPE_CHECK(NODE)->common.public_flag) +/* In a SAVE_EXPR, indicates that the original expression has already + been substituted with a VAR_DECL that contains the value. */ +#define SAVE_EXPR_RESOLVED_P(NODE) \ + (TREE_CHECK (NODE, SAVE_EXPR)->common.public_flag) + /* In any expression, decl, or constant, nonzero means it has side effects or reevaluation of the whole expression could produce a different value. This is set if any subexpression is a function call, a side effect or a |