1 2016-08-22 Release Manager
5 2016-04-27 Release Manager
9 2016-02-12 Jakub Jelinek <jakub@redhat.com>
11 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
12 neighbour -> neighbor.
13 * gccgo.texi: Likewise.
15 2016-01-27 Ian Lance Taylor <iant@google.com>
17 * go-lang.c (go_langhook_init_options_struct): Default to
20 2016-01-04 Jakub Jelinek <jakub@redhat.com>
22 Update copyright years.
24 * gccgo.texi: Bump @copyrights-go year.
26 2015-12-21 Ian Lance Taylor <iant@google.com>
28 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
29 t_ and orig_type_ fields. Add new two parameter constructor. Add
30 get_tree and get_decl methods.
31 (Gcc_backend::var_expression): Pass location to var get_tree.
32 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
33 two parameter constructor for Bvariable.
34 (Gcc_backend::global_variable_set_init): Don't remove
35 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
36 (Gcc_backend::write_global_definitions): Likewise.
37 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
38 (Gcc_backend::block): Likewise.
39 (Gcc_backend::implicit_variable_set_init): Likewise.
40 (Gcc_backend::immutable_struct_set_init): Likewise.
41 (Gcc_backend::function_set_parameters): Likewise.
43 2015-12-21 Ian Lance Taylor <iant@google.com>
45 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
46 add a VIEW_CONVERT_EXPR to the tree.
47 (Gcc_backend::global_variable_set_init): Remove any
49 (Gcc_backend::write_global_definitions): Likewise.
51 2015-11-30 Ian Lance Taylor <iant@google.com>
54 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
55 TYPE_STRING_FLAG on a variant type.
57 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
59 * go-backend.c: Remove unused header files.
60 * go-gcc.cc: Likewise.
61 * go-lang.c: Likewise.
64 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
66 * go-backend.c: Reorder #include's and remove duplicates.
67 * go-lang.c: Likewise.
69 2015-10-20 Alan Modra <amodra@gmail.com>
72 * gospec.c (saw_opt_m32): Rename to..
73 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
75 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
77 2015-10-01 Ian Lance Taylor <iant@google.com>
80 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
81 TARGET_CAN_SPLIT_STACK_64BIT is defined.
83 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
86 * gospec.c (lang_specific_driver): Set appropriate split stack
87 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
89 2015-09-10 Chris Manghane <cmang@google.com>
91 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
94 2015-08-24 Marek Polacek <polacek@redhat.com>
96 PR tree-optimization/67284
97 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
98 Set TREE_THIS_VOLATILE.
99 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
100 Pass false to the rest of define_builtin calls.
102 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
104 * go-lang.c (go_langhook_init_options_struct): Don't set
106 (go_langhook_post_options): Set it here instead.
108 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
110 * gofrontend/backend.h: Fix double word typos.
111 * gofrontend/expressions.cc: Same.
114 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
116 * go-backend.c: Adjust includes.
117 * go-gcc.cc: Likewise.
118 * go-lang.c: Likewise.
120 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
122 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
124 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
126 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
127 * go-gcc.cc: Likewise.
128 * go-lang.c: Likewise.
129 * go-system.h: Likewise.
131 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
133 * go-backend.c : Adjust include files.
134 * go-gcc.cc : Likewise.
135 * go-lang.c : Likewise.
137 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
139 * go-gcc.cc (write_global_definitions): Remove call to
140 finalize_compilation_unit.
141 Remove Go specific debug generation.
142 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
143 (go_langhook_write_globals): Remove.
144 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
146 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
148 * go-backend.c: Adjust includes for restructured coretypes.h.
150 * go-gcc.cc: Likewise.
151 * go-lang.c: Likewise.
153 2015-04-30 Chris Manghane <cmang@google.com>
155 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
158 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
160 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
162 2015-04-17 Chris Manghane <cmang@google.com>
164 * Make-lang.in (GO_OBJS): Add go/escape.o.
166 2015-02-02 Ian Lance Taylor <iant@google.com>
170 * go-gcc.cc (Gcc_backend::type_size): Change return type to
172 (Gcc_backend::type_alignment): Likewise.
173 (Gcc_backend::type_field_alignment): Likewise.
174 (Gcc_backend::type_field_offset): Likewise.
175 (Gcc_backend::implicit_variable): Change alignment parameter type
178 2015-01-23 Ian Lance Taylor <iant@google.com>
181 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
184 * gccgo.texi (C Interoperability): Mention that people should use
187 2015-01-23 Ian Lance Taylor <iant@google.com>
190 * go-lang.c (go_langhook_init_options_struct): Set default
192 (go_langhook_post_options): If debug_info_level is still the
193 default, make sure write_symbols is set.
194 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
196 2015-01-16 Richard Henderson <rth@redhat.com>
198 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
199 (Gcc_backend::static_chain_variable): New method.
201 2015-01-09 Ian Lance Taylor <iant@google.com>
203 * config-lang.in (lang_dirs): Define.
205 2015-01-09 Michael Collison <michael.collison@linaro.org>
207 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
208 input.h, alias.h, symtab.h, options.h, fold-const.h,
209 wide-int.h, and inchash.h due to flattening of tree.h.
211 * go-backend.c: Ditto.
213 2015-01-07 Chris Manghane <cmang@google.com>
216 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
219 2015-01-06 Chris Manghane <cmang@google.com>
221 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
222 initialize zero-sized fields, just evaluate the values for side
225 2015-01-05 Jakub Jelinek <jakub@redhat.com>
227 Update copyright years.
229 * gccgo.texi: Bump @copyrights-go year.
231 2014-12-19 Chris Manghane <cmang@google.com>
233 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
234 construct arrays of zero-sized values.
236 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
238 * go-lang.c: Remove redundant enum from machine_mode.
240 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
242 * go-gcc.cc: Adjust include files.
244 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
246 * go-gcc.cc: Adjust include files.
249 2014-10-23 Ian Lance Taylor <iant@google.com>
251 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
252 mpc_t parameter instead of two mpfr_t parameters.
254 2014-09-15 Jakub Jelinek <jakub@redhat.com>
256 * Make-lang.in (check_go_parallelize): Change to just an upper bound
259 2014-09-03 Chris Manghane <cmang@google.com>
261 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
262 parameter. Add is_hidden parameter.
263 (Gcc_backend::implicit_variable_set_init): New method.
264 (Gcc_backend::implicit_variable_reference): New method.
266 2014-08-08 Ian Lance Taylor <iant@google.com>
268 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
271 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
273 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
274 symtab_get_node to symtab_node::get.
276 2014-06-13 Ian Lance Taylor <iant@google.com>
279 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
280 ld, add -t option to avoid warning about common symbol changing
283 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
285 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
286 symtab_get_node(var_decl)->implicit_section.
288 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
290 * go-gcc.cc (global_variable_set_init): Use
291 set_decl_section_name.
293 2014-06-04 Ian Lance Taylor <iant@google.com>
295 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
296 alignment parameters. Permit init parameter to be NULL.
298 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
300 * go-gcc.cc: Include builtins.h.
302 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
304 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
306 2014-05-06 Chris Manghane <cmang@google.com>
308 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
309 (Gcc_backend::boolean_constant_expression): New method.
310 (Gcc_backend::zero_expression): Use this->make_expression rather
312 (Gcc_backend::var_expression): Likewise.
313 (Gcc_backend::integer_constant_expression): Likewise.
314 (Gcc_backend::float_constant_expression): Likewise.
315 (Gcc_backend::complex_constant_expression): Likewise.
316 (Gcc_backend::struct_field_expression): Likewise.
317 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
318 (tree_to_function, tree_to_block): Remove functions.
319 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
320 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
322 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
323 Mike Stump <mikestump@comcast.net>
324 Richard Sandiford <rdsandiford@googlemail.com>
326 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
328 2014-05-06 Chris Manghane <cmang@google.com>
330 * go-c.h (go_create_gogo): Update declaration to add
331 check_divide_zero and check_divide_overflow parameters.
332 * go-lang.c (go_langhook_init): Pass new arguments to
335 2014-05-05 Chris Manghane <cmang@google.com>
337 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
338 gc_root_variable. Add name and is_constant parameters.
340 2014-05-05 Chris Manghane <cmang@google.com>
342 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
344 (Gcc_backend::temporary_variable): Check for erroneous function.
346 2014-04-30 Chris Manghane <cmang@google.com>
348 * go-backend.c: #include "diagnostics.h".
349 (saw_errors): New function.
350 * go-c.h (saw_errors): Declare.
351 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
353 2014-04-30 Chris Manghane <cmang@google.com>
355 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
356 calling into Go frontend.
357 (go_langhook_type_for_mode): Likewise.
358 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
360 2014-04-30 Chris Manghane <cmang@google.com>
362 * go-gcc.cc: #include "langhooks.h".
363 (Gcc_backend::Gcc_backend): Add constructor.
364 (Gcc_backend::lookup_function): New function.
365 (Gcc_backend::define_builtin): New private function.
366 (Gcc_backend::gcc_backend): Remove.
367 (go_get_backend): Use new to create new Gcc_backend.
369 2014-04-25 Chris Manghane <cmang@google.com>
371 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
372 (Gcc_backend::return_statement): Push and pop function.
373 (Gcc_backend::label): Likewise.
374 (Gcc_backend::function_defer_statement): Likewise.
375 (Gcc_backend::switch_statement): Add function parameter.
376 (Gcc_backend::block): Don't permit function to be NULL.
377 (Gcc_backend::temporary_variable): Change go_assert to
379 (Gcc_backend::gc_root_variable): New function.
380 (Gcc_backend::write_global_definitions): New function.
382 2014-04-22 Chris Manghane <cmang@google.com>
384 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
385 call to create_tmp_var. Require that function be non-NULL.
387 2014-04-17 Chris Manghane <cmang@google.com>
389 * go-gcc.cc (Gcc_backend::named_constant_expression): New
392 2014-04-14 Chris Manghane <cmang@google.com>
394 * go-gcc.cc: Include "convert.h".
395 (Gcc_backend::string_constant_expression): New function.
396 (Gcc_backend::real_part_expression): Likewise.
397 (Gcc_backend::imag_part_expression): Likewise.
398 (Gcc_backend::complex_expression): Likewise.
399 (Gcc_backend::constructor_expression): Likewise.
400 (Gcc_backend::array_constructor_expression): Likewise.
401 (Gcc_backend::pointer_offset_expression): Likewise.
402 (Gcc_backend::array_index_expression): Likewise.
403 (Gcc_backend::call_expression): Likewise.
404 (Gcc_backend::exception_handler_statement): Likewise.
405 (Gcc_backend::function_defer_statement): Likewise.
406 (Gcc_backend::function_set_parameters): Likewise.
407 (Gcc_backend::function_set_body): Likewise.
408 (Gcc_backend::convert_expression): Handle various type
411 2014-03-03 Ian Lance Taylor <iant@google.com>
413 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
415 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
418 2014-01-24 Chris Manghane <cmang@google.com>
420 * go-gcc.cc (Gcc_backend::unary_expression): New function.
422 2014-01-16 Chris Manghane <cmang@google.com>
424 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
426 (operator_to_tree_code): New static function.
427 (Gcc_backend::binary_expression): New function.
429 2014-01-14 Chris Manghane <cmang@google.com>
431 * go-gcc.cc (Gcc_backend::compound_expression): New function.
432 (Gcc_backend::conditional_expression): New function.
434 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
436 Update copyright years
438 2014-01-02 Tobias Burnus <burnus@net-b.de>
440 * gccgo.texi: Bump @copying's copyright year.
442 2013-12-16 Chris Manghane <cmang@google.com>
444 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
446 2013-12-11 Ian Lance Taylor <iant@google.com>
448 * go-lang.c (go_langhook_post_options): Disable sibling calls by
451 2013-12-10 Ian Lance Taylor <iant@google.com>
453 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
456 2013-12-05 Ian Lance Taylor <iant@google.com>
458 Revert this change; no longer required.
459 2013-11-06 Ian Lance Taylor <iant@google.com>
461 * go-lang.c (go_langhook_post_options): If
462 -fisolate-erroneous-paths was turned on by an optimization option,
465 2013-11-23 Ian Lance Taylor <iant@google.com>
467 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
470 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
472 * go-gcc.cc: Add required include files from gimple.h.
473 * go-lang.c: Likewise
475 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
477 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
478 tree_to_shwi throughout.
480 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
482 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
483 tree_fits_shwi_p throughout.
485 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
487 * go-lang.c: Include only gimplify.h and gimple.h as needed.
489 2013-11-14 Diego Novillo <dnovillo@google.com>
491 * go-backend.c: Include stor-layout.h.
492 * go-gcc.cc: Include stringpool.h.
493 Include stor-layout.h.
495 * go-lang.c: Include stor-layout.h.
497 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
499 * go-lang.c: Include gimplify.h.
501 2013-11-06 Ian Lance Taylor <iant@google.com>
503 * go-lang.c (go_langhook_post_options): If
504 -fisolate-erroneous-paths was turned on by an optimization option,
507 2013-10-14 Chris Manghane <cmang@google.com>
509 * go-gcc.cc (Gcc_backend::address_expression): New function.
511 2013-10-11 Chris Manghane <cmang@google.com>
513 * go-gcc.cc (Gcc_backend::function_code_expression): New
516 2013-10-10 Chris Manghane <cmang@google.com>
518 * go-gcc.cc (Gcc_backend::error_function): New function.
519 (Gcc_backend::function): New function.
520 (Gcc_backend::make_function): New function.
521 (function_to_tree): New function.
523 2013-10-04 Chris Manghane <cmang@google.com>
525 * go-gcc.cc (Gcc_backend::convert_expression): New function.
527 2013-10-02 Chris Manghane <cmang@google.com>
529 * go-gcc.cc: Include "real.h" and "realmpfr.h".
530 (Gcc_backend::integer_constant_expression): New function.
531 (Gcc_backend::float_constant_expression): New function.
532 (Gcc_backend::complex_constant_expression): New function.
534 2013-09-30 Chris Manghane <cmang@google.com>
536 * go-gcc.cc (Gcc_backend::error_expression): New function.
537 (Gcc_backend::var_expression): New function.
538 (Gcc_backend::indirect_expression): New function.
540 2013-09-25 Tom Tromey <tromey@redhat.com>
542 * Make-lang.in (gospec.o): Remove.
543 (CFLAGS-go/gospec.o): New variable.
544 (GCCGO_OBJS): Update to use go/gospec.o.
546 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
547 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
548 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
549 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
550 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
551 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
552 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
553 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
554 (go/unsafe.o): Remove.
555 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
556 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
558 2013-09-25 Tom Tromey <tromey@redhat.com>
560 * Make-lang.in (gospec.o): Don't use subshell.
562 2013-08-28 Ian Lance Taylor <iant@google.com>
564 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
565 the struct is not hidden.
566 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
568 2013-08-06 Ian Lance Taylor <iant@google.com>
570 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
571 compute_reloc_for_constant.
573 2013-08-02 Ian Lance Taylor <iant@google.com>
575 * go-gcc.cc (immutable_struct_set_init): Always call
576 resolve_unique_section.
578 2013-07-24 Ian Lance Taylor <iant@google.com>
580 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
581 fields, recreate those fields with the first one with a non-zero
584 2013-07-23 Ian Lance Taylor <iant@google.com>
586 * go-backend.c: Don't #include "rtl.h".
587 (go_imported_unsafe): Don't call init_varasm_once.
588 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
590 2013-07-23 Ian Lance Taylor <iant@google.com>
592 * go-lang.c: Don't #include "except.h".
593 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
595 2013-06-18 Ian Lance Taylor <iant@google.com>
597 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
599 (Gcc_backend::immutable_struct_set_init): Likewise.
601 2013-05-16 Jason Merrill <jason@redhat.com>
603 * Make-lang.in (go1$(exeext)): Use link mutex.
605 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
607 * gospec.c: pass -u pthread_create to linker when static linking.
609 2012-12-21 Ian Lance Taylor <iant@google.com>
612 * go-system.h: Don't include <cstdio>.
614 2012-12-18 Ian Lance Taylor <iant@google.com>
617 * gospec.c: Revert last patch.
619 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
622 * gospec.c (LIBATOMIC): Define.
623 (LIBATOMIC_PROFILE): Define.
624 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
626 2012-11-29 Ian Lance Taylor <iant@google.com>
628 * go-gcc.cc: Include "output.h".
629 (global_variable): Add is_unique_section parameter.
630 (global_variable_set_init): Adjust unique section if necessary.
631 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
633 2012-11-17 Diego Novillo <dnovillo@google.com>
635 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
637 * go-lang.c: Use new vec API in vec.h.
639 2012-11-16 Ian Lance Taylor <iant@google.com>
641 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
642 (go1$(exeext)): Likewise.
644 2012-10-30 Ian Lance Taylor <iant@google.com>
646 * lang.opt (-fgo-relative-import-path): New option.
647 * go-lang.c (go_relative_import_path): New static variable.
648 (go_langhook_init): Pass go_relative_import_path to
650 (go_langhook_handle_option): Handle -fgo-relative-import-path.
651 * go-c.h (go_create_gogo): Update declaration.
652 * gccgo.texi (Invoking gccgo): Document
653 -fgo-relative-import-path.
655 2012-09-17 Ian Lance Taylor <iant@google.com>
657 * config-lang.in (target_libs): Add target-libbacktrace.
659 2012-09-16 Ian Lance Taylor <iant@google.com>
661 * Make-lang.in (go/gogo.o): Depend on filenames.h.
663 2012-08-14 Diego Novillo <dnovillo@google.com>
665 Merge from cxx-conversion branch. Configury.
667 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
668 * go-gcc.cc: Likewise.
669 * go-system.h: Likewise.
671 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
673 * go-lang.c (lang_decl): Add variable_size GTY option.
675 2012-05-09 Ian Lance Taylor <iant@google.com>
677 * lang.opt: Add -fgo-pkgpath.
678 * go-lang.c (go_pkgpath): New static variable.
679 (go_prefix): New static variable.
680 (go_langhook_init): Pass go_pkgpath and go_prefix to
682 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
683 -fgo-prefix handling to just set go_prefix.
684 * go-c.h (go_set_prefix): Don't declare.
685 (go_create_gogo): Add pkgpath and prefix to declaration.
686 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
687 to pkgpath. Don't include the package name in the asm name.
688 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
689 docs for -fgo-prefix.
691 2012-04-23 Ian Lance Taylor <iant@google.com>
693 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
695 2012-04-20 Ian Lance Taylor <iant@google.com>
697 * lang.opt: Add -fgo-check-divide-zero and
698 -fgo-check-divide-overflow.
699 * gccgo.texi (Invoking gccgo): Document new options.
701 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
703 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
704 with NULL_TREE type instead of void_type_node.
706 2012-03-09 Ian Lance Taylor <iant@google.com>
708 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
709 to the lhs type if necessary.
711 2012-03-08 Ian Lance Taylor <iant@google.com>
713 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
715 (go_non_zero_struct): New global variable.
716 (Gcc_backend::non_zero_size_type): New function.
717 (Gcc_backend::global_variable): Don't build an assignment for a
719 * go-c.h (go_non_zero_struct): Declare.
720 * config-lang.in (gtfiles): Add go-c.h.
722 2012-02-29 Ian Lance Taylor <iant@google.com>
724 * go-gcc.cc (class Gcc_tree): Add set_tree method.
725 (set_placeholder_pointer_type): When setting to a pointer to
726 error, set to error_mark_node.
728 2012-02-23 Richard Guenther <rguenther@suse.de>
730 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
731 build_distinct_type_copy.
733 2012-02-17 Ian Lance Taylor <iant@google.com>
735 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
737 2012-02-17 Ian Lance Taylor <iant@google.com>
739 * gospec.c (lang_specific_driver): If linking, and no -o option
742 2012-02-14 Ian Lance Taylor <iant@google.com>
745 * Make-lang.in (gccgo-cross$(exeext)): New target.
746 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
748 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
749 gccgo-cross$(exeext) does not exist.
751 2012-02-07 Ian Lance Taylor <iant@google.com>
753 * gccgo.texi (Function Names): Document //extern instead of
756 2012-02-01 Jakub Jelinek <jakub@redhat.com>
759 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
760 return build_nonstandard_integer_type result if possible.
762 2012-01-21 Ian Lance Taylor <iant@google.com>
764 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
765 (Gcc_backend::type_alignment): Likewise.
766 (Gcc_backend::type_field_alignment): Likewise.
767 (Gcc_backend::type_field_offset): Likewise.
769 2012-01-20 Ian Lance Taylor <iant@google.com>
771 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
773 (Gcc_backend::set_placeholder_struct_type): Likewise.
775 2012-01-17 Ian Lance Taylor <iant@google.com>
777 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
778 BASE.s rather than -o BASE.o.
780 2012-01-11 Ian Lance Taylor <iant@google.com>
782 * go-lang.c (go_langhook_init): Initialize void_list_node before
783 calling go_create_gogo.
785 2012-01-10 Ian Lance Taylor <iant@google.com>
787 * go-gcc.cc (Gcc_backend::type_size): New function.
788 (Gcc_backend::type_alignment): New function.
789 (Gcc_backend::type_field_alignment): New function.
790 (Gcc_backend::type_field_offset): New function.
791 * go-backend.c (go_type_alignment): Remove.
792 * go-c.h (go_type_alignment): Don't declare.
794 2011-12-27 Ian Lance Taylor <iant@google.com>
796 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
797 build_distinct_type_copy rather than build_variant_type_copy.
798 (Gcc_backend::set_placeholder_array_type): Likewise.
799 (Gcc_backend::named_type): Add special handling for builtin
802 2011-12-22 Ian Lance Taylor <iant@google.com>
804 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
805 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
806 (Gcc_backend::set_placeholder_struct_type): Likewise.
807 (Gcc_backend::set_placeholder_array_type): Likewise.
808 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
810 2011-12-13 Ian Lance Taylor <iant@google.com>
812 * go-backend.c: #include "simple-object.h" and "intl.h".
813 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
814 (GO_EXPORT_SECTION_NAME): Likewise.
815 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
816 (go_read_export_data): New function.
817 * go-c.h (go_read_export_data): Declare.
819 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
820 Ian Lance Taylor <iant@google.com>
822 * go-location.h: New file.
823 * go-linemap.cc: New file.
824 * go-gcc.cc: Change all uses of source_location to Location.
825 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
826 (GO_LINEMAP_H): New variable.
827 (GO_LEX_H): Use $(GO_LINEMAP_H).
828 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
829 (go/go-linemap.o): New target.
831 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
833 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
835 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
837 * lang.opt: Add fgo-optimize-.
838 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
839 * go-c.h (go_enable_optimize): Declare.
840 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
841 (GO_EXPORT_H): Define.
842 (GO_IMPORT_H): Add $(GO_EXPORT_H).
843 (GO_AST_DUMP_H): Define.
844 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
845 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
846 (go/types.o): Likewise.
847 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
848 (go/go-optimize.o): New target.
850 2011-08-24 Joseph Myers <joseph@codesourcery.com>
852 * Make-lang.in (CFLAGS-go/go-lang.o): New.
853 (go/go-lang.o): Remove explicit compilation rule.
855 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
857 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
859 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
861 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
862 (go/ast-dump.o): New target.
863 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
864 (go/statements.o): Likewise.
866 2011-07-06 Richard Guenther <rguenther@suse.de>
868 * go-lang.c (go_langhook_init):
869 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
871 2011-06-14 Joseph Myers <joseph@codesourcery.com>
873 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
875 * go-backend.c: Include common/common-target.h.
876 (go_write_export_data): Use targetm_common.have_named_sections.
877 * go-lang.c: Include common/common-target.h.
878 (go_langhook_init_options_struct): Use
879 targetm_common.supports_split_stack.
881 2011-06-13 Ian Lance Taylor <iant@google.com>
883 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
885 2011-06-10 Ian Lance Taylor <iant@google.com>
887 * go-gcc.cc: Include "toplev.h".
888 (Gcc_backend::immutable_struct): New function.
889 (Gcc_backend::immutable_struct_set_init): New function.
890 (Gcc_backend::immutable_struct_reference): New function.
891 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
893 2011-06-09 Ian Lance Taylor <iant@google.com>
895 * go-gcc.cc (Gcc_backend::zero_expression): New function.
897 2011-06-07 Richard Guenther <rguenther@suse.de>
899 * go-lang.c (go_langhook_init): Do not set
900 size_type_node or call set_sizetype.
902 2011-05-27 Ian Lance Taylor <iant@google.com>
904 * go-backend.c: Include "output.h".
905 (go_write_export_data): New function.
906 * go-c.h (go_write_export_data): Declare.
907 * Make-lang.in (go/go-backend.o): Depend on output.h.
908 (go/export.o): Depend on $(GO_C_H). Do not depend on
909 $(MACHMODE_H), output.h, or $(TARGET_H).
911 2011-05-24 Joseph Myers <joseph@codesourcery.com>
913 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
914 (gccgo$(exeext)): Use libcommon-target.a.
916 2011-05-20 Joseph Myers <joseph@codesourcery.com>
918 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
920 2011-05-13 Ian Lance Taylor <iant@google.com>
922 * go-gcc.cc (Gcc_backend::function_type): When building a struct
923 for multiple results, check that all fields types have a size.
924 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
926 2011-05-12 Ian Lance Taylor <iant@google.com>
928 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
930 (Gcc_backend::parameter_variable): Likewise.
932 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
934 * go-lang.c (global_bindings_p): Return bool and simplify.
936 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
938 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
940 2011-05-04 Ian Lance Taylor <iant@google.com>
942 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
943 (Gcc_backend::fill_in_struct): New function.
944 (Gcc_backend::array_type): Implement.
945 (Gcc_backend::fill_in_array): New function.
946 (Gcc_backend::placeholder_pointer_type): New function.
947 (Gcc_backend::set_placeholder_pointer_type): New function.
948 (Gcc_backend::set_placeholder_function_type): New function.
949 (Gcc_backend::placeholder_struct_type): New function.
950 (Gcc_backend::set_placeholder_struct_type): New function.
951 (Gcc_backend::placeholder_array_type): New function.
952 (Gcc_backend::set_placeholder_array_type): New function.
953 (Gcc_backend::named_type): New function.
954 (Gcc_backend::circular_pointer_type): New function.
955 (Gcc_backend::is_circular_pointer_type): New function.
957 2011-04-26 Ian Lance Taylor <iant@google.com>
959 * go-gcc.cc (Gcc_backend::struct_type): Implement.
961 2011-04-25 Ian Lance Taylor <iant@google.com>
963 * go-gcc.cc (Gcc_backend::error_type): Implement.
964 (Gcc_backend::string_type): Remove.
965 (Gcc_backend::function_type): Change signature and implement.
966 (Gcc_backend::struct_type): Change signature.
967 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
968 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
969 (Gcc_backend::pointer_type): Check for error.
970 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
972 2011-04-25 Evan Shaw <edsrzf@gmail.com>
974 * go-gcc.c (class Gcc_tree): Make get_tree const.
975 (Gcc_backend::void_type): Implement.
976 (Gcc_backend::bool_type): Implement.
977 (Gcc_backend::integer_type): Implement.
978 (Gcc_backend::float_type): Implement.
979 (Gcc_backend::complex_type): New function.
980 (Gcc_backend::pointer_type): New function.
981 (Gcc_backend::make_type): New function.
982 (type_to_tree): New function.
984 2011-04-21 Ian Lance Taylor <iant@google.com>
986 * go-system.h (go_assert, go_unreachable): Define.
988 2011-04-19 Ian Lance Taylor <iant@google.com>
990 * go-system.h: Include "intl.h".
991 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
992 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
993 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
995 2011-04-19 Ian Lance Taylor <iant@google.com>
997 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
999 2011-04-19 Ian Lance Taylor <iant@google.com>
1001 * go-gcc.cc (class Bblock): Define.
1002 (Gcc_backend::if_statement): Change then_block and else_block to
1004 (Gcc_backend::block): New function.
1005 (Gcc_backend::block_add_statements): New function.
1006 (Gcc_backend::block_statement): New function.
1007 (tree_to_block, block_to_tree): New functions.
1009 2011-04-18 Ian Lance Taylor <iant@google.com>
1011 * go-gcc.cc: Include "go-c.h".
1012 (class Bvariable): Define.
1013 (Gcc_backend::init_statement): New function.
1014 (Gcc_backend::global_variable): New function.
1015 (Gcc_backend::global_variable_set_init): New function.
1016 (Gcc_backend::local_variable): New function.
1017 (Gcc_backend::parameter_variable): New function.
1018 (tree_to_type, var_to_tree): New functions.
1019 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1020 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1022 2011-04-15 Ian Lance Taylor <iant@google.com>
1024 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1025 (Gcc_backend::assignment_statement): Use error_statement.
1026 (Gcc_backend::return_statement): Likewise.
1027 (Gcc_backend::if_statement): Likewise.
1028 (Gcc_backend::switch_statement): Likewise.
1029 (Gcc_backend::statement_list): Likewise.
1031 2011-04-14 Ian Lance Taylor <iant@google.com>
1033 * go-gcc.cc (Gcc_backend::error_statement): New function.
1035 2011-04-13 Ian Lance Taylor <iant@google.com>
1037 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1039 2011-04-13 Ian Lance Taylor <iant@google.com>
1041 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1042 (GO_RUNTIME_H): New variable.
1043 (go/runtime.o): New target.
1044 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1045 (go/statements.o): Likewise.
1047 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1049 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1052 2011-04-06 Ian Lance Taylor <iant@google.com>
1054 * go-gcc.cc (if_statement): Use build3_loc.
1055 (Gcc_backend::switch_statement): New function.
1056 (Gcc_backend::statement_list): New function.
1058 2011-04-06 Ian Lance Taylor <iant@google.com>
1060 * go-gcc.cc (Gcc_backend::if_statement): New function.
1061 (tree_to_stat): New function.
1062 (expr_to_tree): Renamed from expression_to_tree.
1063 (stat_to_tree): Renamed from statement_to_tree.
1065 2011-04-06 Ian Lance Taylor <iant@google.com>
1067 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1069 2011-04-04 Ian Lance Taylor <iant@google.com>
1071 * go-gcc.c (class Blabel): Define.
1072 (Gcc_backend::make_expression): New function.
1073 (get_identifier_from_string): New function.
1074 (Gcc_backend::label): New function.
1075 (Gcc_backend::label_definition_statement): New function.
1076 (Gcc_backend::goto_statement): New function.
1077 (Gcc_backend::label_address): New function.
1078 (expression_to_tree): New function.
1079 * Make-lang.in (go/expressions.o): Depend on
1080 go/gofrontend/backend.h.
1081 (go/gogo.o): Likewise.
1083 2011-04-04 Ian Lance Taylor <iant@google.com>
1085 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1086 (class Bfunction): Define.
1087 (Gcc_backend::assignment_statement): Rename from assignment.
1089 (Gcc_backend::return_statement): New function.
1090 (tree_to_function): New function.
1091 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1092 $(GIMPLE_H), and $(GO_GOGO_H).
1094 2011-04-03 Ian Lance Taylor <iant@google.com>
1096 * go-gcc.cc: New file.
1097 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1098 (go/go-gcc.o): New target.
1099 (go/go.o): Depend on go/gofrontend/backend.h.
1100 (go/statements.o): Likewise.
1102 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1104 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1106 2011-02-08 Ian Lance Taylor <iant@google.com>
1108 * go-lang.c (go_langhook_init_options_struct): Set
1109 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1111 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1113 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1114 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1116 2011-01-21 Ian Lance Taylor <iant@google.com>
1118 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1120 * go-c.h: Update declaration of go_create_gogo.
1122 2011-01-13 Ian Lance Taylor <iant@google.com>
1124 * go-backend.c: Include "rtl.h" and "target.h".
1125 (go_imported_unsafe): New function.
1126 * go-c.h (go_imported_unsafe): Declare.
1127 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1128 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1129 (go/unsafe.o): Depend on $(GO_C_H).
1131 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1134 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1137 2010-12-21 Ian Lance Taylor <iant@google.com>
1139 * Make-lang.in (check-go): Remove.
1140 (lang_checks_parallelized): Add check-go.
1141 (check_go_parallelize): Set.
1143 2010-12-13 Ian Lance Taylor <iant@google.com>
1145 * gospec.c (lang_specific_driver): Add a -o option if not linking
1146 and there is no -o option already.
1148 2010-12-07 Ian Lance Taylor <iant@google.com>
1150 PR tree-optimization/46805
1151 PR tree-optimization/46833
1152 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1154 2010-12-06 Ian Lance Taylor <iant@google.com>
1158 * go-lang.c (go_char_p): Define type and vectors.
1159 (go_search_dirs): New static variable.
1160 (go_langhook_handle_option): Use version and version/machine
1162 (go_langhook_post_options): Add non-specific -L paths.
1163 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1164 DEFAULT_TARGET_MACHINE when compiling.
1165 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1166 (Import and Export): Don't mention -L for finding import files.
1168 2010-12-03 Ian Lance Taylor <iant@google.com>
1171 * go-backend.c: New file.
1172 * go-c.h (go_type_alignment): Declare.
1173 (go_field_alignment, go_trampoline_info): Declare.
1174 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1175 (go/go-backend.o): New target.
1176 (go/go-lang.o): Make dependencies match source file.
1177 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1178 (go/gogo-tree.o): Don't depend on $(TM_H).
1180 2010-12-03 Ian Lance Taylor <iant@google.com>
1182 * config-lang.in (build_by_default): Set to no.
1184 2010-12-02 Ian Lance Taylor <iant@google.com>
1186 Go frontend added to gcc repository.
1188 Copyright (C) 2010-2016 Free Software Foundation, Inc.
1190 Copying and distribution of this file, with or without modification,
1191 are permitted in any medium without royalty provided the copyright
1192 notice and this notice are preserved.