269d89a2b6cf2ce6a0cd093e36057b1a8e3d24a4
[gcc.git] / gcc / go / ChangeLog
1 2011-08-15 Gabriel Charette <gchare@google.com>
2
3 * gofrontend/lex.cc (Lex::location): Update to use
4 linemap_position_for_column instead.
5 (Lex::earlier_location): Likewise.
6
7 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8
9 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
10
11 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
12
13 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
14 (go/ast-dump.o): New target.
15 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
16 (go/statements.o): Likewise.
17
18 2011-07-06 Richard Guenther <rguenther@suse.de>
19
20 * go-lang.c (go_langhook_init):
21 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
22
23 2011-06-14 Joseph Myers <joseph@codesourcery.com>
24
25 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
26 dependencies.
27 * go-backend.c: Include common/common-target.h.
28 (go_write_export_data): Use targetm_common.have_named_sections.
29 * go-lang.c: Include common/common-target.h.
30 (go_langhook_init_options_struct): Use
31 targetm_common.supports_split_stack.
32
33 2011-06-13 Ian Lance Taylor <iant@google.com>
34
35 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
36
37 2011-06-10 Ian Lance Taylor <iant@google.com>
38
39 * go-gcc.cc: Include "toplev.h".
40 (Gcc_backend::immutable_struct): New function.
41 (Gcc_backend::immutable_struct_set_init): New function.
42 (Gcc_backend::immutable_struct_reference): New function.
43 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
44
45 2011-06-09 Ian Lance Taylor <iant@google.com>
46
47 * go-gcc.cc (Gcc_backend::zero_expression): New function.
48
49 2011-06-07 Richard Guenther <rguenther@suse.de>
50
51 * go-lang.c (go_langhook_init): Do not set
52 size_type_node or call set_sizetype.
53
54 2011-05-27 Ian Lance Taylor <iant@google.com>
55
56 * go-backend.c: Include "output.h".
57 (go_write_export_data): New function.
58 * go-c.h (go_write_export_data): Declare.
59 * Make-lang.in (go/go-backend.o): Depend on output.h.
60 (go/export.o): Depend on $(GO_C_H). Do not depend on
61 $(MACHMODE_H), output.h, or $(TARGET_H).
62
63 2011-05-24 Joseph Myers <joseph@codesourcery.com>
64
65 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
66 (gccgo$(exeext)): Use libcommon-target.a.
67
68 2011-05-20 Joseph Myers <joseph@codesourcery.com>
69
70 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
71
72 2011-05-13 Ian Lance Taylor <iant@google.com>
73
74 * go-gcc.cc (Gcc_backend::function_type): When building a struct
75 for multiple results, check that all fields types have a size.
76 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
77
78 2011-05-12 Ian Lance Taylor <iant@google.com>
79
80 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
81 parameter.
82 (Gcc_backend::parameter_variable): Likewise.
83
84 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
85
86 * go-lang.c (global_bindings_p): Return bool and simplify.
87
88 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
89
90 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
91
92 2011-05-04 Ian Lance Taylor <iant@google.com>
93
94 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
95 (Gcc_backend::fill_in_struct): New function.
96 (Gcc_backend::array_type): Implement.
97 (Gcc_backend::fill_in_array): New function.
98 (Gcc_backend::placeholder_pointer_type): New function.
99 (Gcc_backend::set_placeholder_pointer_type): New function.
100 (Gcc_backend::set_placeholder_function_type): New function.
101 (Gcc_backend::placeholder_struct_type): New function.
102 (Gcc_backend::set_placeholder_struct_type): New function.
103 (Gcc_backend::placeholder_array_type): New function.
104 (Gcc_backend::set_placeholder_array_type): New function.
105 (Gcc_backend::named_type): New function.
106 (Gcc_backend::circular_pointer_type): New function.
107 (Gcc_backend::is_circular_pointer_type): New function.
108
109 2011-04-26 Ian Lance Taylor <iant@google.com>
110
111 * go-gcc.cc (Gcc_backend::struct_type): Implement.
112
113 2011-04-25 Ian Lance Taylor <iant@google.com>
114
115 * go-gcc.cc (Gcc_backend::error_type): Implement.
116 (Gcc_backend::string_type): Remove.
117 (Gcc_backend::function_type): Change signature and implement.
118 (Gcc_backend::struct_type): Change signature.
119 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
120 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
121 (Gcc_backend::pointer_type): Check for error.
122 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
123
124 2011-04-25 Evan Shaw <edsrzf@gmail.com>
125
126 * go-gcc.c (class Gcc_tree): Make get_tree const.
127 (Gcc_backend::void_type): Implement.
128 (Gcc_backend::bool_type): Implement.
129 (Gcc_backend::integer_type): Implement.
130 (Gcc_backend::float_type): Implement.
131 (Gcc_backend::complex_type): New function.
132 (Gcc_backend::pointer_type): New function.
133 (Gcc_backend::make_type): New function.
134 (type_to_tree): New function.
135
136 2011-04-21 Ian Lance Taylor <iant@google.com>
137
138 * go-system.h (go_assert, go_unreachable): Define.
139
140 2011-04-19 Ian Lance Taylor <iant@google.com>
141
142 * go-system.h: Include "intl.h".
143 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
144 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
145 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
146
147 2011-04-19 Ian Lance Taylor <iant@google.com>
148
149 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
150
151 2011-04-19 Ian Lance Taylor <iant@google.com>
152
153 * go-gcc.cc (class Bblock): Define.
154 (Gcc_backend::if_statement): Change then_block and else_block to
155 Bblock*.
156 (Gcc_backend::block): New function.
157 (Gcc_backend::block_add_statements): New function.
158 (Gcc_backend::block_statement): New function.
159 (tree_to_block, block_to_tree): New functions.
160
161 2011-04-18 Ian Lance Taylor <iant@google.com>
162
163 * go-gcc.cc: Include "go-c.h".
164 (class Bvariable): Define.
165 (Gcc_backend::init_statement): New function.
166 (Gcc_backend::global_variable): New function.
167 (Gcc_backend::global_variable_set_init): New function.
168 (Gcc_backend::local_variable): New function.
169 (Gcc_backend::parameter_variable): New function.
170 (tree_to_type, var_to_tree): New functions.
171 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
172 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
173
174 2011-04-15 Ian Lance Taylor <iant@google.com>
175
176 * go-gcc.cc (Gcc_backend::compound_statement): New function.
177 (Gcc_backend::assignment_statement): Use error_statement.
178 (Gcc_backend::return_statement): Likewise.
179 (Gcc_backend::if_statement): Likewise.
180 (Gcc_backend::switch_statement): Likewise.
181 (Gcc_backend::statement_list): Likewise.
182
183 2011-04-14 Ian Lance Taylor <iant@google.com>
184
185 * go-gcc.cc (Backend::error_statement): New function.
186
187 2011-04-13 Ian Lance Taylor <iant@google.com>
188
189 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
190
191 2011-04-13 Ian Lance Taylor <iant@google.com>
192
193 * Make-lang.in (GO_OBJS): Add go/runtime.o.
194 (GO_RUNTIME_H): New variable.
195 (go/runtime.o): New target.
196 (go/gogo.o): Depend on $(GO_RUNTIME_H).
197 (go/statements.o): Likewise.
198
199 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
200
201 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
202 calling TREE_CHAIN.
203
204 2011-04-06 Ian Lance Taylor <iant@google.com>
205
206 * go-gcc.cc (if_statement): Use build3_loc.
207 (Gcc_backend::switch_statement): New function.
208 (Gcc_backend::statement_list): New function.
209
210 2011-04-06 Ian Lance Taylor <iant@google.com>
211
212 * go-gcc.cc (Gcc_backend::if_statement): New function.
213 (tree_to_stat): New function.
214 (expr_to_tree): Renamed from expression_to_tree.
215 (stat_to_tree): Renamed from statement_to_tree.
216
217 2011-04-06 Ian Lance Taylor <iant@google.com>
218
219 * go-gcc.cc (Gcc_backend::expression_statement): New function.
220
221 2011-04-04 Ian Lance Taylor <iant@google.com>
222
223 * go-gcc.c (class Blabel): Define.
224 (Gcc_backend::make_expression): New function.
225 (get_identifier_from_string): New function.
226 (Gcc_backend::label): New function.
227 (Gcc_backend::label_definition_statement): New function.
228 (Gcc_backend::goto_statement): New function.
229 (Gcc_backend::label_address): New function.
230 (expression_to_tree): New function.
231 * Make-lang.in (go/expressions.o): Depend on
232 go/gofrontend/backend.h.
233 (go/gogo.o): Likewise.
234
235 2011-04-04 Ian Lance Taylor <iant@google.com>
236
237 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
238 (class Bfunction): Define.
239 (Gcc_backend::assignment_statement): Rename from assignment.
240 Check for errors.
241 (Gcc_backend::return_statement): New function.
242 (tree_to_function): New function.
243 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
244 $(GIMPLE_H), and $(GO_GOGO_H).
245
246 2011-04-03 Ian Lance Taylor <iant@google.com>
247
248 * go-gcc.cc: New file.
249 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
250 (go/go-gcc.o): New target.
251 (go/go.o): Depend on go/gofrontend/backend.h.
252 (go/statements.o): Likewise.
253
254 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
255
256 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
257
258 2011-02-08 Ian Lance Taylor <iant@google.com>
259
260 * go-lang.c (go_langhook_init_options_struct): Set
261 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
262
263 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
264
265 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
266 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
267
268 2011-01-21 Ian Lance Taylor <iant@google.com>
269
270 * go-lang.c (go_langhook_init): Omit float_type_size when calling
271 go_create_gogo.
272 * go-c.h: Update declaration of go_create_gogo.
273
274 2011-01-13 Ian Lance Taylor <iant@google.com>
275
276 * go-backend.c: Include "rtl.h" and "target.h".
277 (go_imported_unsafe): New function.
278 * go-c.h (go_imported_unsafe): Declare.
279 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
280 (go/gogo-tree.o): Remove dependency on $(RTL_H).
281 (go/unsafe.o): Depend on $(GO_C_H).
282
283 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
284
285 PR go/47113
286 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
287 variable ‘field’ .
288
289 2010-12-21 Ian Lance Taylor <iant@google.com>
290
291 * Make-lang.in (check-go): Remove.
292 (lang_checks_parallelized): Add check-go.
293 (check_go_parallelize): Set.
294
295 2010-12-13 Ian Lance Taylor <iant@google.com>
296
297 * gospec.c (lang_specific_driver): Add a -o option if not linking
298 and there is no -o option already.
299
300 2010-12-07 Ian Lance Taylor <iant@google.com>
301
302 PR tree-optimization/46805
303 PR tree-optimization/46833
304 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
305
306 2010-12-06 Ian Lance Taylor <iant@google.com>
307
308 PR other/46789
309 PR bootstrap/46812
310 * go-lang.c (go_char_p): Define type and vectors.
311 (go_search_dirs): New static variable.
312 (go_langhook_handle_option): Use version and version/machine
313 directories for -L.
314 (go_langhook_post_options): Add non-specific -L paths.
315 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
316 DEFAULT_TARGET_MACHINE when compiling.
317 * gccgo.texi (Invoking gccgo): Only document -L for linking.
318 (Import and Export): Don't mention -L for finding import files.
319
320 2010-12-03 Ian Lance Taylor <iant@google.com>
321
322 PR bootstrap/46776
323 * go-backend.c: New file.
324 * go-c.h (go_type_alignment): Declare.
325 (go_field_alignment, go_trampoline_info): Declare.
326 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
327 (go/go-backend.o): New target.
328 (go/go-lang.o): Make dependencies match source file.
329 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
330 (go/gogo-tree.o): Don't depend on $(TM_H).
331
332 2010-12-03 Ian Lance Taylor <iant@google.com>
333
334 * config-lang.in (build_by_default): Set to no.
335
336 2010-12-02 Ian Lance Taylor <iant@google.com>
337
338 Go frontend added to gcc repository.