2013-05-27 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / lto / lto-tree.h
blob53c8b68b24d1b2b806732bd71680183b2aca8e38
1 /* Language-dependent trees for LTO.
2 Copyright (C) 2009-2013 Free Software Foundation, Inc.
3 Contributed by CodeSourcery, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
10 version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 #ifndef GCC_LTO_TREE_H
22 #define GCC_LTO_TREE_H
24 #include "plugin-api.h"
26 struct GTY(()) lang_identifier
28 struct tree_identifier base;
31 struct GTY((variable_size)) lang_decl
33 int dummy; /* Added because ggc does not like empty structs. */
36 struct GTY((variable_size)) lang_type
38 int dummy; /* Added because ggc does not like empty structs. */
41 struct GTY(()) language_function
43 int dummy; /* Added because ggc does not like empty structs. */
46 enum lto_tree_node_structure_enum {
47 TS_LTO_GENERIC
50 union GTY((desc ("lto_tree_node_structure (&%h)"),
51 chain_next ("CODE_CONTAINS_STRUCT (TREE_CODE (&%h.generic), TS_COMMON) ? ((union lang_tree_node *) TREE_CHAIN (&%h.generic)) : NULL")))
52 lang_tree_node
54 union tree_node GTY ((tag ("TS_LTO_GENERIC"),
55 desc ("tree_node_structure (&%h)"))) generic;
58 #endif /* GCC_LTO_TREE_H */