1 2016-12-21 Release Manager
5 2016-08-22 Release Manager
9 2016-04-27 Release Manager
13 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
16 neighbour -> neighbor.
17 * gccgo.texi: Likewise.
19 2016-01-27 Ian Lance Taylor <iant@google.com>
21 * go-lang.c (go_langhook_init_options_struct): Default to
24 2016-01-04 Jakub Jelinek <jakub@redhat.com>
26 Update copyright years.
28 * gccgo.texi: Bump @copyrights-go year.
30 2015-12-21 Ian Lance Taylor <iant@google.com>
32 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
33 t_ and orig_type_ fields. Add new two parameter constructor. Add
34 get_tree and get_decl methods.
35 (Gcc_backend::var_expression): Pass location to var get_tree.
36 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
37 two parameter constructor for Bvariable.
38 (Gcc_backend::global_variable_set_init): Don't remove
39 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
40 (Gcc_backend::write_global_definitions): Likewise.
41 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
42 (Gcc_backend::block): Likewise.
43 (Gcc_backend::implicit_variable_set_init): Likewise.
44 (Gcc_backend::immutable_struct_set_init): Likewise.
45 (Gcc_backend::function_set_parameters): Likewise.
47 2015-12-21 Ian Lance Taylor <iant@google.com>
49 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
50 add a VIEW_CONVERT_EXPR to the tree.
51 (Gcc_backend::global_variable_set_init): Remove any
53 (Gcc_backend::write_global_definitions): Likewise.
55 2015-11-30 Ian Lance Taylor <iant@google.com>
58 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
59 TYPE_STRING_FLAG on a variant type.
61 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
63 * go-backend.c: Remove unused header files.
64 * go-gcc.cc: Likewise.
65 * go-lang.c: Likewise.
68 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
70 * go-backend.c: Reorder #include's and remove duplicates.
71 * go-lang.c: Likewise.
73 2015-10-20 Alan Modra <amodra@gmail.com>
76 * gospec.c (saw_opt_m32): Rename to..
77 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
79 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
81 2015-10-01 Ian Lance Taylor <iant@google.com>
84 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
85 TARGET_CAN_SPLIT_STACK_64BIT is defined.
87 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
90 * gospec.c (lang_specific_driver): Set appropriate split stack
91 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
93 2015-09-10 Chris Manghane <cmang@google.com>
95 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
98 2015-08-24 Marek Polacek <polacek@redhat.com>
100 PR tree-optimization/67284
101 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
102 Set TREE_THIS_VOLATILE.
103 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
104 Pass false to the rest of define_builtin calls.
106 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
108 * go-lang.c (go_langhook_init_options_struct): Don't set
110 (go_langhook_post_options): Set it here instead.
112 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
114 * gofrontend/backend.h: Fix double word typos.
115 * gofrontend/expressions.cc: Same.
118 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
120 * go-backend.c: Adjust includes.
121 * go-gcc.cc: Likewise.
122 * go-lang.c: Likewise.
124 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
126 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
128 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
130 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
131 * go-gcc.cc: Likewise.
132 * go-lang.c: Likewise.
133 * go-system.h: Likewise.
135 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
137 * go-backend.c : Adjust include files.
138 * go-gcc.cc : Likewise.
139 * go-lang.c : Likewise.
141 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
143 * go-gcc.cc (write_global_definitions): Remove call to
144 finalize_compilation_unit.
145 Remove Go specific debug generation.
146 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
147 (go_langhook_write_globals): Remove.
148 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
150 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
152 * go-backend.c: Adjust includes for restructured coretypes.h.
154 * go-gcc.cc: Likewise.
155 * go-lang.c: Likewise.
157 2015-04-30 Chris Manghane <cmang@google.com>
159 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
162 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
164 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
166 2015-04-17 Chris Manghane <cmang@google.com>
168 * Make-lang.in (GO_OBJS): Add go/escape.o.
170 2015-02-02 Ian Lance Taylor <iant@google.com>
174 * go-gcc.cc (Gcc_backend::type_size): Change return type to
176 (Gcc_backend::type_alignment): Likewise.
177 (Gcc_backend::type_field_alignment): Likewise.
178 (Gcc_backend::type_field_offset): Likewise.
179 (Gcc_backend::implicit_variable): Change alignment parameter type
182 2015-01-23 Ian Lance Taylor <iant@google.com>
185 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
188 * gccgo.texi (C Interoperability): Mention that people should use
191 2015-01-23 Ian Lance Taylor <iant@google.com>
194 * go-lang.c (go_langhook_init_options_struct): Set default
196 (go_langhook_post_options): If debug_info_level is still the
197 default, make sure write_symbols is set.
198 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
200 2015-01-16 Richard Henderson <rth@redhat.com>
202 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
203 (Gcc_backend::static_chain_variable): New method.
205 2015-01-09 Ian Lance Taylor <iant@google.com>
207 * config-lang.in (lang_dirs): Define.
209 2015-01-09 Michael Collison <michael.collison@linaro.org>
211 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
212 input.h, alias.h, symtab.h, options.h, fold-const.h,
213 wide-int.h, and inchash.h due to flattening of tree.h.
215 * go-backend.c: Ditto.
217 2015-01-07 Chris Manghane <cmang@google.com>
220 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
223 2015-01-06 Chris Manghane <cmang@google.com>
225 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
226 initialize zero-sized fields, just evaluate the values for side
229 2015-01-05 Jakub Jelinek <jakub@redhat.com>
231 Update copyright years.
233 * gccgo.texi: Bump @copyrights-go year.
235 2014-12-19 Chris Manghane <cmang@google.com>
237 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
238 construct arrays of zero-sized values.
240 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
242 * go-lang.c: Remove redundant enum from machine_mode.
244 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
246 * go-gcc.cc: Adjust include files.
248 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
250 * go-gcc.cc: Adjust include files.
253 2014-10-23 Ian Lance Taylor <iant@google.com>
255 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
256 mpc_t parameter instead of two mpfr_t parameters.
258 2014-09-15 Jakub Jelinek <jakub@redhat.com>
260 * Make-lang.in (check_go_parallelize): Change to just an upper bound
263 2014-09-03 Chris Manghane <cmang@google.com>
265 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
266 parameter. Add is_hidden parameter.
267 (Gcc_backend::implicit_variable_set_init): New method.
268 (Gcc_backend::implicit_variable_reference): New method.
270 2014-08-08 Ian Lance Taylor <iant@google.com>
272 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
275 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
277 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
278 symtab_get_node to symtab_node::get.
280 2014-06-13 Ian Lance Taylor <iant@google.com>
283 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
284 ld, add -t option to avoid warning about common symbol changing
287 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
289 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
290 symtab_get_node(var_decl)->implicit_section.
292 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
294 * go-gcc.cc (global_variable_set_init): Use
295 set_decl_section_name.
297 2014-06-04 Ian Lance Taylor <iant@google.com>
299 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
300 alignment parameters. Permit init parameter to be NULL.
302 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
304 * go-gcc.cc: Include builtins.h.
306 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
308 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
310 2014-05-06 Chris Manghane <cmang@google.com>
312 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
313 (Gcc_backend::boolean_constant_expression): New method.
314 (Gcc_backend::zero_expression): Use this->make_expression rather
316 (Gcc_backend::var_expression): Likewise.
317 (Gcc_backend::integer_constant_expression): Likewise.
318 (Gcc_backend::float_constant_expression): Likewise.
319 (Gcc_backend::complex_constant_expression): Likewise.
320 (Gcc_backend::struct_field_expression): Likewise.
321 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
322 (tree_to_function, tree_to_block): Remove functions.
323 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
324 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
326 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
327 Mike Stump <mikestump@comcast.net>
328 Richard Sandiford <rdsandiford@googlemail.com>
330 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
332 2014-05-06 Chris Manghane <cmang@google.com>
334 * go-c.h (go_create_gogo): Update declaration to add
335 check_divide_zero and check_divide_overflow parameters.
336 * go-lang.c (go_langhook_init): Pass new arguments to
339 2014-05-05 Chris Manghane <cmang@google.com>
341 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
342 gc_root_variable. Add name and is_constant parameters.
344 2014-05-05 Chris Manghane <cmang@google.com>
346 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
348 (Gcc_backend::temporary_variable): Check for erroneous function.
350 2014-04-30 Chris Manghane <cmang@google.com>
352 * go-backend.c: #include "diagnostics.h".
353 (saw_errors): New function.
354 * go-c.h (saw_errors): Declare.
355 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
357 2014-04-30 Chris Manghane <cmang@google.com>
359 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
360 calling into Go frontend.
361 (go_langhook_type_for_mode): Likewise.
362 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
364 2014-04-30 Chris Manghane <cmang@google.com>
366 * go-gcc.cc: #include "langhooks.h".
367 (Gcc_backend::Gcc_backend): Add constructor.
368 (Gcc_backend::lookup_function): New function.
369 (Gcc_backend::define_builtin): New private function.
370 (Gcc_backend::gcc_backend): Remove.
371 (go_get_backend): Use new to create new Gcc_backend.
373 2014-04-25 Chris Manghane <cmang@google.com>
375 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
376 (Gcc_backend::return_statement): Push and pop function.
377 (Gcc_backend::label): Likewise.
378 (Gcc_backend::function_defer_statement): Likewise.
379 (Gcc_backend::switch_statement): Add function parameter.
380 (Gcc_backend::block): Don't permit function to be NULL.
381 (Gcc_backend::temporary_variable): Change go_assert to
383 (Gcc_backend::gc_root_variable): New function.
384 (Gcc_backend::write_global_definitions): New function.
386 2014-04-22 Chris Manghane <cmang@google.com>
388 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
389 call to create_tmp_var. Require that function be non-NULL.
391 2014-04-17 Chris Manghane <cmang@google.com>
393 * go-gcc.cc (Gcc_backend::named_constant_expression): New
396 2014-04-14 Chris Manghane <cmang@google.com>
398 * go-gcc.cc: Include "convert.h".
399 (Gcc_backend::string_constant_expression): New function.
400 (Gcc_backend::real_part_expression): Likewise.
401 (Gcc_backend::imag_part_expression): Likewise.
402 (Gcc_backend::complex_expression): Likewise.
403 (Gcc_backend::constructor_expression): Likewise.
404 (Gcc_backend::array_constructor_expression): Likewise.
405 (Gcc_backend::pointer_offset_expression): Likewise.
406 (Gcc_backend::array_index_expression): Likewise.
407 (Gcc_backend::call_expression): Likewise.
408 (Gcc_backend::exception_handler_statement): Likewise.
409 (Gcc_backend::function_defer_statement): Likewise.
410 (Gcc_backend::function_set_parameters): Likewise.
411 (Gcc_backend::function_set_body): Likewise.
412 (Gcc_backend::convert_expression): Handle various type
415 2014-03-03 Ian Lance Taylor <iant@google.com>
417 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
419 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
422 2014-01-24 Chris Manghane <cmang@google.com>
424 * go-gcc.cc (Gcc_backend::unary_expression): New function.
426 2014-01-16 Chris Manghane <cmang@google.com>
428 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
430 (operator_to_tree_code): New static function.
431 (Gcc_backend::binary_expression): New function.
433 2014-01-14 Chris Manghane <cmang@google.com>
435 * go-gcc.cc (Gcc_backend::compound_expression): New function.
436 (Gcc_backend::conditional_expression): New function.
438 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
440 Update copyright years
442 2014-01-02 Tobias Burnus <burnus@net-b.de>
444 * gccgo.texi: Bump @copying's copyright year.
446 2013-12-16 Chris Manghane <cmang@google.com>
448 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
450 2013-12-11 Ian Lance Taylor <iant@google.com>
452 * go-lang.c (go_langhook_post_options): Disable sibling calls by
455 2013-12-10 Ian Lance Taylor <iant@google.com>
457 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
460 2013-12-05 Ian Lance Taylor <iant@google.com>
462 Revert this change; no longer required.
463 2013-11-06 Ian Lance Taylor <iant@google.com>
465 * go-lang.c (go_langhook_post_options): If
466 -fisolate-erroneous-paths was turned on by an optimization option,
469 2013-11-23 Ian Lance Taylor <iant@google.com>
471 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
474 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
476 * go-gcc.cc: Add required include files from gimple.h.
477 * go-lang.c: Likewise
479 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
481 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
482 tree_to_shwi throughout.
484 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
486 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
487 tree_fits_shwi_p throughout.
489 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
491 * go-lang.c: Include only gimplify.h and gimple.h as needed.
493 2013-11-14 Diego Novillo <dnovillo@google.com>
495 * go-backend.c: Include stor-layout.h.
496 * go-gcc.cc: Include stringpool.h.
497 Include stor-layout.h.
499 * go-lang.c: Include stor-layout.h.
501 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
503 * go-lang.c: Include gimplify.h.
505 2013-11-06 Ian Lance Taylor <iant@google.com>
507 * go-lang.c (go_langhook_post_options): If
508 -fisolate-erroneous-paths was turned on by an optimization option,
511 2013-10-14 Chris Manghane <cmang@google.com>
513 * go-gcc.cc (Gcc_backend::address_expression): New function.
515 2013-10-11 Chris Manghane <cmang@google.com>
517 * go-gcc.cc (Gcc_backend::function_code_expression): New
520 2013-10-10 Chris Manghane <cmang@google.com>
522 * go-gcc.cc (Gcc_backend::error_function): New function.
523 (Gcc_backend::function): New function.
524 (Gcc_backend::make_function): New function.
525 (function_to_tree): New function.
527 2013-10-04 Chris Manghane <cmang@google.com>
529 * go-gcc.cc (Gcc_backend::convert_expression): New function.
531 2013-10-02 Chris Manghane <cmang@google.com>
533 * go-gcc.cc: Include "real.h" and "realmpfr.h".
534 (Gcc_backend::integer_constant_expression): New function.
535 (Gcc_backend::float_constant_expression): New function.
536 (Gcc_backend::complex_constant_expression): New function.
538 2013-09-30 Chris Manghane <cmang@google.com>
540 * go-gcc.cc (Gcc_backend::error_expression): New function.
541 (Gcc_backend::var_expression): New function.
542 (Gcc_backend::indirect_expression): New function.
544 2013-09-25 Tom Tromey <tromey@redhat.com>
546 * Make-lang.in (gospec.o): Remove.
547 (CFLAGS-go/gospec.o): New variable.
548 (GCCGO_OBJS): Update to use go/gospec.o.
550 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
551 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
552 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
553 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
554 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
555 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
556 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
557 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
558 (go/unsafe.o): Remove.
559 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
560 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
562 2013-09-25 Tom Tromey <tromey@redhat.com>
564 * Make-lang.in (gospec.o): Don't use subshell.
566 2013-08-28 Ian Lance Taylor <iant@google.com>
568 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
569 the struct is not hidden.
570 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
572 2013-08-06 Ian Lance Taylor <iant@google.com>
574 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
575 compute_reloc_for_constant.
577 2013-08-02 Ian Lance Taylor <iant@google.com>
579 * go-gcc.cc (immutable_struct_set_init): Always call
580 resolve_unique_section.
582 2013-07-24 Ian Lance Taylor <iant@google.com>
584 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
585 fields, recreate those fields with the first one with a non-zero
588 2013-07-23 Ian Lance Taylor <iant@google.com>
590 * go-backend.c: Don't #include "rtl.h".
591 (go_imported_unsafe): Don't call init_varasm_once.
592 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
594 2013-07-23 Ian Lance Taylor <iant@google.com>
596 * go-lang.c: Don't #include "except.h".
597 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
599 2013-06-18 Ian Lance Taylor <iant@google.com>
601 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
603 (Gcc_backend::immutable_struct_set_init): Likewise.
605 2013-05-16 Jason Merrill <jason@redhat.com>
607 * Make-lang.in (go1$(exeext)): Use link mutex.
609 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
611 * gospec.c: pass -u pthread_create to linker when static linking.
613 2012-12-21 Ian Lance Taylor <iant@google.com>
616 * go-system.h: Don't include <cstdio>.
618 2012-12-18 Ian Lance Taylor <iant@google.com>
621 * gospec.c: Revert last patch.
623 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
626 * gospec.c (LIBATOMIC): Define.
627 (LIBATOMIC_PROFILE): Define.
628 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
630 2012-11-29 Ian Lance Taylor <iant@google.com>
632 * go-gcc.cc: Include "output.h".
633 (global_variable): Add is_unique_section parameter.
634 (global_variable_set_init): Adjust unique section if necessary.
635 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
637 2012-11-17 Diego Novillo <dnovillo@google.com>
639 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
641 * go-lang.c: Use new vec API in vec.h.
643 2012-11-16 Ian Lance Taylor <iant@google.com>
645 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
646 (go1$(exeext)): Likewise.
648 2012-10-30 Ian Lance Taylor <iant@google.com>
650 * lang.opt (-fgo-relative-import-path): New option.
651 * go-lang.c (go_relative_import_path): New static variable.
652 (go_langhook_init): Pass go_relative_import_path to
654 (go_langhook_handle_option): Handle -fgo-relative-import-path.
655 * go-c.h (go_create_gogo): Update declaration.
656 * gccgo.texi (Invoking gccgo): Document
657 -fgo-relative-import-path.
659 2012-09-17 Ian Lance Taylor <iant@google.com>
661 * config-lang.in (target_libs): Add target-libbacktrace.
663 2012-09-16 Ian Lance Taylor <iant@google.com>
665 * Make-lang.in (go/gogo.o): Depend on filenames.h.
667 2012-08-14 Diego Novillo <dnovillo@google.com>
669 Merge from cxx-conversion branch. Configury.
671 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
672 * go-gcc.cc: Likewise.
673 * go-system.h: Likewise.
675 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
677 * go-lang.c (lang_decl): Add variable_size GTY option.
679 2012-05-09 Ian Lance Taylor <iant@google.com>
681 * lang.opt: Add -fgo-pkgpath.
682 * go-lang.c (go_pkgpath): New static variable.
683 (go_prefix): New static variable.
684 (go_langhook_init): Pass go_pkgpath and go_prefix to
686 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
687 -fgo-prefix handling to just set go_prefix.
688 * go-c.h (go_set_prefix): Don't declare.
689 (go_create_gogo): Add pkgpath and prefix to declaration.
690 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
691 to pkgpath. Don't include the package name in the asm name.
692 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
693 docs for -fgo-prefix.
695 2012-04-23 Ian Lance Taylor <iant@google.com>
697 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
699 2012-04-20 Ian Lance Taylor <iant@google.com>
701 * lang.opt: Add -fgo-check-divide-zero and
702 -fgo-check-divide-overflow.
703 * gccgo.texi (Invoking gccgo): Document new options.
705 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
707 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
708 with NULL_TREE type instead of void_type_node.
710 2012-03-09 Ian Lance Taylor <iant@google.com>
712 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
713 to the lhs type if necessary.
715 2012-03-08 Ian Lance Taylor <iant@google.com>
717 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
719 (go_non_zero_struct): New global variable.
720 (Gcc_backend::non_zero_size_type): New function.
721 (Gcc_backend::global_variable): Don't build an assignment for a
723 * go-c.h (go_non_zero_struct): Declare.
724 * config-lang.in (gtfiles): Add go-c.h.
726 2012-02-29 Ian Lance Taylor <iant@google.com>
728 * go-gcc.cc (class Gcc_tree): Add set_tree method.
729 (set_placeholder_pointer_type): When setting to a pointer to
730 error, set to error_mark_node.
732 2012-02-23 Richard Guenther <rguenther@suse.de>
734 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
735 build_distinct_type_copy.
737 2012-02-17 Ian Lance Taylor <iant@google.com>
739 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
741 2012-02-17 Ian Lance Taylor <iant@google.com>
743 * gospec.c (lang_specific_driver): If linking, and no -o option
746 2012-02-14 Ian Lance Taylor <iant@google.com>
749 * Make-lang.in (gccgo-cross$(exeext)): New target.
750 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
752 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
753 gccgo-cross$(exeext) does not exist.
755 2012-02-07 Ian Lance Taylor <iant@google.com>
757 * gccgo.texi (Function Names): Document //extern instead of
760 2012-02-01 Jakub Jelinek <jakub@redhat.com>
763 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
764 return build_nonstandard_integer_type result if possible.
766 2012-01-21 Ian Lance Taylor <iant@google.com>
768 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
769 (Gcc_backend::type_alignment): Likewise.
770 (Gcc_backend::type_field_alignment): Likewise.
771 (Gcc_backend::type_field_offset): Likewise.
773 2012-01-20 Ian Lance Taylor <iant@google.com>
775 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
777 (Gcc_backend::set_placeholder_struct_type): Likewise.
779 2012-01-17 Ian Lance Taylor <iant@google.com>
781 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
782 BASE.s rather than -o BASE.o.
784 2012-01-11 Ian Lance Taylor <iant@google.com>
786 * go-lang.c (go_langhook_init): Initialize void_list_node before
787 calling go_create_gogo.
789 2012-01-10 Ian Lance Taylor <iant@google.com>
791 * go-gcc.cc (Gcc_backend::type_size): New function.
792 (Gcc_backend::type_alignment): New function.
793 (Gcc_backend::type_field_alignment): New function.
794 (Gcc_backend::type_field_offset): New function.
795 * go-backend.c (go_type_alignment): Remove.
796 * go-c.h (go_type_alignment): Don't declare.
798 2011-12-27 Ian Lance Taylor <iant@google.com>
800 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
801 build_distinct_type_copy rather than build_variant_type_copy.
802 (Gcc_backend::set_placeholder_array_type): Likewise.
803 (Gcc_backend::named_type): Add special handling for builtin
806 2011-12-22 Ian Lance Taylor <iant@google.com>
808 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
809 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
810 (Gcc_backend::set_placeholder_struct_type): Likewise.
811 (Gcc_backend::set_placeholder_array_type): Likewise.
812 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
814 2011-12-13 Ian Lance Taylor <iant@google.com>
816 * go-backend.c: #include "simple-object.h" and "intl.h".
817 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
818 (GO_EXPORT_SECTION_NAME): Likewise.
819 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
820 (go_read_export_data): New function.
821 * go-c.h (go_read_export_data): Declare.
823 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
824 Ian Lance Taylor <iant@google.com>
826 * go-location.h: New file.
827 * go-linemap.cc: New file.
828 * go-gcc.cc: Change all uses of source_location to Location.
829 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
830 (GO_LINEMAP_H): New variable.
831 (GO_LEX_H): Use $(GO_LINEMAP_H).
832 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
833 (go/go-linemap.o): New target.
835 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
837 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
839 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
841 * lang.opt: Add fgo-optimize-.
842 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
843 * go-c.h (go_enable_optimize): Declare.
844 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
845 (GO_EXPORT_H): Define.
846 (GO_IMPORT_H): Add $(GO_EXPORT_H).
847 (GO_AST_DUMP_H): Define.
848 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
849 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
850 (go/types.o): Likewise.
851 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
852 (go/go-optimize.o): New target.
854 2011-08-24 Joseph Myers <joseph@codesourcery.com>
856 * Make-lang.in (CFLAGS-go/go-lang.o): New.
857 (go/go-lang.o): Remove explicit compilation rule.
859 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
861 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
863 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
865 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
866 (go/ast-dump.o): New target.
867 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
868 (go/statements.o): Likewise.
870 2011-07-06 Richard Guenther <rguenther@suse.de>
872 * go-lang.c (go_langhook_init):
873 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
875 2011-06-14 Joseph Myers <joseph@codesourcery.com>
877 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
879 * go-backend.c: Include common/common-target.h.
880 (go_write_export_data): Use targetm_common.have_named_sections.
881 * go-lang.c: Include common/common-target.h.
882 (go_langhook_init_options_struct): Use
883 targetm_common.supports_split_stack.
885 2011-06-13 Ian Lance Taylor <iant@google.com>
887 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
889 2011-06-10 Ian Lance Taylor <iant@google.com>
891 * go-gcc.cc: Include "toplev.h".
892 (Gcc_backend::immutable_struct): New function.
893 (Gcc_backend::immutable_struct_set_init): New function.
894 (Gcc_backend::immutable_struct_reference): New function.
895 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
897 2011-06-09 Ian Lance Taylor <iant@google.com>
899 * go-gcc.cc (Gcc_backend::zero_expression): New function.
901 2011-06-07 Richard Guenther <rguenther@suse.de>
903 * go-lang.c (go_langhook_init): Do not set
904 size_type_node or call set_sizetype.
906 2011-05-27 Ian Lance Taylor <iant@google.com>
908 * go-backend.c: Include "output.h".
909 (go_write_export_data): New function.
910 * go-c.h (go_write_export_data): Declare.
911 * Make-lang.in (go/go-backend.o): Depend on output.h.
912 (go/export.o): Depend on $(GO_C_H). Do not depend on
913 $(MACHMODE_H), output.h, or $(TARGET_H).
915 2011-05-24 Joseph Myers <joseph@codesourcery.com>
917 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
918 (gccgo$(exeext)): Use libcommon-target.a.
920 2011-05-20 Joseph Myers <joseph@codesourcery.com>
922 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
924 2011-05-13 Ian Lance Taylor <iant@google.com>
926 * go-gcc.cc (Gcc_backend::function_type): When building a struct
927 for multiple results, check that all fields types have a size.
928 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
930 2011-05-12 Ian Lance Taylor <iant@google.com>
932 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
934 (Gcc_backend::parameter_variable): Likewise.
936 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
938 * go-lang.c (global_bindings_p): Return bool and simplify.
940 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
942 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
944 2011-05-04 Ian Lance Taylor <iant@google.com>
946 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
947 (Gcc_backend::fill_in_struct): New function.
948 (Gcc_backend::array_type): Implement.
949 (Gcc_backend::fill_in_array): New function.
950 (Gcc_backend::placeholder_pointer_type): New function.
951 (Gcc_backend::set_placeholder_pointer_type): New function.
952 (Gcc_backend::set_placeholder_function_type): New function.
953 (Gcc_backend::placeholder_struct_type): New function.
954 (Gcc_backend::set_placeholder_struct_type): New function.
955 (Gcc_backend::placeholder_array_type): New function.
956 (Gcc_backend::set_placeholder_array_type): New function.
957 (Gcc_backend::named_type): New function.
958 (Gcc_backend::circular_pointer_type): New function.
959 (Gcc_backend::is_circular_pointer_type): New function.
961 2011-04-26 Ian Lance Taylor <iant@google.com>
963 * go-gcc.cc (Gcc_backend::struct_type): Implement.
965 2011-04-25 Ian Lance Taylor <iant@google.com>
967 * go-gcc.cc (Gcc_backend::error_type): Implement.
968 (Gcc_backend::string_type): Remove.
969 (Gcc_backend::function_type): Change signature and implement.
970 (Gcc_backend::struct_type): Change signature.
971 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
972 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
973 (Gcc_backend::pointer_type): Check for error.
974 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
976 2011-04-25 Evan Shaw <edsrzf@gmail.com>
978 * go-gcc.c (class Gcc_tree): Make get_tree const.
979 (Gcc_backend::void_type): Implement.
980 (Gcc_backend::bool_type): Implement.
981 (Gcc_backend::integer_type): Implement.
982 (Gcc_backend::float_type): Implement.
983 (Gcc_backend::complex_type): New function.
984 (Gcc_backend::pointer_type): New function.
985 (Gcc_backend::make_type): New function.
986 (type_to_tree): New function.
988 2011-04-21 Ian Lance Taylor <iant@google.com>
990 * go-system.h (go_assert, go_unreachable): Define.
992 2011-04-19 Ian Lance Taylor <iant@google.com>
994 * go-system.h: Include "intl.h".
995 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
996 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
997 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
999 2011-04-19 Ian Lance Taylor <iant@google.com>
1001 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1003 2011-04-19 Ian Lance Taylor <iant@google.com>
1005 * go-gcc.cc (class Bblock): Define.
1006 (Gcc_backend::if_statement): Change then_block and else_block to
1008 (Gcc_backend::block): New function.
1009 (Gcc_backend::block_add_statements): New function.
1010 (Gcc_backend::block_statement): New function.
1011 (tree_to_block, block_to_tree): New functions.
1013 2011-04-18 Ian Lance Taylor <iant@google.com>
1015 * go-gcc.cc: Include "go-c.h".
1016 (class Bvariable): Define.
1017 (Gcc_backend::init_statement): New function.
1018 (Gcc_backend::global_variable): New function.
1019 (Gcc_backend::global_variable_set_init): New function.
1020 (Gcc_backend::local_variable): New function.
1021 (Gcc_backend::parameter_variable): New function.
1022 (tree_to_type, var_to_tree): New functions.
1023 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1024 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1026 2011-04-15 Ian Lance Taylor <iant@google.com>
1028 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1029 (Gcc_backend::assignment_statement): Use error_statement.
1030 (Gcc_backend::return_statement): Likewise.
1031 (Gcc_backend::if_statement): Likewise.
1032 (Gcc_backend::switch_statement): Likewise.
1033 (Gcc_backend::statement_list): Likewise.
1035 2011-04-14 Ian Lance Taylor <iant@google.com>
1037 * go-gcc.cc (Gcc_backend::error_statement): New function.
1039 2011-04-13 Ian Lance Taylor <iant@google.com>
1041 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1043 2011-04-13 Ian Lance Taylor <iant@google.com>
1045 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1046 (GO_RUNTIME_H): New variable.
1047 (go/runtime.o): New target.
1048 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1049 (go/statements.o): Likewise.
1051 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1053 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1056 2011-04-06 Ian Lance Taylor <iant@google.com>
1058 * go-gcc.cc (if_statement): Use build3_loc.
1059 (Gcc_backend::switch_statement): New function.
1060 (Gcc_backend::statement_list): New function.
1062 2011-04-06 Ian Lance Taylor <iant@google.com>
1064 * go-gcc.cc (Gcc_backend::if_statement): New function.
1065 (tree_to_stat): New function.
1066 (expr_to_tree): Renamed from expression_to_tree.
1067 (stat_to_tree): Renamed from statement_to_tree.
1069 2011-04-06 Ian Lance Taylor <iant@google.com>
1071 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1073 2011-04-04 Ian Lance Taylor <iant@google.com>
1075 * go-gcc.c (class Blabel): Define.
1076 (Gcc_backend::make_expression): New function.
1077 (get_identifier_from_string): New function.
1078 (Gcc_backend::label): New function.
1079 (Gcc_backend::label_definition_statement): New function.
1080 (Gcc_backend::goto_statement): New function.
1081 (Gcc_backend::label_address): New function.
1082 (expression_to_tree): New function.
1083 * Make-lang.in (go/expressions.o): Depend on
1084 go/gofrontend/backend.h.
1085 (go/gogo.o): Likewise.
1087 2011-04-04 Ian Lance Taylor <iant@google.com>
1089 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1090 (class Bfunction): Define.
1091 (Gcc_backend::assignment_statement): Rename from assignment.
1093 (Gcc_backend::return_statement): New function.
1094 (tree_to_function): New function.
1095 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1096 $(GIMPLE_H), and $(GO_GOGO_H).
1098 2011-04-03 Ian Lance Taylor <iant@google.com>
1100 * go-gcc.cc: New file.
1101 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1102 (go/go-gcc.o): New target.
1103 (go/go.o): Depend on go/gofrontend/backend.h.
1104 (go/statements.o): Likewise.
1106 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1108 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1110 2011-02-08 Ian Lance Taylor <iant@google.com>
1112 * go-lang.c (go_langhook_init_options_struct): Set
1113 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1115 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1117 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1118 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1120 2011-01-21 Ian Lance Taylor <iant@google.com>
1122 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1124 * go-c.h: Update declaration of go_create_gogo.
1126 2011-01-13 Ian Lance Taylor <iant@google.com>
1128 * go-backend.c: Include "rtl.h" and "target.h".
1129 (go_imported_unsafe): New function.
1130 * go-c.h (go_imported_unsafe): Declare.
1131 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1132 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1133 (go/unsafe.o): Depend on $(GO_C_H).
1135 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1138 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1141 2010-12-21 Ian Lance Taylor <iant@google.com>
1143 * Make-lang.in (check-go): Remove.
1144 (lang_checks_parallelized): Add check-go.
1145 (check_go_parallelize): Set.
1147 2010-12-13 Ian Lance Taylor <iant@google.com>
1149 * gospec.c (lang_specific_driver): Add a -o option if not linking
1150 and there is no -o option already.
1152 2010-12-07 Ian Lance Taylor <iant@google.com>
1154 PR tree-optimization/46805
1155 PR tree-optimization/46833
1156 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1158 2010-12-06 Ian Lance Taylor <iant@google.com>
1162 * go-lang.c (go_char_p): Define type and vectors.
1163 (go_search_dirs): New static variable.
1164 (go_langhook_handle_option): Use version and version/machine
1166 (go_langhook_post_options): Add non-specific -L paths.
1167 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1168 DEFAULT_TARGET_MACHINE when compiling.
1169 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1170 (Import and Export): Don't mention -L for finding import files.
1172 2010-12-03 Ian Lance Taylor <iant@google.com>
1175 * go-backend.c: New file.
1176 * go-c.h (go_type_alignment): Declare.
1177 (go_field_alignment, go_trampoline_info): Declare.
1178 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1179 (go/go-backend.o): New target.
1180 (go/go-lang.o): Make dependencies match source file.
1181 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1182 (go/gogo-tree.o): Don't depend on $(TM_H).
1184 2010-12-03 Ian Lance Taylor <iant@google.com>
1186 * config-lang.in (build_by_default): Set to no.
1188 2010-12-02 Ian Lance Taylor <iant@google.com>
1190 Go frontend added to gcc repository.
1192 Copyright (C) 2010-2016 Free Software Foundation, Inc.
1194 Copying and distribution of this file, with or without modification,
1195 are permitted in any medium without royalty provided the copyright
1196 notice and this notice are preserved.