aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-08-15 21:16:23 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2002-08-15 21:16:23 +0000
commit25587e40f5d35cc73b6351b140e4c3d90aed8f7c (patch)
treebe917cdfeaeec953b25fe411d7db833f292e9f3a /gcc/c-common.h
parent0053afb9651947ee0bb421501ba71f042981dcae (diff)
downloadgcc-25587e40f5d35cc73b6351b140e4c3d90aed8f7c.zip
gcc-25587e40f5d35cc73b6351b140e4c3d90aed8f7c.tar.gz
gcc-25587e40f5d35cc73b6351b140e4c3d90aed8f7c.tar.bz2
c-tree.h (skip_evaluation): Move declaration...
* 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. From-SVN: r56358
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 038b239..6968d70 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) \