1 2015-01-23 Ian Lance Taylor <iant@google.com>
4 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
7 * gccgo.texi (C Interoperability): Mention that people should use
10 2015-01-23 Ian Lance Taylor <iant@google.com>
13 * go-lang.c (go_langhook_init_options_struct): Set default
15 (go_langhook_post_options): If debug_info_level is still the
16 default, make sure write_symbols is set.
17 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
19 2015-01-16 Richard Henderson <rth@redhat.com>
21 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
22 (Gcc_backend::static_chain_variable): New method.
24 2015-01-09 Ian Lance Taylor <iant@google.com>
26 * config-lang.in (lang_dirs): Define.
28 2015-01-09 Michael Collison <michael.collison@linaro.org>
30 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
31 input.h, alias.h, symtab.h, options.h, fold-const.h,
32 wide-int.h, and inchash.h due to flattening of tree.h.
34 * go-backend.c: Ditto.
36 2015-01-07 Chris Manghane <cmang@google.com>
39 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
42 2015-01-06 Chris Manghane <cmang@google.com>
44 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
45 initialize zero-sized fields, just evaluate the values for side
48 2015-01-05 Jakub Jelinek <jakub@redhat.com>
50 Update copyright years.
52 * gccgo.texi: Bump @copyrights-go year.
54 2014-12-19 Chris Manghane <cmang@google.com>
56 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
57 construct arrays of zero-sized values.
59 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
61 * go-lang.c: Remove redundant enum from machine_mode.
63 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
65 * go-gcc.cc: Adjust include files.
67 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
69 * go-gcc.cc: Adjust include files.
72 2014-10-23 Ian Lance Taylor <iant@google.com>
74 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
75 mpc_t parameter instead of two mpfr_t parameters.
77 2014-09-15 Jakub Jelinek <jakub@redhat.com>
79 * Make-lang.in (check_go_parallelize): Change to just an upper bound
82 2014-09-03 Chris Manghane <cmang@google.com>
84 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
85 parameter. Add is_hidden parameter.
86 (Gcc_backend::implicit_variable_set_init): New method.
87 (Gcc_backend::implicit_variable_reference): New method.
89 2014-08-08 Ian Lance Taylor <iant@google.com>
91 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
94 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
96 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
97 symtab_get_node to symtab_node::get.
99 2014-06-13 Ian Lance Taylor <iant@google.com>
102 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
103 ld, add -t option to avoid warning about common symbol changing
106 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
108 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
109 symtab_get_node(var_decl)->implicit_section.
111 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
113 * go-gcc.cc (global_variable_set_init): Use
114 set_decl_section_name.
116 2014-06-04 Ian Lance Taylor <iant@google.com>
118 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
119 alignment parameters. Permit init parameter to be NULL.
121 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
123 * go-gcc.cc: Include builtins.h.
125 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
127 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
129 2014-05-06 Chris Manghane <cmang@google.com>
131 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
132 (Gcc_backend::boolean_constant_expression): New method.
133 (Gcc_backend::zero_expression): Use this->make_expression rather
135 (Gcc_backend::var_expression): Likewise.
136 (Gcc_backend::integer_constant_expression): Likewise.
137 (Gcc_backend::float_constant_expression): Likewise.
138 (Gcc_backend::complex_constant_expression): Likewise.
139 (Gcc_backend::struct_field_expression): Likewise.
140 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
141 (tree_to_function, tree_to_block): Remove functions.
142 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
143 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
145 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
146 Mike Stump <mikestump@comcast.net>
147 Richard Sandiford <rdsandiford@googlemail.com>
149 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
151 2014-05-06 Chris Manghane <cmang@google.com>
153 * go-c.h (go_create_gogo): Update declaration to add
154 check_divide_zero and check_divide_overflow parameters.
155 * go-lang.c (go_langhook_init): Pass new arguments to
158 2014-05-05 Chris Manghane <cmang@google.com>
160 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
161 gc_root_variable. Add name and is_constant parameters.
163 2014-05-05 Chris Manghane <cmang@google.com>
165 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
167 (Gcc_backend::temporary_variable): Check for erroneous function.
169 2014-04-30 Chris Manghane <cmang@google.com>
171 * go-backend.c: #include "diagnostics.h".
172 (saw_errors): New function.
173 * go-c.h (saw_errors): Declare.
174 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
176 2014-04-30 Chris Manghane <cmang@google.com>
178 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
179 calling into Go frontend.
180 (go_langhook_type_for_mode): Likewise.
181 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
183 2014-04-30 Chris Manghane <cmang@google.com>
185 * go-gcc.cc: #include "langhooks.h".
186 (Gcc_backend::Gcc_backend): Add constructor.
187 (Gcc_backend::lookup_function): New function.
188 (Gcc_backend::define_builtin): New private function.
189 (Gcc_backend::gcc_backend): Remove.
190 (go_get_backend): Use new to create new Gcc_backend.
192 2014-04-25 Chris Manghane <cmang@google.com>
194 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
195 (Gcc_backend::return_statement): Push and pop function.
196 (Gcc_backend::label): Likewise.
197 (Gcc_backend::function_defer_statement): Likewise.
198 (Gcc_backend::switch_statement): Add function parameter.
199 (Gcc_backend::block): Don't permit function to be NULL.
200 (Gcc_backend::temporary_variable): Change go_assert to
202 (Gcc_backend::gc_root_variable): New function.
203 (Gcc_backend::write_global_definitions): New function.
205 2014-04-22 Chris Manghane <cmang@google.com>
207 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
208 call to create_tmp_var. Require that function be non-NULL.
210 2014-04-17 Chris Manghane <cmang@google.com>
212 * go-gcc.cc (Gcc_backend::named_constant_expression): New
215 2014-04-14 Chris Manghane <cmang@google.com>
217 * go-gcc.cc: Include "convert.h".
218 (Gcc_backend::string_constant_expression): New function.
219 (Gcc_backend::real_part_expression): Likewise.
220 (Gcc_backend::imag_part_expression): Likewise.
221 (Gcc_backend::complex_expression): Likewise.
222 (Gcc_backend::constructor_expression): Likewise.
223 (Gcc_backend::array_constructor_expression): Likewise.
224 (Gcc_backend::pointer_offset_expression): Likewise.
225 (Gcc_backend::array_index_expression): Likewise.
226 (Gcc_backend::call_expression): Likewise.
227 (Gcc_backend::exception_handler_statement): Likewise.
228 (Gcc_backend::function_defer_statement): Likewise.
229 (Gcc_backend::function_set_parameters): Likewise.
230 (Gcc_backend::function_set_body): Likewise.
231 (Gcc_backend::convert_expression): Handle various type
234 2014-03-03 Ian Lance Taylor <iant@google.com>
236 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
238 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
241 2014-01-24 Chris Manghane <cmang@google.com>
243 * go-gcc.cc (Gcc_backend::unary_expression): New function.
245 2014-01-16 Chris Manghane <cmang@google.com>
247 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
249 (operator_to_tree_code): New static function.
250 (Gcc_backend::binary_expression): New function.
252 2014-01-14 Chris Manghane <cmang@google.com>
254 * go-gcc.cc (Gcc_backend::compound_expression): New function.
255 (Gcc_backend::conditional_expression): New function.
257 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
259 Update copyright years
261 2014-01-02 Tobias Burnus <burnus@net-b.de>
263 * gccgo.texi: Bump @copying's copyright year.
265 2013-12-16 Chris Manghane <cmang@google.com>
267 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
269 2013-12-11 Ian Lance Taylor <iant@google.com>
271 * go-lang.c (go_langhook_post_options): Disable sibling calls by
274 2013-12-10 Ian Lance Taylor <iant@google.com>
276 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
279 2013-12-05 Ian Lance Taylor <iant@google.com>
281 Revert this change; no longer required.
282 2013-11-06 Ian Lance Taylor <iant@google.com>
284 * go-lang.c (go_langhook_post_options): If
285 -fisolate-erroneous-paths was turned on by an optimization option,
288 2013-11-23 Ian Lance Taylor <iant@google.com>
290 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
293 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
295 * go-gcc.cc: Add required include files from gimple.h.
296 * go-lang.c: Likewise
298 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
300 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
301 tree_to_shwi throughout.
303 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
305 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
306 tree_fits_shwi_p throughout.
308 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
310 * go-lang.c: Include only gimplify.h and gimple.h as needed.
312 2013-11-14 Diego Novillo <dnovillo@google.com>
314 * go-backend.c: Include stor-layout.h.
315 * go-gcc.cc: Include stringpool.h.
316 Include stor-layout.h.
318 * go-lang.c: Include stor-layout.h.
320 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
322 * go-lang.c: Include gimplify.h.
324 2013-11-06 Ian Lance Taylor <iant@google.com>
326 * go-lang.c (go_langhook_post_options): If
327 -fisolate-erroneous-paths was turned on by an optimization option,
330 2013-10-14 Chris Manghane <cmang@google.com>
332 * go-gcc.cc (Gcc_backend::address_expression): New function.
334 2013-10-11 Chris Manghane <cmang@google.com>
336 * go-gcc.cc (Gcc_backend::function_code_expression): New
339 2013-10-10 Chris Manghane <cmang@google.com>
341 * go-gcc.cc (Gcc_backend::error_function): New function.
342 (Gcc_backend::function): New function.
343 (Gcc_backend::make_function): New function.
344 (function_to_tree): New function.
346 2013-10-04 Chris Manghane <cmang@google.com>
348 * go-gcc.cc (Gcc_backend::convert_expression): New function.
350 2013-10-02 Chris Manghane <cmang@google.com>
352 * go-gcc.cc: Include "real.h" and "realmpfr.h".
353 (Gcc_backend::integer_constant_expression): New function.
354 (Gcc_backend::float_constant_expression): New function.
355 (Gcc_backend::complex_constant_expression): New function.
357 2013-09-30 Chris Manghane <cmang@google.com>
359 * go-gcc.cc (Gcc_backend::error_expression): New function.
360 (Gcc_backend::var_expression): New function.
361 (Gcc_backend::indirect_expression): New function.
363 2013-09-25 Tom Tromey <tromey@redhat.com>
365 * Make-lang.in (gospec.o): Remove.
366 (CFLAGS-go/gospec.o): New variable.
367 (GCCGO_OBJS): Update to use go/gospec.o.
369 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
370 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
371 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
372 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
373 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
374 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
375 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
376 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
377 (go/unsafe.o): Remove.
378 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
379 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
381 2013-09-25 Tom Tromey <tromey@redhat.com>
383 * Make-lang.in (gospec.o): Don't use subshell.
385 2013-08-28 Ian Lance Taylor <iant@google.com>
387 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
388 the struct is not hidden.
389 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
391 2013-08-06 Ian Lance Taylor <iant@google.com>
393 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
394 compute_reloc_for_constant.
396 2013-08-02 Ian Lance Taylor <iant@google.com>
398 * go-gcc.cc (immutable_struct_set_init): Always call
399 resolve_unique_section.
401 2013-07-24 Ian Lance Taylor <iant@google.com>
403 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
404 fields, recreate those fields with the first one with a non-zero
407 2013-07-23 Ian Lance Taylor <iant@google.com>
409 * go-backend.c: Don't #include "rtl.h".
410 (go_imported_unsafe): Don't call init_varasm_once.
411 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
413 2013-07-23 Ian Lance Taylor <iant@google.com>
415 * go-lang.c: Don't #include "except.h".
416 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
418 2013-06-18 Ian Lance Taylor <iant@google.com>
420 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
422 (Gcc_backend::immutable_struct_set_init): Likewise.
424 2013-05-16 Jason Merrill <jason@redhat.com>
426 * Make-lang.in (go1$(exeext)): Use link mutex.
428 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
430 * gospec.c: pass -u pthread_create to linker when static linking.
432 2012-12-21 Ian Lance Taylor <iant@google.com>
435 * go-system.h: Don't include <cstdio>.
437 2012-12-18 Ian Lance Taylor <iant@google.com>
440 * gospec.c: Revert last patch.
442 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
445 * gospec.c (LIBATOMIC): Define.
446 (LIBATOMIC_PROFILE): Define.
447 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
449 2012-11-29 Ian Lance Taylor <iant@google.com>
451 * go-gcc.cc: Include "output.h".
452 (global_variable): Add is_unique_section parameter.
453 (global_variable_set_init): Adjust unique section if necessary.
454 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
456 2012-11-17 Diego Novillo <dnovillo@google.com>
458 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
460 * go-lang.c: Use new vec API in vec.h.
462 2012-11-16 Ian Lance Taylor <iant@google.com>
464 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
465 (go1$(exeext)): Likewise.
467 2012-10-30 Ian Lance Taylor <iant@google.com>
469 * lang.opt (-fgo-relative-import-path): New option.
470 * go-lang.c (go_relative_import_path): New static variable.
471 (go_langhook_init): Pass go_relative_import_path to
473 (go_langhook_handle_option): Handle -fgo-relative-import-path.
474 * go-c.h (go_create_gogo): Update declaration.
475 * gccgo.texi (Invoking gccgo): Document
476 -fgo-relative-import-path.
478 2012-09-17 Ian Lance Taylor <iant@google.com>
480 * config-lang.in (target_libs): Add target-libbacktrace.
482 2012-09-16 Ian Lance Taylor <iant@google.com>
484 * Make-lang.in (go/gogo.o): Depend on filenames.h.
486 2012-08-14 Diego Novillo <dnovillo@google.com>
488 Merge from cxx-conversion branch. Configury.
490 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
491 * go-gcc.cc: Likewise.
492 * go-system.h: Likewise.
494 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
496 * go-lang.c (lang_decl): Add variable_size GTY option.
498 2012-05-09 Ian Lance Taylor <iant@google.com>
500 * lang.opt: Add -fgo-pkgpath.
501 * go-lang.c (go_pkgpath): New static variable.
502 (go_prefix): New static variable.
503 (go_langhook_init): Pass go_pkgpath and go_prefix to
505 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
506 -fgo-prefix handling to just set go_prefix.
507 * go-c.h (go_set_prefix): Don't declare.
508 (go_create_gogo): Add pkgpath and prefix to declaration.
509 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
510 to pkgpath. Don't include the package name in the asm name.
511 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
512 docs for -fgo-prefix.
514 2012-04-23 Ian Lance Taylor <iant@google.com>
516 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
518 2012-04-20 Ian Lance Taylor <iant@google.com>
520 * lang.opt: Add -fgo-check-divide-zero and
521 -fgo-check-divide-overflow.
522 * gccgo.texi (Invoking gccgo): Document new options.
524 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
526 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
527 with NULL_TREE type instead of void_type_node.
529 2012-03-09 Ian Lance Taylor <iant@google.com>
531 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
532 to the lhs type if necessary.
534 2012-03-08 Ian Lance Taylor <iant@google.com>
536 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
538 (go_non_zero_struct): New global variable.
539 (Gcc_backend::non_zero_size_type): New function.
540 (Gcc_backend::global_variable): Don't build an assignment for a
542 * go-c.h (go_non_zero_struct): Declare.
543 * config-lang.in (gtfiles): Add go-c.h.
545 2012-02-29 Ian Lance Taylor <iant@google.com>
547 * go-gcc.cc (class Gcc_tree): Add set_tree method.
548 (set_placeholder_pointer_type): When setting to a pointer to
549 error, set to error_mark_node.
551 2012-02-23 Richard Guenther <rguenther@suse.de>
553 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
554 build_distinct_type_copy.
556 2012-02-17 Ian Lance Taylor <iant@google.com>
558 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
560 2012-02-17 Ian Lance Taylor <iant@google.com>
562 * gospec.c (lang_specific_driver): If linking, and no -o option
565 2012-02-14 Ian Lance Taylor <iant@google.com>
568 * Make-lang.in (gccgo-cross$(exeext)): New target.
569 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
571 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
572 gccgo-cross$(exeext) does not exist.
574 2012-02-07 Ian Lance Taylor <iant@google.com>
576 * gccgo.texi (Function Names): Document //extern instead of
579 2012-02-01 Jakub Jelinek <jakub@redhat.com>
582 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
583 return build_nonstandard_integer_type result if possible.
585 2012-01-21 Ian Lance Taylor <iant@google.com>
587 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
588 (Gcc_backend::type_alignment): Likewise.
589 (Gcc_backend::type_field_alignment): Likewise.
590 (Gcc_backend::type_field_offset): Likewise.
592 2012-01-20 Ian Lance Taylor <iant@google.com>
594 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
596 (Gcc_backend::set_placeholder_struct_type): Likewise.
598 2012-01-17 Ian Lance Taylor <iant@google.com>
600 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
601 BASE.s rather than -o BASE.o.
603 2012-01-11 Ian Lance Taylor <iant@google.com>
605 * go-lang.c (go_langhook_init): Initialize void_list_node before
606 calling go_create_gogo.
608 2012-01-10 Ian Lance Taylor <iant@google.com>
610 * go-gcc.cc (Gcc_backend::type_size): New function.
611 (Gcc_backend::type_alignment): New function.
612 (Gcc_backend::type_field_alignment): New function.
613 (Gcc_backend::type_field_offset): New function.
614 * go-backend.c (go_type_alignment): Remove.
615 * go-c.h (go_type_alignment): Don't declare.
617 2011-12-27 Ian Lance Taylor <iant@google.com>
619 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
620 build_distinct_type_copy rather than build_variant_type_copy.
621 (Gcc_backend::set_placeholder_array_type): Likewise.
622 (Gcc_backend::named_type): Add special handling for builtin
625 2011-12-22 Ian Lance Taylor <iant@google.com>
627 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
628 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
629 (Gcc_backend::set_placeholder_struct_type): Likewise.
630 (Gcc_backend::set_placeholder_array_type): Likewise.
631 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
633 2011-12-13 Ian Lance Taylor <iant@google.com>
635 * go-backend.c: #include "simple-object.h" and "intl.h".
636 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
637 (GO_EXPORT_SECTION_NAME): Likewise.
638 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
639 (go_read_export_data): New function.
640 * go-c.h (go_read_export_data): Declare.
642 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
643 Ian Lance Taylor <iant@google.com>
645 * go-location.h: New file.
646 * go-linemap.cc: New file.
647 * go-gcc.cc: Change all uses of source_location to Location.
648 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
649 (GO_LINEMAP_H): New variable.
650 (GO_LEX_H): Use $(GO_LINEMAP_H).
651 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
652 (go/go-linemap.o): New target.
654 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
656 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
658 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
660 * lang.opt: Add fgo-optimize-.
661 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
662 * go-c.h (go_enable_optimize): Declare.
663 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
664 (GO_EXPORT_H): Define.
665 (GO_IMPORT_H): Add $(GO_EXPORT_H).
666 (GO_AST_DUMP_H): Define.
667 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
668 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
669 (go/types.o): Likewise.
670 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
671 (go/go-optimize.o): New target.
673 2011-08-24 Joseph Myers <joseph@codesourcery.com>
675 * Make-lang.in (CFLAGS-go/go-lang.o): New.
676 (go/go-lang.o): Remove explicit compilation rule.
678 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
680 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
682 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
684 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
685 (go/ast-dump.o): New target.
686 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
687 (go/statements.o): Likewise.
689 2011-07-06 Richard Guenther <rguenther@suse.de>
691 * go-lang.c (go_langhook_init):
692 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
694 2011-06-14 Joseph Myers <joseph@codesourcery.com>
696 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
698 * go-backend.c: Include common/common-target.h.
699 (go_write_export_data): Use targetm_common.have_named_sections.
700 * go-lang.c: Include common/common-target.h.
701 (go_langhook_init_options_struct): Use
702 targetm_common.supports_split_stack.
704 2011-06-13 Ian Lance Taylor <iant@google.com>
706 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
708 2011-06-10 Ian Lance Taylor <iant@google.com>
710 * go-gcc.cc: Include "toplev.h".
711 (Gcc_backend::immutable_struct): New function.
712 (Gcc_backend::immutable_struct_set_init): New function.
713 (Gcc_backend::immutable_struct_reference): New function.
714 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
716 2011-06-09 Ian Lance Taylor <iant@google.com>
718 * go-gcc.cc (Gcc_backend::zero_expression): New function.
720 2011-06-07 Richard Guenther <rguenther@suse.de>
722 * go-lang.c (go_langhook_init): Do not set
723 size_type_node or call set_sizetype.
725 2011-05-27 Ian Lance Taylor <iant@google.com>
727 * go-backend.c: Include "output.h".
728 (go_write_export_data): New function.
729 * go-c.h (go_write_export_data): Declare.
730 * Make-lang.in (go/go-backend.o): Depend on output.h.
731 (go/export.o): Depend on $(GO_C_H). Do not depend on
732 $(MACHMODE_H), output.h, or $(TARGET_H).
734 2011-05-24 Joseph Myers <joseph@codesourcery.com>
736 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
737 (gccgo$(exeext)): Use libcommon-target.a.
739 2011-05-20 Joseph Myers <joseph@codesourcery.com>
741 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
743 2011-05-13 Ian Lance Taylor <iant@google.com>
745 * go-gcc.cc (Gcc_backend::function_type): When building a struct
746 for multiple results, check that all fields types have a size.
747 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
749 2011-05-12 Ian Lance Taylor <iant@google.com>
751 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
753 (Gcc_backend::parameter_variable): Likewise.
755 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
757 * go-lang.c (global_bindings_p): Return bool and simplify.
759 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
761 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
763 2011-05-04 Ian Lance Taylor <iant@google.com>
765 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
766 (Gcc_backend::fill_in_struct): New function.
767 (Gcc_backend::array_type): Implement.
768 (Gcc_backend::fill_in_array): New function.
769 (Gcc_backend::placeholder_pointer_type): New function.
770 (Gcc_backend::set_placeholder_pointer_type): New function.
771 (Gcc_backend::set_placeholder_function_type): New function.
772 (Gcc_backend::placeholder_struct_type): New function.
773 (Gcc_backend::set_placeholder_struct_type): New function.
774 (Gcc_backend::placeholder_array_type): New function.
775 (Gcc_backend::set_placeholder_array_type): New function.
776 (Gcc_backend::named_type): New function.
777 (Gcc_backend::circular_pointer_type): New function.
778 (Gcc_backend::is_circular_pointer_type): New function.
780 2011-04-26 Ian Lance Taylor <iant@google.com>
782 * go-gcc.cc (Gcc_backend::struct_type): Implement.
784 2011-04-25 Ian Lance Taylor <iant@google.com>
786 * go-gcc.cc (Gcc_backend::error_type): Implement.
787 (Gcc_backend::string_type): Remove.
788 (Gcc_backend::function_type): Change signature and implement.
789 (Gcc_backend::struct_type): Change signature.
790 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
791 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
792 (Gcc_backend::pointer_type): Check for error.
793 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
795 2011-04-25 Evan Shaw <edsrzf@gmail.com>
797 * go-gcc.c (class Gcc_tree): Make get_tree const.
798 (Gcc_backend::void_type): Implement.
799 (Gcc_backend::bool_type): Implement.
800 (Gcc_backend::integer_type): Implement.
801 (Gcc_backend::float_type): Implement.
802 (Gcc_backend::complex_type): New function.
803 (Gcc_backend::pointer_type): New function.
804 (Gcc_backend::make_type): New function.
805 (type_to_tree): New function.
807 2011-04-21 Ian Lance Taylor <iant@google.com>
809 * go-system.h (go_assert, go_unreachable): Define.
811 2011-04-19 Ian Lance Taylor <iant@google.com>
813 * go-system.h: Include "intl.h".
814 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
815 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
816 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
818 2011-04-19 Ian Lance Taylor <iant@google.com>
820 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
822 2011-04-19 Ian Lance Taylor <iant@google.com>
824 * go-gcc.cc (class Bblock): Define.
825 (Gcc_backend::if_statement): Change then_block and else_block to
827 (Gcc_backend::block): New function.
828 (Gcc_backend::block_add_statements): New function.
829 (Gcc_backend::block_statement): New function.
830 (tree_to_block, block_to_tree): New functions.
832 2011-04-18 Ian Lance Taylor <iant@google.com>
834 * go-gcc.cc: Include "go-c.h".
835 (class Bvariable): Define.
836 (Gcc_backend::init_statement): New function.
837 (Gcc_backend::global_variable): New function.
838 (Gcc_backend::global_variable_set_init): New function.
839 (Gcc_backend::local_variable): New function.
840 (Gcc_backend::parameter_variable): New function.
841 (tree_to_type, var_to_tree): New functions.
842 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
843 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
845 2011-04-15 Ian Lance Taylor <iant@google.com>
847 * go-gcc.cc (Gcc_backend::compound_statement): New function.
848 (Gcc_backend::assignment_statement): Use error_statement.
849 (Gcc_backend::return_statement): Likewise.
850 (Gcc_backend::if_statement): Likewise.
851 (Gcc_backend::switch_statement): Likewise.
852 (Gcc_backend::statement_list): Likewise.
854 2011-04-14 Ian Lance Taylor <iant@google.com>
856 * go-gcc.cc (Gcc_backend::error_statement): New function.
858 2011-04-13 Ian Lance Taylor <iant@google.com>
860 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
862 2011-04-13 Ian Lance Taylor <iant@google.com>
864 * Make-lang.in (GO_OBJS): Add go/runtime.o.
865 (GO_RUNTIME_H): New variable.
866 (go/runtime.o): New target.
867 (go/gogo.o): Depend on $(GO_RUNTIME_H).
868 (go/statements.o): Likewise.
870 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
872 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
875 2011-04-06 Ian Lance Taylor <iant@google.com>
877 * go-gcc.cc (if_statement): Use build3_loc.
878 (Gcc_backend::switch_statement): New function.
879 (Gcc_backend::statement_list): New function.
881 2011-04-06 Ian Lance Taylor <iant@google.com>
883 * go-gcc.cc (Gcc_backend::if_statement): New function.
884 (tree_to_stat): New function.
885 (expr_to_tree): Renamed from expression_to_tree.
886 (stat_to_tree): Renamed from statement_to_tree.
888 2011-04-06 Ian Lance Taylor <iant@google.com>
890 * go-gcc.cc (Gcc_backend::expression_statement): New function.
892 2011-04-04 Ian Lance Taylor <iant@google.com>
894 * go-gcc.c (class Blabel): Define.
895 (Gcc_backend::make_expression): New function.
896 (get_identifier_from_string): New function.
897 (Gcc_backend::label): New function.
898 (Gcc_backend::label_definition_statement): New function.
899 (Gcc_backend::goto_statement): New function.
900 (Gcc_backend::label_address): New function.
901 (expression_to_tree): New function.
902 * Make-lang.in (go/expressions.o): Depend on
903 go/gofrontend/backend.h.
904 (go/gogo.o): Likewise.
906 2011-04-04 Ian Lance Taylor <iant@google.com>
908 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
909 (class Bfunction): Define.
910 (Gcc_backend::assignment_statement): Rename from assignment.
912 (Gcc_backend::return_statement): New function.
913 (tree_to_function): New function.
914 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
915 $(GIMPLE_H), and $(GO_GOGO_H).
917 2011-04-03 Ian Lance Taylor <iant@google.com>
919 * go-gcc.cc: New file.
920 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
921 (go/go-gcc.o): New target.
922 (go/go.o): Depend on go/gofrontend/backend.h.
923 (go/statements.o): Likewise.
925 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
927 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
929 2011-02-08 Ian Lance Taylor <iant@google.com>
931 * go-lang.c (go_langhook_init_options_struct): Set
932 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
934 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
936 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
937 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
939 2011-01-21 Ian Lance Taylor <iant@google.com>
941 * go-lang.c (go_langhook_init): Omit float_type_size when calling
943 * go-c.h: Update declaration of go_create_gogo.
945 2011-01-13 Ian Lance Taylor <iant@google.com>
947 * go-backend.c: Include "rtl.h" and "target.h".
948 (go_imported_unsafe): New function.
949 * go-c.h (go_imported_unsafe): Declare.
950 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
951 (go/gogo-tree.o): Remove dependency on $(RTL_H).
952 (go/unsafe.o): Depend on $(GO_C_H).
954 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
957 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
960 2010-12-21 Ian Lance Taylor <iant@google.com>
962 * Make-lang.in (check-go): Remove.
963 (lang_checks_parallelized): Add check-go.
964 (check_go_parallelize): Set.
966 2010-12-13 Ian Lance Taylor <iant@google.com>
968 * gospec.c (lang_specific_driver): Add a -o option if not linking
969 and there is no -o option already.
971 2010-12-07 Ian Lance Taylor <iant@google.com>
973 PR tree-optimization/46805
974 PR tree-optimization/46833
975 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
977 2010-12-06 Ian Lance Taylor <iant@google.com>
981 * go-lang.c (go_char_p): Define type and vectors.
982 (go_search_dirs): New static variable.
983 (go_langhook_handle_option): Use version and version/machine
985 (go_langhook_post_options): Add non-specific -L paths.
986 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
987 DEFAULT_TARGET_MACHINE when compiling.
988 * gccgo.texi (Invoking gccgo): Only document -L for linking.
989 (Import and Export): Don't mention -L for finding import files.
991 2010-12-03 Ian Lance Taylor <iant@google.com>
994 * go-backend.c: New file.
995 * go-c.h (go_type_alignment): Declare.
996 (go_field_alignment, go_trampoline_info): Declare.
997 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
998 (go/go-backend.o): New target.
999 (go/go-lang.o): Make dependencies match source file.
1000 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1001 (go/gogo-tree.o): Don't depend on $(TM_H).
1003 2010-12-03 Ian Lance Taylor <iant@google.com>
1005 * config-lang.in (build_by_default): Set to no.
1007 2010-12-02 Ian Lance Taylor <iant@google.com>
1009 Go frontend added to gcc repository.
1011 Copyright (C) 2010-2015 Free Software Foundation, Inc.
1013 Copying and distribution of this file, with or without modification,
1014 are permitted in any medium without royalty provided the copyright
1015 notice and this notice are preserved.