1 2016-02-12 Jakub Jelinek <jakub@redhat.com>
3 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
5 * gccgo.texi: Likewise.
7 2016-01-27 Ian Lance Taylor <iant@google.com>
9 * go-lang.c (go_langhook_init_options_struct): Default to
12 2016-01-04 Jakub Jelinek <jakub@redhat.com>
14 Update copyright years.
16 * gccgo.texi: Bump @copyrights-go year.
18 2015-12-21 Ian Lance Taylor <iant@google.com>
20 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
21 t_ and orig_type_ fields. Add new two parameter constructor. Add
22 get_tree and get_decl methods.
23 (Gcc_backend::var_expression): Pass location to var get_tree.
24 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
25 two parameter constructor for Bvariable.
26 (Gcc_backend::global_variable_set_init): Don't remove
27 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
28 (Gcc_backend::write_global_definitions): Likewise.
29 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
30 (Gcc_backend::block): Likewise.
31 (Gcc_backend::implicit_variable_set_init): Likewise.
32 (Gcc_backend::immutable_struct_set_init): Likewise.
33 (Gcc_backend::function_set_parameters): Likewise.
35 2015-12-21 Ian Lance Taylor <iant@google.com>
37 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
38 add a VIEW_CONVERT_EXPR to the tree.
39 (Gcc_backend::global_variable_set_init): Remove any
41 (Gcc_backend::write_global_definitions): Likewise.
43 2015-11-30 Ian Lance Taylor <iant@google.com>
46 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
47 TYPE_STRING_FLAG on a variant type.
49 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
51 * go-backend.c: Remove unused header files.
52 * go-gcc.cc: Likewise.
53 * go-lang.c: Likewise.
56 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
58 * go-backend.c: Reorder #include's and remove duplicates.
59 * go-lang.c: Likewise.
61 2015-10-20 Alan Modra <amodra@gmail.com>
64 * gospec.c (saw_opt_m32): Rename to..
65 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
67 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
69 2015-10-01 Ian Lance Taylor <iant@google.com>
72 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
73 TARGET_CAN_SPLIT_STACK_64BIT is defined.
75 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
78 * gospec.c (lang_specific_driver): Set appropriate split stack
79 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
81 2015-09-10 Chris Manghane <cmang@google.com>
83 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
86 2015-08-24 Marek Polacek <polacek@redhat.com>
88 PR tree-optimization/67284
89 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
90 Set TREE_THIS_VOLATILE.
91 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
92 Pass false to the rest of define_builtin calls.
94 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
96 * go-lang.c (go_langhook_init_options_struct): Don't set
98 (go_langhook_post_options): Set it here instead.
100 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
102 * gofrontend/backend.h: Fix double word typos.
103 * gofrontend/expressions.cc: Same.
106 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
108 * go-backend.c: Adjust includes.
109 * go-gcc.cc: Likewise.
110 * go-lang.c: Likewise.
112 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
114 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
116 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
118 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
119 * go-gcc.cc: Likewise.
120 * go-lang.c: Likewise.
121 * go-system.h: Likewise.
123 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
125 * go-backend.c : Adjust include files.
126 * go-gcc.cc : Likewise.
127 * go-lang.c : Likewise.
129 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
131 * go-gcc.cc (write_global_definitions): Remove call to
132 finalize_compilation_unit.
133 Remove Go specific debug generation.
134 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
135 (go_langhook_write_globals): Remove.
136 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
138 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
140 * go-backend.c: Adjust includes for restructured coretypes.h.
142 * go-gcc.cc: Likewise.
143 * go-lang.c: Likewise.
145 2015-04-30 Chris Manghane <cmang@google.com>
147 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
150 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
152 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
154 2015-04-17 Chris Manghane <cmang@google.com>
156 * Make-lang.in (GO_OBJS): Add go/escape.o.
158 2015-02-02 Ian Lance Taylor <iant@google.com>
162 * go-gcc.cc (Gcc_backend::type_size): Change return type to
164 (Gcc_backend::type_alignment): Likewise.
165 (Gcc_backend::type_field_alignment): Likewise.
166 (Gcc_backend::type_field_offset): Likewise.
167 (Gcc_backend::implicit_variable): Change alignment parameter type
170 2015-01-23 Ian Lance Taylor <iant@google.com>
173 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
176 * gccgo.texi (C Interoperability): Mention that people should use
179 2015-01-23 Ian Lance Taylor <iant@google.com>
182 * go-lang.c (go_langhook_init_options_struct): Set default
184 (go_langhook_post_options): If debug_info_level is still the
185 default, make sure write_symbols is set.
186 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
188 2015-01-16 Richard Henderson <rth@redhat.com>
190 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
191 (Gcc_backend::static_chain_variable): New method.
193 2015-01-09 Ian Lance Taylor <iant@google.com>
195 * config-lang.in (lang_dirs): Define.
197 2015-01-09 Michael Collison <michael.collison@linaro.org>
199 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
200 input.h, alias.h, symtab.h, options.h, fold-const.h,
201 wide-int.h, and inchash.h due to flattening of tree.h.
203 * go-backend.c: Ditto.
205 2015-01-07 Chris Manghane <cmang@google.com>
208 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
211 2015-01-06 Chris Manghane <cmang@google.com>
213 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
214 initialize zero-sized fields, just evaluate the values for side
217 2015-01-05 Jakub Jelinek <jakub@redhat.com>
219 Update copyright years.
221 * gccgo.texi: Bump @copyrights-go year.
223 2014-12-19 Chris Manghane <cmang@google.com>
225 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
226 construct arrays of zero-sized values.
228 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
230 * go-lang.c: Remove redundant enum from machine_mode.
232 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
234 * go-gcc.cc: Adjust include files.
236 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
238 * go-gcc.cc: Adjust include files.
241 2014-10-23 Ian Lance Taylor <iant@google.com>
243 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
244 mpc_t parameter instead of two mpfr_t parameters.
246 2014-09-15 Jakub Jelinek <jakub@redhat.com>
248 * Make-lang.in (check_go_parallelize): Change to just an upper bound
251 2014-09-03 Chris Manghane <cmang@google.com>
253 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
254 parameter. Add is_hidden parameter.
255 (Gcc_backend::implicit_variable_set_init): New method.
256 (Gcc_backend::implicit_variable_reference): New method.
258 2014-08-08 Ian Lance Taylor <iant@google.com>
260 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
263 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
265 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
266 symtab_get_node to symtab_node::get.
268 2014-06-13 Ian Lance Taylor <iant@google.com>
271 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
272 ld, add -t option to avoid warning about common symbol changing
275 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
277 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
278 symtab_get_node(var_decl)->implicit_section.
280 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
282 * go-gcc.cc (global_variable_set_init): Use
283 set_decl_section_name.
285 2014-06-04 Ian Lance Taylor <iant@google.com>
287 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
288 alignment parameters. Permit init parameter to be NULL.
290 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
292 * go-gcc.cc: Include builtins.h.
294 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
296 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
298 2014-05-06 Chris Manghane <cmang@google.com>
300 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
301 (Gcc_backend::boolean_constant_expression): New method.
302 (Gcc_backend::zero_expression): Use this->make_expression rather
304 (Gcc_backend::var_expression): Likewise.
305 (Gcc_backend::integer_constant_expression): Likewise.
306 (Gcc_backend::float_constant_expression): Likewise.
307 (Gcc_backend::complex_constant_expression): Likewise.
308 (Gcc_backend::struct_field_expression): Likewise.
309 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
310 (tree_to_function, tree_to_block): Remove functions.
311 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
312 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
314 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
315 Mike Stump <mikestump@comcast.net>
316 Richard Sandiford <rdsandiford@googlemail.com>
318 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
320 2014-05-06 Chris Manghane <cmang@google.com>
322 * go-c.h (go_create_gogo): Update declaration to add
323 check_divide_zero and check_divide_overflow parameters.
324 * go-lang.c (go_langhook_init): Pass new arguments to
327 2014-05-05 Chris Manghane <cmang@google.com>
329 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
330 gc_root_variable. Add name and is_constant parameters.
332 2014-05-05 Chris Manghane <cmang@google.com>
334 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
336 (Gcc_backend::temporary_variable): Check for erroneous function.
338 2014-04-30 Chris Manghane <cmang@google.com>
340 * go-backend.c: #include "diagnostics.h".
341 (saw_errors): New function.
342 * go-c.h (saw_errors): Declare.
343 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
345 2014-04-30 Chris Manghane <cmang@google.com>
347 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
348 calling into Go frontend.
349 (go_langhook_type_for_mode): Likewise.
350 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
352 2014-04-30 Chris Manghane <cmang@google.com>
354 * go-gcc.cc: #include "langhooks.h".
355 (Gcc_backend::Gcc_backend): Add constructor.
356 (Gcc_backend::lookup_function): New function.
357 (Gcc_backend::define_builtin): New private function.
358 (Gcc_backend::gcc_backend): Remove.
359 (go_get_backend): Use new to create new Gcc_backend.
361 2014-04-25 Chris Manghane <cmang@google.com>
363 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
364 (Gcc_backend::return_statement): Push and pop function.
365 (Gcc_backend::label): Likewise.
366 (Gcc_backend::function_defer_statement): Likewise.
367 (Gcc_backend::switch_statement): Add function parameter.
368 (Gcc_backend::block): Don't permit function to be NULL.
369 (Gcc_backend::temporary_variable): Change go_assert to
371 (Gcc_backend::gc_root_variable): New function.
372 (Gcc_backend::write_global_definitions): New function.
374 2014-04-22 Chris Manghane <cmang@google.com>
376 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
377 call to create_tmp_var. Require that function be non-NULL.
379 2014-04-17 Chris Manghane <cmang@google.com>
381 * go-gcc.cc (Gcc_backend::named_constant_expression): New
384 2014-04-14 Chris Manghane <cmang@google.com>
386 * go-gcc.cc: Include "convert.h".
387 (Gcc_backend::string_constant_expression): New function.
388 (Gcc_backend::real_part_expression): Likewise.
389 (Gcc_backend::imag_part_expression): Likewise.
390 (Gcc_backend::complex_expression): Likewise.
391 (Gcc_backend::constructor_expression): Likewise.
392 (Gcc_backend::array_constructor_expression): Likewise.
393 (Gcc_backend::pointer_offset_expression): Likewise.
394 (Gcc_backend::array_index_expression): Likewise.
395 (Gcc_backend::call_expression): Likewise.
396 (Gcc_backend::exception_handler_statement): Likewise.
397 (Gcc_backend::function_defer_statement): Likewise.
398 (Gcc_backend::function_set_parameters): Likewise.
399 (Gcc_backend::function_set_body): Likewise.
400 (Gcc_backend::convert_expression): Handle various type
403 2014-03-03 Ian Lance Taylor <iant@google.com>
405 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
407 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
410 2014-01-24 Chris Manghane <cmang@google.com>
412 * go-gcc.cc (Gcc_backend::unary_expression): New function.
414 2014-01-16 Chris Manghane <cmang@google.com>
416 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
418 (operator_to_tree_code): New static function.
419 (Gcc_backend::binary_expression): New function.
421 2014-01-14 Chris Manghane <cmang@google.com>
423 * go-gcc.cc (Gcc_backend::compound_expression): New function.
424 (Gcc_backend::conditional_expression): New function.
426 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
428 Update copyright years
430 2014-01-02 Tobias Burnus <burnus@net-b.de>
432 * gccgo.texi: Bump @copying's copyright year.
434 2013-12-16 Chris Manghane <cmang@google.com>
436 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
438 2013-12-11 Ian Lance Taylor <iant@google.com>
440 * go-lang.c (go_langhook_post_options): Disable sibling calls by
443 2013-12-10 Ian Lance Taylor <iant@google.com>
445 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
448 2013-12-05 Ian Lance Taylor <iant@google.com>
450 Revert this change; no longer required.
451 2013-11-06 Ian Lance Taylor <iant@google.com>
453 * go-lang.c (go_langhook_post_options): If
454 -fisolate-erroneous-paths was turned on by an optimization option,
457 2013-11-23 Ian Lance Taylor <iant@google.com>
459 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
462 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
464 * go-gcc.cc: Add required include files from gimple.h.
465 * go-lang.c: Likewise
467 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
469 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
470 tree_to_shwi throughout.
472 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
474 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
475 tree_fits_shwi_p throughout.
477 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
479 * go-lang.c: Include only gimplify.h and gimple.h as needed.
481 2013-11-14 Diego Novillo <dnovillo@google.com>
483 * go-backend.c: Include stor-layout.h.
484 * go-gcc.cc: Include stringpool.h.
485 Include stor-layout.h.
487 * go-lang.c: Include stor-layout.h.
489 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
491 * go-lang.c: Include gimplify.h.
493 2013-11-06 Ian Lance Taylor <iant@google.com>
495 * go-lang.c (go_langhook_post_options): If
496 -fisolate-erroneous-paths was turned on by an optimization option,
499 2013-10-14 Chris Manghane <cmang@google.com>
501 * go-gcc.cc (Gcc_backend::address_expression): New function.
503 2013-10-11 Chris Manghane <cmang@google.com>
505 * go-gcc.cc (Gcc_backend::function_code_expression): New
508 2013-10-10 Chris Manghane <cmang@google.com>
510 * go-gcc.cc (Gcc_backend::error_function): New function.
511 (Gcc_backend::function): New function.
512 (Gcc_backend::make_function): New function.
513 (function_to_tree): New function.
515 2013-10-04 Chris Manghane <cmang@google.com>
517 * go-gcc.cc (Gcc_backend::convert_expression): New function.
519 2013-10-02 Chris Manghane <cmang@google.com>
521 * go-gcc.cc: Include "real.h" and "realmpfr.h".
522 (Gcc_backend::integer_constant_expression): New function.
523 (Gcc_backend::float_constant_expression): New function.
524 (Gcc_backend::complex_constant_expression): New function.
526 2013-09-30 Chris Manghane <cmang@google.com>
528 * go-gcc.cc (Gcc_backend::error_expression): New function.
529 (Gcc_backend::var_expression): New function.
530 (Gcc_backend::indirect_expression): New function.
532 2013-09-25 Tom Tromey <tromey@redhat.com>
534 * Make-lang.in (gospec.o): Remove.
535 (CFLAGS-go/gospec.o): New variable.
536 (GCCGO_OBJS): Update to use go/gospec.o.
538 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
539 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
540 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
541 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
542 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
543 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
544 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
545 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
546 (go/unsafe.o): Remove.
547 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
548 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
550 2013-09-25 Tom Tromey <tromey@redhat.com>
552 * Make-lang.in (gospec.o): Don't use subshell.
554 2013-08-28 Ian Lance Taylor <iant@google.com>
556 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
557 the struct is not hidden.
558 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
560 2013-08-06 Ian Lance Taylor <iant@google.com>
562 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
563 compute_reloc_for_constant.
565 2013-08-02 Ian Lance Taylor <iant@google.com>
567 * go-gcc.cc (immutable_struct_set_init): Always call
568 resolve_unique_section.
570 2013-07-24 Ian Lance Taylor <iant@google.com>
572 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
573 fields, recreate those fields with the first one with a non-zero
576 2013-07-23 Ian Lance Taylor <iant@google.com>
578 * go-backend.c: Don't #include "rtl.h".
579 (go_imported_unsafe): Don't call init_varasm_once.
580 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
582 2013-07-23 Ian Lance Taylor <iant@google.com>
584 * go-lang.c: Don't #include "except.h".
585 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
587 2013-06-18 Ian Lance Taylor <iant@google.com>
589 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
591 (Gcc_backend::immutable_struct_set_init): Likewise.
593 2013-05-16 Jason Merrill <jason@redhat.com>
595 * Make-lang.in (go1$(exeext)): Use link mutex.
597 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
599 * gospec.c: pass -u pthread_create to linker when static linking.
601 2012-12-21 Ian Lance Taylor <iant@google.com>
604 * go-system.h: Don't include <cstdio>.
606 2012-12-18 Ian Lance Taylor <iant@google.com>
609 * gospec.c: Revert last patch.
611 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
614 * gospec.c (LIBATOMIC): Define.
615 (LIBATOMIC_PROFILE): Define.
616 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
618 2012-11-29 Ian Lance Taylor <iant@google.com>
620 * go-gcc.cc: Include "output.h".
621 (global_variable): Add is_unique_section parameter.
622 (global_variable_set_init): Adjust unique section if necessary.
623 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
625 2012-11-17 Diego Novillo <dnovillo@google.com>
627 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
629 * go-lang.c: Use new vec API in vec.h.
631 2012-11-16 Ian Lance Taylor <iant@google.com>
633 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
634 (go1$(exeext)): Likewise.
636 2012-10-30 Ian Lance Taylor <iant@google.com>
638 * lang.opt (-fgo-relative-import-path): New option.
639 * go-lang.c (go_relative_import_path): New static variable.
640 (go_langhook_init): Pass go_relative_import_path to
642 (go_langhook_handle_option): Handle -fgo-relative-import-path.
643 * go-c.h (go_create_gogo): Update declaration.
644 * gccgo.texi (Invoking gccgo): Document
645 -fgo-relative-import-path.
647 2012-09-17 Ian Lance Taylor <iant@google.com>
649 * config-lang.in (target_libs): Add target-libbacktrace.
651 2012-09-16 Ian Lance Taylor <iant@google.com>
653 * Make-lang.in (go/gogo.o): Depend on filenames.h.
655 2012-08-14 Diego Novillo <dnovillo@google.com>
657 Merge from cxx-conversion branch. Configury.
659 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
660 * go-gcc.cc: Likewise.
661 * go-system.h: Likewise.
663 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
665 * go-lang.c (lang_decl): Add variable_size GTY option.
667 2012-05-09 Ian Lance Taylor <iant@google.com>
669 * lang.opt: Add -fgo-pkgpath.
670 * go-lang.c (go_pkgpath): New static variable.
671 (go_prefix): New static variable.
672 (go_langhook_init): Pass go_pkgpath and go_prefix to
674 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
675 -fgo-prefix handling to just set go_prefix.
676 * go-c.h (go_set_prefix): Don't declare.
677 (go_create_gogo): Add pkgpath and prefix to declaration.
678 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
679 to pkgpath. Don't include the package name in the asm name.
680 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
681 docs for -fgo-prefix.
683 2012-04-23 Ian Lance Taylor <iant@google.com>
685 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
687 2012-04-20 Ian Lance Taylor <iant@google.com>
689 * lang.opt: Add -fgo-check-divide-zero and
690 -fgo-check-divide-overflow.
691 * gccgo.texi (Invoking gccgo): Document new options.
693 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
695 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
696 with NULL_TREE type instead of void_type_node.
698 2012-03-09 Ian Lance Taylor <iant@google.com>
700 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
701 to the lhs type if necessary.
703 2012-03-08 Ian Lance Taylor <iant@google.com>
705 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
707 (go_non_zero_struct): New global variable.
708 (Gcc_backend::non_zero_size_type): New function.
709 (Gcc_backend::global_variable): Don't build an assignment for a
711 * go-c.h (go_non_zero_struct): Declare.
712 * config-lang.in (gtfiles): Add go-c.h.
714 2012-02-29 Ian Lance Taylor <iant@google.com>
716 * go-gcc.cc (class Gcc_tree): Add set_tree method.
717 (set_placeholder_pointer_type): When setting to a pointer to
718 error, set to error_mark_node.
720 2012-02-23 Richard Guenther <rguenther@suse.de>
722 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
723 build_distinct_type_copy.
725 2012-02-17 Ian Lance Taylor <iant@google.com>
727 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
729 2012-02-17 Ian Lance Taylor <iant@google.com>
731 * gospec.c (lang_specific_driver): If linking, and no -o option
734 2012-02-14 Ian Lance Taylor <iant@google.com>
737 * Make-lang.in (gccgo-cross$(exeext)): New target.
738 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
740 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
741 gccgo-cross$(exeext) does not exist.
743 2012-02-07 Ian Lance Taylor <iant@google.com>
745 * gccgo.texi (Function Names): Document //extern instead of
748 2012-02-01 Jakub Jelinek <jakub@redhat.com>
751 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
752 return build_nonstandard_integer_type result if possible.
754 2012-01-21 Ian Lance Taylor <iant@google.com>
756 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
757 (Gcc_backend::type_alignment): Likewise.
758 (Gcc_backend::type_field_alignment): Likewise.
759 (Gcc_backend::type_field_offset): Likewise.
761 2012-01-20 Ian Lance Taylor <iant@google.com>
763 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
765 (Gcc_backend::set_placeholder_struct_type): Likewise.
767 2012-01-17 Ian Lance Taylor <iant@google.com>
769 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
770 BASE.s rather than -o BASE.o.
772 2012-01-11 Ian Lance Taylor <iant@google.com>
774 * go-lang.c (go_langhook_init): Initialize void_list_node before
775 calling go_create_gogo.
777 2012-01-10 Ian Lance Taylor <iant@google.com>
779 * go-gcc.cc (Gcc_backend::type_size): New function.
780 (Gcc_backend::type_alignment): New function.
781 (Gcc_backend::type_field_alignment): New function.
782 (Gcc_backend::type_field_offset): New function.
783 * go-backend.c (go_type_alignment): Remove.
784 * go-c.h (go_type_alignment): Don't declare.
786 2011-12-27 Ian Lance Taylor <iant@google.com>
788 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
789 build_distinct_type_copy rather than build_variant_type_copy.
790 (Gcc_backend::set_placeholder_array_type): Likewise.
791 (Gcc_backend::named_type): Add special handling for builtin
794 2011-12-22 Ian Lance Taylor <iant@google.com>
796 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
797 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
798 (Gcc_backend::set_placeholder_struct_type): Likewise.
799 (Gcc_backend::set_placeholder_array_type): Likewise.
800 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
802 2011-12-13 Ian Lance Taylor <iant@google.com>
804 * go-backend.c: #include "simple-object.h" and "intl.h".
805 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
806 (GO_EXPORT_SECTION_NAME): Likewise.
807 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
808 (go_read_export_data): New function.
809 * go-c.h (go_read_export_data): Declare.
811 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
812 Ian Lance Taylor <iant@google.com>
814 * go-location.h: New file.
815 * go-linemap.cc: New file.
816 * go-gcc.cc: Change all uses of source_location to Location.
817 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
818 (GO_LINEMAP_H): New variable.
819 (GO_LEX_H): Use $(GO_LINEMAP_H).
820 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
821 (go/go-linemap.o): New target.
823 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
825 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
827 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
829 * lang.opt: Add fgo-optimize-.
830 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
831 * go-c.h (go_enable_optimize): Declare.
832 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
833 (GO_EXPORT_H): Define.
834 (GO_IMPORT_H): Add $(GO_EXPORT_H).
835 (GO_AST_DUMP_H): Define.
836 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
837 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
838 (go/types.o): Likewise.
839 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
840 (go/go-optimize.o): New target.
842 2011-08-24 Joseph Myers <joseph@codesourcery.com>
844 * Make-lang.in (CFLAGS-go/go-lang.o): New.
845 (go/go-lang.o): Remove explicit compilation rule.
847 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
849 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
851 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
853 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
854 (go/ast-dump.o): New target.
855 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
856 (go/statements.o): Likewise.
858 2011-07-06 Richard Guenther <rguenther@suse.de>
860 * go-lang.c (go_langhook_init):
861 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
863 2011-06-14 Joseph Myers <joseph@codesourcery.com>
865 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
867 * go-backend.c: Include common/common-target.h.
868 (go_write_export_data): Use targetm_common.have_named_sections.
869 * go-lang.c: Include common/common-target.h.
870 (go_langhook_init_options_struct): Use
871 targetm_common.supports_split_stack.
873 2011-06-13 Ian Lance Taylor <iant@google.com>
875 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
877 2011-06-10 Ian Lance Taylor <iant@google.com>
879 * go-gcc.cc: Include "toplev.h".
880 (Gcc_backend::immutable_struct): New function.
881 (Gcc_backend::immutable_struct_set_init): New function.
882 (Gcc_backend::immutable_struct_reference): New function.
883 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
885 2011-06-09 Ian Lance Taylor <iant@google.com>
887 * go-gcc.cc (Gcc_backend::zero_expression): New function.
889 2011-06-07 Richard Guenther <rguenther@suse.de>
891 * go-lang.c (go_langhook_init): Do not set
892 size_type_node or call set_sizetype.
894 2011-05-27 Ian Lance Taylor <iant@google.com>
896 * go-backend.c: Include "output.h".
897 (go_write_export_data): New function.
898 * go-c.h (go_write_export_data): Declare.
899 * Make-lang.in (go/go-backend.o): Depend on output.h.
900 (go/export.o): Depend on $(GO_C_H). Do not depend on
901 $(MACHMODE_H), output.h, or $(TARGET_H).
903 2011-05-24 Joseph Myers <joseph@codesourcery.com>
905 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
906 (gccgo$(exeext)): Use libcommon-target.a.
908 2011-05-20 Joseph Myers <joseph@codesourcery.com>
910 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
912 2011-05-13 Ian Lance Taylor <iant@google.com>
914 * go-gcc.cc (Gcc_backend::function_type): When building a struct
915 for multiple results, check that all fields types have a size.
916 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
918 2011-05-12 Ian Lance Taylor <iant@google.com>
920 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
922 (Gcc_backend::parameter_variable): Likewise.
924 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
926 * go-lang.c (global_bindings_p): Return bool and simplify.
928 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
930 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
932 2011-05-04 Ian Lance Taylor <iant@google.com>
934 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
935 (Gcc_backend::fill_in_struct): New function.
936 (Gcc_backend::array_type): Implement.
937 (Gcc_backend::fill_in_array): New function.
938 (Gcc_backend::placeholder_pointer_type): New function.
939 (Gcc_backend::set_placeholder_pointer_type): New function.
940 (Gcc_backend::set_placeholder_function_type): New function.
941 (Gcc_backend::placeholder_struct_type): New function.
942 (Gcc_backend::set_placeholder_struct_type): New function.
943 (Gcc_backend::placeholder_array_type): New function.
944 (Gcc_backend::set_placeholder_array_type): New function.
945 (Gcc_backend::named_type): New function.
946 (Gcc_backend::circular_pointer_type): New function.
947 (Gcc_backend::is_circular_pointer_type): New function.
949 2011-04-26 Ian Lance Taylor <iant@google.com>
951 * go-gcc.cc (Gcc_backend::struct_type): Implement.
953 2011-04-25 Ian Lance Taylor <iant@google.com>
955 * go-gcc.cc (Gcc_backend::error_type): Implement.
956 (Gcc_backend::string_type): Remove.
957 (Gcc_backend::function_type): Change signature and implement.
958 (Gcc_backend::struct_type): Change signature.
959 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
960 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
961 (Gcc_backend::pointer_type): Check for error.
962 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
964 2011-04-25 Evan Shaw <edsrzf@gmail.com>
966 * go-gcc.c (class Gcc_tree): Make get_tree const.
967 (Gcc_backend::void_type): Implement.
968 (Gcc_backend::bool_type): Implement.
969 (Gcc_backend::integer_type): Implement.
970 (Gcc_backend::float_type): Implement.
971 (Gcc_backend::complex_type): New function.
972 (Gcc_backend::pointer_type): New function.
973 (Gcc_backend::make_type): New function.
974 (type_to_tree): New function.
976 2011-04-21 Ian Lance Taylor <iant@google.com>
978 * go-system.h (go_assert, go_unreachable): Define.
980 2011-04-19 Ian Lance Taylor <iant@google.com>
982 * go-system.h: Include "intl.h".
983 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
984 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
985 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
987 2011-04-19 Ian Lance Taylor <iant@google.com>
989 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
991 2011-04-19 Ian Lance Taylor <iant@google.com>
993 * go-gcc.cc (class Bblock): Define.
994 (Gcc_backend::if_statement): Change then_block and else_block to
996 (Gcc_backend::block): New function.
997 (Gcc_backend::block_add_statements): New function.
998 (Gcc_backend::block_statement): New function.
999 (tree_to_block, block_to_tree): New functions.
1001 2011-04-18 Ian Lance Taylor <iant@google.com>
1003 * go-gcc.cc: Include "go-c.h".
1004 (class Bvariable): Define.
1005 (Gcc_backend::init_statement): New function.
1006 (Gcc_backend::global_variable): New function.
1007 (Gcc_backend::global_variable_set_init): New function.
1008 (Gcc_backend::local_variable): New function.
1009 (Gcc_backend::parameter_variable): New function.
1010 (tree_to_type, var_to_tree): New functions.
1011 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1012 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1014 2011-04-15 Ian Lance Taylor <iant@google.com>
1016 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1017 (Gcc_backend::assignment_statement): Use error_statement.
1018 (Gcc_backend::return_statement): Likewise.
1019 (Gcc_backend::if_statement): Likewise.
1020 (Gcc_backend::switch_statement): Likewise.
1021 (Gcc_backend::statement_list): Likewise.
1023 2011-04-14 Ian Lance Taylor <iant@google.com>
1025 * go-gcc.cc (Gcc_backend::error_statement): New function.
1027 2011-04-13 Ian Lance Taylor <iant@google.com>
1029 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1031 2011-04-13 Ian Lance Taylor <iant@google.com>
1033 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1034 (GO_RUNTIME_H): New variable.
1035 (go/runtime.o): New target.
1036 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1037 (go/statements.o): Likewise.
1039 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1041 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1044 2011-04-06 Ian Lance Taylor <iant@google.com>
1046 * go-gcc.cc (if_statement): Use build3_loc.
1047 (Gcc_backend::switch_statement): New function.
1048 (Gcc_backend::statement_list): New function.
1050 2011-04-06 Ian Lance Taylor <iant@google.com>
1052 * go-gcc.cc (Gcc_backend::if_statement): New function.
1053 (tree_to_stat): New function.
1054 (expr_to_tree): Renamed from expression_to_tree.
1055 (stat_to_tree): Renamed from statement_to_tree.
1057 2011-04-06 Ian Lance Taylor <iant@google.com>
1059 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1061 2011-04-04 Ian Lance Taylor <iant@google.com>
1063 * go-gcc.c (class Blabel): Define.
1064 (Gcc_backend::make_expression): New function.
1065 (get_identifier_from_string): New function.
1066 (Gcc_backend::label): New function.
1067 (Gcc_backend::label_definition_statement): New function.
1068 (Gcc_backend::goto_statement): New function.
1069 (Gcc_backend::label_address): New function.
1070 (expression_to_tree): New function.
1071 * Make-lang.in (go/expressions.o): Depend on
1072 go/gofrontend/backend.h.
1073 (go/gogo.o): Likewise.
1075 2011-04-04 Ian Lance Taylor <iant@google.com>
1077 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1078 (class Bfunction): Define.
1079 (Gcc_backend::assignment_statement): Rename from assignment.
1081 (Gcc_backend::return_statement): New function.
1082 (tree_to_function): New function.
1083 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1084 $(GIMPLE_H), and $(GO_GOGO_H).
1086 2011-04-03 Ian Lance Taylor <iant@google.com>
1088 * go-gcc.cc: New file.
1089 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1090 (go/go-gcc.o): New target.
1091 (go/go.o): Depend on go/gofrontend/backend.h.
1092 (go/statements.o): Likewise.
1094 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1096 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1098 2011-02-08 Ian Lance Taylor <iant@google.com>
1100 * go-lang.c (go_langhook_init_options_struct): Set
1101 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1103 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1105 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1106 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1108 2011-01-21 Ian Lance Taylor <iant@google.com>
1110 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1112 * go-c.h: Update declaration of go_create_gogo.
1114 2011-01-13 Ian Lance Taylor <iant@google.com>
1116 * go-backend.c: Include "rtl.h" and "target.h".
1117 (go_imported_unsafe): New function.
1118 * go-c.h (go_imported_unsafe): Declare.
1119 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1120 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1121 (go/unsafe.o): Depend on $(GO_C_H).
1123 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1126 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1129 2010-12-21 Ian Lance Taylor <iant@google.com>
1131 * Make-lang.in (check-go): Remove.
1132 (lang_checks_parallelized): Add check-go.
1133 (check_go_parallelize): Set.
1135 2010-12-13 Ian Lance Taylor <iant@google.com>
1137 * gospec.c (lang_specific_driver): Add a -o option if not linking
1138 and there is no -o option already.
1140 2010-12-07 Ian Lance Taylor <iant@google.com>
1142 PR tree-optimization/46805
1143 PR tree-optimization/46833
1144 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1146 2010-12-06 Ian Lance Taylor <iant@google.com>
1150 * go-lang.c (go_char_p): Define type and vectors.
1151 (go_search_dirs): New static variable.
1152 (go_langhook_handle_option): Use version and version/machine
1154 (go_langhook_post_options): Add non-specific -L paths.
1155 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1156 DEFAULT_TARGET_MACHINE when compiling.
1157 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1158 (Import and Export): Don't mention -L for finding import files.
1160 2010-12-03 Ian Lance Taylor <iant@google.com>
1163 * go-backend.c: New file.
1164 * go-c.h (go_type_alignment): Declare.
1165 (go_field_alignment, go_trampoline_info): Declare.
1166 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1167 (go/go-backend.o): New target.
1168 (go/go-lang.o): Make dependencies match source file.
1169 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1170 (go/gogo-tree.o): Don't depend on $(TM_H).
1172 2010-12-03 Ian Lance Taylor <iant@google.com>
1174 * config-lang.in (build_by_default): Set to no.
1176 2010-12-02 Ian Lance Taylor <iant@google.com>
1178 Go frontend added to gcc repository.
1180 Copyright (C) 2010-2016 Free Software Foundation, Inc.
1182 Copying and distribution of this file, with or without modification,
1183 are permitted in any medium without royalty provided the copyright
1184 notice and this notice are preserved.