1 2017-10-05 Ian Lance Taylor <iant@golang.org>
3 * Make-lang.in (GO_OBJS): Add go/names.o.
5 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
6 Alan Hayward <alan.hayward@arm.com>
7 David Sherwood <david.sherwood@arm.com>
9 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
11 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
12 Alan Hayward <alan.hayward@arm.com>
13 David Sherwood <david.sherwood@arm.com>
15 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
17 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
18 Alan Hayward <alan.hayward@arm.com>
19 David Sherwood <david.sherwood@arm.com>
21 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
23 2017-08-07 Martin Liska <mliska@suse.cz>
25 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
26 and not __no_split_stack__.
28 2017-07-27 Tony Reix <tony.reix@atos.net>
30 * go-backend.c (go_write_export_data): Use EXCLUDE section for
33 2017-06-09 Ian Lance Taylor <iant@golang.org>
35 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
36 on, disable implicit -forder-blocks-and-partition.
38 2017-05-12 Than McIntosh <thanm@google.com>
40 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
42 2017-05-11 Ian Lance Taylor <iant@google.com>
45 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
46 DECL_EXTERNAL, clear TREE_STATIC.
48 2017-05-10 Than McIntosh <thanm@google.com>
50 * go-backend.c: Include "go-c.h".
51 * go-gcc.cc (Gcc_backend::write_export_data): New method.
53 2017-05-10 Ian Lance Taylor <iant@google.com>
55 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
57 * Make-lang.in (GO_OBJS): Add go/wb.o.
59 2017-03-28 Than McIntosh <thanm@google.com>
62 * go-gcc.cc (Gcc_backend::return_statement): Check for
63 void_type_node when checking result size.
65 2017-02-20 Ian Lance Taylor <iant@golang.org>
68 * lang.opt (-fgo-relative-import-path): Change space to tab.
70 2017-02-07 Richard Biener <rguenther@suse.de>
72 PR tree-optimization/79256
74 * go-backend.c (go_field_alignment): Adjust.
76 2017-01-11 Than McIntosh <thanm@google.com>
78 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
80 2017-01-01 Jakub Jelinek <jakub@redhat.com>
82 Update copyright years.
84 * gccgo.texi: Bump @copyrights-go year.
86 2016-12-16 Than McIntosh <thanm@google.com>
88 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
90 (Gcc_backend::init_statement): Likewise.
91 (Gcc_backend::assignment_statement): Likewise.
92 (Gcc_backend::if_statement): Likewise.
94 2016-12-06 Than McIntosh <thanm@google.com>
96 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
99 2016-11-22 Than McIntosh <thanm@google.com>
101 * go-gcc.cc (char_needs_encoding): Remove.
102 (needs_encoding, fetch_utf8_char, encode_id): Remove.
103 (Gcc_backend::global_variable): Add asm_name parameter. Don't
104 compute asm_name here.
105 (Gcc_backend::implicit_variable): Likewise.
106 (Gcc_backend::implicit_variable_reference): Likewise.
107 (Gcc_backend::immutable_struct): Likewise.
108 (Gcc_backend::immutable_struct_reference): Likewise.
109 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
111 2016-11-22 Ian Lance Taylor <iant@google.com>
113 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
114 __builtin_frame_address.
116 2016-10-25 David Malcolm <dmalcolm@redhat.com>
118 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
119 from result of GET_MODE_CLASS. Minor formatting fixes.
121 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
123 * go-backend.c: Include memmodel.h.
125 2016-10-10 Than McIntosh <thanm@google.com>
127 * go-gcc.h: New file.
128 * go-c.h (struct go_create_gogo_args): Add backend and linemap
130 * go-lang.c: Include "go-gcc.h".
131 (go_langhook_init): Set linemap and backend fields of args.
132 * go-gcc.cc: Include "go-gcc.h".
133 * go-linemap.cc: Include "go-gcc.h".
135 2016-10-10 Than McIntosh <thanm@google.com>
137 * go-linemap.cc (Gcc_linemap::location_line): New method.
139 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
141 * config-lang.in (lang_requires_boot_languages): Delete.
143 2016-10-06 Chris Manghane <cmang@google.com>
145 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
148 2016-09-27 Than McIntosh <thanm@google.com>
150 * go-linemap.cc (Gcc_linemap::to_string): New method.
152 2016-09-23 Than McIntosh <thanm@google.com>
154 * go-gcc-diagnostics.cc: New file.
155 * go-location.h (Location): Remove operator source_location. Add
157 * go-system.h: #include <sstream>.
158 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
159 go/go-gcc-diagnostics.o.
160 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
162 2016-09-23 Chris Manghane <cmang@google.com>
165 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
166 to pass arguments in the correct order.
168 2016-09-22 Ian Lance Taylor <iant@golang.org>
170 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
171 __builtin_frame_address.
173 2016-09-11 Ian Lance Taylor <iant@golang.org>
175 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
176 ctz, ctzll, bswap32, bswap64.
178 2016-09-10 Ian Lance Taylor <iant@golang.org>
180 * go-backend.c (go_trampoline_info): Remove.
181 * go-c.h (go_trampoline_info): Don't declare.
183 2016-09-09 Than McIntosh <thanm@google.com>
185 * go-sha1.cc: New file.
186 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
187 (CFLAGS-go/go-sha1.o): New variable.
189 2016-08-29 Ian Lance Taylor <iant@google.com>
191 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
192 * go-c.h (struct go_create_gogo_args): Define.
193 (go_create_gogo): Change declaration to take struct pointer.
194 * go-lang.c (go_c_header): New static variable.
195 (go_langhook_init): Update call to go_create_gogo.
196 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
197 -fgo-compiling-runtime.
199 2016-08-09 Ian Lance Taylor <iant@google.com>
201 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
203 (Compiler Directives): New chapter.
204 (Function Names): Describe using //go:linkname. Suggest using
205 -fgo-pkgpath rather than -fgo-prefix.
207 2016-08-08 Ian Lance Taylor <iant@google.com>
210 * go-gcc.cc (Gcc_backend::function_type): If the return type is
211 zero bytes, treat the function as returning void.
212 (return_statement): If the return type is zero bytes, don't
213 actually return any values.
215 2016-08-05 Ian Lance Taylor <iant@google.com>
218 * go-gcc.cc (char_needs_encoding): New static function.
219 (needs_encoding, fetch_utf8_char): New static functions.
220 (encode_id): New static function.
221 (Gcc_backend::global_variable): Set asm name if the name is not
223 (Gcc_backend::implicit_variable): Likewise.
224 (Gcc_backend::implicit_variable_reference): Likewise.
225 (Gcc_backend::immutable_struct): Likewise.
226 (Gcc_backend::immutable_struct_reference): Likewise.
227 (Gcc_backend::function): Likewise.
229 2016-08-02 Chris Manghane <cmang@google.com>
231 * lang.opt: Add -fgo-debug-escape option.
232 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
233 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
236 2016-05-06 Chris Manghane <cmang@google.com>
238 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
241 2016-04-29 Chris Manghane <cmang@google.com>
243 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
245 2016-04-18 Michael Matz <matz@suse.de>
247 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
249 2016-02-12 Jakub Jelinek <jakub@redhat.com>
251 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
252 neighbour -> neighbor.
253 * gccgo.texi: Likewise.
255 2016-01-27 Ian Lance Taylor <iant@google.com>
257 * go-lang.c (go_langhook_init_options_struct): Default to
258 -fkeep-gc-roots-live.
260 2016-01-04 Jakub Jelinek <jakub@redhat.com>
262 Update copyright years.
264 * gccgo.texi: Bump @copyrights-go year.
266 2015-12-21 Ian Lance Taylor <iant@google.com>
268 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
269 t_ and orig_type_ fields. Add new two parameter constructor. Add
270 get_tree and get_decl methods.
271 (Gcc_backend::var_expression): Pass location to var get_tree.
272 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
273 two parameter constructor for Bvariable.
274 (Gcc_backend::global_variable_set_init): Don't remove
275 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
276 (Gcc_backend::write_global_definitions): Likewise.
277 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
278 (Gcc_backend::block): Likewise.
279 (Gcc_backend::implicit_variable_set_init): Likewise.
280 (Gcc_backend::immutable_struct_set_init): Likewise.
281 (Gcc_backend::function_set_parameters): Likewise.
283 2015-12-21 Ian Lance Taylor <iant@google.com>
285 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
286 add a VIEW_CONVERT_EXPR to the tree.
287 (Gcc_backend::global_variable_set_init): Remove any
289 (Gcc_backend::write_global_definitions): Likewise.
291 2015-11-30 Ian Lance Taylor <iant@google.com>
294 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
295 TYPE_STRING_FLAG on a variant type.
297 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
299 * go-backend.c: Remove unused header files.
300 * go-gcc.cc: Likewise.
301 * go-lang.c: Likewise.
302 * gospec.c: Likewise.
304 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
306 * go-backend.c: Reorder #include's and remove duplicates.
307 * go-lang.c: Likewise.
309 2015-10-20 Alan Modra <amodra@gmail.com>
312 * gospec.c (saw_opt_m32): Rename to..
313 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
315 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
317 2015-10-01 Ian Lance Taylor <iant@google.com>
320 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
321 TARGET_CAN_SPLIT_STACK_64BIT is defined.
323 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
326 * gospec.c (lang_specific_driver): Set appropriate split stack
327 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
329 2015-09-10 Chris Manghane <cmang@google.com>
331 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
332 unrepresentable size.
334 2015-08-24 Marek Polacek <polacek@redhat.com>
336 PR tree-optimization/67284
337 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
338 Set TREE_THIS_VOLATILE.
339 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
340 Pass false to the rest of define_builtin calls.
342 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
344 * go-lang.c (go_langhook_init_options_struct): Don't set
346 (go_langhook_post_options): Set it here instead.
348 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
350 * gofrontend/backend.h: Fix double word typos.
351 * gofrontend/expressions.cc: Same.
354 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
356 * go-backend.c: Adjust includes.
357 * go-gcc.cc: Likewise.
358 * go-lang.c: Likewise.
360 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
362 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
364 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
366 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
367 * go-gcc.cc: Likewise.
368 * go-lang.c: Likewise.
369 * go-system.h: Likewise.
371 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
373 * go-backend.c : Adjust include files.
374 * go-gcc.cc : Likewise.
375 * go-lang.c : Likewise.
377 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
379 * go-gcc.cc (write_global_definitions): Remove call to
380 finalize_compilation_unit.
381 Remove Go specific debug generation.
382 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
383 (go_langhook_write_globals): Remove.
384 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
386 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
388 * go-backend.c: Adjust includes for restructured coretypes.h.
390 * go-gcc.cc: Likewise.
391 * go-lang.c: Likewise.
393 2015-04-30 Chris Manghane <cmang@google.com>
395 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
398 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
400 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
402 2015-04-17 Chris Manghane <cmang@google.com>
404 * Make-lang.in (GO_OBJS): Add go/escape.o.
406 2015-02-02 Ian Lance Taylor <iant@google.com>
410 * go-gcc.cc (Gcc_backend::type_size): Change return type to
412 (Gcc_backend::type_alignment): Likewise.
413 (Gcc_backend::type_field_alignment): Likewise.
414 (Gcc_backend::type_field_offset): Likewise.
415 (Gcc_backend::implicit_variable): Change alignment parameter type
418 2015-01-23 Ian Lance Taylor <iant@google.com>
421 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
424 * gccgo.texi (C Interoperability): Mention that people should use
427 2015-01-23 Ian Lance Taylor <iant@google.com>
430 * go-lang.c (go_langhook_init_options_struct): Set default
432 (go_langhook_post_options): If debug_info_level is still the
433 default, make sure write_symbols is set.
434 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
436 2015-01-16 Richard Henderson <rth@redhat.com>
438 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
439 (Gcc_backend::static_chain_variable): New method.
441 2015-01-09 Ian Lance Taylor <iant@google.com>
443 * config-lang.in (lang_dirs): Define.
445 2015-01-09 Michael Collison <michael.collison@linaro.org>
447 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
448 input.h, alias.h, symtab.h, options.h, fold-const.h,
449 wide-int.h, and inchash.h due to flattening of tree.h.
451 * go-backend.c: Ditto.
453 2015-01-07 Chris Manghane <cmang@google.com>
456 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
459 2015-01-06 Chris Manghane <cmang@google.com>
461 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
462 initialize zero-sized fields, just evaluate the values for side
465 2015-01-05 Jakub Jelinek <jakub@redhat.com>
467 Update copyright years.
469 * gccgo.texi: Bump @copyrights-go year.
471 2014-12-19 Chris Manghane <cmang@google.com>
473 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
474 construct arrays of zero-sized values.
476 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
478 * go-lang.c: Remove redundant enum from machine_mode.
480 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
482 * go-gcc.cc: Adjust include files.
484 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
486 * go-gcc.cc: Adjust include files.
489 2014-10-23 Ian Lance Taylor <iant@google.com>
491 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
492 mpc_t parameter instead of two mpfr_t parameters.
494 2014-09-15 Jakub Jelinek <jakub@redhat.com>
496 * Make-lang.in (check_go_parallelize): Change to just an upper bound
499 2014-09-03 Chris Manghane <cmang@google.com>
501 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
502 parameter. Add is_hidden parameter.
503 (Gcc_backend::implicit_variable_set_init): New method.
504 (Gcc_backend::implicit_variable_reference): New method.
506 2014-08-08 Ian Lance Taylor <iant@google.com>
508 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
511 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
513 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
514 symtab_get_node to symtab_node::get.
516 2014-06-13 Ian Lance Taylor <iant@google.com>
519 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
520 ld, add -t option to avoid warning about common symbol changing
523 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
525 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
526 symtab_get_node(var_decl)->implicit_section.
528 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
530 * go-gcc.cc (global_variable_set_init): Use
531 set_decl_section_name.
533 2014-06-04 Ian Lance Taylor <iant@google.com>
535 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
536 alignment parameters. Permit init parameter to be NULL.
538 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
540 * go-gcc.cc: Include builtins.h.
542 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
544 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
546 2014-05-06 Chris Manghane <cmang@google.com>
548 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
549 (Gcc_backend::boolean_constant_expression): New method.
550 (Gcc_backend::zero_expression): Use this->make_expression rather
552 (Gcc_backend::var_expression): Likewise.
553 (Gcc_backend::integer_constant_expression): Likewise.
554 (Gcc_backend::float_constant_expression): Likewise.
555 (Gcc_backend::complex_constant_expression): Likewise.
556 (Gcc_backend::struct_field_expression): Likewise.
557 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
558 (tree_to_function, tree_to_block): Remove functions.
559 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
560 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
562 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
563 Mike Stump <mikestump@comcast.net>
564 Richard Sandiford <rdsandiford@googlemail.com>
566 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
568 2014-05-06 Chris Manghane <cmang@google.com>
570 * go-c.h (go_create_gogo): Update declaration to add
571 check_divide_zero and check_divide_overflow parameters.
572 * go-lang.c (go_langhook_init): Pass new arguments to
575 2014-05-05 Chris Manghane <cmang@google.com>
577 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
578 gc_root_variable. Add name and is_constant parameters.
580 2014-05-05 Chris Manghane <cmang@google.com>
582 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
584 (Gcc_backend::temporary_variable): Check for erroneous function.
586 2014-04-30 Chris Manghane <cmang@google.com>
588 * go-backend.c: #include "diagnostics.h".
589 (saw_errors): New function.
590 * go-c.h (saw_errors): Declare.
591 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
593 2014-04-30 Chris Manghane <cmang@google.com>
595 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
596 calling into Go frontend.
597 (go_langhook_type_for_mode): Likewise.
598 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
600 2014-04-30 Chris Manghane <cmang@google.com>
602 * go-gcc.cc: #include "langhooks.h".
603 (Gcc_backend::Gcc_backend): Add constructor.
604 (Gcc_backend::lookup_function): New function.
605 (Gcc_backend::define_builtin): New private function.
606 (Gcc_backend::gcc_backend): Remove.
607 (go_get_backend): Use new to create new Gcc_backend.
609 2014-04-25 Chris Manghane <cmang@google.com>
611 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
612 (Gcc_backend::return_statement): Push and pop function.
613 (Gcc_backend::label): Likewise.
614 (Gcc_backend::function_defer_statement): Likewise.
615 (Gcc_backend::switch_statement): Add function parameter.
616 (Gcc_backend::block): Don't permit function to be NULL.
617 (Gcc_backend::temporary_variable): Change go_assert to
619 (Gcc_backend::gc_root_variable): New function.
620 (Gcc_backend::write_global_definitions): New function.
622 2014-04-22 Chris Manghane <cmang@google.com>
624 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
625 call to create_tmp_var. Require that function be non-NULL.
627 2014-04-17 Chris Manghane <cmang@google.com>
629 * go-gcc.cc (Gcc_backend::named_constant_expression): New
632 2014-04-14 Chris Manghane <cmang@google.com>
634 * go-gcc.cc: Include "convert.h".
635 (Gcc_backend::string_constant_expression): New function.
636 (Gcc_backend::real_part_expression): Likewise.
637 (Gcc_backend::imag_part_expression): Likewise.
638 (Gcc_backend::complex_expression): Likewise.
639 (Gcc_backend::constructor_expression): Likewise.
640 (Gcc_backend::array_constructor_expression): Likewise.
641 (Gcc_backend::pointer_offset_expression): Likewise.
642 (Gcc_backend::array_index_expression): Likewise.
643 (Gcc_backend::call_expression): Likewise.
644 (Gcc_backend::exception_handler_statement): Likewise.
645 (Gcc_backend::function_defer_statement): Likewise.
646 (Gcc_backend::function_set_parameters): Likewise.
647 (Gcc_backend::function_set_body): Likewise.
648 (Gcc_backend::convert_expression): Handle various type
651 2014-03-03 Ian Lance Taylor <iant@google.com>
653 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
655 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
658 2014-01-24 Chris Manghane <cmang@google.com>
660 * go-gcc.cc (Gcc_backend::unary_expression): New function.
662 2014-01-16 Chris Manghane <cmang@google.com>
664 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
666 (operator_to_tree_code): New static function.
667 (Gcc_backend::binary_expression): New function.
669 2014-01-14 Chris Manghane <cmang@google.com>
671 * go-gcc.cc (Gcc_backend::compound_expression): New function.
672 (Gcc_backend::conditional_expression): New function.
674 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
676 Update copyright years
678 2014-01-02 Tobias Burnus <burnus@net-b.de>
680 * gccgo.texi: Bump @copying's copyright year.
682 2013-12-16 Chris Manghane <cmang@google.com>
684 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
686 2013-12-11 Ian Lance Taylor <iant@google.com>
688 * go-lang.c (go_langhook_post_options): Disable sibling calls by
691 2013-12-10 Ian Lance Taylor <iant@google.com>
693 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
696 2013-12-05 Ian Lance Taylor <iant@google.com>
698 Revert this change; no longer required.
699 2013-11-06 Ian Lance Taylor <iant@google.com>
701 * go-lang.c (go_langhook_post_options): If
702 -fisolate-erroneous-paths was turned on by an optimization option,
705 2013-11-23 Ian Lance Taylor <iant@google.com>
707 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
710 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
712 * go-gcc.cc: Add required include files from gimple.h.
713 * go-lang.c: Likewise
715 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
717 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
718 tree_to_shwi throughout.
720 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
722 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
723 tree_fits_shwi_p throughout.
725 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
727 * go-lang.c: Include only gimplify.h and gimple.h as needed.
729 2013-11-14 Diego Novillo <dnovillo@google.com>
731 * go-backend.c: Include stor-layout.h.
732 * go-gcc.cc: Include stringpool.h.
733 Include stor-layout.h.
735 * go-lang.c: Include stor-layout.h.
737 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
739 * go-lang.c: Include gimplify.h.
741 2013-11-06 Ian Lance Taylor <iant@google.com>
743 * go-lang.c (go_langhook_post_options): If
744 -fisolate-erroneous-paths was turned on by an optimization option,
747 2013-10-14 Chris Manghane <cmang@google.com>
749 * go-gcc.cc (Gcc_backend::address_expression): New function.
751 2013-10-11 Chris Manghane <cmang@google.com>
753 * go-gcc.cc (Gcc_backend::function_code_expression): New
756 2013-10-10 Chris Manghane <cmang@google.com>
758 * go-gcc.cc (Gcc_backend::error_function): New function.
759 (Gcc_backend::function): New function.
760 (Gcc_backend::make_function): New function.
761 (function_to_tree): New function.
763 2013-10-04 Chris Manghane <cmang@google.com>
765 * go-gcc.cc (Gcc_backend::convert_expression): New function.
767 2013-10-02 Chris Manghane <cmang@google.com>
769 * go-gcc.cc: Include "real.h" and "realmpfr.h".
770 (Gcc_backend::integer_constant_expression): New function.
771 (Gcc_backend::float_constant_expression): New function.
772 (Gcc_backend::complex_constant_expression): New function.
774 2013-09-30 Chris Manghane <cmang@google.com>
776 * go-gcc.cc (Gcc_backend::error_expression): New function.
777 (Gcc_backend::var_expression): New function.
778 (Gcc_backend::indirect_expression): New function.
780 2013-09-25 Tom Tromey <tromey@redhat.com>
782 * Make-lang.in (gospec.o): Remove.
783 (CFLAGS-go/gospec.o): New variable.
784 (GCCGO_OBJS): Update to use go/gospec.o.
786 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
787 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
788 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
789 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
790 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
791 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
792 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
793 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
794 (go/unsafe.o): Remove.
795 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
796 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
798 2013-09-25 Tom Tromey <tromey@redhat.com>
800 * Make-lang.in (gospec.o): Don't use subshell.
802 2013-08-28 Ian Lance Taylor <iant@google.com>
804 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
805 the struct is not hidden.
806 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
808 2013-08-06 Ian Lance Taylor <iant@google.com>
810 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
811 compute_reloc_for_constant.
813 2013-08-02 Ian Lance Taylor <iant@google.com>
815 * go-gcc.cc (immutable_struct_set_init): Always call
816 resolve_unique_section.
818 2013-07-24 Ian Lance Taylor <iant@google.com>
820 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
821 fields, recreate those fields with the first one with a non-zero
824 2013-07-23 Ian Lance Taylor <iant@google.com>
826 * go-backend.c: Don't #include "rtl.h".
827 (go_imported_unsafe): Don't call init_varasm_once.
828 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
830 2013-07-23 Ian Lance Taylor <iant@google.com>
832 * go-lang.c: Don't #include "except.h".
833 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
835 2013-06-18 Ian Lance Taylor <iant@google.com>
837 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
839 (Gcc_backend::immutable_struct_set_init): Likewise.
841 2013-05-16 Jason Merrill <jason@redhat.com>
843 * Make-lang.in (go1$(exeext)): Use link mutex.
845 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
847 * gospec.c: pass -u pthread_create to linker when static linking.
849 2012-12-21 Ian Lance Taylor <iant@google.com>
852 * go-system.h: Don't include <cstdio>.
854 2012-12-18 Ian Lance Taylor <iant@google.com>
857 * gospec.c: Revert last patch.
859 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
862 * gospec.c (LIBATOMIC): Define.
863 (LIBATOMIC_PROFILE): Define.
864 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
866 2012-11-29 Ian Lance Taylor <iant@google.com>
868 * go-gcc.cc: Include "output.h".
869 (global_variable): Add is_unique_section parameter.
870 (global_variable_set_init): Adjust unique section if necessary.
871 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
873 2012-11-17 Diego Novillo <dnovillo@google.com>
875 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
877 * go-lang.c: Use new vec API in vec.h.
879 2012-11-16 Ian Lance Taylor <iant@google.com>
881 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
882 (go1$(exeext)): Likewise.
884 2012-10-30 Ian Lance Taylor <iant@google.com>
886 * lang.opt (-fgo-relative-import-path): New option.
887 * go-lang.c (go_relative_import_path): New static variable.
888 (go_langhook_init): Pass go_relative_import_path to
890 (go_langhook_handle_option): Handle -fgo-relative-import-path.
891 * go-c.h (go_create_gogo): Update declaration.
892 * gccgo.texi (Invoking gccgo): Document
893 -fgo-relative-import-path.
895 2012-09-17 Ian Lance Taylor <iant@google.com>
897 * config-lang.in (target_libs): Add target-libbacktrace.
899 2012-09-16 Ian Lance Taylor <iant@google.com>
901 * Make-lang.in (go/gogo.o): Depend on filenames.h.
903 2012-08-14 Diego Novillo <dnovillo@google.com>
905 Merge from cxx-conversion branch. Configury.
907 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
908 * go-gcc.cc: Likewise.
909 * go-system.h: Likewise.
911 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
913 * go-lang.c (lang_decl): Add variable_size GTY option.
915 2012-05-09 Ian Lance Taylor <iant@google.com>
917 * lang.opt: Add -fgo-pkgpath.
918 * go-lang.c (go_pkgpath): New static variable.
919 (go_prefix): New static variable.
920 (go_langhook_init): Pass go_pkgpath and go_prefix to
922 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
923 -fgo-prefix handling to just set go_prefix.
924 * go-c.h (go_set_prefix): Don't declare.
925 (go_create_gogo): Add pkgpath and prefix to declaration.
926 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
927 to pkgpath. Don't include the package name in the asm name.
928 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
929 docs for -fgo-prefix.
931 2012-04-23 Ian Lance Taylor <iant@google.com>
933 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
935 2012-04-20 Ian Lance Taylor <iant@google.com>
937 * lang.opt: Add -fgo-check-divide-zero and
938 -fgo-check-divide-overflow.
939 * gccgo.texi (Invoking gccgo): Document new options.
941 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
943 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
944 with NULL_TREE type instead of void_type_node.
946 2012-03-09 Ian Lance Taylor <iant@google.com>
948 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
949 to the lhs type if necessary.
951 2012-03-08 Ian Lance Taylor <iant@google.com>
953 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
955 (go_non_zero_struct): New global variable.
956 (Gcc_backend::non_zero_size_type): New function.
957 (Gcc_backend::global_variable): Don't build an assignment for a
959 * go-c.h (go_non_zero_struct): Declare.
960 * config-lang.in (gtfiles): Add go-c.h.
962 2012-02-29 Ian Lance Taylor <iant@google.com>
964 * go-gcc.cc (class Gcc_tree): Add set_tree method.
965 (set_placeholder_pointer_type): When setting to a pointer to
966 error, set to error_mark_node.
968 2012-02-23 Richard Guenther <rguenther@suse.de>
970 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
971 build_distinct_type_copy.
973 2012-02-17 Ian Lance Taylor <iant@google.com>
975 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
977 2012-02-17 Ian Lance Taylor <iant@google.com>
979 * gospec.c (lang_specific_driver): If linking, and no -o option
982 2012-02-14 Ian Lance Taylor <iant@google.com>
985 * Make-lang.in (gccgo-cross$(exeext)): New target.
986 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
988 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
989 gccgo-cross$(exeext) does not exist.
991 2012-02-07 Ian Lance Taylor <iant@google.com>
993 * gccgo.texi (Function Names): Document //extern instead of
996 2012-02-01 Jakub Jelinek <jakub@redhat.com>
999 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1000 return build_nonstandard_integer_type result if possible.
1002 2012-01-21 Ian Lance Taylor <iant@google.com>
1004 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1005 (Gcc_backend::type_alignment): Likewise.
1006 (Gcc_backend::type_field_alignment): Likewise.
1007 (Gcc_backend::type_field_offset): Likewise.
1009 2012-01-20 Ian Lance Taylor <iant@google.com>
1011 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1013 (Gcc_backend::set_placeholder_struct_type): Likewise.
1015 2012-01-17 Ian Lance Taylor <iant@google.com>
1017 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1018 BASE.s rather than -o BASE.o.
1020 2012-01-11 Ian Lance Taylor <iant@google.com>
1022 * go-lang.c (go_langhook_init): Initialize void_list_node before
1023 calling go_create_gogo.
1025 2012-01-10 Ian Lance Taylor <iant@google.com>
1027 * go-gcc.cc (Gcc_backend::type_size): New function.
1028 (Gcc_backend::type_alignment): New function.
1029 (Gcc_backend::type_field_alignment): New function.
1030 (Gcc_backend::type_field_offset): New function.
1031 * go-backend.c (go_type_alignment): Remove.
1032 * go-c.h (go_type_alignment): Don't declare.
1034 2011-12-27 Ian Lance Taylor <iant@google.com>
1036 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1037 build_distinct_type_copy rather than build_variant_type_copy.
1038 (Gcc_backend::set_placeholder_array_type): Likewise.
1039 (Gcc_backend::named_type): Add special handling for builtin
1042 2011-12-22 Ian Lance Taylor <iant@google.com>
1044 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1045 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1046 (Gcc_backend::set_placeholder_struct_type): Likewise.
1047 (Gcc_backend::set_placeholder_array_type): Likewise.
1048 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1050 2011-12-13 Ian Lance Taylor <iant@google.com>
1052 * go-backend.c: #include "simple-object.h" and "intl.h".
1053 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1054 (GO_EXPORT_SECTION_NAME): Likewise.
1055 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1056 (go_read_export_data): New function.
1057 * go-c.h (go_read_export_data): Declare.
1059 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1060 Ian Lance Taylor <iant@google.com>
1062 * go-location.h: New file.
1063 * go-linemap.cc: New file.
1064 * go-gcc.cc: Change all uses of source_location to Location.
1065 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1066 (GO_LINEMAP_H): New variable.
1067 (GO_LEX_H): Use $(GO_LINEMAP_H).
1068 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1069 (go/go-linemap.o): New target.
1071 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1073 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1075 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1077 * lang.opt: Add fgo-optimize-.
1078 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1079 * go-c.h (go_enable_optimize): Declare.
1080 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1081 (GO_EXPORT_H): Define.
1082 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1083 (GO_AST_DUMP_H): Define.
1084 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1085 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1086 (go/types.o): Likewise.
1087 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1088 (go/go-optimize.o): New target.
1090 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1092 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1093 (go/go-lang.o): Remove explicit compilation rule.
1095 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1097 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1099 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1101 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1102 (go/ast-dump.o): New target.
1103 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1104 (go/statements.o): Likewise.
1106 2011-07-06 Richard Guenther <rguenther@suse.de>
1108 * go-lang.c (go_langhook_init):
1109 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1111 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1113 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1115 * go-backend.c: Include common/common-target.h.
1116 (go_write_export_data): Use targetm_common.have_named_sections.
1117 * go-lang.c: Include common/common-target.h.
1118 (go_langhook_init_options_struct): Use
1119 targetm_common.supports_split_stack.
1121 2011-06-13 Ian Lance Taylor <iant@google.com>
1123 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1125 2011-06-10 Ian Lance Taylor <iant@google.com>
1127 * go-gcc.cc: Include "toplev.h".
1128 (Gcc_backend::immutable_struct): New function.
1129 (Gcc_backend::immutable_struct_set_init): New function.
1130 (Gcc_backend::immutable_struct_reference): New function.
1131 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1133 2011-06-09 Ian Lance Taylor <iant@google.com>
1135 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1137 2011-06-07 Richard Guenther <rguenther@suse.de>
1139 * go-lang.c (go_langhook_init): Do not set
1140 size_type_node or call set_sizetype.
1142 2011-05-27 Ian Lance Taylor <iant@google.com>
1144 * go-backend.c: Include "output.h".
1145 (go_write_export_data): New function.
1146 * go-c.h (go_write_export_data): Declare.
1147 * Make-lang.in (go/go-backend.o): Depend on output.h.
1148 (go/export.o): Depend on $(GO_C_H). Do not depend on
1149 $(MACHMODE_H), output.h, or $(TARGET_H).
1151 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1153 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1154 (gccgo$(exeext)): Use libcommon-target.a.
1156 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1158 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1160 2011-05-13 Ian Lance Taylor <iant@google.com>
1162 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1163 for multiple results, check that all fields types have a size.
1164 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1166 2011-05-12 Ian Lance Taylor <iant@google.com>
1168 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1170 (Gcc_backend::parameter_variable): Likewise.
1172 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1174 * go-lang.c (global_bindings_p): Return bool and simplify.
1176 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1178 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1180 2011-05-04 Ian Lance Taylor <iant@google.com>
1182 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1183 (Gcc_backend::fill_in_struct): New function.
1184 (Gcc_backend::array_type): Implement.
1185 (Gcc_backend::fill_in_array): New function.
1186 (Gcc_backend::placeholder_pointer_type): New function.
1187 (Gcc_backend::set_placeholder_pointer_type): New function.
1188 (Gcc_backend::set_placeholder_function_type): New function.
1189 (Gcc_backend::placeholder_struct_type): New function.
1190 (Gcc_backend::set_placeholder_struct_type): New function.
1191 (Gcc_backend::placeholder_array_type): New function.
1192 (Gcc_backend::set_placeholder_array_type): New function.
1193 (Gcc_backend::named_type): New function.
1194 (Gcc_backend::circular_pointer_type): New function.
1195 (Gcc_backend::is_circular_pointer_type): New function.
1197 2011-04-26 Ian Lance Taylor <iant@google.com>
1199 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1201 2011-04-25 Ian Lance Taylor <iant@google.com>
1203 * go-gcc.cc (Gcc_backend::error_type): Implement.
1204 (Gcc_backend::string_type): Remove.
1205 (Gcc_backend::function_type): Change signature and implement.
1206 (Gcc_backend::struct_type): Change signature.
1207 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1208 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1209 (Gcc_backend::pointer_type): Check for error.
1210 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1212 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1214 * go-gcc.c (class Gcc_tree): Make get_tree const.
1215 (Gcc_backend::void_type): Implement.
1216 (Gcc_backend::bool_type): Implement.
1217 (Gcc_backend::integer_type): Implement.
1218 (Gcc_backend::float_type): Implement.
1219 (Gcc_backend::complex_type): New function.
1220 (Gcc_backend::pointer_type): New function.
1221 (Gcc_backend::make_type): New function.
1222 (type_to_tree): New function.
1224 2011-04-21 Ian Lance Taylor <iant@google.com>
1226 * go-system.h (go_assert, go_unreachable): Define.
1228 2011-04-19 Ian Lance Taylor <iant@google.com>
1230 * go-system.h: Include "intl.h".
1231 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1232 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1233 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1235 2011-04-19 Ian Lance Taylor <iant@google.com>
1237 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1239 2011-04-19 Ian Lance Taylor <iant@google.com>
1241 * go-gcc.cc (class Bblock): Define.
1242 (Gcc_backend::if_statement): Change then_block and else_block to
1244 (Gcc_backend::block): New function.
1245 (Gcc_backend::block_add_statements): New function.
1246 (Gcc_backend::block_statement): New function.
1247 (tree_to_block, block_to_tree): New functions.
1249 2011-04-18 Ian Lance Taylor <iant@google.com>
1251 * go-gcc.cc: Include "go-c.h".
1252 (class Bvariable): Define.
1253 (Gcc_backend::init_statement): New function.
1254 (Gcc_backend::global_variable): New function.
1255 (Gcc_backend::global_variable_set_init): New function.
1256 (Gcc_backend::local_variable): New function.
1257 (Gcc_backend::parameter_variable): New function.
1258 (tree_to_type, var_to_tree): New functions.
1259 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1260 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1262 2011-04-15 Ian Lance Taylor <iant@google.com>
1264 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1265 (Gcc_backend::assignment_statement): Use error_statement.
1266 (Gcc_backend::return_statement): Likewise.
1267 (Gcc_backend::if_statement): Likewise.
1268 (Gcc_backend::switch_statement): Likewise.
1269 (Gcc_backend::statement_list): Likewise.
1271 2011-04-14 Ian Lance Taylor <iant@google.com>
1273 * go-gcc.cc (Gcc_backend::error_statement): New function.
1275 2011-04-13 Ian Lance Taylor <iant@google.com>
1277 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1279 2011-04-13 Ian Lance Taylor <iant@google.com>
1281 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1282 (GO_RUNTIME_H): New variable.
1283 (go/runtime.o): New target.
1284 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1285 (go/statements.o): Likewise.
1287 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1289 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1292 2011-04-06 Ian Lance Taylor <iant@google.com>
1294 * go-gcc.cc (if_statement): Use build3_loc.
1295 (Gcc_backend::switch_statement): New function.
1296 (Gcc_backend::statement_list): New function.
1298 2011-04-06 Ian Lance Taylor <iant@google.com>
1300 * go-gcc.cc (Gcc_backend::if_statement): New function.
1301 (tree_to_stat): New function.
1302 (expr_to_tree): Renamed from expression_to_tree.
1303 (stat_to_tree): Renamed from statement_to_tree.
1305 2011-04-06 Ian Lance Taylor <iant@google.com>
1307 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1309 2011-04-04 Ian Lance Taylor <iant@google.com>
1311 * go-gcc.c (class Blabel): Define.
1312 (Gcc_backend::make_expression): New function.
1313 (get_identifier_from_string): New function.
1314 (Gcc_backend::label): New function.
1315 (Gcc_backend::label_definition_statement): New function.
1316 (Gcc_backend::goto_statement): New function.
1317 (Gcc_backend::label_address): New function.
1318 (expression_to_tree): New function.
1319 * Make-lang.in (go/expressions.o): Depend on
1320 go/gofrontend/backend.h.
1321 (go/gogo.o): Likewise.
1323 2011-04-04 Ian Lance Taylor <iant@google.com>
1325 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1326 (class Bfunction): Define.
1327 (Gcc_backend::assignment_statement): Rename from assignment.
1329 (Gcc_backend::return_statement): New function.
1330 (tree_to_function): New function.
1331 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1332 $(GIMPLE_H), and $(GO_GOGO_H).
1334 2011-04-03 Ian Lance Taylor <iant@google.com>
1336 * go-gcc.cc: New file.
1337 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1338 (go/go-gcc.o): New target.
1339 (go/go.o): Depend on go/gofrontend/backend.h.
1340 (go/statements.o): Likewise.
1342 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1344 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1346 2011-02-08 Ian Lance Taylor <iant@google.com>
1348 * go-lang.c (go_langhook_init_options_struct): Set
1349 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1351 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1353 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1354 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1356 2011-01-21 Ian Lance Taylor <iant@google.com>
1358 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1360 * go-c.h: Update declaration of go_create_gogo.
1362 2011-01-13 Ian Lance Taylor <iant@google.com>
1364 * go-backend.c: Include "rtl.h" and "target.h".
1365 (go_imported_unsafe): New function.
1366 * go-c.h (go_imported_unsafe): Declare.
1367 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1368 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1369 (go/unsafe.o): Depend on $(GO_C_H).
1371 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1374 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1377 2010-12-21 Ian Lance Taylor <iant@google.com>
1379 * Make-lang.in (check-go): Remove.
1380 (lang_checks_parallelized): Add check-go.
1381 (check_go_parallelize): Set.
1383 2010-12-13 Ian Lance Taylor <iant@google.com>
1385 * gospec.c (lang_specific_driver): Add a -o option if not linking
1386 and there is no -o option already.
1388 2010-12-07 Ian Lance Taylor <iant@google.com>
1390 PR tree-optimization/46805
1391 PR tree-optimization/46833
1392 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1394 2010-12-06 Ian Lance Taylor <iant@google.com>
1398 * go-lang.c (go_char_p): Define type and vectors.
1399 (go_search_dirs): New static variable.
1400 (go_langhook_handle_option): Use version and version/machine
1402 (go_langhook_post_options): Add non-specific -L paths.
1403 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1404 DEFAULT_TARGET_MACHINE when compiling.
1405 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1406 (Import and Export): Don't mention -L for finding import files.
1408 2010-12-03 Ian Lance Taylor <iant@google.com>
1411 * go-backend.c: New file.
1412 * go-c.h (go_type_alignment): Declare.
1413 (go_field_alignment, go_trampoline_info): Declare.
1414 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1415 (go/go-backend.o): New target.
1416 (go/go-lang.o): Make dependencies match source file.
1417 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1418 (go/gogo-tree.o): Don't depend on $(TM_H).
1420 2010-12-03 Ian Lance Taylor <iant@google.com>
1422 * config-lang.in (build_by_default): Set to no.
1424 2010-12-02 Ian Lance Taylor <iant@google.com>
1426 Go frontend added to gcc repository.
1428 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1430 Copying and distribution of this file, with or without modification,
1431 are permitted in any medium without royalty provided the copyright
1432 notice and this notice are preserved.