]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/lto/lto-tree.h
Merge lto branch into trunk.
[thirdparty/gcc.git] / gcc / lto / lto-tree.h
CommitLineData
d7f09764
DN
1/* Language-dependent trees for LTO.
2 Copyright 2009 Free Software Foundation, Inc.
3 Contributed by CodeSourcery, Inc.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 3, or (at your option) any later
10version.
11
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING3. If not see
19<http://www.gnu.org/licenses/>. */
20
21#ifndef GCC_LTO_TREE_H
22#define GCC_LTO_TREE_H
23
24#include "plugin-api.h"
25
26struct GTY(()) lang_identifier
27{
28 struct tree_identifier base;
29};
30
31struct GTY(()) lang_decl
32{
33 int dummy; /* Added because ggc does not like empty structs. */
34};
35
36struct GTY(()) lang_type
37{
38 int dummy; /* Added because ggc does not like empty structs. */
39};
40
41struct GTY(()) language_function
42{
43 int dummy; /* Added because ggc does not like empty structs. */
44};
45
46enum lto_tree_node_structure_enum {
47 TS_LTO_GENERIC
48};
49
50union GTY((desc ("lto_tree_node_structure (&%h)"),
51 chain_next ("(union lang_tree_node *)TREE_CHAIN (&%h.generic)")))
52 lang_tree_node
53{
54 union tree_node GTY ((tag ("TS_LTO_GENERIC"),
55 desc ("tree_node_structure (&%h)"))) generic;
56};
57
58/* Vector to keep track of external variables we've seen so far. */
59extern GTY(()) VEC(tree,gc) *lto_global_var_decls;
60
61#endif /* GCC_LTO_TREE_H */