1 2017-11-28 Jakub Jelinek <jakub@redhat.com>
3 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
4 build2_loc instead of build3_loc.
6 2017-11-14 Than McIntosh <thanm@google.com>
8 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
10 2017-10-11 Tony Reix <tony.reix@atos.net>
12 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
13 system header files, as is done in ../system.h.
15 2017-10-05 Ian Lance Taylor <iant@golang.org>
17 * Make-lang.in (GO_OBJS): Add go/names.o.
19 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
20 Alan Hayward <alan.hayward@arm.com>
21 David Sherwood <david.sherwood@arm.com>
23 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
25 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
26 Alan Hayward <alan.hayward@arm.com>
27 David Sherwood <david.sherwood@arm.com>
29 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
31 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
32 Alan Hayward <alan.hayward@arm.com>
33 David Sherwood <david.sherwood@arm.com>
35 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
37 2017-08-07 Martin Liska <mliska@suse.cz>
39 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
40 and not __no_split_stack__.
42 2017-07-27 Tony Reix <tony.reix@atos.net>
44 * go-backend.c (go_write_export_data): Use EXCLUDE section for
47 2017-06-09 Ian Lance Taylor <iant@golang.org>
49 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
50 on, disable implicit -forder-blocks-and-partition.
52 2017-05-12 Than McIntosh <thanm@google.com>
54 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
56 2017-05-11 Ian Lance Taylor <iant@google.com>
59 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
60 DECL_EXTERNAL, clear TREE_STATIC.
62 2017-05-10 Than McIntosh <thanm@google.com>
64 * go-backend.c: Include "go-c.h".
65 * go-gcc.cc (Gcc_backend::write_export_data): New method.
67 2017-05-10 Ian Lance Taylor <iant@google.com>
69 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
71 * Make-lang.in (GO_OBJS): Add go/wb.o.
73 2017-03-28 Than McIntosh <thanm@google.com>
76 * go-gcc.cc (Gcc_backend::return_statement): Check for
77 void_type_node when checking result size.
79 2017-02-20 Ian Lance Taylor <iant@golang.org>
82 * lang.opt (-fgo-relative-import-path): Change space to tab.
84 2017-02-07 Richard Biener <rguenther@suse.de>
86 PR tree-optimization/79256
88 * go-backend.c (go_field_alignment): Adjust.
90 2017-01-11 Than McIntosh <thanm@google.com>
92 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
94 2017-01-01 Jakub Jelinek <jakub@redhat.com>
96 Update copyright years.
98 * gccgo.texi: Bump @copyrights-go year.
100 2016-12-16 Than McIntosh <thanm@google.com>
102 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
104 (Gcc_backend::init_statement): Likewise.
105 (Gcc_backend::assignment_statement): Likewise.
106 (Gcc_backend::if_statement): Likewise.
108 2016-12-06 Than McIntosh <thanm@google.com>
110 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
113 2016-11-22 Than McIntosh <thanm@google.com>
115 * go-gcc.cc (char_needs_encoding): Remove.
116 (needs_encoding, fetch_utf8_char, encode_id): Remove.
117 (Gcc_backend::global_variable): Add asm_name parameter. Don't
118 compute asm_name here.
119 (Gcc_backend::implicit_variable): Likewise.
120 (Gcc_backend::implicit_variable_reference): Likewise.
121 (Gcc_backend::immutable_struct): Likewise.
122 (Gcc_backend::immutable_struct_reference): Likewise.
123 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
125 2016-11-22 Ian Lance Taylor <iant@google.com>
127 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
128 __builtin_frame_address.
130 2016-10-25 David Malcolm <dmalcolm@redhat.com>
132 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
133 from result of GET_MODE_CLASS. Minor formatting fixes.
135 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
137 * go-backend.c: Include memmodel.h.
139 2016-10-10 Than McIntosh <thanm@google.com>
141 * go-gcc.h: New file.
142 * go-c.h (struct go_create_gogo_args): Add backend and linemap
144 * go-lang.c: Include "go-gcc.h".
145 (go_langhook_init): Set linemap and backend fields of args.
146 * go-gcc.cc: Include "go-gcc.h".
147 * go-linemap.cc: Include "go-gcc.h".
149 2016-10-10 Than McIntosh <thanm@google.com>
151 * go-linemap.cc (Gcc_linemap::location_line): New method.
153 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
155 * config-lang.in (lang_requires_boot_languages): Delete.
157 2016-10-06 Chris Manghane <cmang@google.com>
159 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
162 2016-09-27 Than McIntosh <thanm@google.com>
164 * go-linemap.cc (Gcc_linemap::to_string): New method.
166 2016-09-23 Than McIntosh <thanm@google.com>
168 * go-gcc-diagnostics.cc: New file.
169 * go-location.h (Location): Remove operator source_location. Add
171 * go-system.h: #include <sstream>.
172 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
173 go/go-gcc-diagnostics.o.
174 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
176 2016-09-23 Chris Manghane <cmang@google.com>
179 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
180 to pass arguments in the correct order.
182 2016-09-22 Ian Lance Taylor <iant@golang.org>
184 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
185 __builtin_frame_address.
187 2016-09-11 Ian Lance Taylor <iant@golang.org>
189 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
190 ctz, ctzll, bswap32, bswap64.
192 2016-09-10 Ian Lance Taylor <iant@golang.org>
194 * go-backend.c (go_trampoline_info): Remove.
195 * go-c.h (go_trampoline_info): Don't declare.
197 2016-09-09 Than McIntosh <thanm@google.com>
199 * go-sha1.cc: New file.
200 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
201 (CFLAGS-go/go-sha1.o): New variable.
203 2016-08-29 Ian Lance Taylor <iant@google.com>
205 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
206 * go-c.h (struct go_create_gogo_args): Define.
207 (go_create_gogo): Change declaration to take struct pointer.
208 * go-lang.c (go_c_header): New static variable.
209 (go_langhook_init): Update call to go_create_gogo.
210 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
211 -fgo-compiling-runtime.
213 2016-08-09 Ian Lance Taylor <iant@google.com>
215 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
217 (Compiler Directives): New chapter.
218 (Function Names): Describe using //go:linkname. Suggest using
219 -fgo-pkgpath rather than -fgo-prefix.
221 2016-08-08 Ian Lance Taylor <iant@google.com>
224 * go-gcc.cc (Gcc_backend::function_type): If the return type is
225 zero bytes, treat the function as returning void.
226 (return_statement): If the return type is zero bytes, don't
227 actually return any values.
229 2016-08-05 Ian Lance Taylor <iant@google.com>
232 * go-gcc.cc (char_needs_encoding): New static function.
233 (needs_encoding, fetch_utf8_char): New static functions.
234 (encode_id): New static function.
235 (Gcc_backend::global_variable): Set asm name if the name is not
237 (Gcc_backend::implicit_variable): Likewise.
238 (Gcc_backend::implicit_variable_reference): Likewise.
239 (Gcc_backend::immutable_struct): Likewise.
240 (Gcc_backend::immutable_struct_reference): Likewise.
241 (Gcc_backend::function): Likewise.
243 2016-08-02 Chris Manghane <cmang@google.com>
245 * lang.opt: Add -fgo-debug-escape option.
246 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
247 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
250 2016-05-06 Chris Manghane <cmang@google.com>
252 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
255 2016-04-29 Chris Manghane <cmang@google.com>
257 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
259 2016-04-18 Michael Matz <matz@suse.de>
261 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
263 2016-02-12 Jakub Jelinek <jakub@redhat.com>
265 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
266 neighbour -> neighbor.
267 * gccgo.texi: Likewise.
269 2016-01-27 Ian Lance Taylor <iant@google.com>
271 * go-lang.c (go_langhook_init_options_struct): Default to
272 -fkeep-gc-roots-live.
274 2016-01-04 Jakub Jelinek <jakub@redhat.com>
276 Update copyright years.
278 * gccgo.texi: Bump @copyrights-go year.
280 2015-12-21 Ian Lance Taylor <iant@google.com>
282 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
283 t_ and orig_type_ fields. Add new two parameter constructor. Add
284 get_tree and get_decl methods.
285 (Gcc_backend::var_expression): Pass location to var get_tree.
286 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
287 two parameter constructor for Bvariable.
288 (Gcc_backend::global_variable_set_init): Don't remove
289 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
290 (Gcc_backend::write_global_definitions): Likewise.
291 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
292 (Gcc_backend::block): Likewise.
293 (Gcc_backend::implicit_variable_set_init): Likewise.
294 (Gcc_backend::immutable_struct_set_init): Likewise.
295 (Gcc_backend::function_set_parameters): Likewise.
297 2015-12-21 Ian Lance Taylor <iant@google.com>
299 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
300 add a VIEW_CONVERT_EXPR to the tree.
301 (Gcc_backend::global_variable_set_init): Remove any
303 (Gcc_backend::write_global_definitions): Likewise.
305 2015-11-30 Ian Lance Taylor <iant@google.com>
308 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
309 TYPE_STRING_FLAG on a variant type.
311 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
313 * go-backend.c: Remove unused header files.
314 * go-gcc.cc: Likewise.
315 * go-lang.c: Likewise.
316 * gospec.c: Likewise.
318 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
320 * go-backend.c: Reorder #include's and remove duplicates.
321 * go-lang.c: Likewise.
323 2015-10-20 Alan Modra <amodra@gmail.com>
326 * gospec.c (saw_opt_m32): Rename to..
327 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
329 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
331 2015-10-01 Ian Lance Taylor <iant@google.com>
334 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
335 TARGET_CAN_SPLIT_STACK_64BIT is defined.
337 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
340 * gospec.c (lang_specific_driver): Set appropriate split stack
341 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
343 2015-09-10 Chris Manghane <cmang@google.com>
345 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
346 unrepresentable size.
348 2015-08-24 Marek Polacek <polacek@redhat.com>
350 PR tree-optimization/67284
351 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
352 Set TREE_THIS_VOLATILE.
353 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
354 Pass false to the rest of define_builtin calls.
356 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
358 * go-lang.c (go_langhook_init_options_struct): Don't set
360 (go_langhook_post_options): Set it here instead.
362 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
364 * gofrontend/backend.h: Fix double word typos.
365 * gofrontend/expressions.cc: Same.
368 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
370 * go-backend.c: Adjust includes.
371 * go-gcc.cc: Likewise.
372 * go-lang.c: Likewise.
374 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
376 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
378 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
380 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
381 * go-gcc.cc: Likewise.
382 * go-lang.c: Likewise.
383 * go-system.h: Likewise.
385 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
387 * go-backend.c : Adjust include files.
388 * go-gcc.cc : Likewise.
389 * go-lang.c : Likewise.
391 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
393 * go-gcc.cc (write_global_definitions): Remove call to
394 finalize_compilation_unit.
395 Remove Go specific debug generation.
396 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
397 (go_langhook_write_globals): Remove.
398 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
400 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
402 * go-backend.c: Adjust includes for restructured coretypes.h.
404 * go-gcc.cc: Likewise.
405 * go-lang.c: Likewise.
407 2015-04-30 Chris Manghane <cmang@google.com>
409 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
412 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
414 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
416 2015-04-17 Chris Manghane <cmang@google.com>
418 * Make-lang.in (GO_OBJS): Add go/escape.o.
420 2015-02-02 Ian Lance Taylor <iant@google.com>
424 * go-gcc.cc (Gcc_backend::type_size): Change return type to
426 (Gcc_backend::type_alignment): Likewise.
427 (Gcc_backend::type_field_alignment): Likewise.
428 (Gcc_backend::type_field_offset): Likewise.
429 (Gcc_backend::implicit_variable): Change alignment parameter type
432 2015-01-23 Ian Lance Taylor <iant@google.com>
435 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
438 * gccgo.texi (C Interoperability): Mention that people should use
441 2015-01-23 Ian Lance Taylor <iant@google.com>
444 * go-lang.c (go_langhook_init_options_struct): Set default
446 (go_langhook_post_options): If debug_info_level is still the
447 default, make sure write_symbols is set.
448 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
450 2015-01-16 Richard Henderson <rth@redhat.com>
452 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
453 (Gcc_backend::static_chain_variable): New method.
455 2015-01-09 Ian Lance Taylor <iant@google.com>
457 * config-lang.in (lang_dirs): Define.
459 2015-01-09 Michael Collison <michael.collison@linaro.org>
461 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
462 input.h, alias.h, symtab.h, options.h, fold-const.h,
463 wide-int.h, and inchash.h due to flattening of tree.h.
465 * go-backend.c: Ditto.
467 2015-01-07 Chris Manghane <cmang@google.com>
470 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
473 2015-01-06 Chris Manghane <cmang@google.com>
475 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
476 initialize zero-sized fields, just evaluate the values for side
479 2015-01-05 Jakub Jelinek <jakub@redhat.com>
481 Update copyright years.
483 * gccgo.texi: Bump @copyrights-go year.
485 2014-12-19 Chris Manghane <cmang@google.com>
487 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
488 construct arrays of zero-sized values.
490 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
492 * go-lang.c: Remove redundant enum from machine_mode.
494 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
496 * go-gcc.cc: Adjust include files.
498 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
500 * go-gcc.cc: Adjust include files.
503 2014-10-23 Ian Lance Taylor <iant@google.com>
505 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
506 mpc_t parameter instead of two mpfr_t parameters.
508 2014-09-15 Jakub Jelinek <jakub@redhat.com>
510 * Make-lang.in (check_go_parallelize): Change to just an upper bound
513 2014-09-03 Chris Manghane <cmang@google.com>
515 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
516 parameter. Add is_hidden parameter.
517 (Gcc_backend::implicit_variable_set_init): New method.
518 (Gcc_backend::implicit_variable_reference): New method.
520 2014-08-08 Ian Lance Taylor <iant@google.com>
522 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
525 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
527 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
528 symtab_get_node to symtab_node::get.
530 2014-06-13 Ian Lance Taylor <iant@google.com>
533 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
534 ld, add -t option to avoid warning about common symbol changing
537 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
539 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
540 symtab_get_node(var_decl)->implicit_section.
542 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
544 * go-gcc.cc (global_variable_set_init): Use
545 set_decl_section_name.
547 2014-06-04 Ian Lance Taylor <iant@google.com>
549 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
550 alignment parameters. Permit init parameter to be NULL.
552 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
554 * go-gcc.cc: Include builtins.h.
556 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
558 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
560 2014-05-06 Chris Manghane <cmang@google.com>
562 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
563 (Gcc_backend::boolean_constant_expression): New method.
564 (Gcc_backend::zero_expression): Use this->make_expression rather
566 (Gcc_backend::var_expression): Likewise.
567 (Gcc_backend::integer_constant_expression): Likewise.
568 (Gcc_backend::float_constant_expression): Likewise.
569 (Gcc_backend::complex_constant_expression): Likewise.
570 (Gcc_backend::struct_field_expression): Likewise.
571 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
572 (tree_to_function, tree_to_block): Remove functions.
573 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
574 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
576 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
577 Mike Stump <mikestump@comcast.net>
578 Richard Sandiford <rdsandiford@googlemail.com>
580 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
582 2014-05-06 Chris Manghane <cmang@google.com>
584 * go-c.h (go_create_gogo): Update declaration to add
585 check_divide_zero and check_divide_overflow parameters.
586 * go-lang.c (go_langhook_init): Pass new arguments to
589 2014-05-05 Chris Manghane <cmang@google.com>
591 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
592 gc_root_variable. Add name and is_constant parameters.
594 2014-05-05 Chris Manghane <cmang@google.com>
596 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
598 (Gcc_backend::temporary_variable): Check for erroneous function.
600 2014-04-30 Chris Manghane <cmang@google.com>
602 * go-backend.c: #include "diagnostics.h".
603 (saw_errors): New function.
604 * go-c.h (saw_errors): Declare.
605 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
607 2014-04-30 Chris Manghane <cmang@google.com>
609 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
610 calling into Go frontend.
611 (go_langhook_type_for_mode): Likewise.
612 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
614 2014-04-30 Chris Manghane <cmang@google.com>
616 * go-gcc.cc: #include "langhooks.h".
617 (Gcc_backend::Gcc_backend): Add constructor.
618 (Gcc_backend::lookup_function): New function.
619 (Gcc_backend::define_builtin): New private function.
620 (Gcc_backend::gcc_backend): Remove.
621 (go_get_backend): Use new to create new Gcc_backend.
623 2014-04-25 Chris Manghane <cmang@google.com>
625 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
626 (Gcc_backend::return_statement): Push and pop function.
627 (Gcc_backend::label): Likewise.
628 (Gcc_backend::function_defer_statement): Likewise.
629 (Gcc_backend::switch_statement): Add function parameter.
630 (Gcc_backend::block): Don't permit function to be NULL.
631 (Gcc_backend::temporary_variable): Change go_assert to
633 (Gcc_backend::gc_root_variable): New function.
634 (Gcc_backend::write_global_definitions): New function.
636 2014-04-22 Chris Manghane <cmang@google.com>
638 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
639 call to create_tmp_var. Require that function be non-NULL.
641 2014-04-17 Chris Manghane <cmang@google.com>
643 * go-gcc.cc (Gcc_backend::named_constant_expression): New
646 2014-04-14 Chris Manghane <cmang@google.com>
648 * go-gcc.cc: Include "convert.h".
649 (Gcc_backend::string_constant_expression): New function.
650 (Gcc_backend::real_part_expression): Likewise.
651 (Gcc_backend::imag_part_expression): Likewise.
652 (Gcc_backend::complex_expression): Likewise.
653 (Gcc_backend::constructor_expression): Likewise.
654 (Gcc_backend::array_constructor_expression): Likewise.
655 (Gcc_backend::pointer_offset_expression): Likewise.
656 (Gcc_backend::array_index_expression): Likewise.
657 (Gcc_backend::call_expression): Likewise.
658 (Gcc_backend::exception_handler_statement): Likewise.
659 (Gcc_backend::function_defer_statement): Likewise.
660 (Gcc_backend::function_set_parameters): Likewise.
661 (Gcc_backend::function_set_body): Likewise.
662 (Gcc_backend::convert_expression): Handle various type
665 2014-03-03 Ian Lance Taylor <iant@google.com>
667 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
669 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
672 2014-01-24 Chris Manghane <cmang@google.com>
674 * go-gcc.cc (Gcc_backend::unary_expression): New function.
676 2014-01-16 Chris Manghane <cmang@google.com>
678 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
680 (operator_to_tree_code): New static function.
681 (Gcc_backend::binary_expression): New function.
683 2014-01-14 Chris Manghane <cmang@google.com>
685 * go-gcc.cc (Gcc_backend::compound_expression): New function.
686 (Gcc_backend::conditional_expression): New function.
688 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
690 Update copyright years
692 2014-01-02 Tobias Burnus <burnus@net-b.de>
694 * gccgo.texi: Bump @copying's copyright year.
696 2013-12-16 Chris Manghane <cmang@google.com>
698 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
700 2013-12-11 Ian Lance Taylor <iant@google.com>
702 * go-lang.c (go_langhook_post_options): Disable sibling calls by
705 2013-12-10 Ian Lance Taylor <iant@google.com>
707 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
710 2013-12-05 Ian Lance Taylor <iant@google.com>
712 Revert this change; no longer required.
713 2013-11-06 Ian Lance Taylor <iant@google.com>
715 * go-lang.c (go_langhook_post_options): If
716 -fisolate-erroneous-paths was turned on by an optimization option,
719 2013-11-23 Ian Lance Taylor <iant@google.com>
721 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
724 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
726 * go-gcc.cc: Add required include files from gimple.h.
727 * go-lang.c: Likewise
729 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
731 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
732 tree_to_shwi throughout.
734 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
736 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
737 tree_fits_shwi_p throughout.
739 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
741 * go-lang.c: Include only gimplify.h and gimple.h as needed.
743 2013-11-14 Diego Novillo <dnovillo@google.com>
745 * go-backend.c: Include stor-layout.h.
746 * go-gcc.cc: Include stringpool.h.
747 Include stor-layout.h.
749 * go-lang.c: Include stor-layout.h.
751 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
753 * go-lang.c: Include gimplify.h.
755 2013-11-06 Ian Lance Taylor <iant@google.com>
757 * go-lang.c (go_langhook_post_options): If
758 -fisolate-erroneous-paths was turned on by an optimization option,
761 2013-10-14 Chris Manghane <cmang@google.com>
763 * go-gcc.cc (Gcc_backend::address_expression): New function.
765 2013-10-11 Chris Manghane <cmang@google.com>
767 * go-gcc.cc (Gcc_backend::function_code_expression): New
770 2013-10-10 Chris Manghane <cmang@google.com>
772 * go-gcc.cc (Gcc_backend::error_function): New function.
773 (Gcc_backend::function): New function.
774 (Gcc_backend::make_function): New function.
775 (function_to_tree): New function.
777 2013-10-04 Chris Manghane <cmang@google.com>
779 * go-gcc.cc (Gcc_backend::convert_expression): New function.
781 2013-10-02 Chris Manghane <cmang@google.com>
783 * go-gcc.cc: Include "real.h" and "realmpfr.h".
784 (Gcc_backend::integer_constant_expression): New function.
785 (Gcc_backend::float_constant_expression): New function.
786 (Gcc_backend::complex_constant_expression): New function.
788 2013-09-30 Chris Manghane <cmang@google.com>
790 * go-gcc.cc (Gcc_backend::error_expression): New function.
791 (Gcc_backend::var_expression): New function.
792 (Gcc_backend::indirect_expression): New function.
794 2013-09-25 Tom Tromey <tromey@redhat.com>
796 * Make-lang.in (gospec.o): Remove.
797 (CFLAGS-go/gospec.o): New variable.
798 (GCCGO_OBJS): Update to use go/gospec.o.
800 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
801 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
802 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
803 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
804 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
805 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
806 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
807 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
808 (go/unsafe.o): Remove.
809 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
810 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
812 2013-09-25 Tom Tromey <tromey@redhat.com>
814 * Make-lang.in (gospec.o): Don't use subshell.
816 2013-08-28 Ian Lance Taylor <iant@google.com>
818 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
819 the struct is not hidden.
820 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
822 2013-08-06 Ian Lance Taylor <iant@google.com>
824 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
825 compute_reloc_for_constant.
827 2013-08-02 Ian Lance Taylor <iant@google.com>
829 * go-gcc.cc (immutable_struct_set_init): Always call
830 resolve_unique_section.
832 2013-07-24 Ian Lance Taylor <iant@google.com>
834 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
835 fields, recreate those fields with the first one with a non-zero
838 2013-07-23 Ian Lance Taylor <iant@google.com>
840 * go-backend.c: Don't #include "rtl.h".
841 (go_imported_unsafe): Don't call init_varasm_once.
842 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
844 2013-07-23 Ian Lance Taylor <iant@google.com>
846 * go-lang.c: Don't #include "except.h".
847 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
849 2013-06-18 Ian Lance Taylor <iant@google.com>
851 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
853 (Gcc_backend::immutable_struct_set_init): Likewise.
855 2013-05-16 Jason Merrill <jason@redhat.com>
857 * Make-lang.in (go1$(exeext)): Use link mutex.
859 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
861 * gospec.c: pass -u pthread_create to linker when static linking.
863 2012-12-21 Ian Lance Taylor <iant@google.com>
866 * go-system.h: Don't include <cstdio>.
868 2012-12-18 Ian Lance Taylor <iant@google.com>
871 * gospec.c: Revert last patch.
873 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
876 * gospec.c (LIBATOMIC): Define.
877 (LIBATOMIC_PROFILE): Define.
878 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
880 2012-11-29 Ian Lance Taylor <iant@google.com>
882 * go-gcc.cc: Include "output.h".
883 (global_variable): Add is_unique_section parameter.
884 (global_variable_set_init): Adjust unique section if necessary.
885 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
887 2012-11-17 Diego Novillo <dnovillo@google.com>
889 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
891 * go-lang.c: Use new vec API in vec.h.
893 2012-11-16 Ian Lance Taylor <iant@google.com>
895 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
896 (go1$(exeext)): Likewise.
898 2012-10-30 Ian Lance Taylor <iant@google.com>
900 * lang.opt (-fgo-relative-import-path): New option.
901 * go-lang.c (go_relative_import_path): New static variable.
902 (go_langhook_init): Pass go_relative_import_path to
904 (go_langhook_handle_option): Handle -fgo-relative-import-path.
905 * go-c.h (go_create_gogo): Update declaration.
906 * gccgo.texi (Invoking gccgo): Document
907 -fgo-relative-import-path.
909 2012-09-17 Ian Lance Taylor <iant@google.com>
911 * config-lang.in (target_libs): Add target-libbacktrace.
913 2012-09-16 Ian Lance Taylor <iant@google.com>
915 * Make-lang.in (go/gogo.o): Depend on filenames.h.
917 2012-08-14 Diego Novillo <dnovillo@google.com>
919 Merge from cxx-conversion branch. Configury.
921 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
922 * go-gcc.cc: Likewise.
923 * go-system.h: Likewise.
925 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
927 * go-lang.c (lang_decl): Add variable_size GTY option.
929 2012-05-09 Ian Lance Taylor <iant@google.com>
931 * lang.opt: Add -fgo-pkgpath.
932 * go-lang.c (go_pkgpath): New static variable.
933 (go_prefix): New static variable.
934 (go_langhook_init): Pass go_pkgpath and go_prefix to
936 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
937 -fgo-prefix handling to just set go_prefix.
938 * go-c.h (go_set_prefix): Don't declare.
939 (go_create_gogo): Add pkgpath and prefix to declaration.
940 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
941 to pkgpath. Don't include the package name in the asm name.
942 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
943 docs for -fgo-prefix.
945 2012-04-23 Ian Lance Taylor <iant@google.com>
947 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
949 2012-04-20 Ian Lance Taylor <iant@google.com>
951 * lang.opt: Add -fgo-check-divide-zero and
952 -fgo-check-divide-overflow.
953 * gccgo.texi (Invoking gccgo): Document new options.
955 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
957 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
958 with NULL_TREE type instead of void_type_node.
960 2012-03-09 Ian Lance Taylor <iant@google.com>
962 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
963 to the lhs type if necessary.
965 2012-03-08 Ian Lance Taylor <iant@google.com>
967 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
969 (go_non_zero_struct): New global variable.
970 (Gcc_backend::non_zero_size_type): New function.
971 (Gcc_backend::global_variable): Don't build an assignment for a
973 * go-c.h (go_non_zero_struct): Declare.
974 * config-lang.in (gtfiles): Add go-c.h.
976 2012-02-29 Ian Lance Taylor <iant@google.com>
978 * go-gcc.cc (class Gcc_tree): Add set_tree method.
979 (set_placeholder_pointer_type): When setting to a pointer to
980 error, set to error_mark_node.
982 2012-02-23 Richard Guenther <rguenther@suse.de>
984 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
985 build_distinct_type_copy.
987 2012-02-17 Ian Lance Taylor <iant@google.com>
989 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
991 2012-02-17 Ian Lance Taylor <iant@google.com>
993 * gospec.c (lang_specific_driver): If linking, and no -o option
996 2012-02-14 Ian Lance Taylor <iant@google.com>
999 * Make-lang.in (gccgo-cross$(exeext)): New target.
1000 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1002 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1003 gccgo-cross$(exeext) does not exist.
1005 2012-02-07 Ian Lance Taylor <iant@google.com>
1007 * gccgo.texi (Function Names): Document //extern instead of
1010 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1013 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1014 return build_nonstandard_integer_type result if possible.
1016 2012-01-21 Ian Lance Taylor <iant@google.com>
1018 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1019 (Gcc_backend::type_alignment): Likewise.
1020 (Gcc_backend::type_field_alignment): Likewise.
1021 (Gcc_backend::type_field_offset): Likewise.
1023 2012-01-20 Ian Lance Taylor <iant@google.com>
1025 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1027 (Gcc_backend::set_placeholder_struct_type): Likewise.
1029 2012-01-17 Ian Lance Taylor <iant@google.com>
1031 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1032 BASE.s rather than -o BASE.o.
1034 2012-01-11 Ian Lance Taylor <iant@google.com>
1036 * go-lang.c (go_langhook_init): Initialize void_list_node before
1037 calling go_create_gogo.
1039 2012-01-10 Ian Lance Taylor <iant@google.com>
1041 * go-gcc.cc (Gcc_backend::type_size): New function.
1042 (Gcc_backend::type_alignment): New function.
1043 (Gcc_backend::type_field_alignment): New function.
1044 (Gcc_backend::type_field_offset): New function.
1045 * go-backend.c (go_type_alignment): Remove.
1046 * go-c.h (go_type_alignment): Don't declare.
1048 2011-12-27 Ian Lance Taylor <iant@google.com>
1050 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1051 build_distinct_type_copy rather than build_variant_type_copy.
1052 (Gcc_backend::set_placeholder_array_type): Likewise.
1053 (Gcc_backend::named_type): Add special handling for builtin
1056 2011-12-22 Ian Lance Taylor <iant@google.com>
1058 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1059 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1060 (Gcc_backend::set_placeholder_struct_type): Likewise.
1061 (Gcc_backend::set_placeholder_array_type): Likewise.
1062 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1064 2011-12-13 Ian Lance Taylor <iant@google.com>
1066 * go-backend.c: #include "simple-object.h" and "intl.h".
1067 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1068 (GO_EXPORT_SECTION_NAME): Likewise.
1069 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1070 (go_read_export_data): New function.
1071 * go-c.h (go_read_export_data): Declare.
1073 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1074 Ian Lance Taylor <iant@google.com>
1076 * go-location.h: New file.
1077 * go-linemap.cc: New file.
1078 * go-gcc.cc: Change all uses of source_location to Location.
1079 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1080 (GO_LINEMAP_H): New variable.
1081 (GO_LEX_H): Use $(GO_LINEMAP_H).
1082 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1083 (go/go-linemap.o): New target.
1085 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1087 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1089 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1091 * lang.opt: Add fgo-optimize-.
1092 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1093 * go-c.h (go_enable_optimize): Declare.
1094 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1095 (GO_EXPORT_H): Define.
1096 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1097 (GO_AST_DUMP_H): Define.
1098 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1099 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1100 (go/types.o): Likewise.
1101 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1102 (go/go-optimize.o): New target.
1104 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1106 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1107 (go/go-lang.o): Remove explicit compilation rule.
1109 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1111 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1113 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1115 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1116 (go/ast-dump.o): New target.
1117 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1118 (go/statements.o): Likewise.
1120 2011-07-06 Richard Guenther <rguenther@suse.de>
1122 * go-lang.c (go_langhook_init):
1123 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1125 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1127 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1129 * go-backend.c: Include common/common-target.h.
1130 (go_write_export_data): Use targetm_common.have_named_sections.
1131 * go-lang.c: Include common/common-target.h.
1132 (go_langhook_init_options_struct): Use
1133 targetm_common.supports_split_stack.
1135 2011-06-13 Ian Lance Taylor <iant@google.com>
1137 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1139 2011-06-10 Ian Lance Taylor <iant@google.com>
1141 * go-gcc.cc: Include "toplev.h".
1142 (Gcc_backend::immutable_struct): New function.
1143 (Gcc_backend::immutable_struct_set_init): New function.
1144 (Gcc_backend::immutable_struct_reference): New function.
1145 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1147 2011-06-09 Ian Lance Taylor <iant@google.com>
1149 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1151 2011-06-07 Richard Guenther <rguenther@suse.de>
1153 * go-lang.c (go_langhook_init): Do not set
1154 size_type_node or call set_sizetype.
1156 2011-05-27 Ian Lance Taylor <iant@google.com>
1158 * go-backend.c: Include "output.h".
1159 (go_write_export_data): New function.
1160 * go-c.h (go_write_export_data): Declare.
1161 * Make-lang.in (go/go-backend.o): Depend on output.h.
1162 (go/export.o): Depend on $(GO_C_H). Do not depend on
1163 $(MACHMODE_H), output.h, or $(TARGET_H).
1165 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1167 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1168 (gccgo$(exeext)): Use libcommon-target.a.
1170 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1172 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1174 2011-05-13 Ian Lance Taylor <iant@google.com>
1176 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1177 for multiple results, check that all fields types have a size.
1178 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1180 2011-05-12 Ian Lance Taylor <iant@google.com>
1182 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1184 (Gcc_backend::parameter_variable): Likewise.
1186 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1188 * go-lang.c (global_bindings_p): Return bool and simplify.
1190 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1192 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1194 2011-05-04 Ian Lance Taylor <iant@google.com>
1196 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1197 (Gcc_backend::fill_in_struct): New function.
1198 (Gcc_backend::array_type): Implement.
1199 (Gcc_backend::fill_in_array): New function.
1200 (Gcc_backend::placeholder_pointer_type): New function.
1201 (Gcc_backend::set_placeholder_pointer_type): New function.
1202 (Gcc_backend::set_placeholder_function_type): New function.
1203 (Gcc_backend::placeholder_struct_type): New function.
1204 (Gcc_backend::set_placeholder_struct_type): New function.
1205 (Gcc_backend::placeholder_array_type): New function.
1206 (Gcc_backend::set_placeholder_array_type): New function.
1207 (Gcc_backend::named_type): New function.
1208 (Gcc_backend::circular_pointer_type): New function.
1209 (Gcc_backend::is_circular_pointer_type): New function.
1211 2011-04-26 Ian Lance Taylor <iant@google.com>
1213 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1215 2011-04-25 Ian Lance Taylor <iant@google.com>
1217 * go-gcc.cc (Gcc_backend::error_type): Implement.
1218 (Gcc_backend::string_type): Remove.
1219 (Gcc_backend::function_type): Change signature and implement.
1220 (Gcc_backend::struct_type): Change signature.
1221 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1222 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1223 (Gcc_backend::pointer_type): Check for error.
1224 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1226 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1228 * go-gcc.c (class Gcc_tree): Make get_tree const.
1229 (Gcc_backend::void_type): Implement.
1230 (Gcc_backend::bool_type): Implement.
1231 (Gcc_backend::integer_type): Implement.
1232 (Gcc_backend::float_type): Implement.
1233 (Gcc_backend::complex_type): New function.
1234 (Gcc_backend::pointer_type): New function.
1235 (Gcc_backend::make_type): New function.
1236 (type_to_tree): New function.
1238 2011-04-21 Ian Lance Taylor <iant@google.com>
1240 * go-system.h (go_assert, go_unreachable): Define.
1242 2011-04-19 Ian Lance Taylor <iant@google.com>
1244 * go-system.h: Include "intl.h".
1245 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1246 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1247 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1249 2011-04-19 Ian Lance Taylor <iant@google.com>
1251 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1253 2011-04-19 Ian Lance Taylor <iant@google.com>
1255 * go-gcc.cc (class Bblock): Define.
1256 (Gcc_backend::if_statement): Change then_block and else_block to
1258 (Gcc_backend::block): New function.
1259 (Gcc_backend::block_add_statements): New function.
1260 (Gcc_backend::block_statement): New function.
1261 (tree_to_block, block_to_tree): New functions.
1263 2011-04-18 Ian Lance Taylor <iant@google.com>
1265 * go-gcc.cc: Include "go-c.h".
1266 (class Bvariable): Define.
1267 (Gcc_backend::init_statement): New function.
1268 (Gcc_backend::global_variable): New function.
1269 (Gcc_backend::global_variable_set_init): New function.
1270 (Gcc_backend::local_variable): New function.
1271 (Gcc_backend::parameter_variable): New function.
1272 (tree_to_type, var_to_tree): New functions.
1273 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1274 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1276 2011-04-15 Ian Lance Taylor <iant@google.com>
1278 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1279 (Gcc_backend::assignment_statement): Use error_statement.
1280 (Gcc_backend::return_statement): Likewise.
1281 (Gcc_backend::if_statement): Likewise.
1282 (Gcc_backend::switch_statement): Likewise.
1283 (Gcc_backend::statement_list): Likewise.
1285 2011-04-14 Ian Lance Taylor <iant@google.com>
1287 * go-gcc.cc (Gcc_backend::error_statement): New function.
1289 2011-04-13 Ian Lance Taylor <iant@google.com>
1291 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1293 2011-04-13 Ian Lance Taylor <iant@google.com>
1295 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1296 (GO_RUNTIME_H): New variable.
1297 (go/runtime.o): New target.
1298 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1299 (go/statements.o): Likewise.
1301 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1303 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1306 2011-04-06 Ian Lance Taylor <iant@google.com>
1308 * go-gcc.cc (if_statement): Use build3_loc.
1309 (Gcc_backend::switch_statement): New function.
1310 (Gcc_backend::statement_list): New function.
1312 2011-04-06 Ian Lance Taylor <iant@google.com>
1314 * go-gcc.cc (Gcc_backend::if_statement): New function.
1315 (tree_to_stat): New function.
1316 (expr_to_tree): Renamed from expression_to_tree.
1317 (stat_to_tree): Renamed from statement_to_tree.
1319 2011-04-06 Ian Lance Taylor <iant@google.com>
1321 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1323 2011-04-04 Ian Lance Taylor <iant@google.com>
1325 * go-gcc.c (class Blabel): Define.
1326 (Gcc_backend::make_expression): New function.
1327 (get_identifier_from_string): New function.
1328 (Gcc_backend::label): New function.
1329 (Gcc_backend::label_definition_statement): New function.
1330 (Gcc_backend::goto_statement): New function.
1331 (Gcc_backend::label_address): New function.
1332 (expression_to_tree): New function.
1333 * Make-lang.in (go/expressions.o): Depend on
1334 go/gofrontend/backend.h.
1335 (go/gogo.o): Likewise.
1337 2011-04-04 Ian Lance Taylor <iant@google.com>
1339 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1340 (class Bfunction): Define.
1341 (Gcc_backend::assignment_statement): Rename from assignment.
1343 (Gcc_backend::return_statement): New function.
1344 (tree_to_function): New function.
1345 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1346 $(GIMPLE_H), and $(GO_GOGO_H).
1348 2011-04-03 Ian Lance Taylor <iant@google.com>
1350 * go-gcc.cc: New file.
1351 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1352 (go/go-gcc.o): New target.
1353 (go/go.o): Depend on go/gofrontend/backend.h.
1354 (go/statements.o): Likewise.
1356 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1358 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1360 2011-02-08 Ian Lance Taylor <iant@google.com>
1362 * go-lang.c (go_langhook_init_options_struct): Set
1363 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1365 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1367 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1368 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1370 2011-01-21 Ian Lance Taylor <iant@google.com>
1372 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1374 * go-c.h: Update declaration of go_create_gogo.
1376 2011-01-13 Ian Lance Taylor <iant@google.com>
1378 * go-backend.c: Include "rtl.h" and "target.h".
1379 (go_imported_unsafe): New function.
1380 * go-c.h (go_imported_unsafe): Declare.
1381 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1382 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1383 (go/unsafe.o): Depend on $(GO_C_H).
1385 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1388 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1391 2010-12-21 Ian Lance Taylor <iant@google.com>
1393 * Make-lang.in (check-go): Remove.
1394 (lang_checks_parallelized): Add check-go.
1395 (check_go_parallelize): Set.
1397 2010-12-13 Ian Lance Taylor <iant@google.com>
1399 * gospec.c (lang_specific_driver): Add a -o option if not linking
1400 and there is no -o option already.
1402 2010-12-07 Ian Lance Taylor <iant@google.com>
1404 PR tree-optimization/46805
1405 PR tree-optimization/46833
1406 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1408 2010-12-06 Ian Lance Taylor <iant@google.com>
1412 * go-lang.c (go_char_p): Define type and vectors.
1413 (go_search_dirs): New static variable.
1414 (go_langhook_handle_option): Use version and version/machine
1416 (go_langhook_post_options): Add non-specific -L paths.
1417 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1418 DEFAULT_TARGET_MACHINE when compiling.
1419 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1420 (Import and Export): Don't mention -L for finding import files.
1422 2010-12-03 Ian Lance Taylor <iant@google.com>
1425 * go-backend.c: New file.
1426 * go-c.h (go_type_alignment): Declare.
1427 (go_field_alignment, go_trampoline_info): Declare.
1428 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1429 (go/go-backend.o): New target.
1430 (go/go-lang.o): Make dependencies match source file.
1431 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1432 (go/gogo-tree.o): Don't depend on $(TM_H).
1434 2010-12-03 Ian Lance Taylor <iant@google.com>
1436 * config-lang.in (build_by_default): Set to no.
1438 2010-12-02 Ian Lance Taylor <iant@google.com>
1440 Go frontend added to gcc repository.
1442 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1444 Copying and distribution of this file, with or without modification,
1445 are permitted in any medium without royalty provided the copyright
1446 notice and this notice are preserved.