1 2015-07-16 Release Manager
5 2015-04-22 Release Manager
9 2015-02-02 Ian Lance Taylor <iant@google.com>
13 * go-gcc.cc (Gcc_backend::type_size): Change return type to
15 (Gcc_backend::type_alignment): Likewise.
16 (Gcc_backend::type_field_alignment): Likewise.
17 (Gcc_backend::type_field_offset): Likewise.
18 (Gcc_backend::implicit_variable): Change alignment parameter type
21 2015-01-23 Ian Lance Taylor <iant@google.com>
24 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
27 * gccgo.texi (C Interoperability): Mention that people should use
30 2015-01-23 Ian Lance Taylor <iant@google.com>
33 * go-lang.c (go_langhook_init_options_struct): Set default
35 (go_langhook_post_options): If debug_info_level is still the
36 default, make sure write_symbols is set.
37 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
39 2015-01-16 Richard Henderson <rth@redhat.com>
41 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
42 (Gcc_backend::static_chain_variable): New method.
44 2015-01-09 Ian Lance Taylor <iant@google.com>
46 * config-lang.in (lang_dirs): Define.
48 2015-01-09 Michael Collison <michael.collison@linaro.org>
50 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
51 input.h, alias.h, symtab.h, options.h, fold-const.h,
52 wide-int.h, and inchash.h due to flattening of tree.h.
54 * go-backend.c: Ditto.
56 2015-01-07 Chris Manghane <cmang@google.com>
59 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
62 2015-01-06 Chris Manghane <cmang@google.com>
64 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
65 initialize zero-sized fields, just evaluate the values for side
68 2015-01-05 Jakub Jelinek <jakub@redhat.com>
70 Update copyright years.
72 * gccgo.texi: Bump @copyrights-go year.
74 2014-12-19 Chris Manghane <cmang@google.com>
76 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
77 construct arrays of zero-sized values.
79 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
81 * go-lang.c: Remove redundant enum from machine_mode.
83 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
85 * go-gcc.cc: Adjust include files.
87 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
89 * go-gcc.cc: Adjust include files.
92 2014-10-23 Ian Lance Taylor <iant@google.com>
94 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
95 mpc_t parameter instead of two mpfr_t parameters.
97 2014-09-15 Jakub Jelinek <jakub@redhat.com>
99 * Make-lang.in (check_go_parallelize): Change to just an upper bound
102 2014-09-03 Chris Manghane <cmang@google.com>
104 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
105 parameter. Add is_hidden parameter.
106 (Gcc_backend::implicit_variable_set_init): New method.
107 (Gcc_backend::implicit_variable_reference): New method.
109 2014-08-08 Ian Lance Taylor <iant@google.com>
111 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
114 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
116 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
117 symtab_get_node to symtab_node::get.
119 2014-06-13 Ian Lance Taylor <iant@google.com>
122 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
123 ld, add -t option to avoid warning about common symbol changing
126 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
128 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
129 symtab_get_node(var_decl)->implicit_section.
131 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
133 * go-gcc.cc (global_variable_set_init): Use
134 set_decl_section_name.
136 2014-06-04 Ian Lance Taylor <iant@google.com>
138 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
139 alignment parameters. Permit init parameter to be NULL.
141 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
143 * go-gcc.cc: Include builtins.h.
145 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
147 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
149 2014-05-06 Chris Manghane <cmang@google.com>
151 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
152 (Gcc_backend::boolean_constant_expression): New method.
153 (Gcc_backend::zero_expression): Use this->make_expression rather
155 (Gcc_backend::var_expression): Likewise.
156 (Gcc_backend::integer_constant_expression): Likewise.
157 (Gcc_backend::float_constant_expression): Likewise.
158 (Gcc_backend::complex_constant_expression): Likewise.
159 (Gcc_backend::struct_field_expression): Likewise.
160 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
161 (tree_to_function, tree_to_block): Remove functions.
162 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
163 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
165 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
166 Mike Stump <mikestump@comcast.net>
167 Richard Sandiford <rdsandiford@googlemail.com>
169 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
171 2014-05-06 Chris Manghane <cmang@google.com>
173 * go-c.h (go_create_gogo): Update declaration to add
174 check_divide_zero and check_divide_overflow parameters.
175 * go-lang.c (go_langhook_init): Pass new arguments to
178 2014-05-05 Chris Manghane <cmang@google.com>
180 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
181 gc_root_variable. Add name and is_constant parameters.
183 2014-05-05 Chris Manghane <cmang@google.com>
185 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
187 (Gcc_backend::temporary_variable): Check for erroneous function.
189 2014-04-30 Chris Manghane <cmang@google.com>
191 * go-backend.c: #include "diagnostics.h".
192 (saw_errors): New function.
193 * go-c.h (saw_errors): Declare.
194 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
196 2014-04-30 Chris Manghane <cmang@google.com>
198 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
199 calling into Go frontend.
200 (go_langhook_type_for_mode): Likewise.
201 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
203 2014-04-30 Chris Manghane <cmang@google.com>
205 * go-gcc.cc: #include "langhooks.h".
206 (Gcc_backend::Gcc_backend): Add constructor.
207 (Gcc_backend::lookup_function): New function.
208 (Gcc_backend::define_builtin): New private function.
209 (Gcc_backend::gcc_backend): Remove.
210 (go_get_backend): Use new to create new Gcc_backend.
212 2014-04-25 Chris Manghane <cmang@google.com>
214 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
215 (Gcc_backend::return_statement): Push and pop function.
216 (Gcc_backend::label): Likewise.
217 (Gcc_backend::function_defer_statement): Likewise.
218 (Gcc_backend::switch_statement): Add function parameter.
219 (Gcc_backend::block): Don't permit function to be NULL.
220 (Gcc_backend::temporary_variable): Change go_assert to
222 (Gcc_backend::gc_root_variable): New function.
223 (Gcc_backend::write_global_definitions): New function.
225 2014-04-22 Chris Manghane <cmang@google.com>
227 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
228 call to create_tmp_var. Require that function be non-NULL.
230 2014-04-17 Chris Manghane <cmang@google.com>
232 * go-gcc.cc (Gcc_backend::named_constant_expression): New
235 2014-04-14 Chris Manghane <cmang@google.com>
237 * go-gcc.cc: Include "convert.h".
238 (Gcc_backend::string_constant_expression): New function.
239 (Gcc_backend::real_part_expression): Likewise.
240 (Gcc_backend::imag_part_expression): Likewise.
241 (Gcc_backend::complex_expression): Likewise.
242 (Gcc_backend::constructor_expression): Likewise.
243 (Gcc_backend::array_constructor_expression): Likewise.
244 (Gcc_backend::pointer_offset_expression): Likewise.
245 (Gcc_backend::array_index_expression): Likewise.
246 (Gcc_backend::call_expression): Likewise.
247 (Gcc_backend::exception_handler_statement): Likewise.
248 (Gcc_backend::function_defer_statement): Likewise.
249 (Gcc_backend::function_set_parameters): Likewise.
250 (Gcc_backend::function_set_body): Likewise.
251 (Gcc_backend::convert_expression): Handle various type
254 2014-03-03 Ian Lance Taylor <iant@google.com>
256 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
258 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
261 2014-01-24 Chris Manghane <cmang@google.com>
263 * go-gcc.cc (Gcc_backend::unary_expression): New function.
265 2014-01-16 Chris Manghane <cmang@google.com>
267 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
269 (operator_to_tree_code): New static function.
270 (Gcc_backend::binary_expression): New function.
272 2014-01-14 Chris Manghane <cmang@google.com>
274 * go-gcc.cc (Gcc_backend::compound_expression): New function.
275 (Gcc_backend::conditional_expression): New function.
277 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
279 Update copyright years
281 2014-01-02 Tobias Burnus <burnus@net-b.de>
283 * gccgo.texi: Bump @copying's copyright year.
285 2013-12-16 Chris Manghane <cmang@google.com>
287 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
289 2013-12-11 Ian Lance Taylor <iant@google.com>
291 * go-lang.c (go_langhook_post_options): Disable sibling calls by
294 2013-12-10 Ian Lance Taylor <iant@google.com>
296 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
299 2013-12-05 Ian Lance Taylor <iant@google.com>
301 Revert this change; no longer required.
302 2013-11-06 Ian Lance Taylor <iant@google.com>
304 * go-lang.c (go_langhook_post_options): If
305 -fisolate-erroneous-paths was turned on by an optimization option,
308 2013-11-23 Ian Lance Taylor <iant@google.com>
310 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
313 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
315 * go-gcc.cc: Add required include files from gimple.h.
316 * go-lang.c: Likewise
318 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
320 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
321 tree_to_shwi throughout.
323 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
325 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
326 tree_fits_shwi_p throughout.
328 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
330 * go-lang.c: Include only gimplify.h and gimple.h as needed.
332 2013-11-14 Diego Novillo <dnovillo@google.com>
334 * go-backend.c: Include stor-layout.h.
335 * go-gcc.cc: Include stringpool.h.
336 Include stor-layout.h.
338 * go-lang.c: Include stor-layout.h.
340 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
342 * go-lang.c: Include gimplify.h.
344 2013-11-06 Ian Lance Taylor <iant@google.com>
346 * go-lang.c (go_langhook_post_options): If
347 -fisolate-erroneous-paths was turned on by an optimization option,
350 2013-10-14 Chris Manghane <cmang@google.com>
352 * go-gcc.cc (Gcc_backend::address_expression): New function.
354 2013-10-11 Chris Manghane <cmang@google.com>
356 * go-gcc.cc (Gcc_backend::function_code_expression): New
359 2013-10-10 Chris Manghane <cmang@google.com>
361 * go-gcc.cc (Gcc_backend::error_function): New function.
362 (Gcc_backend::function): New function.
363 (Gcc_backend::make_function): New function.
364 (function_to_tree): New function.
366 2013-10-04 Chris Manghane <cmang@google.com>
368 * go-gcc.cc (Gcc_backend::convert_expression): New function.
370 2013-10-02 Chris Manghane <cmang@google.com>
372 * go-gcc.cc: Include "real.h" and "realmpfr.h".
373 (Gcc_backend::integer_constant_expression): New function.
374 (Gcc_backend::float_constant_expression): New function.
375 (Gcc_backend::complex_constant_expression): New function.
377 2013-09-30 Chris Manghane <cmang@google.com>
379 * go-gcc.cc (Gcc_backend::error_expression): New function.
380 (Gcc_backend::var_expression): New function.
381 (Gcc_backend::indirect_expression): New function.
383 2013-09-25 Tom Tromey <tromey@redhat.com>
385 * Make-lang.in (gospec.o): Remove.
386 (CFLAGS-go/gospec.o): New variable.
387 (GCCGO_OBJS): Update to use go/gospec.o.
389 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
390 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
391 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
392 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
393 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
394 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
395 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
396 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
397 (go/unsafe.o): Remove.
398 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
399 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
401 2013-09-25 Tom Tromey <tromey@redhat.com>
403 * Make-lang.in (gospec.o): Don't use subshell.
405 2013-08-28 Ian Lance Taylor <iant@google.com>
407 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
408 the struct is not hidden.
409 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
411 2013-08-06 Ian Lance Taylor <iant@google.com>
413 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
414 compute_reloc_for_constant.
416 2013-08-02 Ian Lance Taylor <iant@google.com>
418 * go-gcc.cc (immutable_struct_set_init): Always call
419 resolve_unique_section.
421 2013-07-24 Ian Lance Taylor <iant@google.com>
423 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
424 fields, recreate those fields with the first one with a non-zero
427 2013-07-23 Ian Lance Taylor <iant@google.com>
429 * go-backend.c: Don't #include "rtl.h".
430 (go_imported_unsafe): Don't call init_varasm_once.
431 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
433 2013-07-23 Ian Lance Taylor <iant@google.com>
435 * go-lang.c: Don't #include "except.h".
436 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
438 2013-06-18 Ian Lance Taylor <iant@google.com>
440 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
442 (Gcc_backend::immutable_struct_set_init): Likewise.
444 2013-05-16 Jason Merrill <jason@redhat.com>
446 * Make-lang.in (go1$(exeext)): Use link mutex.
448 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
450 * gospec.c: pass -u pthread_create to linker when static linking.
452 2012-12-21 Ian Lance Taylor <iant@google.com>
455 * go-system.h: Don't include <cstdio>.
457 2012-12-18 Ian Lance Taylor <iant@google.com>
460 * gospec.c: Revert last patch.
462 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
465 * gospec.c (LIBATOMIC): Define.
466 (LIBATOMIC_PROFILE): Define.
467 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
469 2012-11-29 Ian Lance Taylor <iant@google.com>
471 * go-gcc.cc: Include "output.h".
472 (global_variable): Add is_unique_section parameter.
473 (global_variable_set_init): Adjust unique section if necessary.
474 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
476 2012-11-17 Diego Novillo <dnovillo@google.com>
478 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
480 * go-lang.c: Use new vec API in vec.h.
482 2012-11-16 Ian Lance Taylor <iant@google.com>
484 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
485 (go1$(exeext)): Likewise.
487 2012-10-30 Ian Lance Taylor <iant@google.com>
489 * lang.opt (-fgo-relative-import-path): New option.
490 * go-lang.c (go_relative_import_path): New static variable.
491 (go_langhook_init): Pass go_relative_import_path to
493 (go_langhook_handle_option): Handle -fgo-relative-import-path.
494 * go-c.h (go_create_gogo): Update declaration.
495 * gccgo.texi (Invoking gccgo): Document
496 -fgo-relative-import-path.
498 2012-09-17 Ian Lance Taylor <iant@google.com>
500 * config-lang.in (target_libs): Add target-libbacktrace.
502 2012-09-16 Ian Lance Taylor <iant@google.com>
504 * Make-lang.in (go/gogo.o): Depend on filenames.h.
506 2012-08-14 Diego Novillo <dnovillo@google.com>
508 Merge from cxx-conversion branch. Configury.
510 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
511 * go-gcc.cc: Likewise.
512 * go-system.h: Likewise.
514 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
516 * go-lang.c (lang_decl): Add variable_size GTY option.
518 2012-05-09 Ian Lance Taylor <iant@google.com>
520 * lang.opt: Add -fgo-pkgpath.
521 * go-lang.c (go_pkgpath): New static variable.
522 (go_prefix): New static variable.
523 (go_langhook_init): Pass go_pkgpath and go_prefix to
525 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
526 -fgo-prefix handling to just set go_prefix.
527 * go-c.h (go_set_prefix): Don't declare.
528 (go_create_gogo): Add pkgpath and prefix to declaration.
529 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
530 to pkgpath. Don't include the package name in the asm name.
531 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
532 docs for -fgo-prefix.
534 2012-04-23 Ian Lance Taylor <iant@google.com>
536 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
538 2012-04-20 Ian Lance Taylor <iant@google.com>
540 * lang.opt: Add -fgo-check-divide-zero and
541 -fgo-check-divide-overflow.
542 * gccgo.texi (Invoking gccgo): Document new options.
544 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
546 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
547 with NULL_TREE type instead of void_type_node.
549 2012-03-09 Ian Lance Taylor <iant@google.com>
551 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
552 to the lhs type if necessary.
554 2012-03-08 Ian Lance Taylor <iant@google.com>
556 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
558 (go_non_zero_struct): New global variable.
559 (Gcc_backend::non_zero_size_type): New function.
560 (Gcc_backend::global_variable): Don't build an assignment for a
562 * go-c.h (go_non_zero_struct): Declare.
563 * config-lang.in (gtfiles): Add go-c.h.
565 2012-02-29 Ian Lance Taylor <iant@google.com>
567 * go-gcc.cc (class Gcc_tree): Add set_tree method.
568 (set_placeholder_pointer_type): When setting to a pointer to
569 error, set to error_mark_node.
571 2012-02-23 Richard Guenther <rguenther@suse.de>
573 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
574 build_distinct_type_copy.
576 2012-02-17 Ian Lance Taylor <iant@google.com>
578 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
580 2012-02-17 Ian Lance Taylor <iant@google.com>
582 * gospec.c (lang_specific_driver): If linking, and no -o option
585 2012-02-14 Ian Lance Taylor <iant@google.com>
588 * Make-lang.in (gccgo-cross$(exeext)): New target.
589 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
591 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
592 gccgo-cross$(exeext) does not exist.
594 2012-02-07 Ian Lance Taylor <iant@google.com>
596 * gccgo.texi (Function Names): Document //extern instead of
599 2012-02-01 Jakub Jelinek <jakub@redhat.com>
602 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
603 return build_nonstandard_integer_type result if possible.
605 2012-01-21 Ian Lance Taylor <iant@google.com>
607 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
608 (Gcc_backend::type_alignment): Likewise.
609 (Gcc_backend::type_field_alignment): Likewise.
610 (Gcc_backend::type_field_offset): Likewise.
612 2012-01-20 Ian Lance Taylor <iant@google.com>
614 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
616 (Gcc_backend::set_placeholder_struct_type): Likewise.
618 2012-01-17 Ian Lance Taylor <iant@google.com>
620 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
621 BASE.s rather than -o BASE.o.
623 2012-01-11 Ian Lance Taylor <iant@google.com>
625 * go-lang.c (go_langhook_init): Initialize void_list_node before
626 calling go_create_gogo.
628 2012-01-10 Ian Lance Taylor <iant@google.com>
630 * go-gcc.cc (Gcc_backend::type_size): New function.
631 (Gcc_backend::type_alignment): New function.
632 (Gcc_backend::type_field_alignment): New function.
633 (Gcc_backend::type_field_offset): New function.
634 * go-backend.c (go_type_alignment): Remove.
635 * go-c.h (go_type_alignment): Don't declare.
637 2011-12-27 Ian Lance Taylor <iant@google.com>
639 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
640 build_distinct_type_copy rather than build_variant_type_copy.
641 (Gcc_backend::set_placeholder_array_type): Likewise.
642 (Gcc_backend::named_type): Add special handling for builtin
645 2011-12-22 Ian Lance Taylor <iant@google.com>
647 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
648 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
649 (Gcc_backend::set_placeholder_struct_type): Likewise.
650 (Gcc_backend::set_placeholder_array_type): Likewise.
651 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
653 2011-12-13 Ian Lance Taylor <iant@google.com>
655 * go-backend.c: #include "simple-object.h" and "intl.h".
656 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
657 (GO_EXPORT_SECTION_NAME): Likewise.
658 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
659 (go_read_export_data): New function.
660 * go-c.h (go_read_export_data): Declare.
662 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
663 Ian Lance Taylor <iant@google.com>
665 * go-location.h: New file.
666 * go-linemap.cc: New file.
667 * go-gcc.cc: Change all uses of source_location to Location.
668 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
669 (GO_LINEMAP_H): New variable.
670 (GO_LEX_H): Use $(GO_LINEMAP_H).
671 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
672 (go/go-linemap.o): New target.
674 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
676 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
678 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
680 * lang.opt: Add fgo-optimize-.
681 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
682 * go-c.h (go_enable_optimize): Declare.
683 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
684 (GO_EXPORT_H): Define.
685 (GO_IMPORT_H): Add $(GO_EXPORT_H).
686 (GO_AST_DUMP_H): Define.
687 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
688 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
689 (go/types.o): Likewise.
690 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
691 (go/go-optimize.o): New target.
693 2011-08-24 Joseph Myers <joseph@codesourcery.com>
695 * Make-lang.in (CFLAGS-go/go-lang.o): New.
696 (go/go-lang.o): Remove explicit compilation rule.
698 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
700 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
702 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
704 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
705 (go/ast-dump.o): New target.
706 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
707 (go/statements.o): Likewise.
709 2011-07-06 Richard Guenther <rguenther@suse.de>
711 * go-lang.c (go_langhook_init):
712 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
714 2011-06-14 Joseph Myers <joseph@codesourcery.com>
716 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
718 * go-backend.c: Include common/common-target.h.
719 (go_write_export_data): Use targetm_common.have_named_sections.
720 * go-lang.c: Include common/common-target.h.
721 (go_langhook_init_options_struct): Use
722 targetm_common.supports_split_stack.
724 2011-06-13 Ian Lance Taylor <iant@google.com>
726 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
728 2011-06-10 Ian Lance Taylor <iant@google.com>
730 * go-gcc.cc: Include "toplev.h".
731 (Gcc_backend::immutable_struct): New function.
732 (Gcc_backend::immutable_struct_set_init): New function.
733 (Gcc_backend::immutable_struct_reference): New function.
734 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
736 2011-06-09 Ian Lance Taylor <iant@google.com>
738 * go-gcc.cc (Gcc_backend::zero_expression): New function.
740 2011-06-07 Richard Guenther <rguenther@suse.de>
742 * go-lang.c (go_langhook_init): Do not set
743 size_type_node or call set_sizetype.
745 2011-05-27 Ian Lance Taylor <iant@google.com>
747 * go-backend.c: Include "output.h".
748 (go_write_export_data): New function.
749 * go-c.h (go_write_export_data): Declare.
750 * Make-lang.in (go/go-backend.o): Depend on output.h.
751 (go/export.o): Depend on $(GO_C_H). Do not depend on
752 $(MACHMODE_H), output.h, or $(TARGET_H).
754 2011-05-24 Joseph Myers <joseph@codesourcery.com>
756 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
757 (gccgo$(exeext)): Use libcommon-target.a.
759 2011-05-20 Joseph Myers <joseph@codesourcery.com>
761 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
763 2011-05-13 Ian Lance Taylor <iant@google.com>
765 * go-gcc.cc (Gcc_backend::function_type): When building a struct
766 for multiple results, check that all fields types have a size.
767 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
769 2011-05-12 Ian Lance Taylor <iant@google.com>
771 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
773 (Gcc_backend::parameter_variable): Likewise.
775 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
777 * go-lang.c (global_bindings_p): Return bool and simplify.
779 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
781 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
783 2011-05-04 Ian Lance Taylor <iant@google.com>
785 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
786 (Gcc_backend::fill_in_struct): New function.
787 (Gcc_backend::array_type): Implement.
788 (Gcc_backend::fill_in_array): New function.
789 (Gcc_backend::placeholder_pointer_type): New function.
790 (Gcc_backend::set_placeholder_pointer_type): New function.
791 (Gcc_backend::set_placeholder_function_type): New function.
792 (Gcc_backend::placeholder_struct_type): New function.
793 (Gcc_backend::set_placeholder_struct_type): New function.
794 (Gcc_backend::placeholder_array_type): New function.
795 (Gcc_backend::set_placeholder_array_type): New function.
796 (Gcc_backend::named_type): New function.
797 (Gcc_backend::circular_pointer_type): New function.
798 (Gcc_backend::is_circular_pointer_type): New function.
800 2011-04-26 Ian Lance Taylor <iant@google.com>
802 * go-gcc.cc (Gcc_backend::struct_type): Implement.
804 2011-04-25 Ian Lance Taylor <iant@google.com>
806 * go-gcc.cc (Gcc_backend::error_type): Implement.
807 (Gcc_backend::string_type): Remove.
808 (Gcc_backend::function_type): Change signature and implement.
809 (Gcc_backend::struct_type): Change signature.
810 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
811 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
812 (Gcc_backend::pointer_type): Check for error.
813 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
815 2011-04-25 Evan Shaw <edsrzf@gmail.com>
817 * go-gcc.c (class Gcc_tree): Make get_tree const.
818 (Gcc_backend::void_type): Implement.
819 (Gcc_backend::bool_type): Implement.
820 (Gcc_backend::integer_type): Implement.
821 (Gcc_backend::float_type): Implement.
822 (Gcc_backend::complex_type): New function.
823 (Gcc_backend::pointer_type): New function.
824 (Gcc_backend::make_type): New function.
825 (type_to_tree): New function.
827 2011-04-21 Ian Lance Taylor <iant@google.com>
829 * go-system.h (go_assert, go_unreachable): Define.
831 2011-04-19 Ian Lance Taylor <iant@google.com>
833 * go-system.h: Include "intl.h".
834 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
835 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
836 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
838 2011-04-19 Ian Lance Taylor <iant@google.com>
840 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
842 2011-04-19 Ian Lance Taylor <iant@google.com>
844 * go-gcc.cc (class Bblock): Define.
845 (Gcc_backend::if_statement): Change then_block and else_block to
847 (Gcc_backend::block): New function.
848 (Gcc_backend::block_add_statements): New function.
849 (Gcc_backend::block_statement): New function.
850 (tree_to_block, block_to_tree): New functions.
852 2011-04-18 Ian Lance Taylor <iant@google.com>
854 * go-gcc.cc: Include "go-c.h".
855 (class Bvariable): Define.
856 (Gcc_backend::init_statement): New function.
857 (Gcc_backend::global_variable): New function.
858 (Gcc_backend::global_variable_set_init): New function.
859 (Gcc_backend::local_variable): New function.
860 (Gcc_backend::parameter_variable): New function.
861 (tree_to_type, var_to_tree): New functions.
862 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
863 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
865 2011-04-15 Ian Lance Taylor <iant@google.com>
867 * go-gcc.cc (Gcc_backend::compound_statement): New function.
868 (Gcc_backend::assignment_statement): Use error_statement.
869 (Gcc_backend::return_statement): Likewise.
870 (Gcc_backend::if_statement): Likewise.
871 (Gcc_backend::switch_statement): Likewise.
872 (Gcc_backend::statement_list): Likewise.
874 2011-04-14 Ian Lance Taylor <iant@google.com>
876 * go-gcc.cc (Gcc_backend::error_statement): New function.
878 2011-04-13 Ian Lance Taylor <iant@google.com>
880 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
882 2011-04-13 Ian Lance Taylor <iant@google.com>
884 * Make-lang.in (GO_OBJS): Add go/runtime.o.
885 (GO_RUNTIME_H): New variable.
886 (go/runtime.o): New target.
887 (go/gogo.o): Depend on $(GO_RUNTIME_H).
888 (go/statements.o): Likewise.
890 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
892 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
895 2011-04-06 Ian Lance Taylor <iant@google.com>
897 * go-gcc.cc (if_statement): Use build3_loc.
898 (Gcc_backend::switch_statement): New function.
899 (Gcc_backend::statement_list): New function.
901 2011-04-06 Ian Lance Taylor <iant@google.com>
903 * go-gcc.cc (Gcc_backend::if_statement): New function.
904 (tree_to_stat): New function.
905 (expr_to_tree): Renamed from expression_to_tree.
906 (stat_to_tree): Renamed from statement_to_tree.
908 2011-04-06 Ian Lance Taylor <iant@google.com>
910 * go-gcc.cc (Gcc_backend::expression_statement): New function.
912 2011-04-04 Ian Lance Taylor <iant@google.com>
914 * go-gcc.c (class Blabel): Define.
915 (Gcc_backend::make_expression): New function.
916 (get_identifier_from_string): New function.
917 (Gcc_backend::label): New function.
918 (Gcc_backend::label_definition_statement): New function.
919 (Gcc_backend::goto_statement): New function.
920 (Gcc_backend::label_address): New function.
921 (expression_to_tree): New function.
922 * Make-lang.in (go/expressions.o): Depend on
923 go/gofrontend/backend.h.
924 (go/gogo.o): Likewise.
926 2011-04-04 Ian Lance Taylor <iant@google.com>
928 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
929 (class Bfunction): Define.
930 (Gcc_backend::assignment_statement): Rename from assignment.
932 (Gcc_backend::return_statement): New function.
933 (tree_to_function): New function.
934 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
935 $(GIMPLE_H), and $(GO_GOGO_H).
937 2011-04-03 Ian Lance Taylor <iant@google.com>
939 * go-gcc.cc: New file.
940 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
941 (go/go-gcc.o): New target.
942 (go/go.o): Depend on go/gofrontend/backend.h.
943 (go/statements.o): Likewise.
945 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
947 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
949 2011-02-08 Ian Lance Taylor <iant@google.com>
951 * go-lang.c (go_langhook_init_options_struct): Set
952 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
954 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
956 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
957 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
959 2011-01-21 Ian Lance Taylor <iant@google.com>
961 * go-lang.c (go_langhook_init): Omit float_type_size when calling
963 * go-c.h: Update declaration of go_create_gogo.
965 2011-01-13 Ian Lance Taylor <iant@google.com>
967 * go-backend.c: Include "rtl.h" and "target.h".
968 (go_imported_unsafe): New function.
969 * go-c.h (go_imported_unsafe): Declare.
970 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
971 (go/gogo-tree.o): Remove dependency on $(RTL_H).
972 (go/unsafe.o): Depend on $(GO_C_H).
974 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
977 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
980 2010-12-21 Ian Lance Taylor <iant@google.com>
982 * Make-lang.in (check-go): Remove.
983 (lang_checks_parallelized): Add check-go.
984 (check_go_parallelize): Set.
986 2010-12-13 Ian Lance Taylor <iant@google.com>
988 * gospec.c (lang_specific_driver): Add a -o option if not linking
989 and there is no -o option already.
991 2010-12-07 Ian Lance Taylor <iant@google.com>
993 PR tree-optimization/46805
994 PR tree-optimization/46833
995 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
997 2010-12-06 Ian Lance Taylor <iant@google.com>
1001 * go-lang.c (go_char_p): Define type and vectors.
1002 (go_search_dirs): New static variable.
1003 (go_langhook_handle_option): Use version and version/machine
1005 (go_langhook_post_options): Add non-specific -L paths.
1006 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1007 DEFAULT_TARGET_MACHINE when compiling.
1008 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1009 (Import and Export): Don't mention -L for finding import files.
1011 2010-12-03 Ian Lance Taylor <iant@google.com>
1014 * go-backend.c: New file.
1015 * go-c.h (go_type_alignment): Declare.
1016 (go_field_alignment, go_trampoline_info): Declare.
1017 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1018 (go/go-backend.o): New target.
1019 (go/go-lang.o): Make dependencies match source file.
1020 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1021 (go/gogo-tree.o): Don't depend on $(TM_H).
1023 2010-12-03 Ian Lance Taylor <iant@google.com>
1025 * config-lang.in (build_by_default): Set to no.
1027 2010-12-02 Ian Lance Taylor <iant@google.com>
1029 Go frontend added to gcc repository.
1031 Copyright (C) 2010-2015 Free Software Foundation, Inc.
1033 Copying and distribution of this file, with or without modification,
1034 are permitted in any medium without royalty provided the copyright
1035 notice and this notice are preserved.