gimplify-be.h: New file.
[gcc.git] / gcc / go / ChangeLog
1 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2
3 * go-lang.c: Include only gimplify.h and gimple.h as needed.
4
5 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
6
7 * go-lang.c: Include gimplify.h.
8
9 2013-11-06 Ian Lance Taylor <iant@google.com>
10
11 * go-lang.c (go_langhook_post_options): If
12 -fisolate-erroneous-paths was turned on by an optimization option,
13 turn it off.
14
15 2013-10-14 Chris Manghane <cmang@google.com>
16
17 * go-gcc.cc (Gcc_backend::address_expression): New function.
18
19 2013-10-11 Chris Manghane <cmang@google.com>
20
21 * go-gcc.cc (Gcc_backend::function_code_expression): New
22 function.
23
24 2013-10-10 Chris Manghane <cmang@google.com>
25
26 * go-gcc.cc (Gcc_backend::error_function): New function.
27 (Gcc_backend::function): New function.
28 (Gcc_backend::make_function): New function.
29 (function_to_tree): New function.
30
31 2013-10-04 Chris Manghane <cmang@google.com>
32
33 * go-gcc.cc (Gcc_backend::convert_expression): New function.
34
35 2013-10-02 Chris Manghane <cmang@google.com>
36
37 * go-gcc.cc: Include "real.h" and "realmpfr.h".
38 (Gcc_backend::integer_constant_expression): New function.
39 (Gcc_backend::float_constant_expression): New function.
40 (Gcc_backend::complex_constant_expression): New function.
41
42 2013-09-30 Chris Manghane <cmang@google.com>
43
44 * go-gcc.cc (Gcc_backend::error_expression): New function.
45 (Gcc_backend::var_expression): New function.
46 (Gcc_backend::indirect_expression): New function.
47
48 2013-09-25 Tom Tromey <tromey@redhat.com>
49
50 * Make-lang.in (gospec.o): Remove.
51 (CFLAGS-go/gospec.o): New variable.
52 (GCCGO_OBJS): Update to use go/gospec.o.
53 (go_OBJS): Define.
54 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
55 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
56 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
57 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
58 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
59 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
60 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
61 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
62 (go/unsafe.o): Remove.
63 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
64 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
65
66 2013-09-25 Tom Tromey <tromey@redhat.com>
67
68 * Make-lang.in (gospec.o): Don't use subshell.
69
70 2013-08-28 Ian Lance Taylor <iant@google.com>
71
72 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
73 the struct is not hidden.
74 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
75
76 2013-08-06 Ian Lance Taylor <iant@google.com>
77
78 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
79 compute_reloc_for_constant.
80
81 2013-08-02 Ian Lance Taylor <iant@google.com>
82
83 * go-gcc.cc (immutable_struct_set_init): Always call
84 resolve_unique_section.
85
86 2013-07-24 Ian Lance Taylor <iant@google.com>
87
88 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
89 fields, recreate those fields with the first one with a non-zero
90 size.
91
92 2013-07-23 Ian Lance Taylor <iant@google.com>
93
94 * go-backend.c: Don't #include "rtl.h".
95 (go_imported_unsafe): Don't call init_varasm_once.
96 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
97
98 2013-07-23 Ian Lance Taylor <iant@google.com>
99
100 * go-lang.c: Don't #include "except.h".
101 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
102
103 2013-06-18 Ian Lance Taylor <iant@google.com>
104
105 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
106 parameter.
107 (Gcc_backend::immutable_struct_set_init): Likewise.
108
109 2013-05-16 Jason Merrill <jason@redhat.com>
110
111 * Make-lang.in (go1$(exeext)): Use link mutex.
112
113 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
114
115 * gospec.c: pass -u pthread_create to linker when static linking.
116
117 2012-12-21 Ian Lance Taylor <iant@google.com>
118
119 PR bootstrap/54659
120 * go-system.h: Don't include <cstdio>.
121
122 2012-12-18 Ian Lance Taylor <iant@google.com>
123
124 PR go/55201
125 * gospec.c: Revert last patch.
126
127 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
128
129 PR go/55201
130 * gospec.c (LIBATOMIC): Define.
131 (LIBATOMIC_PROFILE): Define.
132 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
133
134 2012-11-29 Ian Lance Taylor <iant@google.com>
135
136 * go-gcc.cc: Include "output.h".
137 (global_variable): Add is_unique_section parameter.
138 (global_variable_set_init): Adjust unique section if necessary.
139 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
140
141 2012-11-17 Diego Novillo <dnovillo@google.com>
142
143 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
144
145 * go-lang.c: Use new vec API in vec.h.
146
147 2012-11-16 Ian Lance Taylor <iant@google.com>
148
149 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
150 (go1$(exeext)): Likewise.
151
152 2012-10-30 Ian Lance Taylor <iant@google.com>
153
154 * lang.opt (-fgo-relative-import-path): New option.
155 * go-lang.c (go_relative_import_path): New static variable.
156 (go_langhook_init): Pass go_relative_import_path to
157 go_create_gogo.
158 (go_langhook_handle_option): Handle -fgo-relative-import-path.
159 * go-c.h (go_create_gogo): Update declaration.
160 * gccgo.texi (Invoking gccgo): Document
161 -fgo-relative-import-path.
162
163 2012-09-17 Ian Lance Taylor <iant@google.com>
164
165 * config-lang.in (target_libs): Add target-libbacktrace.
166
167 2012-09-16 Ian Lance Taylor <iant@google.com>
168
169 * Make-lang.in (go/gogo.o): Depend on filenames.h.
170
171 2012-08-14 Diego Novillo <dnovillo@google.com>
172
173 Merge from cxx-conversion branch. Configury.
174
175 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
176 * go-gcc.cc: Likewise.
177 * go-system.h: Likewise.
178
179 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
180
181 * go-lang.c (lang_decl): Add variable_size GTY option.
182
183 2012-05-09 Ian Lance Taylor <iant@google.com>
184
185 * lang.opt: Add -fgo-pkgpath.
186 * go-lang.c (go_pkgpath): New static variable.
187 (go_prefix): New static variable.
188 (go_langhook_init): Pass go_pkgpath and go_prefix to
189 go_create_gogo.
190 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
191 -fgo-prefix handling to just set go_prefix.
192 * go-c.h (go_set_prefix): Don't declare.
193 (go_create_gogo): Add pkgpath and prefix to declaration.
194 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
195 to pkgpath. Don't include the package name in the asm name.
196 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
197 docs for -fgo-prefix.
198
199 2012-04-23 Ian Lance Taylor <iant@google.com>
200
201 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
202
203 2012-04-20 Ian Lance Taylor <iant@google.com>
204
205 * lang.opt: Add -fgo-check-divide-zero and
206 -fgo-check-divide-overflow.
207 * gccgo.texi (Invoking gccgo): Document new options.
208
209 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
210
211 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
212 with NULL_TREE type instead of void_type_node.
213
214 2012-03-09 Ian Lance Taylor <iant@google.com>
215
216 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
217 to the lhs type if necessary.
218
219 2012-03-08 Ian Lance Taylor <iant@google.com>
220
221 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
222 zero-sized variable.
223 (go_non_zero_struct): New global variable.
224 (Gcc_backend::non_zero_size_type): New function.
225 (Gcc_backend::global_variable): Don't build an assignment for a
226 zero-sized value.
227 * go-c.h (go_non_zero_struct): Declare.
228 * config-lang.in (gtfiles): Add go-c.h.
229
230 2012-02-29 Ian Lance Taylor <iant@google.com>
231
232 * go-gcc.cc (class Gcc_tree): Add set_tree method.
233 (set_placeholder_pointer_type): When setting to a pointer to
234 error, set to error_mark_node.
235
236 2012-02-23 Richard Guenther <rguenther@suse.de>
237
238 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
239 build_distinct_type_copy.
240
241 2012-02-17 Ian Lance Taylor <iant@google.com>
242
243 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
244
245 2012-02-17 Ian Lance Taylor <iant@google.com>
246
247 * gospec.c (lang_specific_driver): If linking, and no -o option
248 was used, add one.
249
250 2012-02-14 Ian Lance Taylor <iant@google.com>
251
252 PR go/48411
253 * Make-lang.in (gccgo-cross$(exeext)): New target.
254 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
255 gccgo$(exeext).
256 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
257 gccgo-cross$(exeext) does not exist.
258
259 2012-02-07 Ian Lance Taylor <iant@google.com>
260
261 * gccgo.texi (Function Names): Document //extern instead of
262 __asm__.
263
264 2012-02-01 Jakub Jelinek <jakub@redhat.com>
265
266 PR target/52079
267 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
268 return build_nonstandard_integer_type result if possible.
269
270 2012-01-21 Ian Lance Taylor <iant@google.com>
271
272 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
273 (Gcc_backend::type_alignment): Likewise.
274 (Gcc_backend::type_field_alignment): Likewise.
275 (Gcc_backend::type_field_offset): Likewise.
276
277 2012-01-20 Ian Lance Taylor <iant@google.com>
278
279 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
280 be empty.
281 (Gcc_backend::set_placeholder_struct_type): Likewise.
282
283 2012-01-17 Ian Lance Taylor <iant@google.com>
284
285 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
286 BASE.s rather than -o BASE.o.
287
288 2012-01-11 Ian Lance Taylor <iant@google.com>
289
290 * go-lang.c (go_langhook_init): Initialize void_list_node before
291 calling go_create_gogo.
292
293 2012-01-10 Ian Lance Taylor <iant@google.com>
294
295 * go-gcc.cc (Gcc_backend::type_size): New function.
296 (Gcc_backend::type_alignment): New function.
297 (Gcc_backend::type_field_alignment): New function.
298 (Gcc_backend::type_field_offset): New function.
299 * go-backend.c (go_type_alignment): Remove.
300 * go-c.h (go_type_alignment): Don't declare.
301
302 2011-12-27 Ian Lance Taylor <iant@google.com>
303
304 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
305 build_distinct_type_copy rather than build_variant_type_copy.
306 (Gcc_backend::set_placeholder_array_type): Likewise.
307 (Gcc_backend::named_type): Add special handling for builtin
308 basic types.
309
310 2011-12-22 Ian Lance Taylor <iant@google.com>
311
312 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
313 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
314 (Gcc_backend::set_placeholder_struct_type): Likewise.
315 (Gcc_backend::set_placeholder_array_type): Likewise.
316 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
317
318 2011-12-13 Ian Lance Taylor <iant@google.com>
319
320 * go-backend.c: #include "simple-object.h" and "intl.h".
321 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
322 (GO_EXPORT_SECTION_NAME): Likewise.
323 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
324 (go_read_export_data): New function.
325 * go-c.h (go_read_export_data): Declare.
326
327 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
328 Ian Lance Taylor <iant@google.com>
329
330 * go-location.h: New file.
331 * go-linemap.cc: New file.
332 * go-gcc.cc: Change all uses of source_location to Location.
333 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
334 (GO_LINEMAP_H): New variable.
335 (GO_LEX_H): Use $(GO_LINEMAP_H).
336 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
337 (go/go-linemap.o): New target.
338
339 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
340
341 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
342
343 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
344
345 * lang.opt: Add fgo-optimize-.
346 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
347 * go-c.h (go_enable_optimize): Declare.
348 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
349 (GO_EXPORT_H): Define.
350 (GO_IMPORT_H): Add $(GO_EXPORT_H).
351 (GO_AST_DUMP_H): Define.
352 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
353 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
354 (go/types.o): Likewise.
355 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
356 (go/go-optimize.o): New target.
357
358 2011-08-24 Joseph Myers <joseph@codesourcery.com>
359
360 * Make-lang.in (CFLAGS-go/go-lang.o): New.
361 (go/go-lang.o): Remove explicit compilation rule.
362
363 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
364
365 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
366
367 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
368
369 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
370 (go/ast-dump.o): New target.
371 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
372 (go/statements.o): Likewise.
373
374 2011-07-06 Richard Guenther <rguenther@suse.de>
375
376 * go-lang.c (go_langhook_init):
377 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
378
379 2011-06-14 Joseph Myers <joseph@codesourcery.com>
380
381 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
382 dependencies.
383 * go-backend.c: Include common/common-target.h.
384 (go_write_export_data): Use targetm_common.have_named_sections.
385 * go-lang.c: Include common/common-target.h.
386 (go_langhook_init_options_struct): Use
387 targetm_common.supports_split_stack.
388
389 2011-06-13 Ian Lance Taylor <iant@google.com>
390
391 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
392
393 2011-06-10 Ian Lance Taylor <iant@google.com>
394
395 * go-gcc.cc: Include "toplev.h".
396 (Gcc_backend::immutable_struct): New function.
397 (Gcc_backend::immutable_struct_set_init): New function.
398 (Gcc_backend::immutable_struct_reference): New function.
399 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
400
401 2011-06-09 Ian Lance Taylor <iant@google.com>
402
403 * go-gcc.cc (Gcc_backend::zero_expression): New function.
404
405 2011-06-07 Richard Guenther <rguenther@suse.de>
406
407 * go-lang.c (go_langhook_init): Do not set
408 size_type_node or call set_sizetype.
409
410 2011-05-27 Ian Lance Taylor <iant@google.com>
411
412 * go-backend.c: Include "output.h".
413 (go_write_export_data): New function.
414 * go-c.h (go_write_export_data): Declare.
415 * Make-lang.in (go/go-backend.o): Depend on output.h.
416 (go/export.o): Depend on $(GO_C_H). Do not depend on
417 $(MACHMODE_H), output.h, or $(TARGET_H).
418
419 2011-05-24 Joseph Myers <joseph@codesourcery.com>
420
421 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
422 (gccgo$(exeext)): Use libcommon-target.a.
423
424 2011-05-20 Joseph Myers <joseph@codesourcery.com>
425
426 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
427
428 2011-05-13 Ian Lance Taylor <iant@google.com>
429
430 * go-gcc.cc (Gcc_backend::function_type): When building a struct
431 for multiple results, check that all fields types have a size.
432 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
433
434 2011-05-12 Ian Lance Taylor <iant@google.com>
435
436 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
437 parameter.
438 (Gcc_backend::parameter_variable): Likewise.
439
440 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
441
442 * go-lang.c (global_bindings_p): Return bool and simplify.
443
444 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
445
446 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
447
448 2011-05-04 Ian Lance Taylor <iant@google.com>
449
450 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
451 (Gcc_backend::fill_in_struct): New function.
452 (Gcc_backend::array_type): Implement.
453 (Gcc_backend::fill_in_array): New function.
454 (Gcc_backend::placeholder_pointer_type): New function.
455 (Gcc_backend::set_placeholder_pointer_type): New function.
456 (Gcc_backend::set_placeholder_function_type): New function.
457 (Gcc_backend::placeholder_struct_type): New function.
458 (Gcc_backend::set_placeholder_struct_type): New function.
459 (Gcc_backend::placeholder_array_type): New function.
460 (Gcc_backend::set_placeholder_array_type): New function.
461 (Gcc_backend::named_type): New function.
462 (Gcc_backend::circular_pointer_type): New function.
463 (Gcc_backend::is_circular_pointer_type): New function.
464
465 2011-04-26 Ian Lance Taylor <iant@google.com>
466
467 * go-gcc.cc (Gcc_backend::struct_type): Implement.
468
469 2011-04-25 Ian Lance Taylor <iant@google.com>
470
471 * go-gcc.cc (Gcc_backend::error_type): Implement.
472 (Gcc_backend::string_type): Remove.
473 (Gcc_backend::function_type): Change signature and implement.
474 (Gcc_backend::struct_type): Change signature.
475 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
476 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
477 (Gcc_backend::pointer_type): Check for error.
478 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
479
480 2011-04-25 Evan Shaw <edsrzf@gmail.com>
481
482 * go-gcc.c (class Gcc_tree): Make get_tree const.
483 (Gcc_backend::void_type): Implement.
484 (Gcc_backend::bool_type): Implement.
485 (Gcc_backend::integer_type): Implement.
486 (Gcc_backend::float_type): Implement.
487 (Gcc_backend::complex_type): New function.
488 (Gcc_backend::pointer_type): New function.
489 (Gcc_backend::make_type): New function.
490 (type_to_tree): New function.
491
492 2011-04-21 Ian Lance Taylor <iant@google.com>
493
494 * go-system.h (go_assert, go_unreachable): Define.
495
496 2011-04-19 Ian Lance Taylor <iant@google.com>
497
498 * go-system.h: Include "intl.h".
499 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
500 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
501 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
502
503 2011-04-19 Ian Lance Taylor <iant@google.com>
504
505 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
506
507 2011-04-19 Ian Lance Taylor <iant@google.com>
508
509 * go-gcc.cc (class Bblock): Define.
510 (Gcc_backend::if_statement): Change then_block and else_block to
511 Bblock*.
512 (Gcc_backend::block): New function.
513 (Gcc_backend::block_add_statements): New function.
514 (Gcc_backend::block_statement): New function.
515 (tree_to_block, block_to_tree): New functions.
516
517 2011-04-18 Ian Lance Taylor <iant@google.com>
518
519 * go-gcc.cc: Include "go-c.h".
520 (class Bvariable): Define.
521 (Gcc_backend::init_statement): New function.
522 (Gcc_backend::global_variable): New function.
523 (Gcc_backend::global_variable_set_init): New function.
524 (Gcc_backend::local_variable): New function.
525 (Gcc_backend::parameter_variable): New function.
526 (tree_to_type, var_to_tree): New functions.
527 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
528 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
529
530 2011-04-15 Ian Lance Taylor <iant@google.com>
531
532 * go-gcc.cc (Gcc_backend::compound_statement): New function.
533 (Gcc_backend::assignment_statement): Use error_statement.
534 (Gcc_backend::return_statement): Likewise.
535 (Gcc_backend::if_statement): Likewise.
536 (Gcc_backend::switch_statement): Likewise.
537 (Gcc_backend::statement_list): Likewise.
538
539 2011-04-14 Ian Lance Taylor <iant@google.com>
540
541 * go-gcc.cc (Gcc_backend::error_statement): New function.
542
543 2011-04-13 Ian Lance Taylor <iant@google.com>
544
545 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
546
547 2011-04-13 Ian Lance Taylor <iant@google.com>
548
549 * Make-lang.in (GO_OBJS): Add go/runtime.o.
550 (GO_RUNTIME_H): New variable.
551 (go/runtime.o): New target.
552 (go/gogo.o): Depend on $(GO_RUNTIME_H).
553 (go/statements.o): Likewise.
554
555 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
556
557 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
558 calling TREE_CHAIN.
559
560 2011-04-06 Ian Lance Taylor <iant@google.com>
561
562 * go-gcc.cc (if_statement): Use build3_loc.
563 (Gcc_backend::switch_statement): New function.
564 (Gcc_backend::statement_list): New function.
565
566 2011-04-06 Ian Lance Taylor <iant@google.com>
567
568 * go-gcc.cc (Gcc_backend::if_statement): New function.
569 (tree_to_stat): New function.
570 (expr_to_tree): Renamed from expression_to_tree.
571 (stat_to_tree): Renamed from statement_to_tree.
572
573 2011-04-06 Ian Lance Taylor <iant@google.com>
574
575 * go-gcc.cc (Gcc_backend::expression_statement): New function.
576
577 2011-04-04 Ian Lance Taylor <iant@google.com>
578
579 * go-gcc.c (class Blabel): Define.
580 (Gcc_backend::make_expression): New function.
581 (get_identifier_from_string): New function.
582 (Gcc_backend::label): New function.
583 (Gcc_backend::label_definition_statement): New function.
584 (Gcc_backend::goto_statement): New function.
585 (Gcc_backend::label_address): New function.
586 (expression_to_tree): New function.
587 * Make-lang.in (go/expressions.o): Depend on
588 go/gofrontend/backend.h.
589 (go/gogo.o): Likewise.
590
591 2011-04-04 Ian Lance Taylor <iant@google.com>
592
593 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
594 (class Bfunction): Define.
595 (Gcc_backend::assignment_statement): Rename from assignment.
596 Check for errors.
597 (Gcc_backend::return_statement): New function.
598 (tree_to_function): New function.
599 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
600 $(GIMPLE_H), and $(GO_GOGO_H).
601
602 2011-04-03 Ian Lance Taylor <iant@google.com>
603
604 * go-gcc.cc: New file.
605 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
606 (go/go-gcc.o): New target.
607 (go/go.o): Depend on go/gofrontend/backend.h.
608 (go/statements.o): Likewise.
609
610 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
611
612 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
613
614 2011-02-08 Ian Lance Taylor <iant@google.com>
615
616 * go-lang.c (go_langhook_init_options_struct): Set
617 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
618
619 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
620
621 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
622 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
623
624 2011-01-21 Ian Lance Taylor <iant@google.com>
625
626 * go-lang.c (go_langhook_init): Omit float_type_size when calling
627 go_create_gogo.
628 * go-c.h: Update declaration of go_create_gogo.
629
630 2011-01-13 Ian Lance Taylor <iant@google.com>
631
632 * go-backend.c: Include "rtl.h" and "target.h".
633 (go_imported_unsafe): New function.
634 * go-c.h (go_imported_unsafe): Declare.
635 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
636 (go/gogo-tree.o): Remove dependency on $(RTL_H).
637 (go/unsafe.o): Depend on $(GO_C_H).
638
639 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
640
641 PR go/47113
642 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
643 variable ‘field’ .
644
645 2010-12-21 Ian Lance Taylor <iant@google.com>
646
647 * Make-lang.in (check-go): Remove.
648 (lang_checks_parallelized): Add check-go.
649 (check_go_parallelize): Set.
650
651 2010-12-13 Ian Lance Taylor <iant@google.com>
652
653 * gospec.c (lang_specific_driver): Add a -o option if not linking
654 and there is no -o option already.
655
656 2010-12-07 Ian Lance Taylor <iant@google.com>
657
658 PR tree-optimization/46805
659 PR tree-optimization/46833
660 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
661
662 2010-12-06 Ian Lance Taylor <iant@google.com>
663
664 PR other/46789
665 PR bootstrap/46812
666 * go-lang.c (go_char_p): Define type and vectors.
667 (go_search_dirs): New static variable.
668 (go_langhook_handle_option): Use version and version/machine
669 directories for -L.
670 (go_langhook_post_options): Add non-specific -L paths.
671 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
672 DEFAULT_TARGET_MACHINE when compiling.
673 * gccgo.texi (Invoking gccgo): Only document -L for linking.
674 (Import and Export): Don't mention -L for finding import files.
675
676 2010-12-03 Ian Lance Taylor <iant@google.com>
677
678 PR bootstrap/46776
679 * go-backend.c: New file.
680 * go-c.h (go_type_alignment): Declare.
681 (go_field_alignment, go_trampoline_info): Declare.
682 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
683 (go/go-backend.o): New target.
684 (go/go-lang.o): Make dependencies match source file.
685 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
686 (go/gogo-tree.o): Don't depend on $(TM_H).
687
688 2010-12-03 Ian Lance Taylor <iant@google.com>
689
690 * config-lang.in (build_by_default): Set to no.
691
692 2010-12-02 Ian Lance Taylor <iant@google.com>
693
694 Go frontend added to gcc repository.