(CONDITIONAL_REGISTER_USAGE): When adding the PIC register to the fixed_regs
[official-gcc.git] / libcpp / include / cpp-id-data.h
blobbdeaeba5182b1568ca689d1d75fefa8ceaa2691b
1 /* Structures that hang off cpp_identifier, for PCH.
2 Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the
7 Free Software Foundation; either version 2, or (at your option) any
8 later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 #include "cpplib.h"
21 #ifndef HAVE_UCHAR
22 typedef unsigned char uchar;
23 #endif
24 #define U (const uchar *) /* Intended use: U"string" */
26 /* Chained list of answers to an assertion. */
27 struct answer GTY(())
29 struct answer *next;
30 unsigned int count;
31 cpp_token GTY ((length ("%h.count"))) first[1];
34 /* Each macro definition is recorded in a cpp_macro structure.
35 Variadic macros cannot occur with traditional cpp. */
36 struct cpp_macro GTY(())
38 /* Parameters, if any. */
39 cpp_hashnode ** GTY ((nested_ptr (union tree_node,
40 "%h ? CPP_HASHNODE (GCC_IDENT_TO_HT_IDENT (%h)) : NULL",
41 "%h ? HT_IDENT_TO_GCC_IDENT (HT_NODE (%h)) : NULL"),
42 length ("%h.paramc")))
43 params;
45 /* Replacement tokens (ISO) or replacement text (traditional). See
46 comment at top of cpptrad.c for how traditional function-like
47 macros are encoded. */
48 union cpp_macro_u
50 cpp_token * GTY ((tag ("0"), length ("%0.count"))) tokens;
51 const uchar * GTY ((tag ("1"))) text;
52 } GTY ((desc ("%1.traditional"))) exp;
54 /* Definition line number. */
55 source_location line;
57 /* Number of tokens in expansion, or bytes for traditional macros. */
58 unsigned int count;
60 /* Number of parameters. */
61 unsigned short paramc;
63 /* If a function-like macro. */
64 unsigned int fun_like : 1;
66 /* If a variadic macro. */
67 unsigned int variadic : 1;
69 /* If macro defined in system header. */
70 unsigned int syshdr : 1;
72 /* Nonzero if it has been expanded or had its existence tested. */
73 unsigned int used : 1;
75 /* Indicate which field of 'exp' is in use. */
76 unsigned int traditional : 1;