diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-15 21:16:23 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-15 21:16:23 +0000 |
commit | 93894129325de7967311711c445aff36dd64bb86 (patch) | |
tree | be917cdfeaeec953b25fe411d7db833f292e9f3a /gcc/c-common.h | |
parent | 54a7d407ca00dfb8484d45abbafdfbd46202127e (diff) | |
download | gcc-93894129325de7967311711c445aff36dd64bb86.tar.gz |
* c-tree.h (skip_evaluation): Move declaration...
* c-common.h: ... here.
* c-typeck.c (build_external_ref): Don't assemble_external nor
mark a tree as used if skip_evaluation is set.
* c-parse.in (typeof): New non-terminal to set skip_evaluation
around TYPEOF.
(typespec_nonreserved_nonattr): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56358 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index 038b23982e3..6968d70dac9 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -790,6 +790,11 @@ extern int warn_deprecated; extern int max_tinst_depth; +/* Nonzero means the expression being parsed will never be evaluated. + This is a count, since unevaluated expressions can nest. */ + +extern int skip_evaluation; + /* C types are partitioned into three subsets: object, function, and incomplete types. */ #define C_TYPE_OBJECT_P(type) \ |