Use backend interface for named types and array types.
[gcc.git] / gcc / go / ChangeLog
1 2011-05-04 Ian Lance Taylor <iant@google.com>
2
3 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
4 (Gcc_backend::fill_in_struct): New function.
5 (Gcc_backend::array_type): Implement.
6 (Gcc_backend::fill_in_array): New function.
7 (Gcc_backend::placeholder_pointer_type): New function.
8 (Gcc_backend::set_placeholder_pointer_type): New function.
9 (Gcc_backend::set_placeholder_function_type): New function.
10 (Gcc_backend::placeholder_struct_type): New function.
11 (Gcc_backend::set_placeholder_struct_type): New function.
12 (Gcc_backend::placeholder_array_type): New function.
13 (Gcc_backend::set_placeholder_array_type): New function.
14 (Gcc_backend::named_type): New function.
15 (Gcc_backend::circular_pointer_type): New function.
16 (Gcc_backend::is_circular_pointer_type): New function.
17
18 2011-04-26 Ian Lance Taylor <iant@google.com>
19
20 * go-gcc.cc (Gcc_backend::struct_type): Implement.
21
22 2011-04-25 Ian Lance Taylor <iant@google.com>
23
24 * go-gcc.cc (Gcc_backend::error_type): Implement.
25 (Gcc_backend::string_type): Remove.
26 (Gcc_backend::function_type): Change signature and implement.
27 (Gcc_backend::struct_type): Change signature.
28 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
29 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
30 (Gcc_backend::pointer_type): Check for error.
31 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
32
33 2011-04-25 Evan Shaw <edsrzf@gmail.com>
34
35 * go-gcc.c (class Gcc_tree): Make get_tree const.
36 (Gcc_backend::void_type): Implement.
37 (Gcc_backend::bool_type): Implement.
38 (Gcc_backend::integer_type): Implement.
39 (Gcc_backend::float_type): Implement.
40 (Gcc_backend::complex_type): New function.
41 (Gcc_backend::pointer_type): New function.
42 (Gcc_backend::make_type): New function.
43 (type_to_tree): New function.
44
45 2011-04-21 Ian Lance Taylor <iant@google.com>
46
47 * go-system.h (go_assert, go_unreachable): Define.
48
49 2011-04-19 Ian Lance Taylor <iant@google.com>
50
51 * go-system.h: Include "intl.h".
52 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
53 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
54 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
55
56 2011-04-19 Ian Lance Taylor <iant@google.com>
57
58 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
59
60 2011-04-19 Ian Lance Taylor <iant@google.com>
61
62 * go-gcc.cc (class Bblock): Define.
63 (Gcc_backend::if_statement): Change then_block and else_block to
64 Bblock*.
65 (Gcc_backend::block): New function.
66 (Gcc_backend::block_add_statements): New function.
67 (Gcc_backend::block_statement): New function.
68 (tree_to_block, block_to_tree): New functions.
69
70 2011-04-18 Ian Lance Taylor <iant@google.com>
71
72 * go-gcc.cc: Include "go-c.h".
73 (class Bvariable): Define.
74 (Gcc_backend::init_statement): New function.
75 (Gcc_backend::global_variable): New function.
76 (Gcc_backend::global_variable_set_init): New function.
77 (Gcc_backend::local_variable): New function.
78 (Gcc_backend::parameter_variable): New function.
79 (tree_to_type, var_to_tree): New functions.
80 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
81 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
82
83 2011-04-15 Ian Lance Taylor <iant@google.com>
84
85 * go-gcc.cc (Gcc_backend::compound_statement): New function.
86 (Gcc_backend::assignment_statement): Use error_statement.
87 (Gcc_backend::return_statement): Likewise.
88 (Gcc_backend::if_statement): Likewise.
89 (Gcc_backend::switch_statement): Likewise.
90 (Gcc_backend::statement_list): Likewise.
91
92 2011-04-14 Ian Lance Taylor <iant@google.com>
93
94 * go-gcc.cc (Backend::error_statement): New function.
95
96 2011-04-13 Ian Lance Taylor <iant@google.com>
97
98 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
99
100 2011-04-13 Ian Lance Taylor <iant@google.com>
101
102 * Make-lang.in (GO_OBJS): Add go/runtime.o.
103 (GO_RUNTIME_H): New variable.
104 (go/runtime.o): New target.
105 (go/gogo.o): Depend on $(GO_RUNTIME_H).
106 (go/statements.o): Likewise.
107
108 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
109
110 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
111 calling TREE_CHAIN.
112
113 2011-04-06 Ian Lance Taylor <iant@google.com>
114
115 * go-gcc.cc (if_statement): Use build3_loc.
116 (Gcc_backend::switch_statement): New function.
117 (Gcc_backend::statement_list): New function.
118
119 2011-04-06 Ian Lance Taylor <iant@google.com>
120
121 * go-gcc.cc (Gcc_backend::if_statement): New function.
122 (tree_to_stat): New function.
123 (expr_to_tree): Renamed from expression_to_tree.
124 (stat_to_tree): Renamed from statement_to_tree.
125
126 2011-04-06 Ian Lance Taylor <iant@google.com>
127
128 * go-gcc.cc (Gcc_backend::expression_statement): New function.
129
130 2011-04-04 Ian Lance Taylor <iant@google.com>
131
132 * go-gcc.c (class Blabel): Define.
133 (Gcc_backend::make_expression): New function.
134 (get_identifier_from_string): New function.
135 (Gcc_backend::label): New function.
136 (Gcc_backend::label_definition_statement): New function.
137 (Gcc_backend::goto_statement): New function.
138 (Gcc_backend::label_address): New function.
139 (expression_to_tree): New function.
140 * Make-lang.in (go/expressions.o): Depend on
141 go/gofrontend/backend.h.
142 (go/gogo.o): Likewise.
143
144 2011-04-04 Ian Lance Taylor <iant@google.com>
145
146 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
147 (class Bfunction): Define.
148 (Gcc_backend::assignment_statement): Rename from assignment.
149 Check for errors.
150 (Gcc_backend::return_statement): New function.
151 (tree_to_function): New function.
152 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
153 $(GIMPLE_H), and $(GO_GOGO_H).
154
155 2011-04-03 Ian Lance Taylor <iant@google.com>
156
157 * go-gcc.cc: New file.
158 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
159 (go/go-gcc.o): New target.
160 (go/go.o): Depend on go/gofrontend/backend.h.
161 (go/statements.o): Likewise.
162
163 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
164
165 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
166
167 2011-02-08 Ian Lance Taylor <iant@google.com>
168
169 * go-lang.c (go_langhook_init_options_struct): Set
170 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
171
172 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
173
174 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
175 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
176
177 2011-01-21 Ian Lance Taylor <iant@google.com>
178
179 * go-lang.c (go_langhook_init): Omit float_type_size when calling
180 go_create_gogo.
181 * go-c.h: Update declaration of go_create_gogo.
182
183 2011-01-13 Ian Lance Taylor <iant@google.com>
184
185 * go-backend.c: Include "rtl.h" and "target.h".
186 (go_imported_unsafe): New function.
187 * go-c.h (go_imported_unsafe): Declare.
188 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
189 (go/gogo-tree.o): Remove dependency on $(RTL_H).
190 (go/unsafe.o): Depend on $(GO_C_H).
191
192 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
193
194 PR go/47113
195 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
196 variable ‘field’ .
197
198 2010-12-21 Ian Lance Taylor <iant@google.com>
199
200 * Make-lang.in (check-go): Remove.
201 (lang_checks_parallelized): Add check-go.
202 (check_go_parallelize): Set.
203
204 2010-12-13 Ian Lance Taylor <iant@google.com>
205
206 * gospec.c (lang_specific_driver): Add a -o option if not linking
207 and there is no -o option already.
208
209 2010-12-07 Ian Lance Taylor <iant@google.com>
210
211 PR tree-optimization/46805
212 PR tree-optimization/46833
213 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
214
215 2010-12-06 Ian Lance Taylor <iant@google.com>
216
217 PR other/46789
218 PR bootstrap/46812
219 * go-lang.c (go_char_p): Define type and vectors.
220 (go_search_dirs): New static variable.
221 (go_langhook_handle_option): Use version and version/machine
222 directories for -L.
223 (go_langhook_post_options): Add non-specific -L paths.
224 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
225 DEFAULT_TARGET_MACHINE when compiling.
226 * gccgo.texi (Invoking gccgo): Only document -L for linking.
227 (Import and Export): Don't mention -L for finding import files.
228
229 2010-12-03 Ian Lance Taylor <iant@google.com>
230
231 PR bootstrap/46776
232 * go-backend.c: New file.
233 * go-c.h (go_type_alignment): Declare.
234 (go_field_alignment, go_trampoline_info): Declare.
235 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
236 (go/go-backend.o): New target.
237 (go/go-lang.o): Make dependencies match source file.
238 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
239 (go/gogo-tree.o): Don't depend on $(TM_H).
240
241 2010-12-03 Ian Lance Taylor <iant@google.com>
242
243 * config-lang.in (build_by_default): Set to no.
244
245 2010-12-02 Ian Lance Taylor <iant@google.com>
246
247 Go frontend added to gcc repository.