gospec.c (lang_specific_driver): If linking, and no -o option was used, add one.
[gcc.git] / gcc / go / ChangeLog
1 2012-02-17 Ian Lance Taylor <iant@google.com>
2
3 * gospec.c (lang_specific_driver): If linking, and no -o option
4 was used, add one.
5
6 2012-02-14 Ian Lance Taylor <iant@google.com>
7
8 PR go/48411
9 * Make-lang.in (gccgo-cross$(exeext)): New target.
10 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
11 gccgo$(exeext).
12 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
13 gccgo-cross$(exeext) does not exist.
14
15 2012-02-07 Ian Lance Taylor <iant@google.com>
16
17 * gccgo.texi (Function Names): Document //extern instead of
18 __asm__.
19
20 2012-02-01 Jakub Jelinek <jakub@redhat.com>
21
22 PR target/52079
23 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
24 return build_nonstandard_integer_type result if possible.
25
26 2012-01-21 Ian Lance Taylor <iant@google.com>
27
28 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
29 (Gcc_backend::type_alignment): Likewise.
30 (Gcc_backend::type_field_alignment): Likewise.
31 (Gcc_backend::type_field_offset): Likewise.
32
33 2012-01-20 Ian Lance Taylor <iant@google.com>
34
35 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
36 be empty.
37 (Gcc_backend::set_placeholder_struct_type): Likewise.
38
39 2012-01-17 Ian Lance Taylor <iant@google.com>
40
41 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
42 BASE.s rather than -o BASE.o.
43
44 2012-01-11 Ian Lance Taylor <iant@google.com>
45
46 * go-lang.c (go_langhook_init): Initialize void_list_node before
47 calling go_create_gogo.
48
49 2012-01-10 Ian Lance Taylor <iant@google.com>
50
51 * go-gcc.cc (Gcc_backend::type_size): New function.
52 (Gcc_backend::type_alignment): New function.
53 (Gcc_backend::type_field_alignment): New function.
54 (Gcc_backend::type_field_offset): New function.
55 * go-backend.c (go_type_alignment): Remove.
56 * go-c.h (go_type_alignment): Don't declare.
57
58 2011-12-27 Ian Lance Taylor <iant@google.com>
59
60 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
61 build_distinct_type_copy rather than build_variant_type_copy.
62 (Gcc_backend::set_placeholder_array_type): Likewise.
63 (Gcc_backend::named_type): Add special handling for builtin
64 basic types.
65
66 2011-12-22 Ian Lance Taylor <iant@google.com>
67
68 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
69 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
70 (Gcc_backend::set_placeholder_struct_type): Likewise.
71 (Gcc_backend::set_placeholder_array_type): Likewise.
72 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
73
74 2011-12-13 Ian Lance Taylor <iant@google.com>
75
76 * go-backend.c: #include "simple-object.h" and "intl.h".
77 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
78 (GO_EXPORT_SECTION_NAME): Likewise.
79 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
80 (go_read_export_data): New function.
81 * go-c.h (go_read_export_data): Declare.
82
83 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
84 Ian Lance Taylor <iant@google.com>
85
86 * go-location.h: New file.
87 * go-linemap.cc: New file.
88 * go-gcc.cc: Change all uses of source_location to Location.
89 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
90 (GO_LINEMAP_H): New variable.
91 (GO_LEX_H): Use $(GO_LINEMAP_H).
92 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
93 (go/go-linemap.o): New target.
94
95 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
96
97 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
98
99 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
100
101 * lang.opt: Add fgo-optimize-.
102 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
103 * go-c.h (go_enable_optimize): Declare.
104 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
105 (GO_EXPORT_H): Define.
106 (GO_IMPORT_H): Add $(GO_EXPORT_H).
107 (GO_AST_DUMP_H): Define.
108 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
109 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
110 (go/types.o): Likewise.
111 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
112 (go/go-optimize.o): New target.
113
114 2011-08-24 Joseph Myers <joseph@codesourcery.com>
115
116 * Make-lang.in (CFLAGS-go/go-lang.o): New.
117 (go/go-lang.o): Remove explicit compilation rule.
118
119 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
120
121 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
122
123 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
124
125 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
126 (go/ast-dump.o): New target.
127 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
128 (go/statements.o): Likewise.
129
130 2011-07-06 Richard Guenther <rguenther@suse.de>
131
132 * go-lang.c (go_langhook_init):
133 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
134
135 2011-06-14 Joseph Myers <joseph@codesourcery.com>
136
137 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
138 dependencies.
139 * go-backend.c: Include common/common-target.h.
140 (go_write_export_data): Use targetm_common.have_named_sections.
141 * go-lang.c: Include common/common-target.h.
142 (go_langhook_init_options_struct): Use
143 targetm_common.supports_split_stack.
144
145 2011-06-13 Ian Lance Taylor <iant@google.com>
146
147 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
148
149 2011-06-10 Ian Lance Taylor <iant@google.com>
150
151 * go-gcc.cc: Include "toplev.h".
152 (Gcc_backend::immutable_struct): New function.
153 (Gcc_backend::immutable_struct_set_init): New function.
154 (Gcc_backend::immutable_struct_reference): New function.
155 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
156
157 2011-06-09 Ian Lance Taylor <iant@google.com>
158
159 * go-gcc.cc (Gcc_backend::zero_expression): New function.
160
161 2011-06-07 Richard Guenther <rguenther@suse.de>
162
163 * go-lang.c (go_langhook_init): Do not set
164 size_type_node or call set_sizetype.
165
166 2011-05-27 Ian Lance Taylor <iant@google.com>
167
168 * go-backend.c: Include "output.h".
169 (go_write_export_data): New function.
170 * go-c.h (go_write_export_data): Declare.
171 * Make-lang.in (go/go-backend.o): Depend on output.h.
172 (go/export.o): Depend on $(GO_C_H). Do not depend on
173 $(MACHMODE_H), output.h, or $(TARGET_H).
174
175 2011-05-24 Joseph Myers <joseph@codesourcery.com>
176
177 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
178 (gccgo$(exeext)): Use libcommon-target.a.
179
180 2011-05-20 Joseph Myers <joseph@codesourcery.com>
181
182 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
183
184 2011-05-13 Ian Lance Taylor <iant@google.com>
185
186 * go-gcc.cc (Gcc_backend::function_type): When building a struct
187 for multiple results, check that all fields types have a size.
188 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
189
190 2011-05-12 Ian Lance Taylor <iant@google.com>
191
192 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
193 parameter.
194 (Gcc_backend::parameter_variable): Likewise.
195
196 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
197
198 * go-lang.c (global_bindings_p): Return bool and simplify.
199
200 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
201
202 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
203
204 2011-05-04 Ian Lance Taylor <iant@google.com>
205
206 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
207 (Gcc_backend::fill_in_struct): New function.
208 (Gcc_backend::array_type): Implement.
209 (Gcc_backend::fill_in_array): New function.
210 (Gcc_backend::placeholder_pointer_type): New function.
211 (Gcc_backend::set_placeholder_pointer_type): New function.
212 (Gcc_backend::set_placeholder_function_type): New function.
213 (Gcc_backend::placeholder_struct_type): New function.
214 (Gcc_backend::set_placeholder_struct_type): New function.
215 (Gcc_backend::placeholder_array_type): New function.
216 (Gcc_backend::set_placeholder_array_type): New function.
217 (Gcc_backend::named_type): New function.
218 (Gcc_backend::circular_pointer_type): New function.
219 (Gcc_backend::is_circular_pointer_type): New function.
220
221 2011-04-26 Ian Lance Taylor <iant@google.com>
222
223 * go-gcc.cc (Gcc_backend::struct_type): Implement.
224
225 2011-04-25 Ian Lance Taylor <iant@google.com>
226
227 * go-gcc.cc (Gcc_backend::error_type): Implement.
228 (Gcc_backend::string_type): Remove.
229 (Gcc_backend::function_type): Change signature and implement.
230 (Gcc_backend::struct_type): Change signature.
231 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
232 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
233 (Gcc_backend::pointer_type): Check for error.
234 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
235
236 2011-04-25 Evan Shaw <edsrzf@gmail.com>
237
238 * go-gcc.c (class Gcc_tree): Make get_tree const.
239 (Gcc_backend::void_type): Implement.
240 (Gcc_backend::bool_type): Implement.
241 (Gcc_backend::integer_type): Implement.
242 (Gcc_backend::float_type): Implement.
243 (Gcc_backend::complex_type): New function.
244 (Gcc_backend::pointer_type): New function.
245 (Gcc_backend::make_type): New function.
246 (type_to_tree): New function.
247
248 2011-04-21 Ian Lance Taylor <iant@google.com>
249
250 * go-system.h (go_assert, go_unreachable): Define.
251
252 2011-04-19 Ian Lance Taylor <iant@google.com>
253
254 * go-system.h: Include "intl.h".
255 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
256 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
257 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
258
259 2011-04-19 Ian Lance Taylor <iant@google.com>
260
261 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
262
263 2011-04-19 Ian Lance Taylor <iant@google.com>
264
265 * go-gcc.cc (class Bblock): Define.
266 (Gcc_backend::if_statement): Change then_block and else_block to
267 Bblock*.
268 (Gcc_backend::block): New function.
269 (Gcc_backend::block_add_statements): New function.
270 (Gcc_backend::block_statement): New function.
271 (tree_to_block, block_to_tree): New functions.
272
273 2011-04-18 Ian Lance Taylor <iant@google.com>
274
275 * go-gcc.cc: Include "go-c.h".
276 (class Bvariable): Define.
277 (Gcc_backend::init_statement): New function.
278 (Gcc_backend::global_variable): New function.
279 (Gcc_backend::global_variable_set_init): New function.
280 (Gcc_backend::local_variable): New function.
281 (Gcc_backend::parameter_variable): New function.
282 (tree_to_type, var_to_tree): New functions.
283 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
284 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
285
286 2011-04-15 Ian Lance Taylor <iant@google.com>
287
288 * go-gcc.cc (Gcc_backend::compound_statement): New function.
289 (Gcc_backend::assignment_statement): Use error_statement.
290 (Gcc_backend::return_statement): Likewise.
291 (Gcc_backend::if_statement): Likewise.
292 (Gcc_backend::switch_statement): Likewise.
293 (Gcc_backend::statement_list): Likewise.
294
295 2011-04-14 Ian Lance Taylor <iant@google.com>
296
297 * go-gcc.cc (Backend::error_statement): New function.
298
299 2011-04-13 Ian Lance Taylor <iant@google.com>
300
301 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
302
303 2011-04-13 Ian Lance Taylor <iant@google.com>
304
305 * Make-lang.in (GO_OBJS): Add go/runtime.o.
306 (GO_RUNTIME_H): New variable.
307 (go/runtime.o): New target.
308 (go/gogo.o): Depend on $(GO_RUNTIME_H).
309 (go/statements.o): Likewise.
310
311 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
312
313 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
314 calling TREE_CHAIN.
315
316 2011-04-06 Ian Lance Taylor <iant@google.com>
317
318 * go-gcc.cc (if_statement): Use build3_loc.
319 (Gcc_backend::switch_statement): New function.
320 (Gcc_backend::statement_list): New function.
321
322 2011-04-06 Ian Lance Taylor <iant@google.com>
323
324 * go-gcc.cc (Gcc_backend::if_statement): New function.
325 (tree_to_stat): New function.
326 (expr_to_tree): Renamed from expression_to_tree.
327 (stat_to_tree): Renamed from statement_to_tree.
328
329 2011-04-06 Ian Lance Taylor <iant@google.com>
330
331 * go-gcc.cc (Gcc_backend::expression_statement): New function.
332
333 2011-04-04 Ian Lance Taylor <iant@google.com>
334
335 * go-gcc.c (class Blabel): Define.
336 (Gcc_backend::make_expression): New function.
337 (get_identifier_from_string): New function.
338 (Gcc_backend::label): New function.
339 (Gcc_backend::label_definition_statement): New function.
340 (Gcc_backend::goto_statement): New function.
341 (Gcc_backend::label_address): New function.
342 (expression_to_tree): New function.
343 * Make-lang.in (go/expressions.o): Depend on
344 go/gofrontend/backend.h.
345 (go/gogo.o): Likewise.
346
347 2011-04-04 Ian Lance Taylor <iant@google.com>
348
349 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
350 (class Bfunction): Define.
351 (Gcc_backend::assignment_statement): Rename from assignment.
352 Check for errors.
353 (Gcc_backend::return_statement): New function.
354 (tree_to_function): New function.
355 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
356 $(GIMPLE_H), and $(GO_GOGO_H).
357
358 2011-04-03 Ian Lance Taylor <iant@google.com>
359
360 * go-gcc.cc: New file.
361 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
362 (go/go-gcc.o): New target.
363 (go/go.o): Depend on go/gofrontend/backend.h.
364 (go/statements.o): Likewise.
365
366 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
367
368 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
369
370 2011-02-08 Ian Lance Taylor <iant@google.com>
371
372 * go-lang.c (go_langhook_init_options_struct): Set
373 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
374
375 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
376
377 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
378 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
379
380 2011-01-21 Ian Lance Taylor <iant@google.com>
381
382 * go-lang.c (go_langhook_init): Omit float_type_size when calling
383 go_create_gogo.
384 * go-c.h: Update declaration of go_create_gogo.
385
386 2011-01-13 Ian Lance Taylor <iant@google.com>
387
388 * go-backend.c: Include "rtl.h" and "target.h".
389 (go_imported_unsafe): New function.
390 * go-c.h (go_imported_unsafe): Declare.
391 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
392 (go/gogo-tree.o): Remove dependency on $(RTL_H).
393 (go/unsafe.o): Depend on $(GO_C_H).
394
395 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
396
397 PR go/47113
398 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
399 variable ‘field’ .
400
401 2010-12-21 Ian Lance Taylor <iant@google.com>
402
403 * Make-lang.in (check-go): Remove.
404 (lang_checks_parallelized): Add check-go.
405 (check_go_parallelize): Set.
406
407 2010-12-13 Ian Lance Taylor <iant@google.com>
408
409 * gospec.c (lang_specific_driver): Add a -o option if not linking
410 and there is no -o option already.
411
412 2010-12-07 Ian Lance Taylor <iant@google.com>
413
414 PR tree-optimization/46805
415 PR tree-optimization/46833
416 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
417
418 2010-12-06 Ian Lance Taylor <iant@google.com>
419
420 PR other/46789
421 PR bootstrap/46812
422 * go-lang.c (go_char_p): Define type and vectors.
423 (go_search_dirs): New static variable.
424 (go_langhook_handle_option): Use version and version/machine
425 directories for -L.
426 (go_langhook_post_options): Add non-specific -L paths.
427 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
428 DEFAULT_TARGET_MACHINE when compiling.
429 * gccgo.texi (Invoking gccgo): Only document -L for linking.
430 (Import and Export): Don't mention -L for finding import files.
431
432 2010-12-03 Ian Lance Taylor <iant@google.com>
433
434 PR bootstrap/46776
435 * go-backend.c: New file.
436 * go-c.h (go_type_alignment): Declare.
437 (go_field_alignment, go_trampoline_info): Declare.
438 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
439 (go/go-backend.o): New target.
440 (go/go-lang.o): Make dependencies match source file.
441 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
442 (go/gogo-tree.o): Don't depend on $(TM_H).
443
444 2010-12-03 Ian Lance Taylor <iant@google.com>
445
446 * config-lang.in (build_by_default): Set to no.
447
448 2010-12-02 Ian Lance Taylor <iant@google.com>
449
450 Go frontend added to gcc repository.