mips.c (build_mips16_call_stub): On 64-bit targets, combine an SC return value into...
[official-gcc.git] / gcc / coretypes.h
blob03eb0decc4fbc08c6d1b42d602c99a5e0edcf279
1 /* GCC core type declarations.
2 Copyright (C) 2002, 2004, 2007 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 /* Provide forward declarations of core types which are referred to by
21 most of the compiler. This allows header files to use these types
22 (e.g. in function prototypes) without concern for whether the full
23 definitions are visible. Some other declarations that need to be
24 universally visible are here, too.
26 In the context of tconfig.h, most of these have special definitions
27 which prevent them from being used except in further type
28 declarations. This is a kludge; the right thing is to avoid
29 including the "tm.h" header set in the context of tconfig.h, but
30 we're not there yet. */
32 #ifndef GCC_CORETYPES_H
33 #define GCC_CORETYPES_H
35 #define GTY(x) /* nothing - marker for gengtype */
37 #ifndef USED_FOR_TARGET
39 struct bitmap_head_def;
40 typedef struct bitmap_head_def *bitmap;
41 typedef const struct bitmap_head_def *const_bitmap;
42 struct rtx_def;
43 typedef struct rtx_def *rtx;
44 typedef const struct rtx_def *const_rtx;
45 struct rtvec_def;
46 typedef struct rtvec_def *rtvec;
47 typedef const struct rtvec_def *const_rtvec;
48 union tree_node;
49 typedef union tree_node *tree;
50 typedef const union tree_node *const_tree;
51 union section;
52 typedef union section section;
54 /* The major intermediate representations of GCC. */
55 enum ir_type {
56 IR_GIMPLE,
57 IR_RTL_CFGRTL,
58 IR_RTL_CFGLAYOUT
61 /* Provide forward struct declaration so that we don't have to include
62 all of cpplib.h whenever a random prototype includes a pointer.
63 Note that the cpp_reader typedef remains part of cpplib.h. */
65 struct cpp_reader;
67 /* The thread-local storage model associated with a given VAR_DECL
68 or SYMBOL_REF. This isn't used much, but both trees and RTL refer
69 to it, so it's here. */
70 enum tls_model {
71 TLS_MODEL_NONE,
72 TLS_MODEL_GLOBAL_DYNAMIC,
73 TLS_MODEL_LOCAL_DYNAMIC,
74 TLS_MODEL_INITIAL_EXEC,
75 TLS_MODEL_LOCAL_EXEC
78 #else
80 struct _dont_use_rtx_here_;
81 struct _dont_use_rtvec_here_;
82 union _dont_use_tree_here_;
83 #define rtx struct _dont_use_rtx_here_ *
84 #define const_rtx struct _dont_use_rtx_here_ *
85 #define rtvec struct _dont_use_rtvec_here *
86 #define const_rtvec struct _dont_use_rtvec_here *
87 #define tree union _dont_use_tree_here_ *
88 #define const_tree union _dont_use_tree_here_ *
90 #endif
92 #endif /* coretypes.h */