1 2015-12-04 Release Manager
5 2015-07-16 Release Manager
9 2015-04-22 Release Manager
13 2015-02-02 Ian Lance Taylor <iant@google.com>
17 * go-gcc.cc (Gcc_backend::type_size): Change return type to
19 (Gcc_backend::type_alignment): Likewise.
20 (Gcc_backend::type_field_alignment): Likewise.
21 (Gcc_backend::type_field_offset): Likewise.
22 (Gcc_backend::implicit_variable): Change alignment parameter type
25 2015-01-23 Ian Lance Taylor <iant@google.com>
28 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
31 * gccgo.texi (C Interoperability): Mention that people should use
34 2015-01-23 Ian Lance Taylor <iant@google.com>
37 * go-lang.c (go_langhook_init_options_struct): Set default
39 (go_langhook_post_options): If debug_info_level is still the
40 default, make sure write_symbols is set.
41 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
43 2015-01-16 Richard Henderson <rth@redhat.com>
45 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
46 (Gcc_backend::static_chain_variable): New method.
48 2015-01-09 Ian Lance Taylor <iant@google.com>
50 * config-lang.in (lang_dirs): Define.
52 2015-01-09 Michael Collison <michael.collison@linaro.org>
54 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
55 input.h, alias.h, symtab.h, options.h, fold-const.h,
56 wide-int.h, and inchash.h due to flattening of tree.h.
58 * go-backend.c: Ditto.
60 2015-01-07 Chris Manghane <cmang@google.com>
63 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
66 2015-01-06 Chris Manghane <cmang@google.com>
68 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
69 initialize zero-sized fields, just evaluate the values for side
72 2015-01-05 Jakub Jelinek <jakub@redhat.com>
74 Update copyright years.
76 * gccgo.texi: Bump @copyrights-go year.
78 2014-12-19 Chris Manghane <cmang@google.com>
80 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
81 construct arrays of zero-sized values.
83 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
85 * go-lang.c: Remove redundant enum from machine_mode.
87 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
89 * go-gcc.cc: Adjust include files.
91 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
93 * go-gcc.cc: Adjust include files.
96 2014-10-23 Ian Lance Taylor <iant@google.com>
98 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
99 mpc_t parameter instead of two mpfr_t parameters.
101 2014-09-15 Jakub Jelinek <jakub@redhat.com>
103 * Make-lang.in (check_go_parallelize): Change to just an upper bound
106 2014-09-03 Chris Manghane <cmang@google.com>
108 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
109 parameter. Add is_hidden parameter.
110 (Gcc_backend::implicit_variable_set_init): New method.
111 (Gcc_backend::implicit_variable_reference): New method.
113 2014-08-08 Ian Lance Taylor <iant@google.com>
115 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
118 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
120 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
121 symtab_get_node to symtab_node::get.
123 2014-06-13 Ian Lance Taylor <iant@google.com>
126 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
127 ld, add -t option to avoid warning about common symbol changing
130 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
132 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
133 symtab_get_node(var_decl)->implicit_section.
135 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
137 * go-gcc.cc (global_variable_set_init): Use
138 set_decl_section_name.
140 2014-06-04 Ian Lance Taylor <iant@google.com>
142 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
143 alignment parameters. Permit init parameter to be NULL.
145 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
147 * go-gcc.cc: Include builtins.h.
149 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
151 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
153 2014-05-06 Chris Manghane <cmang@google.com>
155 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
156 (Gcc_backend::boolean_constant_expression): New method.
157 (Gcc_backend::zero_expression): Use this->make_expression rather
159 (Gcc_backend::var_expression): Likewise.
160 (Gcc_backend::integer_constant_expression): Likewise.
161 (Gcc_backend::float_constant_expression): Likewise.
162 (Gcc_backend::complex_constant_expression): Likewise.
163 (Gcc_backend::struct_field_expression): Likewise.
164 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
165 (tree_to_function, tree_to_block): Remove functions.
166 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
167 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
169 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
170 Mike Stump <mikestump@comcast.net>
171 Richard Sandiford <rdsandiford@googlemail.com>
173 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
175 2014-05-06 Chris Manghane <cmang@google.com>
177 * go-c.h (go_create_gogo): Update declaration to add
178 check_divide_zero and check_divide_overflow parameters.
179 * go-lang.c (go_langhook_init): Pass new arguments to
182 2014-05-05 Chris Manghane <cmang@google.com>
184 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
185 gc_root_variable. Add name and is_constant parameters.
187 2014-05-05 Chris Manghane <cmang@google.com>
189 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
191 (Gcc_backend::temporary_variable): Check for erroneous function.
193 2014-04-30 Chris Manghane <cmang@google.com>
195 * go-backend.c: #include "diagnostics.h".
196 (saw_errors): New function.
197 * go-c.h (saw_errors): Declare.
198 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
200 2014-04-30 Chris Manghane <cmang@google.com>
202 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
203 calling into Go frontend.
204 (go_langhook_type_for_mode): Likewise.
205 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
207 2014-04-30 Chris Manghane <cmang@google.com>
209 * go-gcc.cc: #include "langhooks.h".
210 (Gcc_backend::Gcc_backend): Add constructor.
211 (Gcc_backend::lookup_function): New function.
212 (Gcc_backend::define_builtin): New private function.
213 (Gcc_backend::gcc_backend): Remove.
214 (go_get_backend): Use new to create new Gcc_backend.
216 2014-04-25 Chris Manghane <cmang@google.com>
218 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
219 (Gcc_backend::return_statement): Push and pop function.
220 (Gcc_backend::label): Likewise.
221 (Gcc_backend::function_defer_statement): Likewise.
222 (Gcc_backend::switch_statement): Add function parameter.
223 (Gcc_backend::block): Don't permit function to be NULL.
224 (Gcc_backend::temporary_variable): Change go_assert to
226 (Gcc_backend::gc_root_variable): New function.
227 (Gcc_backend::write_global_definitions): New function.
229 2014-04-22 Chris Manghane <cmang@google.com>
231 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
232 call to create_tmp_var. Require that function be non-NULL.
234 2014-04-17 Chris Manghane <cmang@google.com>
236 * go-gcc.cc (Gcc_backend::named_constant_expression): New
239 2014-04-14 Chris Manghane <cmang@google.com>
241 * go-gcc.cc: Include "convert.h".
242 (Gcc_backend::string_constant_expression): New function.
243 (Gcc_backend::real_part_expression): Likewise.
244 (Gcc_backend::imag_part_expression): Likewise.
245 (Gcc_backend::complex_expression): Likewise.
246 (Gcc_backend::constructor_expression): Likewise.
247 (Gcc_backend::array_constructor_expression): Likewise.
248 (Gcc_backend::pointer_offset_expression): Likewise.
249 (Gcc_backend::array_index_expression): Likewise.
250 (Gcc_backend::call_expression): Likewise.
251 (Gcc_backend::exception_handler_statement): Likewise.
252 (Gcc_backend::function_defer_statement): Likewise.
253 (Gcc_backend::function_set_parameters): Likewise.
254 (Gcc_backend::function_set_body): Likewise.
255 (Gcc_backend::convert_expression): Handle various type
258 2014-03-03 Ian Lance Taylor <iant@google.com>
260 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
262 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
265 2014-01-24 Chris Manghane <cmang@google.com>
267 * go-gcc.cc (Gcc_backend::unary_expression): New function.
269 2014-01-16 Chris Manghane <cmang@google.com>
271 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
273 (operator_to_tree_code): New static function.
274 (Gcc_backend::binary_expression): New function.
276 2014-01-14 Chris Manghane <cmang@google.com>
278 * go-gcc.cc (Gcc_backend::compound_expression): New function.
279 (Gcc_backend::conditional_expression): New function.
281 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
283 Update copyright years
285 2014-01-02 Tobias Burnus <burnus@net-b.de>
287 * gccgo.texi: Bump @copying's copyright year.
289 2013-12-16 Chris Manghane <cmang@google.com>
291 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
293 2013-12-11 Ian Lance Taylor <iant@google.com>
295 * go-lang.c (go_langhook_post_options): Disable sibling calls by
298 2013-12-10 Ian Lance Taylor <iant@google.com>
300 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
303 2013-12-05 Ian Lance Taylor <iant@google.com>
305 Revert this change; no longer required.
306 2013-11-06 Ian Lance Taylor <iant@google.com>
308 * go-lang.c (go_langhook_post_options): If
309 -fisolate-erroneous-paths was turned on by an optimization option,
312 2013-11-23 Ian Lance Taylor <iant@google.com>
314 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
317 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
319 * go-gcc.cc: Add required include files from gimple.h.
320 * go-lang.c: Likewise
322 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
324 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
325 tree_to_shwi throughout.
327 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
329 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
330 tree_fits_shwi_p throughout.
332 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
334 * go-lang.c: Include only gimplify.h and gimple.h as needed.
336 2013-11-14 Diego Novillo <dnovillo@google.com>
338 * go-backend.c: Include stor-layout.h.
339 * go-gcc.cc: Include stringpool.h.
340 Include stor-layout.h.
342 * go-lang.c: Include stor-layout.h.
344 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
346 * go-lang.c: Include gimplify.h.
348 2013-11-06 Ian Lance Taylor <iant@google.com>
350 * go-lang.c (go_langhook_post_options): If
351 -fisolate-erroneous-paths was turned on by an optimization option,
354 2013-10-14 Chris Manghane <cmang@google.com>
356 * go-gcc.cc (Gcc_backend::address_expression): New function.
358 2013-10-11 Chris Manghane <cmang@google.com>
360 * go-gcc.cc (Gcc_backend::function_code_expression): New
363 2013-10-10 Chris Manghane <cmang@google.com>
365 * go-gcc.cc (Gcc_backend::error_function): New function.
366 (Gcc_backend::function): New function.
367 (Gcc_backend::make_function): New function.
368 (function_to_tree): New function.
370 2013-10-04 Chris Manghane <cmang@google.com>
372 * go-gcc.cc (Gcc_backend::convert_expression): New function.
374 2013-10-02 Chris Manghane <cmang@google.com>
376 * go-gcc.cc: Include "real.h" and "realmpfr.h".
377 (Gcc_backend::integer_constant_expression): New function.
378 (Gcc_backend::float_constant_expression): New function.
379 (Gcc_backend::complex_constant_expression): New function.
381 2013-09-30 Chris Manghane <cmang@google.com>
383 * go-gcc.cc (Gcc_backend::error_expression): New function.
384 (Gcc_backend::var_expression): New function.
385 (Gcc_backend::indirect_expression): New function.
387 2013-09-25 Tom Tromey <tromey@redhat.com>
389 * Make-lang.in (gospec.o): Remove.
390 (CFLAGS-go/gospec.o): New variable.
391 (GCCGO_OBJS): Update to use go/gospec.o.
393 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
394 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
395 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
396 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
397 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
398 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
399 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
400 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
401 (go/unsafe.o): Remove.
402 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
403 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
405 2013-09-25 Tom Tromey <tromey@redhat.com>
407 * Make-lang.in (gospec.o): Don't use subshell.
409 2013-08-28 Ian Lance Taylor <iant@google.com>
411 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
412 the struct is not hidden.
413 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
415 2013-08-06 Ian Lance Taylor <iant@google.com>
417 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
418 compute_reloc_for_constant.
420 2013-08-02 Ian Lance Taylor <iant@google.com>
422 * go-gcc.cc (immutable_struct_set_init): Always call
423 resolve_unique_section.
425 2013-07-24 Ian Lance Taylor <iant@google.com>
427 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
428 fields, recreate those fields with the first one with a non-zero
431 2013-07-23 Ian Lance Taylor <iant@google.com>
433 * go-backend.c: Don't #include "rtl.h".
434 (go_imported_unsafe): Don't call init_varasm_once.
435 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
437 2013-07-23 Ian Lance Taylor <iant@google.com>
439 * go-lang.c: Don't #include "except.h".
440 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
442 2013-06-18 Ian Lance Taylor <iant@google.com>
444 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
446 (Gcc_backend::immutable_struct_set_init): Likewise.
448 2013-05-16 Jason Merrill <jason@redhat.com>
450 * Make-lang.in (go1$(exeext)): Use link mutex.
452 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
454 * gospec.c: pass -u pthread_create to linker when static linking.
456 2012-12-21 Ian Lance Taylor <iant@google.com>
459 * go-system.h: Don't include <cstdio>.
461 2012-12-18 Ian Lance Taylor <iant@google.com>
464 * gospec.c: Revert last patch.
466 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
469 * gospec.c (LIBATOMIC): Define.
470 (LIBATOMIC_PROFILE): Define.
471 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
473 2012-11-29 Ian Lance Taylor <iant@google.com>
475 * go-gcc.cc: Include "output.h".
476 (global_variable): Add is_unique_section parameter.
477 (global_variable_set_init): Adjust unique section if necessary.
478 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
480 2012-11-17 Diego Novillo <dnovillo@google.com>
482 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
484 * go-lang.c: Use new vec API in vec.h.
486 2012-11-16 Ian Lance Taylor <iant@google.com>
488 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
489 (go1$(exeext)): Likewise.
491 2012-10-30 Ian Lance Taylor <iant@google.com>
493 * lang.opt (-fgo-relative-import-path): New option.
494 * go-lang.c (go_relative_import_path): New static variable.
495 (go_langhook_init): Pass go_relative_import_path to
497 (go_langhook_handle_option): Handle -fgo-relative-import-path.
498 * go-c.h (go_create_gogo): Update declaration.
499 * gccgo.texi (Invoking gccgo): Document
500 -fgo-relative-import-path.
502 2012-09-17 Ian Lance Taylor <iant@google.com>
504 * config-lang.in (target_libs): Add target-libbacktrace.
506 2012-09-16 Ian Lance Taylor <iant@google.com>
508 * Make-lang.in (go/gogo.o): Depend on filenames.h.
510 2012-08-14 Diego Novillo <dnovillo@google.com>
512 Merge from cxx-conversion branch. Configury.
514 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
515 * go-gcc.cc: Likewise.
516 * go-system.h: Likewise.
518 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
520 * go-lang.c (lang_decl): Add variable_size GTY option.
522 2012-05-09 Ian Lance Taylor <iant@google.com>
524 * lang.opt: Add -fgo-pkgpath.
525 * go-lang.c (go_pkgpath): New static variable.
526 (go_prefix): New static variable.
527 (go_langhook_init): Pass go_pkgpath and go_prefix to
529 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
530 -fgo-prefix handling to just set go_prefix.
531 * go-c.h (go_set_prefix): Don't declare.
532 (go_create_gogo): Add pkgpath and prefix to declaration.
533 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
534 to pkgpath. Don't include the package name in the asm name.
535 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
536 docs for -fgo-prefix.
538 2012-04-23 Ian Lance Taylor <iant@google.com>
540 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
542 2012-04-20 Ian Lance Taylor <iant@google.com>
544 * lang.opt: Add -fgo-check-divide-zero and
545 -fgo-check-divide-overflow.
546 * gccgo.texi (Invoking gccgo): Document new options.
548 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
550 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
551 with NULL_TREE type instead of void_type_node.
553 2012-03-09 Ian Lance Taylor <iant@google.com>
555 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
556 to the lhs type if necessary.
558 2012-03-08 Ian Lance Taylor <iant@google.com>
560 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
562 (go_non_zero_struct): New global variable.
563 (Gcc_backend::non_zero_size_type): New function.
564 (Gcc_backend::global_variable): Don't build an assignment for a
566 * go-c.h (go_non_zero_struct): Declare.
567 * config-lang.in (gtfiles): Add go-c.h.
569 2012-02-29 Ian Lance Taylor <iant@google.com>
571 * go-gcc.cc (class Gcc_tree): Add set_tree method.
572 (set_placeholder_pointer_type): When setting to a pointer to
573 error, set to error_mark_node.
575 2012-02-23 Richard Guenther <rguenther@suse.de>
577 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
578 build_distinct_type_copy.
580 2012-02-17 Ian Lance Taylor <iant@google.com>
582 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
584 2012-02-17 Ian Lance Taylor <iant@google.com>
586 * gospec.c (lang_specific_driver): If linking, and no -o option
589 2012-02-14 Ian Lance Taylor <iant@google.com>
592 * Make-lang.in (gccgo-cross$(exeext)): New target.
593 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
595 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
596 gccgo-cross$(exeext) does not exist.
598 2012-02-07 Ian Lance Taylor <iant@google.com>
600 * gccgo.texi (Function Names): Document //extern instead of
603 2012-02-01 Jakub Jelinek <jakub@redhat.com>
606 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
607 return build_nonstandard_integer_type result if possible.
609 2012-01-21 Ian Lance Taylor <iant@google.com>
611 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
612 (Gcc_backend::type_alignment): Likewise.
613 (Gcc_backend::type_field_alignment): Likewise.
614 (Gcc_backend::type_field_offset): Likewise.
616 2012-01-20 Ian Lance Taylor <iant@google.com>
618 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
620 (Gcc_backend::set_placeholder_struct_type): Likewise.
622 2012-01-17 Ian Lance Taylor <iant@google.com>
624 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
625 BASE.s rather than -o BASE.o.
627 2012-01-11 Ian Lance Taylor <iant@google.com>
629 * go-lang.c (go_langhook_init): Initialize void_list_node before
630 calling go_create_gogo.
632 2012-01-10 Ian Lance Taylor <iant@google.com>
634 * go-gcc.cc (Gcc_backend::type_size): New function.
635 (Gcc_backend::type_alignment): New function.
636 (Gcc_backend::type_field_alignment): New function.
637 (Gcc_backend::type_field_offset): New function.
638 * go-backend.c (go_type_alignment): Remove.
639 * go-c.h (go_type_alignment): Don't declare.
641 2011-12-27 Ian Lance Taylor <iant@google.com>
643 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
644 build_distinct_type_copy rather than build_variant_type_copy.
645 (Gcc_backend::set_placeholder_array_type): Likewise.
646 (Gcc_backend::named_type): Add special handling for builtin
649 2011-12-22 Ian Lance Taylor <iant@google.com>
651 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
652 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
653 (Gcc_backend::set_placeholder_struct_type): Likewise.
654 (Gcc_backend::set_placeholder_array_type): Likewise.
655 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
657 2011-12-13 Ian Lance Taylor <iant@google.com>
659 * go-backend.c: #include "simple-object.h" and "intl.h".
660 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
661 (GO_EXPORT_SECTION_NAME): Likewise.
662 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
663 (go_read_export_data): New function.
664 * go-c.h (go_read_export_data): Declare.
666 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
667 Ian Lance Taylor <iant@google.com>
669 * go-location.h: New file.
670 * go-linemap.cc: New file.
671 * go-gcc.cc: Change all uses of source_location to Location.
672 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
673 (GO_LINEMAP_H): New variable.
674 (GO_LEX_H): Use $(GO_LINEMAP_H).
675 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
676 (go/go-linemap.o): New target.
678 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
680 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
682 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
684 * lang.opt: Add fgo-optimize-.
685 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
686 * go-c.h (go_enable_optimize): Declare.
687 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
688 (GO_EXPORT_H): Define.
689 (GO_IMPORT_H): Add $(GO_EXPORT_H).
690 (GO_AST_DUMP_H): Define.
691 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
692 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
693 (go/types.o): Likewise.
694 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
695 (go/go-optimize.o): New target.
697 2011-08-24 Joseph Myers <joseph@codesourcery.com>
699 * Make-lang.in (CFLAGS-go/go-lang.o): New.
700 (go/go-lang.o): Remove explicit compilation rule.
702 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
704 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
706 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
708 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
709 (go/ast-dump.o): New target.
710 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
711 (go/statements.o): Likewise.
713 2011-07-06 Richard Guenther <rguenther@suse.de>
715 * go-lang.c (go_langhook_init):
716 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
718 2011-06-14 Joseph Myers <joseph@codesourcery.com>
720 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
722 * go-backend.c: Include common/common-target.h.
723 (go_write_export_data): Use targetm_common.have_named_sections.
724 * go-lang.c: Include common/common-target.h.
725 (go_langhook_init_options_struct): Use
726 targetm_common.supports_split_stack.
728 2011-06-13 Ian Lance Taylor <iant@google.com>
730 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
732 2011-06-10 Ian Lance Taylor <iant@google.com>
734 * go-gcc.cc: Include "toplev.h".
735 (Gcc_backend::immutable_struct): New function.
736 (Gcc_backend::immutable_struct_set_init): New function.
737 (Gcc_backend::immutable_struct_reference): New function.
738 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
740 2011-06-09 Ian Lance Taylor <iant@google.com>
742 * go-gcc.cc (Gcc_backend::zero_expression): New function.
744 2011-06-07 Richard Guenther <rguenther@suse.de>
746 * go-lang.c (go_langhook_init): Do not set
747 size_type_node or call set_sizetype.
749 2011-05-27 Ian Lance Taylor <iant@google.com>
751 * go-backend.c: Include "output.h".
752 (go_write_export_data): New function.
753 * go-c.h (go_write_export_data): Declare.
754 * Make-lang.in (go/go-backend.o): Depend on output.h.
755 (go/export.o): Depend on $(GO_C_H). Do not depend on
756 $(MACHMODE_H), output.h, or $(TARGET_H).
758 2011-05-24 Joseph Myers <joseph@codesourcery.com>
760 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
761 (gccgo$(exeext)): Use libcommon-target.a.
763 2011-05-20 Joseph Myers <joseph@codesourcery.com>
765 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
767 2011-05-13 Ian Lance Taylor <iant@google.com>
769 * go-gcc.cc (Gcc_backend::function_type): When building a struct
770 for multiple results, check that all fields types have a size.
771 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
773 2011-05-12 Ian Lance Taylor <iant@google.com>
775 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
777 (Gcc_backend::parameter_variable): Likewise.
779 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
781 * go-lang.c (global_bindings_p): Return bool and simplify.
783 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
785 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
787 2011-05-04 Ian Lance Taylor <iant@google.com>
789 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
790 (Gcc_backend::fill_in_struct): New function.
791 (Gcc_backend::array_type): Implement.
792 (Gcc_backend::fill_in_array): New function.
793 (Gcc_backend::placeholder_pointer_type): New function.
794 (Gcc_backend::set_placeholder_pointer_type): New function.
795 (Gcc_backend::set_placeholder_function_type): New function.
796 (Gcc_backend::placeholder_struct_type): New function.
797 (Gcc_backend::set_placeholder_struct_type): New function.
798 (Gcc_backend::placeholder_array_type): New function.
799 (Gcc_backend::set_placeholder_array_type): New function.
800 (Gcc_backend::named_type): New function.
801 (Gcc_backend::circular_pointer_type): New function.
802 (Gcc_backend::is_circular_pointer_type): New function.
804 2011-04-26 Ian Lance Taylor <iant@google.com>
806 * go-gcc.cc (Gcc_backend::struct_type): Implement.
808 2011-04-25 Ian Lance Taylor <iant@google.com>
810 * go-gcc.cc (Gcc_backend::error_type): Implement.
811 (Gcc_backend::string_type): Remove.
812 (Gcc_backend::function_type): Change signature and implement.
813 (Gcc_backend::struct_type): Change signature.
814 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
815 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
816 (Gcc_backend::pointer_type): Check for error.
817 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
819 2011-04-25 Evan Shaw <edsrzf@gmail.com>
821 * go-gcc.c (class Gcc_tree): Make get_tree const.
822 (Gcc_backend::void_type): Implement.
823 (Gcc_backend::bool_type): Implement.
824 (Gcc_backend::integer_type): Implement.
825 (Gcc_backend::float_type): Implement.
826 (Gcc_backend::complex_type): New function.
827 (Gcc_backend::pointer_type): New function.
828 (Gcc_backend::make_type): New function.
829 (type_to_tree): New function.
831 2011-04-21 Ian Lance Taylor <iant@google.com>
833 * go-system.h (go_assert, go_unreachable): Define.
835 2011-04-19 Ian Lance Taylor <iant@google.com>
837 * go-system.h: Include "intl.h".
838 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
839 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
840 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
842 2011-04-19 Ian Lance Taylor <iant@google.com>
844 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
846 2011-04-19 Ian Lance Taylor <iant@google.com>
848 * go-gcc.cc (class Bblock): Define.
849 (Gcc_backend::if_statement): Change then_block and else_block to
851 (Gcc_backend::block): New function.
852 (Gcc_backend::block_add_statements): New function.
853 (Gcc_backend::block_statement): New function.
854 (tree_to_block, block_to_tree): New functions.
856 2011-04-18 Ian Lance Taylor <iant@google.com>
858 * go-gcc.cc: Include "go-c.h".
859 (class Bvariable): Define.
860 (Gcc_backend::init_statement): New function.
861 (Gcc_backend::global_variable): New function.
862 (Gcc_backend::global_variable_set_init): New function.
863 (Gcc_backend::local_variable): New function.
864 (Gcc_backend::parameter_variable): New function.
865 (tree_to_type, var_to_tree): New functions.
866 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
867 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
869 2011-04-15 Ian Lance Taylor <iant@google.com>
871 * go-gcc.cc (Gcc_backend::compound_statement): New function.
872 (Gcc_backend::assignment_statement): Use error_statement.
873 (Gcc_backend::return_statement): Likewise.
874 (Gcc_backend::if_statement): Likewise.
875 (Gcc_backend::switch_statement): Likewise.
876 (Gcc_backend::statement_list): Likewise.
878 2011-04-14 Ian Lance Taylor <iant@google.com>
880 * go-gcc.cc (Gcc_backend::error_statement): New function.
882 2011-04-13 Ian Lance Taylor <iant@google.com>
884 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
886 2011-04-13 Ian Lance Taylor <iant@google.com>
888 * Make-lang.in (GO_OBJS): Add go/runtime.o.
889 (GO_RUNTIME_H): New variable.
890 (go/runtime.o): New target.
891 (go/gogo.o): Depend on $(GO_RUNTIME_H).
892 (go/statements.o): Likewise.
894 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
896 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
899 2011-04-06 Ian Lance Taylor <iant@google.com>
901 * go-gcc.cc (if_statement): Use build3_loc.
902 (Gcc_backend::switch_statement): New function.
903 (Gcc_backend::statement_list): New function.
905 2011-04-06 Ian Lance Taylor <iant@google.com>
907 * go-gcc.cc (Gcc_backend::if_statement): New function.
908 (tree_to_stat): New function.
909 (expr_to_tree): Renamed from expression_to_tree.
910 (stat_to_tree): Renamed from statement_to_tree.
912 2011-04-06 Ian Lance Taylor <iant@google.com>
914 * go-gcc.cc (Gcc_backend::expression_statement): New function.
916 2011-04-04 Ian Lance Taylor <iant@google.com>
918 * go-gcc.c (class Blabel): Define.
919 (Gcc_backend::make_expression): New function.
920 (get_identifier_from_string): New function.
921 (Gcc_backend::label): New function.
922 (Gcc_backend::label_definition_statement): New function.
923 (Gcc_backend::goto_statement): New function.
924 (Gcc_backend::label_address): New function.
925 (expression_to_tree): New function.
926 * Make-lang.in (go/expressions.o): Depend on
927 go/gofrontend/backend.h.
928 (go/gogo.o): Likewise.
930 2011-04-04 Ian Lance Taylor <iant@google.com>
932 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
933 (class Bfunction): Define.
934 (Gcc_backend::assignment_statement): Rename from assignment.
936 (Gcc_backend::return_statement): New function.
937 (tree_to_function): New function.
938 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
939 $(GIMPLE_H), and $(GO_GOGO_H).
941 2011-04-03 Ian Lance Taylor <iant@google.com>
943 * go-gcc.cc: New file.
944 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
945 (go/go-gcc.o): New target.
946 (go/go.o): Depend on go/gofrontend/backend.h.
947 (go/statements.o): Likewise.
949 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
951 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
953 2011-02-08 Ian Lance Taylor <iant@google.com>
955 * go-lang.c (go_langhook_init_options_struct): Set
956 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
958 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
960 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
961 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
963 2011-01-21 Ian Lance Taylor <iant@google.com>
965 * go-lang.c (go_langhook_init): Omit float_type_size when calling
967 * go-c.h: Update declaration of go_create_gogo.
969 2011-01-13 Ian Lance Taylor <iant@google.com>
971 * go-backend.c: Include "rtl.h" and "target.h".
972 (go_imported_unsafe): New function.
973 * go-c.h (go_imported_unsafe): Declare.
974 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
975 (go/gogo-tree.o): Remove dependency on $(RTL_H).
976 (go/unsafe.o): Depend on $(GO_C_H).
978 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
981 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
984 2010-12-21 Ian Lance Taylor <iant@google.com>
986 * Make-lang.in (check-go): Remove.
987 (lang_checks_parallelized): Add check-go.
988 (check_go_parallelize): Set.
990 2010-12-13 Ian Lance Taylor <iant@google.com>
992 * gospec.c (lang_specific_driver): Add a -o option if not linking
993 and there is no -o option already.
995 2010-12-07 Ian Lance Taylor <iant@google.com>
997 PR tree-optimization/46805
998 PR tree-optimization/46833
999 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1001 2010-12-06 Ian Lance Taylor <iant@google.com>
1005 * go-lang.c (go_char_p): Define type and vectors.
1006 (go_search_dirs): New static variable.
1007 (go_langhook_handle_option): Use version and version/machine
1009 (go_langhook_post_options): Add non-specific -L paths.
1010 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1011 DEFAULT_TARGET_MACHINE when compiling.
1012 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1013 (Import and Export): Don't mention -L for finding import files.
1015 2010-12-03 Ian Lance Taylor <iant@google.com>
1018 * go-backend.c: New file.
1019 * go-c.h (go_type_alignment): Declare.
1020 (go_field_alignment, go_trampoline_info): Declare.
1021 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1022 (go/go-backend.o): New target.
1023 (go/go-lang.o): Make dependencies match source file.
1024 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1025 (go/gogo-tree.o): Don't depend on $(TM_H).
1027 2010-12-03 Ian Lance Taylor <iant@google.com>
1029 * config-lang.in (build_by_default): Set to no.
1031 2010-12-02 Ian Lance Taylor <iant@google.com>
1033 Go frontend added to gcc repository.
1035 Copyright (C) 2010-2015 Free Software Foundation, Inc.
1037 Copying and distribution of this file, with or without modification,
1038 are permitted in any medium without royalty provided the copyright
1039 notice and this notice are preserved.