1 |
280 |
jeremybenn |
/* This file contains the definitions and documentation for the
|
2 |
|
|
additional tree codes used in the GNU C compiler (see tree.def
|
3 |
|
|
for the standard codes).
|
4 |
|
|
Copyright (C) 1987, 1988, 1990, 1993, 1997, 1998,
|
5 |
|
|
1999, 2000, 2001, 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
|
6 |
|
|
Written by Benjamin Chelf
|
7 |
|
|
|
8 |
|
|
This file is part of GCC.
|
9 |
|
|
|
10 |
|
|
GCC is free software; you can redistribute it and/or modify it under
|
11 |
|
|
the terms of the GNU General Public License as published by the Free
|
12 |
|
|
Software Foundation; either version 3, or (at your option) any later
|
13 |
|
|
version.
|
14 |
|
|
|
15 |
|
|
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
|
16 |
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
17 |
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
18 |
|
|
for more details.
|
19 |
|
|
|
20 |
|
|
You should have received a copy of the GNU General Public License
|
21 |
|
|
along with GCC; see the file COPYING3. If not see
|
22 |
|
|
. */
|
23 |
|
|
|
24 |
|
|
/* Tree nodes used in the C frontend. These are also shared with the
|
25 |
|
|
C++ and Objective C frontends. */
|
26 |
|
|
|
27 |
|
|
/* A C_MAYBE_CONST_EXPR, currently only used for C and Objective C,
|
28 |
|
|
tracks information about constancy of an expression and VLA type
|
29 |
|
|
sizes or VM expressions from typeof that need to be evaluated
|
30 |
|
|
before the main expression. It is used during parsing and removed
|
31 |
|
|
in c_fully_fold. C_MAYBE_CONST_EXPR_PRE is the expression to
|
32 |
|
|
evaluate first, if not NULL; C_MAYBE_CONST_EXPR_EXPR is the main
|
33 |
|
|
expression. If C_MAYBE_CONST_EXPR_INT_OPERANDS is set then the
|
34 |
|
|
expression may be used in an unevaluated part of an integer
|
35 |
|
|
constant expression, but not in an evaluated part. If
|
36 |
|
|
C_MAYBE_CONST_EXPR_NON_CONST is set then the expression contains
|
37 |
|
|
something that cannot occur in an evaluated part of a constant
|
38 |
|
|
expression (or outside of sizeof in C90 mode); otherwise it does
|
39 |
|
|
not. */
|
40 |
|
|
DEFTREECODE (C_MAYBE_CONST_EXPR, "c_maybe_const_expr", tcc_expression, 2)
|
41 |
|
|
|
42 |
|
|
/* An EXCESS_PRECISION_EXPR, currently only used for C and Objective
|
43 |
|
|
C, represents an expression evaluated in greater range or precision
|
44 |
|
|
than its type. The type of the EXCESS_PRECISION_EXPR is the
|
45 |
|
|
semantic type while the operand represents what is actually being
|
46 |
|
|
evaluated. */
|
47 |
|
|
DEFTREECODE (EXCESS_PRECISION_EXPR, "excess_precision_expr", tcc_expression, 1)
|
48 |
|
|
|
49 |
|
|
/*
|
50 |
|
|
Local variables:
|
51 |
|
|
mode:c
|
52 |
|
|
End:
|
53 |
|
|
*/
|