diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-12 04:09:57 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-12 04:09:57 +0000 |
commit | 2e3f487777bc08719871aed1a0807e9a969ab48d (patch) | |
tree | 0cb6f5299b432c6f23ca205a73d8654219b13413 /gcc/c-common.h | |
parent | 59ff7b6e271e2d9b3cd5df791e039d9c12d178e0 (diff) | |
download | gcc-2e3f487777bc08719871aed1a0807e9a969ab48d.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85849 138bc75d-0d04-0410-961f-82ee72b054a4
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 e8d245c88b1..1c9286ef7b7 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) |