diff options
author | Richard Henderson <rth@redhat.com> | 2004-08-11 21:09:57 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-08-11 21:09:57 -0700 |
commit | 174283a3c26828ee2bf0acd05f6350f439beefcc (patch) | |
tree | 0cb6f5299b432c6f23ca205a73d8654219b13413 /gcc/c-common.h | |
parent | 159319544b909404d2ba3997c58a0cbe6541030a (diff) | |
download | gcc-174283a3c26828ee2bf0acd05f6350f439beefcc.zip gcc-174283a3c26828ee2bf0acd05f6350f439beefcc.tar.gz gcc-174283a3c26828ee2bf0acd05f6350f439beefcc.tar.bz2 |
c-common.h (STATEMENT_LIST_HAS_LABEL): New.
* c-common.h (STATEMENT_LIST_HAS_LABEL): New.
* c-semantics.c (add_stmt): Set it.
* c-decl.c (finish_decl): Use it to create a new BIND_EXPR
before instantiating a variable sized type.
From-SVN: r85849
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index e8d245c..1c9286e 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -35,7 +35,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA STMT_IS_FULL_EXPR_P (in _STMT) STATEMENT_LIST_STMT_EXPR (in STATEMENT_LIST) 2: unused - 3: unused + 3: STATEMENT_LIST_HAS_LABEL (in STATEMENT_LIST) 4: unused */ @@ -708,6 +708,10 @@ extern void finish_file (void); #define STATEMENT_LIST_STMT_EXPR(NODE) \ TREE_LANG_FLAG_1 (STATEMENT_LIST_CHECK (NODE)) +/* Nonzero if a label has been added to the statement list. */ +#define STATEMENT_LIST_HAS_LABEL(NODE) \ + TREE_LANG_FLAG_3 (STATEMENT_LIST_CHECK (NODE)) + /* WHILE_STMT accessors. These give access to the condition of the while statement and the body of the while statement, respectively. */ #define WHILE_COND(NODE) TREE_OPERAND (WHILE_STMT_CHECK (NODE), 0) |