1 2018-11-13 David Malcolm <dmalcolm@redhat.com>
3 * go-gcc-diagnostics.cc: Replace "source_location" with "location_t".
5 * go-linemap.cc: Likewise.
6 * go-location.h: Likewise.
7 * gofrontend/README: Likewise.
9 2018-10-31 Ian Lance Taylor <iant@golang.org>
11 * go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
12 gimplify_function_tree. Instead call allocate_struct_function if
15 2018-10-29 Ian Lance Taylor <iant@golang.org>
17 * go-gcc.cc (Gcc_backend::function): Change to use a single flags
20 2018-10-29 Ian Lance Taylor <iant@golang.org>
22 * go-linemap.cc (Gcc_linemap::location_file): New method.
24 2018-10-17 David Malcolm <dmalcolm@redhat.com>
26 * Make-lang.in (selftest-go): New.
28 2018-09-20 Allan Sandfeld Jensen <allan.jensen@qt.io>
30 * gospec.c (lang_specific_driver): Handle -r like -nostdlib.
32 2018-08-27 Martin Liska <mliska@suse.cz>
34 * go-gcc.cc (Gcc_backend::call_expression): Use new function
35 fndecl_built_in_p and remove check for FUNCTION_DECL if
38 2018-07-20 Martin Sebor <msebor@redhat.com>
41 * go-lang.c (go_langhook_handle_option): Change function argument
44 2018-06-28 Ian Lance Taylor <iant@golang.org>
47 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
48 build_variant_type_copy rather than build_distinct_type_copy.
50 2018-06-08 Cherry Zhang <cherryyz@google.com>
52 * go-gcc.cc (class Gcc_backend): Remove
53 stack_allocation_expression method.
55 2018-02-03 Ian Lance Taylor <iant@golang.org>
57 * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
58 using structural equality.
60 2018-02-02 Ian Lance Taylor <iant@golang.org>
62 * go-gcc.cc (Gcc_backend::type_size): Return 0 for
64 (Gcc_backend::convert_expression): Don't convert if the type of
65 expr_tree is void_type_node.
66 (Gcc_backend::array_index_expression): Don't index if the type of
67 the array expression is void_type_node.
68 (Gcc_backend::init_statement): Don't initialize if the type of the
69 initializer expression is void_type_node.
70 (Gcc_backend::assignment_statement): Don't assign if the type of
71 either the left or right hand side is void_type_node.
72 (Gcc_backend::temporary_variable): Don't initialize if the type of
73 the initializer expression is void_type_node.
75 2018-02-01 Cherry Zhang <cherryyz@google.com>
77 * lang.opt (fgo-optimize): Remove RejectNegative.
78 * go-c.h (go_enable_optimize): Update declaration to take value
80 * go-lang.c (go_langhook_handle_option): Pass value to
82 * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
84 2018-01-30 Ian Lance Taylor <iant@golang.org>
86 * go-gcc.cc (Gcc_backend::convert_tree): New private method.
87 (Gcc_backend::constructor_expression): Call it.
88 (Gcc_backend::assignment_statement): Likewise.
89 (Gcc_backend::temporary_variable): Likewise.
91 2018-01-09 Cherry Zhang <cherryyz@google.com>
93 * go-gcc.cc (local_variable): Add decl_var parameter.
95 2018-01-09 Cherry Zhang <cherryyz@google.com>
97 * lang.opt (fgo-debug-escape-hash): New option.
98 * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
100 * go-lang.c (go_langhook_init): Set debug_escape_hash field.
101 * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
103 2018-01-05 Ian Lance Taylor <iant@golang.org>
105 * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
106 math_function_type_long to take one argument.
108 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
109 Alan Hayward <alan.hayward@arm.com>
110 David Sherwood <david.sherwood@arm.com>
112 * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
114 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
115 Alan Hayward <alan.hayward@arm.com>
116 David Sherwood <david.sherwood@arm.com>
118 * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
120 2018-01-03 Jakub Jelinek <jakub@redhat.com>
122 Update copyright years.
124 * gccgo.texi: Bump @copyrights-go year.
126 2017-12-12 Tony Reix <tony.reix@atos.net>
127 Ian Lance Taylor <iant@golang.org>
129 * go-lang.c (TARGET_AIX): Define if not defined.
130 (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
132 2017-12-01 Ian Lance Taylor <iant@golang.org>
134 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
135 __builtin_unreachable.
136 (Gcc_backend::function): Add does_not_return parameter.
138 2017-12-01 Than McIntosh <thanm@google.com>
140 * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
142 * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
144 2017-11-28 Jakub Jelinek <jakub@redhat.com>
146 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
147 build2_loc instead of build3_loc.
149 2017-11-14 Than McIntosh <thanm@google.com>
151 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
153 2017-10-11 Tony Reix <tony.reix@atos.net>
155 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
156 system header files, as is done in ../system.h.
158 2017-10-05 Ian Lance Taylor <iant@golang.org>
160 * Make-lang.in (GO_OBJS): Add go/names.o.
162 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
163 Alan Hayward <alan.hayward@arm.com>
164 David Sherwood <david.sherwood@arm.com>
166 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
168 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
169 Alan Hayward <alan.hayward@arm.com>
170 David Sherwood <david.sherwood@arm.com>
172 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
174 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
175 Alan Hayward <alan.hayward@arm.com>
176 David Sherwood <david.sherwood@arm.com>
178 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
180 2017-08-07 Martin Liska <mliska@suse.cz>
182 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
183 and not __no_split_stack__.
185 2017-07-27 Tony Reix <tony.reix@atos.net>
187 * go-backend.c (go_write_export_data): Use EXCLUDE section for
190 2017-06-09 Ian Lance Taylor <iant@golang.org>
192 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
193 on, disable implicit -forder-blocks-and-partition.
195 2017-05-12 Than McIntosh <thanm@google.com>
197 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
199 2017-05-11 Ian Lance Taylor <iant@google.com>
202 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
203 DECL_EXTERNAL, clear TREE_STATIC.
205 2017-05-10 Than McIntosh <thanm@google.com>
207 * go-backend.c: Include "go-c.h".
208 * go-gcc.cc (Gcc_backend::write_export_data): New method.
210 2017-05-10 Ian Lance Taylor <iant@google.com>
212 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
214 * Make-lang.in (GO_OBJS): Add go/wb.o.
216 2017-03-28 Than McIntosh <thanm@google.com>
219 * go-gcc.cc (Gcc_backend::return_statement): Check for
220 void_type_node when checking result size.
222 2017-02-20 Ian Lance Taylor <iant@golang.org>
225 * lang.opt (-fgo-relative-import-path): Change space to tab.
227 2017-02-07 Richard Biener <rguenther@suse.de>
229 PR tree-optimization/79256
231 * go-backend.c (go_field_alignment): Adjust.
233 2017-01-11 Than McIntosh <thanm@google.com>
235 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
237 2017-01-01 Jakub Jelinek <jakub@redhat.com>
239 Update copyright years.
241 * gccgo.texi: Bump @copyrights-go year.
243 2016-12-16 Than McIntosh <thanm@google.com>
245 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
247 (Gcc_backend::init_statement): Likewise.
248 (Gcc_backend::assignment_statement): Likewise.
249 (Gcc_backend::if_statement): Likewise.
251 2016-12-06 Than McIntosh <thanm@google.com>
253 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
256 2016-11-22 Than McIntosh <thanm@google.com>
258 * go-gcc.cc (char_needs_encoding): Remove.
259 (needs_encoding, fetch_utf8_char, encode_id): Remove.
260 (Gcc_backend::global_variable): Add asm_name parameter. Don't
261 compute asm_name here.
262 (Gcc_backend::implicit_variable): Likewise.
263 (Gcc_backend::implicit_variable_reference): Likewise.
264 (Gcc_backend::immutable_struct): Likewise.
265 (Gcc_backend::immutable_struct_reference): Likewise.
266 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
268 2016-11-22 Ian Lance Taylor <iant@google.com>
270 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
271 __builtin_frame_address.
273 2016-10-25 David Malcolm <dmalcolm@redhat.com>
275 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
276 from result of GET_MODE_CLASS. Minor formatting fixes.
278 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
280 * go-backend.c: Include memmodel.h.
282 2016-10-10 Than McIntosh <thanm@google.com>
284 * go-gcc.h: New file.
285 * go-c.h (struct go_create_gogo_args): Add backend and linemap
287 * go-lang.c: Include "go-gcc.h".
288 (go_langhook_init): Set linemap and backend fields of args.
289 * go-gcc.cc: Include "go-gcc.h".
290 * go-linemap.cc: Include "go-gcc.h".
292 2016-10-10 Than McIntosh <thanm@google.com>
294 * go-linemap.cc (Gcc_linemap::location_line): New method.
296 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
298 * config-lang.in (lang_requires_boot_languages): Delete.
300 2016-10-06 Chris Manghane <cmang@google.com>
302 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
305 2016-09-27 Than McIntosh <thanm@google.com>
307 * go-linemap.cc (Gcc_linemap::to_string): New method.
309 2016-09-23 Than McIntosh <thanm@google.com>
311 * go-gcc-diagnostics.cc: New file.
312 * go-location.h (Location): Remove operator source_location. Add
314 * go-system.h: #include <sstream>.
315 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
316 go/go-gcc-diagnostics.o.
317 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
319 2016-09-23 Chris Manghane <cmang@google.com>
322 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
323 to pass arguments in the correct order.
325 2016-09-22 Ian Lance Taylor <iant@golang.org>
327 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
328 __builtin_frame_address.
330 2016-09-11 Ian Lance Taylor <iant@golang.org>
332 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
333 ctz, ctzll, bswap32, bswap64.
335 2016-09-10 Ian Lance Taylor <iant@golang.org>
337 * go-backend.c (go_trampoline_info): Remove.
338 * go-c.h (go_trampoline_info): Don't declare.
340 2016-09-09 Than McIntosh <thanm@google.com>
342 * go-sha1.cc: New file.
343 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
344 (CFLAGS-go/go-sha1.o): New variable.
346 2016-08-29 Ian Lance Taylor <iant@google.com>
348 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
349 * go-c.h (struct go_create_gogo_args): Define.
350 (go_create_gogo): Change declaration to take struct pointer.
351 * go-lang.c (go_c_header): New static variable.
352 (go_langhook_init): Update call to go_create_gogo.
353 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
354 -fgo-compiling-runtime.
356 2016-08-09 Ian Lance Taylor <iant@google.com>
358 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
360 (Compiler Directives): New chapter.
361 (Function Names): Describe using //go:linkname. Suggest using
362 -fgo-pkgpath rather than -fgo-prefix.
364 2016-08-08 Ian Lance Taylor <iant@google.com>
367 * go-gcc.cc (Gcc_backend::function_type): If the return type is
368 zero bytes, treat the function as returning void.
369 (return_statement): If the return type is zero bytes, don't
370 actually return any values.
372 2016-08-05 Ian Lance Taylor <iant@google.com>
375 * go-gcc.cc (char_needs_encoding): New static function.
376 (needs_encoding, fetch_utf8_char): New static functions.
377 (encode_id): New static function.
378 (Gcc_backend::global_variable): Set asm name if the name is not
380 (Gcc_backend::implicit_variable): Likewise.
381 (Gcc_backend::implicit_variable_reference): Likewise.
382 (Gcc_backend::immutable_struct): Likewise.
383 (Gcc_backend::immutable_struct_reference): Likewise.
384 (Gcc_backend::function): Likewise.
386 2016-08-02 Chris Manghane <cmang@google.com>
388 * lang.opt: Add -fgo-debug-escape option.
389 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
390 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
393 2016-05-06 Chris Manghane <cmang@google.com>
395 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
398 2016-04-29 Chris Manghane <cmang@google.com>
400 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
402 2016-04-18 Michael Matz <matz@suse.de>
404 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
406 2016-02-12 Jakub Jelinek <jakub@redhat.com>
408 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
409 neighbour -> neighbor.
410 * gccgo.texi: Likewise.
412 2016-01-27 Ian Lance Taylor <iant@google.com>
414 * go-lang.c (go_langhook_init_options_struct): Default to
415 -fkeep-gc-roots-live.
417 2016-01-04 Jakub Jelinek <jakub@redhat.com>
419 Update copyright years.
421 * gccgo.texi: Bump @copyrights-go year.
423 2015-12-21 Ian Lance Taylor <iant@google.com>
425 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
426 t_ and orig_type_ fields. Add new two parameter constructor. Add
427 get_tree and get_decl methods.
428 (Gcc_backend::var_expression): Pass location to var get_tree.
429 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
430 two parameter constructor for Bvariable.
431 (Gcc_backend::global_variable_set_init): Don't remove
432 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
433 (Gcc_backend::write_global_definitions): Likewise.
434 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
435 (Gcc_backend::block): Likewise.
436 (Gcc_backend::implicit_variable_set_init): Likewise.
437 (Gcc_backend::immutable_struct_set_init): Likewise.
438 (Gcc_backend::function_set_parameters): Likewise.
440 2015-12-21 Ian Lance Taylor <iant@google.com>
442 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
443 add a VIEW_CONVERT_EXPR to the tree.
444 (Gcc_backend::global_variable_set_init): Remove any
446 (Gcc_backend::write_global_definitions): Likewise.
448 2015-11-30 Ian Lance Taylor <iant@google.com>
451 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
452 TYPE_STRING_FLAG on a variant type.
454 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
456 * go-backend.c: Remove unused header files.
457 * go-gcc.cc: Likewise.
458 * go-lang.c: Likewise.
459 * gospec.c: Likewise.
461 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
463 * go-backend.c: Reorder #include's and remove duplicates.
464 * go-lang.c: Likewise.
466 2015-10-20 Alan Modra <amodra@gmail.com>
469 * gospec.c (saw_opt_m32): Rename to..
470 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
472 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
474 2015-10-01 Ian Lance Taylor <iant@google.com>
477 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
478 TARGET_CAN_SPLIT_STACK_64BIT is defined.
480 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
483 * gospec.c (lang_specific_driver): Set appropriate split stack
484 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
486 2015-09-10 Chris Manghane <cmang@google.com>
488 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
489 unrepresentable size.
491 2015-08-24 Marek Polacek <polacek@redhat.com>
493 PR tree-optimization/67284
494 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
495 Set TREE_THIS_VOLATILE.
496 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
497 Pass false to the rest of define_builtin calls.
499 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
501 * go-lang.c (go_langhook_init_options_struct): Don't set
503 (go_langhook_post_options): Set it here instead.
505 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
507 * gofrontend/backend.h: Fix double word typos.
508 * gofrontend/expressions.cc: Same.
511 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
513 * go-backend.c: Adjust includes.
514 * go-gcc.cc: Likewise.
515 * go-lang.c: Likewise.
517 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
519 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
521 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
523 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
524 * go-gcc.cc: Likewise.
525 * go-lang.c: Likewise.
526 * go-system.h: Likewise.
528 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
530 * go-backend.c : Adjust include files.
531 * go-gcc.cc : Likewise.
532 * go-lang.c : Likewise.
534 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
536 * go-gcc.cc (write_global_definitions): Remove call to
537 finalize_compilation_unit.
538 Remove Go specific debug generation.
539 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
540 (go_langhook_write_globals): Remove.
541 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
543 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
545 * go-backend.c: Adjust includes for restructured coretypes.h.
547 * go-gcc.cc: Likewise.
548 * go-lang.c: Likewise.
550 2015-04-30 Chris Manghane <cmang@google.com>
552 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
555 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
557 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
559 2015-04-17 Chris Manghane <cmang@google.com>
561 * Make-lang.in (GO_OBJS): Add go/escape.o.
563 2015-02-02 Ian Lance Taylor <iant@google.com>
567 * go-gcc.cc (Gcc_backend::type_size): Change return type to
569 (Gcc_backend::type_alignment): Likewise.
570 (Gcc_backend::type_field_alignment): Likewise.
571 (Gcc_backend::type_field_offset): Likewise.
572 (Gcc_backend::implicit_variable): Change alignment parameter type
575 2015-01-23 Ian Lance Taylor <iant@google.com>
578 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
581 * gccgo.texi (C Interoperability): Mention that people should use
584 2015-01-23 Ian Lance Taylor <iant@google.com>
587 * go-lang.c (go_langhook_init_options_struct): Set default
589 (go_langhook_post_options): If debug_info_level is still the
590 default, make sure write_symbols is set.
591 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
593 2015-01-16 Richard Henderson <rth@redhat.com>
595 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
596 (Gcc_backend::static_chain_variable): New method.
598 2015-01-09 Ian Lance Taylor <iant@google.com>
600 * config-lang.in (lang_dirs): Define.
602 2015-01-09 Michael Collison <michael.collison@linaro.org>
604 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
605 input.h, alias.h, symtab.h, options.h, fold-const.h,
606 wide-int.h, and inchash.h due to flattening of tree.h.
608 * go-backend.c: Ditto.
610 2015-01-07 Chris Manghane <cmang@google.com>
613 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
616 2015-01-06 Chris Manghane <cmang@google.com>
618 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
619 initialize zero-sized fields, just evaluate the values for side
622 2015-01-05 Jakub Jelinek <jakub@redhat.com>
624 Update copyright years.
626 * gccgo.texi: Bump @copyrights-go year.
628 2014-12-19 Chris Manghane <cmang@google.com>
630 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
631 construct arrays of zero-sized values.
633 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
635 * go-lang.c: Remove redundant enum from machine_mode.
637 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
639 * go-gcc.cc: Adjust include files.
641 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
643 * go-gcc.cc: Adjust include files.
646 2014-10-23 Ian Lance Taylor <iant@google.com>
648 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
649 mpc_t parameter instead of two mpfr_t parameters.
651 2014-09-15 Jakub Jelinek <jakub@redhat.com>
653 * Make-lang.in (check_go_parallelize): Change to just an upper bound
656 2014-09-03 Chris Manghane <cmang@google.com>
658 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
659 parameter. Add is_hidden parameter.
660 (Gcc_backend::implicit_variable_set_init): New method.
661 (Gcc_backend::implicit_variable_reference): New method.
663 2014-08-08 Ian Lance Taylor <iant@google.com>
665 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
668 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
670 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
671 symtab_get_node to symtab_node::get.
673 2014-06-13 Ian Lance Taylor <iant@google.com>
676 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
677 ld, add -t option to avoid warning about common symbol changing
680 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
682 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
683 symtab_get_node(var_decl)->implicit_section.
685 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
687 * go-gcc.cc (global_variable_set_init): Use
688 set_decl_section_name.
690 2014-06-04 Ian Lance Taylor <iant@google.com>
692 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
693 alignment parameters. Permit init parameter to be NULL.
695 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
697 * go-gcc.cc: Include builtins.h.
699 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
701 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
703 2014-05-06 Chris Manghane <cmang@google.com>
705 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
706 (Gcc_backend::boolean_constant_expression): New method.
707 (Gcc_backend::zero_expression): Use this->make_expression rather
709 (Gcc_backend::var_expression): Likewise.
710 (Gcc_backend::integer_constant_expression): Likewise.
711 (Gcc_backend::float_constant_expression): Likewise.
712 (Gcc_backend::complex_constant_expression): Likewise.
713 (Gcc_backend::struct_field_expression): Likewise.
714 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
715 (tree_to_function, tree_to_block): Remove functions.
716 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
717 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
719 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
720 Mike Stump <mikestump@comcast.net>
721 Richard Sandiford <rdsandiford@googlemail.com>
723 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
725 2014-05-06 Chris Manghane <cmang@google.com>
727 * go-c.h (go_create_gogo): Update declaration to add
728 check_divide_zero and check_divide_overflow parameters.
729 * go-lang.c (go_langhook_init): Pass new arguments to
732 2014-05-05 Chris Manghane <cmang@google.com>
734 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
735 gc_root_variable. Add name and is_constant parameters.
737 2014-05-05 Chris Manghane <cmang@google.com>
739 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
741 (Gcc_backend::temporary_variable): Check for erroneous function.
743 2014-04-30 Chris Manghane <cmang@google.com>
745 * go-backend.c: #include "diagnostics.h".
746 (saw_errors): New function.
747 * go-c.h (saw_errors): Declare.
748 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
750 2014-04-30 Chris Manghane <cmang@google.com>
752 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
753 calling into Go frontend.
754 (go_langhook_type_for_mode): Likewise.
755 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
757 2014-04-30 Chris Manghane <cmang@google.com>
759 * go-gcc.cc: #include "langhooks.h".
760 (Gcc_backend::Gcc_backend): Add constructor.
761 (Gcc_backend::lookup_function): New function.
762 (Gcc_backend::define_builtin): New private function.
763 (Gcc_backend::gcc_backend): Remove.
764 (go_get_backend): Use new to create new Gcc_backend.
766 2014-04-25 Chris Manghane <cmang@google.com>
768 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
769 (Gcc_backend::return_statement): Push and pop function.
770 (Gcc_backend::label): Likewise.
771 (Gcc_backend::function_defer_statement): Likewise.
772 (Gcc_backend::switch_statement): Add function parameter.
773 (Gcc_backend::block): Don't permit function to be NULL.
774 (Gcc_backend::temporary_variable): Change go_assert to
776 (Gcc_backend::gc_root_variable): New function.
777 (Gcc_backend::write_global_definitions): New function.
779 2014-04-22 Chris Manghane <cmang@google.com>
781 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
782 call to create_tmp_var. Require that function be non-NULL.
784 2014-04-17 Chris Manghane <cmang@google.com>
786 * go-gcc.cc (Gcc_backend::named_constant_expression): New
789 2014-04-14 Chris Manghane <cmang@google.com>
791 * go-gcc.cc: Include "convert.h".
792 (Gcc_backend::string_constant_expression): New function.
793 (Gcc_backend::real_part_expression): Likewise.
794 (Gcc_backend::imag_part_expression): Likewise.
795 (Gcc_backend::complex_expression): Likewise.
796 (Gcc_backend::constructor_expression): Likewise.
797 (Gcc_backend::array_constructor_expression): Likewise.
798 (Gcc_backend::pointer_offset_expression): Likewise.
799 (Gcc_backend::array_index_expression): Likewise.
800 (Gcc_backend::call_expression): Likewise.
801 (Gcc_backend::exception_handler_statement): Likewise.
802 (Gcc_backend::function_defer_statement): Likewise.
803 (Gcc_backend::function_set_parameters): Likewise.
804 (Gcc_backend::function_set_body): Likewise.
805 (Gcc_backend::convert_expression): Handle various type
808 2014-03-03 Ian Lance Taylor <iant@google.com>
810 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
812 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
815 2014-01-24 Chris Manghane <cmang@google.com>
817 * go-gcc.cc (Gcc_backend::unary_expression): New function.
819 2014-01-16 Chris Manghane <cmang@google.com>
821 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
823 (operator_to_tree_code): New static function.
824 (Gcc_backend::binary_expression): New function.
826 2014-01-14 Chris Manghane <cmang@google.com>
828 * go-gcc.cc (Gcc_backend::compound_expression): New function.
829 (Gcc_backend::conditional_expression): New function.
831 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
833 Update copyright years
835 2014-01-02 Tobias Burnus <burnus@net-b.de>
837 * gccgo.texi: Bump @copying's copyright year.
839 2013-12-16 Chris Manghane <cmang@google.com>
841 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
843 2013-12-11 Ian Lance Taylor <iant@google.com>
845 * go-lang.c (go_langhook_post_options): Disable sibling calls by
848 2013-12-10 Ian Lance Taylor <iant@google.com>
850 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
853 2013-12-05 Ian Lance Taylor <iant@google.com>
855 Revert this change; no longer required.
856 2013-11-06 Ian Lance Taylor <iant@google.com>
858 * go-lang.c (go_langhook_post_options): If
859 -fisolate-erroneous-paths was turned on by an optimization option,
862 2013-11-23 Ian Lance Taylor <iant@google.com>
864 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
867 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
869 * go-gcc.cc: Add required include files from gimple.h.
870 * go-lang.c: Likewise
872 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
874 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
875 tree_to_shwi throughout.
877 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
879 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
880 tree_fits_shwi_p throughout.
882 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
884 * go-lang.c: Include only gimplify.h and gimple.h as needed.
886 2013-11-14 Diego Novillo <dnovillo@google.com>
888 * go-backend.c: Include stor-layout.h.
889 * go-gcc.cc: Include stringpool.h.
890 Include stor-layout.h.
892 * go-lang.c: Include stor-layout.h.
894 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
896 * go-lang.c: Include gimplify.h.
898 2013-11-06 Ian Lance Taylor <iant@google.com>
900 * go-lang.c (go_langhook_post_options): If
901 -fisolate-erroneous-paths was turned on by an optimization option,
904 2013-10-14 Chris Manghane <cmang@google.com>
906 * go-gcc.cc (Gcc_backend::address_expression): New function.
908 2013-10-11 Chris Manghane <cmang@google.com>
910 * go-gcc.cc (Gcc_backend::function_code_expression): New
913 2013-10-10 Chris Manghane <cmang@google.com>
915 * go-gcc.cc (Gcc_backend::error_function): New function.
916 (Gcc_backend::function): New function.
917 (Gcc_backend::make_function): New function.
918 (function_to_tree): New function.
920 2013-10-04 Chris Manghane <cmang@google.com>
922 * go-gcc.cc (Gcc_backend::convert_expression): New function.
924 2013-10-02 Chris Manghane <cmang@google.com>
926 * go-gcc.cc: Include "real.h" and "realmpfr.h".
927 (Gcc_backend::integer_constant_expression): New function.
928 (Gcc_backend::float_constant_expression): New function.
929 (Gcc_backend::complex_constant_expression): New function.
931 2013-09-30 Chris Manghane <cmang@google.com>
933 * go-gcc.cc (Gcc_backend::error_expression): New function.
934 (Gcc_backend::var_expression): New function.
935 (Gcc_backend::indirect_expression): New function.
937 2013-09-25 Tom Tromey <tromey@redhat.com>
939 * Make-lang.in (gospec.o): Remove.
940 (CFLAGS-go/gospec.o): New variable.
941 (GCCGO_OBJS): Update to use go/gospec.o.
943 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
944 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
945 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
946 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
947 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
948 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
949 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
950 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
951 (go/unsafe.o): Remove.
952 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
953 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
955 2013-09-25 Tom Tromey <tromey@redhat.com>
957 * Make-lang.in (gospec.o): Don't use subshell.
959 2013-08-28 Ian Lance Taylor <iant@google.com>
961 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
962 the struct is not hidden.
963 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
965 2013-08-06 Ian Lance Taylor <iant@google.com>
967 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
968 compute_reloc_for_constant.
970 2013-08-02 Ian Lance Taylor <iant@google.com>
972 * go-gcc.cc (immutable_struct_set_init): Always call
973 resolve_unique_section.
975 2013-07-24 Ian Lance Taylor <iant@google.com>
977 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
978 fields, recreate those fields with the first one with a non-zero
981 2013-07-23 Ian Lance Taylor <iant@google.com>
983 * go-backend.c: Don't #include "rtl.h".
984 (go_imported_unsafe): Don't call init_varasm_once.
985 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
987 2013-07-23 Ian Lance Taylor <iant@google.com>
989 * go-lang.c: Don't #include "except.h".
990 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
992 2013-06-18 Ian Lance Taylor <iant@google.com>
994 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
996 (Gcc_backend::immutable_struct_set_init): Likewise.
998 2013-05-16 Jason Merrill <jason@redhat.com>
1000 * Make-lang.in (go1$(exeext)): Use link mutex.
1002 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
1004 * gospec.c: pass -u pthread_create to linker when static linking.
1006 2012-12-21 Ian Lance Taylor <iant@google.com>
1009 * go-system.h: Don't include <cstdio>.
1011 2012-12-18 Ian Lance Taylor <iant@google.com>
1014 * gospec.c: Revert last patch.
1016 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
1019 * gospec.c (LIBATOMIC): Define.
1020 (LIBATOMIC_PROFILE): Define.
1021 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
1023 2012-11-29 Ian Lance Taylor <iant@google.com>
1025 * go-gcc.cc: Include "output.h".
1026 (global_variable): Add is_unique_section parameter.
1027 (global_variable_set_init): Adjust unique section if necessary.
1028 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
1030 2012-11-17 Diego Novillo <dnovillo@google.com>
1032 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1034 * go-lang.c: Use new vec API in vec.h.
1036 2012-11-16 Ian Lance Taylor <iant@google.com>
1038 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
1039 (go1$(exeext)): Likewise.
1041 2012-10-30 Ian Lance Taylor <iant@google.com>
1043 * lang.opt (-fgo-relative-import-path): New option.
1044 * go-lang.c (go_relative_import_path): New static variable.
1045 (go_langhook_init): Pass go_relative_import_path to
1047 (go_langhook_handle_option): Handle -fgo-relative-import-path.
1048 * go-c.h (go_create_gogo): Update declaration.
1049 * gccgo.texi (Invoking gccgo): Document
1050 -fgo-relative-import-path.
1052 2012-09-17 Ian Lance Taylor <iant@google.com>
1054 * config-lang.in (target_libs): Add target-libbacktrace.
1056 2012-09-16 Ian Lance Taylor <iant@google.com>
1058 * Make-lang.in (go/gogo.o): Depend on filenames.h.
1060 2012-08-14 Diego Novillo <dnovillo@google.com>
1062 Merge from cxx-conversion branch. Configury.
1064 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1065 * go-gcc.cc: Likewise.
1066 * go-system.h: Likewise.
1068 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
1070 * go-lang.c (lang_decl): Add variable_size GTY option.
1072 2012-05-09 Ian Lance Taylor <iant@google.com>
1074 * lang.opt: Add -fgo-pkgpath.
1075 * go-lang.c (go_pkgpath): New static variable.
1076 (go_prefix): New static variable.
1077 (go_langhook_init): Pass go_pkgpath and go_prefix to
1079 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
1080 -fgo-prefix handling to just set go_prefix.
1081 * go-c.h (go_set_prefix): Don't declare.
1082 (go_create_gogo): Add pkgpath and prefix to declaration.
1083 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1084 to pkgpath. Don't include the package name in the asm name.
1085 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
1086 docs for -fgo-prefix.
1088 2012-04-23 Ian Lance Taylor <iant@google.com>
1090 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1092 2012-04-20 Ian Lance Taylor <iant@google.com>
1094 * lang.opt: Add -fgo-check-divide-zero and
1095 -fgo-check-divide-overflow.
1096 * gccgo.texi (Invoking gccgo): Document new options.
1098 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1100 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1101 with NULL_TREE type instead of void_type_node.
1103 2012-03-09 Ian Lance Taylor <iant@google.com>
1105 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1106 to the lhs type if necessary.
1108 2012-03-08 Ian Lance Taylor <iant@google.com>
1110 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1111 zero-sized variable.
1112 (go_non_zero_struct): New global variable.
1113 (Gcc_backend::non_zero_size_type): New function.
1114 (Gcc_backend::global_variable): Don't build an assignment for a
1116 * go-c.h (go_non_zero_struct): Declare.
1117 * config-lang.in (gtfiles): Add go-c.h.
1119 2012-02-29 Ian Lance Taylor <iant@google.com>
1121 * go-gcc.cc (class Gcc_tree): Add set_tree method.
1122 (set_placeholder_pointer_type): When setting to a pointer to
1123 error, set to error_mark_node.
1125 2012-02-23 Richard Guenther <rguenther@suse.de>
1127 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1128 build_distinct_type_copy.
1130 2012-02-17 Ian Lance Taylor <iant@google.com>
1132 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1134 2012-02-17 Ian Lance Taylor <iant@google.com>
1136 * gospec.c (lang_specific_driver): If linking, and no -o option
1139 2012-02-14 Ian Lance Taylor <iant@google.com>
1142 * Make-lang.in (gccgo-cross$(exeext)): New target.
1143 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1145 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1146 gccgo-cross$(exeext) does not exist.
1148 2012-02-07 Ian Lance Taylor <iant@google.com>
1150 * gccgo.texi (Function Names): Document //extern instead of
1153 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1156 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1157 return build_nonstandard_integer_type result if possible.
1159 2012-01-21 Ian Lance Taylor <iant@google.com>
1161 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1162 (Gcc_backend::type_alignment): Likewise.
1163 (Gcc_backend::type_field_alignment): Likewise.
1164 (Gcc_backend::type_field_offset): Likewise.
1166 2012-01-20 Ian Lance Taylor <iant@google.com>
1168 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1170 (Gcc_backend::set_placeholder_struct_type): Likewise.
1172 2012-01-17 Ian Lance Taylor <iant@google.com>
1174 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1175 BASE.s rather than -o BASE.o.
1177 2012-01-11 Ian Lance Taylor <iant@google.com>
1179 * go-lang.c (go_langhook_init): Initialize void_list_node before
1180 calling go_create_gogo.
1182 2012-01-10 Ian Lance Taylor <iant@google.com>
1184 * go-gcc.cc (Gcc_backend::type_size): New function.
1185 (Gcc_backend::type_alignment): New function.
1186 (Gcc_backend::type_field_alignment): New function.
1187 (Gcc_backend::type_field_offset): New function.
1188 * go-backend.c (go_type_alignment): Remove.
1189 * go-c.h (go_type_alignment): Don't declare.
1191 2011-12-27 Ian Lance Taylor <iant@google.com>
1193 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1194 build_distinct_type_copy rather than build_variant_type_copy.
1195 (Gcc_backend::set_placeholder_array_type): Likewise.
1196 (Gcc_backend::named_type): Add special handling for builtin
1199 2011-12-22 Ian Lance Taylor <iant@google.com>
1201 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1202 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1203 (Gcc_backend::set_placeholder_struct_type): Likewise.
1204 (Gcc_backend::set_placeholder_array_type): Likewise.
1205 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1207 2011-12-13 Ian Lance Taylor <iant@google.com>
1209 * go-backend.c: #include "simple-object.h" and "intl.h".
1210 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1211 (GO_EXPORT_SECTION_NAME): Likewise.
1212 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1213 (go_read_export_data): New function.
1214 * go-c.h (go_read_export_data): Declare.
1216 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1217 Ian Lance Taylor <iant@google.com>
1219 * go-location.h: New file.
1220 * go-linemap.cc: New file.
1221 * go-gcc.cc: Change all uses of source_location to Location.
1222 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1223 (GO_LINEMAP_H): New variable.
1224 (GO_LEX_H): Use $(GO_LINEMAP_H).
1225 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1226 (go/go-linemap.o): New target.
1228 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1230 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1232 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1234 * lang.opt: Add fgo-optimize-.
1235 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1236 * go-c.h (go_enable_optimize): Declare.
1237 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1238 (GO_EXPORT_H): Define.
1239 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1240 (GO_AST_DUMP_H): Define.
1241 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1242 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1243 (go/types.o): Likewise.
1244 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1245 (go/go-optimize.o): New target.
1247 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1249 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1250 (go/go-lang.o): Remove explicit compilation rule.
1252 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1254 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1256 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1258 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1259 (go/ast-dump.o): New target.
1260 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1261 (go/statements.o): Likewise.
1263 2011-07-06 Richard Guenther <rguenther@suse.de>
1265 * go-lang.c (go_langhook_init):
1266 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1268 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1270 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1272 * go-backend.c: Include common/common-target.h.
1273 (go_write_export_data): Use targetm_common.have_named_sections.
1274 * go-lang.c: Include common/common-target.h.
1275 (go_langhook_init_options_struct): Use
1276 targetm_common.supports_split_stack.
1278 2011-06-13 Ian Lance Taylor <iant@google.com>
1280 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1282 2011-06-10 Ian Lance Taylor <iant@google.com>
1284 * go-gcc.cc: Include "toplev.h".
1285 (Gcc_backend::immutable_struct): New function.
1286 (Gcc_backend::immutable_struct_set_init): New function.
1287 (Gcc_backend::immutable_struct_reference): New function.
1288 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1290 2011-06-09 Ian Lance Taylor <iant@google.com>
1292 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1294 2011-06-07 Richard Guenther <rguenther@suse.de>
1296 * go-lang.c (go_langhook_init): Do not set
1297 size_type_node or call set_sizetype.
1299 2011-05-27 Ian Lance Taylor <iant@google.com>
1301 * go-backend.c: Include "output.h".
1302 (go_write_export_data): New function.
1303 * go-c.h (go_write_export_data): Declare.
1304 * Make-lang.in (go/go-backend.o): Depend on output.h.
1305 (go/export.o): Depend on $(GO_C_H). Do not depend on
1306 $(MACHMODE_H), output.h, or $(TARGET_H).
1308 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1310 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1311 (gccgo$(exeext)): Use libcommon-target.a.
1313 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1315 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1317 2011-05-13 Ian Lance Taylor <iant@google.com>
1319 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1320 for multiple results, check that all fields types have a size.
1321 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1323 2011-05-12 Ian Lance Taylor <iant@google.com>
1325 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1327 (Gcc_backend::parameter_variable): Likewise.
1329 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1331 * go-lang.c (global_bindings_p): Return bool and simplify.
1333 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1335 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1337 2011-05-04 Ian Lance Taylor <iant@google.com>
1339 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1340 (Gcc_backend::fill_in_struct): New function.
1341 (Gcc_backend::array_type): Implement.
1342 (Gcc_backend::fill_in_array): New function.
1343 (Gcc_backend::placeholder_pointer_type): New function.
1344 (Gcc_backend::set_placeholder_pointer_type): New function.
1345 (Gcc_backend::set_placeholder_function_type): New function.
1346 (Gcc_backend::placeholder_struct_type): New function.
1347 (Gcc_backend::set_placeholder_struct_type): New function.
1348 (Gcc_backend::placeholder_array_type): New function.
1349 (Gcc_backend::set_placeholder_array_type): New function.
1350 (Gcc_backend::named_type): New function.
1351 (Gcc_backend::circular_pointer_type): New function.
1352 (Gcc_backend::is_circular_pointer_type): New function.
1354 2011-04-26 Ian Lance Taylor <iant@google.com>
1356 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1358 2011-04-25 Ian Lance Taylor <iant@google.com>
1360 * go-gcc.cc (Gcc_backend::error_type): Implement.
1361 (Gcc_backend::string_type): Remove.
1362 (Gcc_backend::function_type): Change signature and implement.
1363 (Gcc_backend::struct_type): Change signature.
1364 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1365 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1366 (Gcc_backend::pointer_type): Check for error.
1367 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1369 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1371 * go-gcc.c (class Gcc_tree): Make get_tree const.
1372 (Gcc_backend::void_type): Implement.
1373 (Gcc_backend::bool_type): Implement.
1374 (Gcc_backend::integer_type): Implement.
1375 (Gcc_backend::float_type): Implement.
1376 (Gcc_backend::complex_type): New function.
1377 (Gcc_backend::pointer_type): New function.
1378 (Gcc_backend::make_type): New function.
1379 (type_to_tree): New function.
1381 2011-04-21 Ian Lance Taylor <iant@google.com>
1383 * go-system.h (go_assert, go_unreachable): Define.
1385 2011-04-19 Ian Lance Taylor <iant@google.com>
1387 * go-system.h: Include "intl.h".
1388 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1389 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1390 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1392 2011-04-19 Ian Lance Taylor <iant@google.com>
1394 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1396 2011-04-19 Ian Lance Taylor <iant@google.com>
1398 * go-gcc.cc (class Bblock): Define.
1399 (Gcc_backend::if_statement): Change then_block and else_block to
1401 (Gcc_backend::block): New function.
1402 (Gcc_backend::block_add_statements): New function.
1403 (Gcc_backend::block_statement): New function.
1404 (tree_to_block, block_to_tree): New functions.
1406 2011-04-18 Ian Lance Taylor <iant@google.com>
1408 * go-gcc.cc: Include "go-c.h".
1409 (class Bvariable): Define.
1410 (Gcc_backend::init_statement): New function.
1411 (Gcc_backend::global_variable): New function.
1412 (Gcc_backend::global_variable_set_init): New function.
1413 (Gcc_backend::local_variable): New function.
1414 (Gcc_backend::parameter_variable): New function.
1415 (tree_to_type, var_to_tree): New functions.
1416 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1417 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1419 2011-04-15 Ian Lance Taylor <iant@google.com>
1421 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1422 (Gcc_backend::assignment_statement): Use error_statement.
1423 (Gcc_backend::return_statement): Likewise.
1424 (Gcc_backend::if_statement): Likewise.
1425 (Gcc_backend::switch_statement): Likewise.
1426 (Gcc_backend::statement_list): Likewise.
1428 2011-04-14 Ian Lance Taylor <iant@google.com>
1430 * go-gcc.cc (Gcc_backend::error_statement): New function.
1432 2011-04-13 Ian Lance Taylor <iant@google.com>
1434 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1436 2011-04-13 Ian Lance Taylor <iant@google.com>
1438 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1439 (GO_RUNTIME_H): New variable.
1440 (go/runtime.o): New target.
1441 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1442 (go/statements.o): Likewise.
1444 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1446 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1449 2011-04-06 Ian Lance Taylor <iant@google.com>
1451 * go-gcc.cc (if_statement): Use build3_loc.
1452 (Gcc_backend::switch_statement): New function.
1453 (Gcc_backend::statement_list): New function.
1455 2011-04-06 Ian Lance Taylor <iant@google.com>
1457 * go-gcc.cc (Gcc_backend::if_statement): New function.
1458 (tree_to_stat): New function.
1459 (expr_to_tree): Renamed from expression_to_tree.
1460 (stat_to_tree): Renamed from statement_to_tree.
1462 2011-04-06 Ian Lance Taylor <iant@google.com>
1464 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1466 2011-04-04 Ian Lance Taylor <iant@google.com>
1468 * go-gcc.c (class Blabel): Define.
1469 (Gcc_backend::make_expression): New function.
1470 (get_identifier_from_string): New function.
1471 (Gcc_backend::label): New function.
1472 (Gcc_backend::label_definition_statement): New function.
1473 (Gcc_backend::goto_statement): New function.
1474 (Gcc_backend::label_address): New function.
1475 (expression_to_tree): New function.
1476 * Make-lang.in (go/expressions.o): Depend on
1477 go/gofrontend/backend.h.
1478 (go/gogo.o): Likewise.
1480 2011-04-04 Ian Lance Taylor <iant@google.com>
1482 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1483 (class Bfunction): Define.
1484 (Gcc_backend::assignment_statement): Rename from assignment.
1486 (Gcc_backend::return_statement): New function.
1487 (tree_to_function): New function.
1488 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1489 $(GIMPLE_H), and $(GO_GOGO_H).
1491 2011-04-03 Ian Lance Taylor <iant@google.com>
1493 * go-gcc.cc: New file.
1494 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1495 (go/go-gcc.o): New target.
1496 (go/go.o): Depend on go/gofrontend/backend.h.
1497 (go/statements.o): Likewise.
1499 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1501 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1503 2011-02-08 Ian Lance Taylor <iant@google.com>
1505 * go-lang.c (go_langhook_init_options_struct): Set
1506 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1508 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1510 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1511 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1513 2011-01-21 Ian Lance Taylor <iant@google.com>
1515 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1517 * go-c.h: Update declaration of go_create_gogo.
1519 2011-01-13 Ian Lance Taylor <iant@google.com>
1521 * go-backend.c: Include "rtl.h" and "target.h".
1522 (go_imported_unsafe): New function.
1523 * go-c.h (go_imported_unsafe): Declare.
1524 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1525 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1526 (go/unsafe.o): Depend on $(GO_C_H).
1528 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1531 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1534 2010-12-21 Ian Lance Taylor <iant@google.com>
1536 * Make-lang.in (check-go): Remove.
1537 (lang_checks_parallelized): Add check-go.
1538 (check_go_parallelize): Set.
1540 2010-12-13 Ian Lance Taylor <iant@google.com>
1542 * gospec.c (lang_specific_driver): Add a -o option if not linking
1543 and there is no -o option already.
1545 2010-12-07 Ian Lance Taylor <iant@google.com>
1547 PR tree-optimization/46805
1548 PR tree-optimization/46833
1549 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1551 2010-12-06 Ian Lance Taylor <iant@google.com>
1555 * go-lang.c (go_char_p): Define type and vectors.
1556 (go_search_dirs): New static variable.
1557 (go_langhook_handle_option): Use version and version/machine
1559 (go_langhook_post_options): Add non-specific -L paths.
1560 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1561 DEFAULT_TARGET_MACHINE when compiling.
1562 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1563 (Import and Export): Don't mention -L for finding import files.
1565 2010-12-03 Ian Lance Taylor <iant@google.com>
1568 * go-backend.c: New file.
1569 * go-c.h (go_type_alignment): Declare.
1570 (go_field_alignment, go_trampoline_info): Declare.
1571 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1572 (go/go-backend.o): New target.
1573 (go/go-lang.o): Make dependencies match source file.
1574 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1575 (go/gogo-tree.o): Don't depend on $(TM_H).
1577 2010-12-03 Ian Lance Taylor <iant@google.com>
1579 * config-lang.in (build_by_default): Set to no.
1581 2010-12-02 Ian Lance Taylor <iant@google.com>
1583 Go frontend added to gcc repository.
1585 Copyright (C) 2010-2018 Free Software Foundation, Inc.
1587 Copying and distribution of this file, with or without modification,
1588 are permitted in any medium without royalty provided the copyright
1589 notice and this notice are preserved.