1 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
3 * go-gcc.cc: Include builtins.h.
5 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
7 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
9 2014-05-06 Chris Manghane <cmang@google.com>
11 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
12 (Gcc_backend::boolean_constant_expression): New method.
13 (Gcc_backend::zero_expression): Use this->make_expression rather
15 (Gcc_backend::var_expression): Likewise.
16 (Gcc_backend::integer_constant_expression): Likewise.
17 (Gcc_backend::float_constant_expression): Likewise.
18 (Gcc_backend::complex_constant_expression): Likewise.
19 (Gcc_backend::struct_field_expression): Likewise.
20 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
21 (tree_to_function, tree_to_block): Remove functions.
22 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
23 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
25 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
26 Mike Stump <mikestump@comcast.net>
27 Richard Sandiford <rdsandiford@googlemail.com>
29 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
31 2014-05-06 Chris Manghane <cmang@google.com>
33 * go-c.h (go_create_gogo): Update declaration to add
34 check_divide_zero and check_divide_overflow parameters.
35 * go-lang.c (go_langhook_init): Pass new arguments to
38 2014-05-05 Chris Manghane <cmang@google.com>
40 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
41 gc_root_variable. Add name and is_constant parameters.
43 2014-05-05 Chris Manghane <cmang@google.com>
45 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
47 (Gcc_backend::temporary_variable): Check for erroneous function.
49 2014-04-30 Chris Manghane <cmang@google.com>
51 * go-backend.c: #include "diagnostics.h".
52 (saw_errors): New function.
53 * go-c.h (saw_errors): Declare.
54 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
56 2014-04-30 Chris Manghane <cmang@google.com>
58 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
59 calling into Go frontend.
60 (go_langhook_type_for_mode): Likewise.
61 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
63 2014-04-30 Chris Manghane <cmang@google.com>
65 * go-gcc.cc: #include "langhooks.h".
66 (Gcc_backend::Gcc_backend): Add constructor.
67 (Gcc_backend::lookup_function): New function.
68 (Gcc_backend::define_builtin): New private function.
69 (Gcc_backend::gcc_backend): Remove.
70 (go_get_backend): Use new to create new Gcc_backend.
72 2014-04-25 Chris Manghane <cmang@google.com>
74 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
75 (Gcc_backend::return_statement): Push and pop function.
76 (Gcc_backend::label): Likewise.
77 (Gcc_backend::function_defer_statement): Likewise.
78 (Gcc_backend::switch_statement): Add function parameter.
79 (Gcc_backend::block): Don't permit function to be NULL.
80 (Gcc_backend::temporary_variable): Change go_assert to
82 (Gcc_backend::gc_root_variable): New function.
83 (Gcc_backend::write_global_definitions): New function.
85 2014-04-22 Chris Manghane <cmang@google.com>
87 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
88 call to create_tmp_var. Require that function be non-NULL.
90 2014-04-17 Chris Manghane <cmang@google.com>
92 * go-gcc.cc (Gcc_backend::named_constant_expression): New
95 2014-04-14 Chris Manghane <cmang@google.com>
97 * go-gcc.cc: Include "convert.h".
98 (Gcc_backend::string_constant_expression): New function.
99 (Gcc_backend::real_part_expression): Likewise.
100 (Gcc_backend::imag_part_expression): Likewise.
101 (Gcc_backend::complex_expression): Likewise.
102 (Gcc_backend::constructor_expression): Likewise.
103 (Gcc_backend::array_constructor_expression): Likewise.
104 (Gcc_backend::pointer_offset_expression): Likewise.
105 (Gcc_backend::array_index_expression): Likewise.
106 (Gcc_backend::call_expression): Likewise.
107 (Gcc_backend::exception_handler_statement): Likewise.
108 (Gcc_backend::function_defer_statement): Likewise.
109 (Gcc_backend::function_set_parameters): Likewise.
110 (Gcc_backend::function_set_body): Likewise.
111 (Gcc_backend::convert_expression): Handle various type
114 2014-03-03 Ian Lance Taylor <iant@google.com>
116 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
118 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
121 2014-01-24 Chris Manghane <cmang@google.com>
123 * go-gcc.cc (Gcc_backend::unary_expression): New function.
125 2014-01-16 Chris Manghane <cmang@google.com>
127 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
129 (operator_to_tree_code): New static function.
130 (Gcc_backend::binary_expression): New function.
132 2014-01-14 Chris Manghane <cmang@google.com>
134 * go-gcc.cc (Gcc_backend::compound_expression): New function.
135 (Gcc_backend::conditional_expression): New function.
137 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
139 Update copyright years
141 2014-01-02 Tobias Burnus <burnus@net-b.de>
143 * gccgo.texi: Bump @copying's copyright year.
145 2013-12-16 Chris Manghane <cmang@google.com>
147 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
149 2013-12-11 Ian Lance Taylor <iant@google.com>
151 * go-lang.c (go_langhook_post_options): Disable sibling calls by
154 2013-12-10 Ian Lance Taylor <iant@google.com>
156 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
159 2013-12-05 Ian Lance Taylor <iant@google.com>
161 Revert this change; no longer required.
162 2013-11-06 Ian Lance Taylor <iant@google.com>
164 * go-lang.c (go_langhook_post_options): If
165 -fisolate-erroneous-paths was turned on by an optimization option,
168 2013-11-23 Ian Lance Taylor <iant@google.com>
170 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
173 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
175 * go-gcc.cc: Add required include files from gimple.h.
176 * go-lang.c: Likewise
178 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
180 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
181 tree_to_shwi throughout.
183 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
185 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
186 tree_fits_shwi_p throughout.
188 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
190 * go-lang.c: Include only gimplify.h and gimple.h as needed.
192 2013-11-14 Diego Novillo <dnovillo@google.com>
194 * go-backend.c: Include stor-layout.h.
195 * go-gcc.cc: Include stringpool.h.
196 Include stor-layout.h.
198 * go-lang.c: Include stor-layout.h.
200 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
202 * go-lang.c: Include gimplify.h.
204 2013-11-06 Ian Lance Taylor <iant@google.com>
206 * go-lang.c (go_langhook_post_options): If
207 -fisolate-erroneous-paths was turned on by an optimization option,
210 2013-10-14 Chris Manghane <cmang@google.com>
212 * go-gcc.cc (Gcc_backend::address_expression): New function.
214 2013-10-11 Chris Manghane <cmang@google.com>
216 * go-gcc.cc (Gcc_backend::function_code_expression): New
219 2013-10-10 Chris Manghane <cmang@google.com>
221 * go-gcc.cc (Gcc_backend::error_function): New function.
222 (Gcc_backend::function): New function.
223 (Gcc_backend::make_function): New function.
224 (function_to_tree): New function.
226 2013-10-04 Chris Manghane <cmang@google.com>
228 * go-gcc.cc (Gcc_backend::convert_expression): New function.
230 2013-10-02 Chris Manghane <cmang@google.com>
232 * go-gcc.cc: Include "real.h" and "realmpfr.h".
233 (Gcc_backend::integer_constant_expression): New function.
234 (Gcc_backend::float_constant_expression): New function.
235 (Gcc_backend::complex_constant_expression): New function.
237 2013-09-30 Chris Manghane <cmang@google.com>
239 * go-gcc.cc (Gcc_backend::error_expression): New function.
240 (Gcc_backend::var_expression): New function.
241 (Gcc_backend::indirect_expression): New function.
243 2013-09-25 Tom Tromey <tromey@redhat.com>
245 * Make-lang.in (gospec.o): Remove.
246 (CFLAGS-go/gospec.o): New variable.
247 (GCCGO_OBJS): Update to use go/gospec.o.
249 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
250 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
251 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
252 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
253 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
254 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
255 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
256 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
257 (go/unsafe.o): Remove.
258 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
259 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
261 2013-09-25 Tom Tromey <tromey@redhat.com>
263 * Make-lang.in (gospec.o): Don't use subshell.
265 2013-08-28 Ian Lance Taylor <iant@google.com>
267 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
268 the struct is not hidden.
269 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
271 2013-08-06 Ian Lance Taylor <iant@google.com>
273 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
274 compute_reloc_for_constant.
276 2013-08-02 Ian Lance Taylor <iant@google.com>
278 * go-gcc.cc (immutable_struct_set_init): Always call
279 resolve_unique_section.
281 2013-07-24 Ian Lance Taylor <iant@google.com>
283 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
284 fields, recreate those fields with the first one with a non-zero
287 2013-07-23 Ian Lance Taylor <iant@google.com>
289 * go-backend.c: Don't #include "rtl.h".
290 (go_imported_unsafe): Don't call init_varasm_once.
291 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
293 2013-07-23 Ian Lance Taylor <iant@google.com>
295 * go-lang.c: Don't #include "except.h".
296 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
298 2013-06-18 Ian Lance Taylor <iant@google.com>
300 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
302 (Gcc_backend::immutable_struct_set_init): Likewise.
304 2013-05-16 Jason Merrill <jason@redhat.com>
306 * Make-lang.in (go1$(exeext)): Use link mutex.
308 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
310 * gospec.c: pass -u pthread_create to linker when static linking.
312 2012-12-21 Ian Lance Taylor <iant@google.com>
315 * go-system.h: Don't include <cstdio>.
317 2012-12-18 Ian Lance Taylor <iant@google.com>
320 * gospec.c: Revert last patch.
322 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
325 * gospec.c (LIBATOMIC): Define.
326 (LIBATOMIC_PROFILE): Define.
327 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
329 2012-11-29 Ian Lance Taylor <iant@google.com>
331 * go-gcc.cc: Include "output.h".
332 (global_variable): Add is_unique_section parameter.
333 (global_variable_set_init): Adjust unique section if necessary.
334 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
336 2012-11-17 Diego Novillo <dnovillo@google.com>
338 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
340 * go-lang.c: Use new vec API in vec.h.
342 2012-11-16 Ian Lance Taylor <iant@google.com>
344 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
345 (go1$(exeext)): Likewise.
347 2012-10-30 Ian Lance Taylor <iant@google.com>
349 * lang.opt (-fgo-relative-import-path): New option.
350 * go-lang.c (go_relative_import_path): New static variable.
351 (go_langhook_init): Pass go_relative_import_path to
353 (go_langhook_handle_option): Handle -fgo-relative-import-path.
354 * go-c.h (go_create_gogo): Update declaration.
355 * gccgo.texi (Invoking gccgo): Document
356 -fgo-relative-import-path.
358 2012-09-17 Ian Lance Taylor <iant@google.com>
360 * config-lang.in (target_libs): Add target-libbacktrace.
362 2012-09-16 Ian Lance Taylor <iant@google.com>
364 * Make-lang.in (go/gogo.o): Depend on filenames.h.
366 2012-08-14 Diego Novillo <dnovillo@google.com>
368 Merge from cxx-conversion branch. Configury.
370 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
371 * go-gcc.cc: Likewise.
372 * go-system.h: Likewise.
374 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
376 * go-lang.c (lang_decl): Add variable_size GTY option.
378 2012-05-09 Ian Lance Taylor <iant@google.com>
380 * lang.opt: Add -fgo-pkgpath.
381 * go-lang.c (go_pkgpath): New static variable.
382 (go_prefix): New static variable.
383 (go_langhook_init): Pass go_pkgpath and go_prefix to
385 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
386 -fgo-prefix handling to just set go_prefix.
387 * go-c.h (go_set_prefix): Don't declare.
388 (go_create_gogo): Add pkgpath and prefix to declaration.
389 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
390 to pkgpath. Don't include the package name in the asm name.
391 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
392 docs for -fgo-prefix.
394 2012-04-23 Ian Lance Taylor <iant@google.com>
396 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
398 2012-04-20 Ian Lance Taylor <iant@google.com>
400 * lang.opt: Add -fgo-check-divide-zero and
401 -fgo-check-divide-overflow.
402 * gccgo.texi (Invoking gccgo): Document new options.
404 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
406 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
407 with NULL_TREE type instead of void_type_node.
409 2012-03-09 Ian Lance Taylor <iant@google.com>
411 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
412 to the lhs type if necessary.
414 2012-03-08 Ian Lance Taylor <iant@google.com>
416 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
418 (go_non_zero_struct): New global variable.
419 (Gcc_backend::non_zero_size_type): New function.
420 (Gcc_backend::global_variable): Don't build an assignment for a
422 * go-c.h (go_non_zero_struct): Declare.
423 * config-lang.in (gtfiles): Add go-c.h.
425 2012-02-29 Ian Lance Taylor <iant@google.com>
427 * go-gcc.cc (class Gcc_tree): Add set_tree method.
428 (set_placeholder_pointer_type): When setting to a pointer to
429 error, set to error_mark_node.
431 2012-02-23 Richard Guenther <rguenther@suse.de>
433 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
434 build_distinct_type_copy.
436 2012-02-17 Ian Lance Taylor <iant@google.com>
438 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
440 2012-02-17 Ian Lance Taylor <iant@google.com>
442 * gospec.c (lang_specific_driver): If linking, and no -o option
445 2012-02-14 Ian Lance Taylor <iant@google.com>
448 * Make-lang.in (gccgo-cross$(exeext)): New target.
449 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
451 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
452 gccgo-cross$(exeext) does not exist.
454 2012-02-07 Ian Lance Taylor <iant@google.com>
456 * gccgo.texi (Function Names): Document //extern instead of
459 2012-02-01 Jakub Jelinek <jakub@redhat.com>
462 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
463 return build_nonstandard_integer_type result if possible.
465 2012-01-21 Ian Lance Taylor <iant@google.com>
467 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
468 (Gcc_backend::type_alignment): Likewise.
469 (Gcc_backend::type_field_alignment): Likewise.
470 (Gcc_backend::type_field_offset): Likewise.
472 2012-01-20 Ian Lance Taylor <iant@google.com>
474 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
476 (Gcc_backend::set_placeholder_struct_type): Likewise.
478 2012-01-17 Ian Lance Taylor <iant@google.com>
480 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
481 BASE.s rather than -o BASE.o.
483 2012-01-11 Ian Lance Taylor <iant@google.com>
485 * go-lang.c (go_langhook_init): Initialize void_list_node before
486 calling go_create_gogo.
488 2012-01-10 Ian Lance Taylor <iant@google.com>
490 * go-gcc.cc (Gcc_backend::type_size): New function.
491 (Gcc_backend::type_alignment): New function.
492 (Gcc_backend::type_field_alignment): New function.
493 (Gcc_backend::type_field_offset): New function.
494 * go-backend.c (go_type_alignment): Remove.
495 * go-c.h (go_type_alignment): Don't declare.
497 2011-12-27 Ian Lance Taylor <iant@google.com>
499 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
500 build_distinct_type_copy rather than build_variant_type_copy.
501 (Gcc_backend::set_placeholder_array_type): Likewise.
502 (Gcc_backend::named_type): Add special handling for builtin
505 2011-12-22 Ian Lance Taylor <iant@google.com>
507 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
508 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
509 (Gcc_backend::set_placeholder_struct_type): Likewise.
510 (Gcc_backend::set_placeholder_array_type): Likewise.
511 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
513 2011-12-13 Ian Lance Taylor <iant@google.com>
515 * go-backend.c: #include "simple-object.h" and "intl.h".
516 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
517 (GO_EXPORT_SECTION_NAME): Likewise.
518 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
519 (go_read_export_data): New function.
520 * go-c.h (go_read_export_data): Declare.
522 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
523 Ian Lance Taylor <iant@google.com>
525 * go-location.h: New file.
526 * go-linemap.cc: New file.
527 * go-gcc.cc: Change all uses of source_location to Location.
528 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
529 (GO_LINEMAP_H): New variable.
530 (GO_LEX_H): Use $(GO_LINEMAP_H).
531 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
532 (go/go-linemap.o): New target.
534 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
536 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
538 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
540 * lang.opt: Add fgo-optimize-.
541 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
542 * go-c.h (go_enable_optimize): Declare.
543 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
544 (GO_EXPORT_H): Define.
545 (GO_IMPORT_H): Add $(GO_EXPORT_H).
546 (GO_AST_DUMP_H): Define.
547 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
548 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
549 (go/types.o): Likewise.
550 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
551 (go/go-optimize.o): New target.
553 2011-08-24 Joseph Myers <joseph@codesourcery.com>
555 * Make-lang.in (CFLAGS-go/go-lang.o): New.
556 (go/go-lang.o): Remove explicit compilation rule.
558 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
560 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
562 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
564 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
565 (go/ast-dump.o): New target.
566 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
567 (go/statements.o): Likewise.
569 2011-07-06 Richard Guenther <rguenther@suse.de>
571 * go-lang.c (go_langhook_init):
572 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
574 2011-06-14 Joseph Myers <joseph@codesourcery.com>
576 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
578 * go-backend.c: Include common/common-target.h.
579 (go_write_export_data): Use targetm_common.have_named_sections.
580 * go-lang.c: Include common/common-target.h.
581 (go_langhook_init_options_struct): Use
582 targetm_common.supports_split_stack.
584 2011-06-13 Ian Lance Taylor <iant@google.com>
586 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
588 2011-06-10 Ian Lance Taylor <iant@google.com>
590 * go-gcc.cc: Include "toplev.h".
591 (Gcc_backend::immutable_struct): New function.
592 (Gcc_backend::immutable_struct_set_init): New function.
593 (Gcc_backend::immutable_struct_reference): New function.
594 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
596 2011-06-09 Ian Lance Taylor <iant@google.com>
598 * go-gcc.cc (Gcc_backend::zero_expression): New function.
600 2011-06-07 Richard Guenther <rguenther@suse.de>
602 * go-lang.c (go_langhook_init): Do not set
603 size_type_node or call set_sizetype.
605 2011-05-27 Ian Lance Taylor <iant@google.com>
607 * go-backend.c: Include "output.h".
608 (go_write_export_data): New function.
609 * go-c.h (go_write_export_data): Declare.
610 * Make-lang.in (go/go-backend.o): Depend on output.h.
611 (go/export.o): Depend on $(GO_C_H). Do not depend on
612 $(MACHMODE_H), output.h, or $(TARGET_H).
614 2011-05-24 Joseph Myers <joseph@codesourcery.com>
616 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
617 (gccgo$(exeext)): Use libcommon-target.a.
619 2011-05-20 Joseph Myers <joseph@codesourcery.com>
621 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
623 2011-05-13 Ian Lance Taylor <iant@google.com>
625 * go-gcc.cc (Gcc_backend::function_type): When building a struct
626 for multiple results, check that all fields types have a size.
627 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
629 2011-05-12 Ian Lance Taylor <iant@google.com>
631 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
633 (Gcc_backend::parameter_variable): Likewise.
635 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
637 * go-lang.c (global_bindings_p): Return bool and simplify.
639 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
641 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
643 2011-05-04 Ian Lance Taylor <iant@google.com>
645 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
646 (Gcc_backend::fill_in_struct): New function.
647 (Gcc_backend::array_type): Implement.
648 (Gcc_backend::fill_in_array): New function.
649 (Gcc_backend::placeholder_pointer_type): New function.
650 (Gcc_backend::set_placeholder_pointer_type): New function.
651 (Gcc_backend::set_placeholder_function_type): New function.
652 (Gcc_backend::placeholder_struct_type): New function.
653 (Gcc_backend::set_placeholder_struct_type): New function.
654 (Gcc_backend::placeholder_array_type): New function.
655 (Gcc_backend::set_placeholder_array_type): New function.
656 (Gcc_backend::named_type): New function.
657 (Gcc_backend::circular_pointer_type): New function.
658 (Gcc_backend::is_circular_pointer_type): New function.
660 2011-04-26 Ian Lance Taylor <iant@google.com>
662 * go-gcc.cc (Gcc_backend::struct_type): Implement.
664 2011-04-25 Ian Lance Taylor <iant@google.com>
666 * go-gcc.cc (Gcc_backend::error_type): Implement.
667 (Gcc_backend::string_type): Remove.
668 (Gcc_backend::function_type): Change signature and implement.
669 (Gcc_backend::struct_type): Change signature.
670 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
671 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
672 (Gcc_backend::pointer_type): Check for error.
673 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
675 2011-04-25 Evan Shaw <edsrzf@gmail.com>
677 * go-gcc.c (class Gcc_tree): Make get_tree const.
678 (Gcc_backend::void_type): Implement.
679 (Gcc_backend::bool_type): Implement.
680 (Gcc_backend::integer_type): Implement.
681 (Gcc_backend::float_type): Implement.
682 (Gcc_backend::complex_type): New function.
683 (Gcc_backend::pointer_type): New function.
684 (Gcc_backend::make_type): New function.
685 (type_to_tree): New function.
687 2011-04-21 Ian Lance Taylor <iant@google.com>
689 * go-system.h (go_assert, go_unreachable): Define.
691 2011-04-19 Ian Lance Taylor <iant@google.com>
693 * go-system.h: Include "intl.h".
694 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
695 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
696 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
698 2011-04-19 Ian Lance Taylor <iant@google.com>
700 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
702 2011-04-19 Ian Lance Taylor <iant@google.com>
704 * go-gcc.cc (class Bblock): Define.
705 (Gcc_backend::if_statement): Change then_block and else_block to
707 (Gcc_backend::block): New function.
708 (Gcc_backend::block_add_statements): New function.
709 (Gcc_backend::block_statement): New function.
710 (tree_to_block, block_to_tree): New functions.
712 2011-04-18 Ian Lance Taylor <iant@google.com>
714 * go-gcc.cc: Include "go-c.h".
715 (class Bvariable): Define.
716 (Gcc_backend::init_statement): New function.
717 (Gcc_backend::global_variable): New function.
718 (Gcc_backend::global_variable_set_init): New function.
719 (Gcc_backend::local_variable): New function.
720 (Gcc_backend::parameter_variable): New function.
721 (tree_to_type, var_to_tree): New functions.
722 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
723 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
725 2011-04-15 Ian Lance Taylor <iant@google.com>
727 * go-gcc.cc (Gcc_backend::compound_statement): New function.
728 (Gcc_backend::assignment_statement): Use error_statement.
729 (Gcc_backend::return_statement): Likewise.
730 (Gcc_backend::if_statement): Likewise.
731 (Gcc_backend::switch_statement): Likewise.
732 (Gcc_backend::statement_list): Likewise.
734 2011-04-14 Ian Lance Taylor <iant@google.com>
736 * go-gcc.cc (Gcc_backend::error_statement): New function.
738 2011-04-13 Ian Lance Taylor <iant@google.com>
740 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
742 2011-04-13 Ian Lance Taylor <iant@google.com>
744 * Make-lang.in (GO_OBJS): Add go/runtime.o.
745 (GO_RUNTIME_H): New variable.
746 (go/runtime.o): New target.
747 (go/gogo.o): Depend on $(GO_RUNTIME_H).
748 (go/statements.o): Likewise.
750 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
752 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
755 2011-04-06 Ian Lance Taylor <iant@google.com>
757 * go-gcc.cc (if_statement): Use build3_loc.
758 (Gcc_backend::switch_statement): New function.
759 (Gcc_backend::statement_list): New function.
761 2011-04-06 Ian Lance Taylor <iant@google.com>
763 * go-gcc.cc (Gcc_backend::if_statement): New function.
764 (tree_to_stat): New function.
765 (expr_to_tree): Renamed from expression_to_tree.
766 (stat_to_tree): Renamed from statement_to_tree.
768 2011-04-06 Ian Lance Taylor <iant@google.com>
770 * go-gcc.cc (Gcc_backend::expression_statement): New function.
772 2011-04-04 Ian Lance Taylor <iant@google.com>
774 * go-gcc.c (class Blabel): Define.
775 (Gcc_backend::make_expression): New function.
776 (get_identifier_from_string): New function.
777 (Gcc_backend::label): New function.
778 (Gcc_backend::label_definition_statement): New function.
779 (Gcc_backend::goto_statement): New function.
780 (Gcc_backend::label_address): New function.
781 (expression_to_tree): New function.
782 * Make-lang.in (go/expressions.o): Depend on
783 go/gofrontend/backend.h.
784 (go/gogo.o): Likewise.
786 2011-04-04 Ian Lance Taylor <iant@google.com>
788 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
789 (class Bfunction): Define.
790 (Gcc_backend::assignment_statement): Rename from assignment.
792 (Gcc_backend::return_statement): New function.
793 (tree_to_function): New function.
794 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
795 $(GIMPLE_H), and $(GO_GOGO_H).
797 2011-04-03 Ian Lance Taylor <iant@google.com>
799 * go-gcc.cc: New file.
800 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
801 (go/go-gcc.o): New target.
802 (go/go.o): Depend on go/gofrontend/backend.h.
803 (go/statements.o): Likewise.
805 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
807 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
809 2011-02-08 Ian Lance Taylor <iant@google.com>
811 * go-lang.c (go_langhook_init_options_struct): Set
812 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
814 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
816 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
817 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
819 2011-01-21 Ian Lance Taylor <iant@google.com>
821 * go-lang.c (go_langhook_init): Omit float_type_size when calling
823 * go-c.h: Update declaration of go_create_gogo.
825 2011-01-13 Ian Lance Taylor <iant@google.com>
827 * go-backend.c: Include "rtl.h" and "target.h".
828 (go_imported_unsafe): New function.
829 * go-c.h (go_imported_unsafe): Declare.
830 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
831 (go/gogo-tree.o): Remove dependency on $(RTL_H).
832 (go/unsafe.o): Depend on $(GO_C_H).
834 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
837 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
840 2010-12-21 Ian Lance Taylor <iant@google.com>
842 * Make-lang.in (check-go): Remove.
843 (lang_checks_parallelized): Add check-go.
844 (check_go_parallelize): Set.
846 2010-12-13 Ian Lance Taylor <iant@google.com>
848 * gospec.c (lang_specific_driver): Add a -o option if not linking
849 and there is no -o option already.
851 2010-12-07 Ian Lance Taylor <iant@google.com>
853 PR tree-optimization/46805
854 PR tree-optimization/46833
855 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
857 2010-12-06 Ian Lance Taylor <iant@google.com>
861 * go-lang.c (go_char_p): Define type and vectors.
862 (go_search_dirs): New static variable.
863 (go_langhook_handle_option): Use version and version/machine
865 (go_langhook_post_options): Add non-specific -L paths.
866 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
867 DEFAULT_TARGET_MACHINE when compiling.
868 * gccgo.texi (Invoking gccgo): Only document -L for linking.
869 (Import and Export): Don't mention -L for finding import files.
871 2010-12-03 Ian Lance Taylor <iant@google.com>
874 * go-backend.c: New file.
875 * go-c.h (go_type_alignment): Declare.
876 (go_field_alignment, go_trampoline_info): Declare.
877 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
878 (go/go-backend.o): New target.
879 (go/go-lang.o): Make dependencies match source file.
880 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
881 (go/gogo-tree.o): Don't depend on $(TM_H).
883 2010-12-03 Ian Lance Taylor <iant@google.com>
885 * config-lang.in (build_by_default): Set to no.
887 2010-12-02 Ian Lance Taylor <iant@google.com>
889 Go frontend added to gcc repository.
891 Copyright (C) 2010-2014 Free Software Foundation, Inc.
893 Copying and distribution of this file, with or without modification,
894 are permitted in any medium without royalty provided the copyright
895 notice and this notice are preserved.