1 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2 Alan Hayward <alan.hayward@arm.com>
3 David Sherwood <david.sherwood@arm.com>
5 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
7 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8 Alan Hayward <alan.hayward@arm.com>
9 David Sherwood <david.sherwood@arm.com>
11 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
13 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14 Alan Hayward <alan.hayward@arm.com>
15 David Sherwood <david.sherwood@arm.com>
17 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
19 2017-08-07 Martin Liska <mliska@suse.cz>
21 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
22 and not __no_split_stack__.
24 2017-07-27 Tony Reix <tony.reix@atos.net>
26 * go-backend.c (go_write_export_data): Use EXCLUDE section for
29 2017-06-09 Ian Lance Taylor <iant@golang.org>
31 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
32 on, disable implicit -forder-blocks-and-partition.
34 2017-05-12 Than McIntosh <thanm@google.com>
36 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
38 2017-05-11 Ian Lance Taylor <iant@google.com>
41 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
42 DECL_EXTERNAL, clear TREE_STATIC.
44 2017-05-10 Than McIntosh <thanm@google.com>
46 * go-backend.c: Include "go-c.h".
47 * go-gcc.cc (Gcc_backend::write_export_data): New method.
49 2017-05-10 Ian Lance Taylor <iant@google.com>
51 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
53 * Make-lang.in (GO_OBJS): Add go/wb.o.
55 2017-03-28 Than McIntosh <thanm@google.com>
58 * go-gcc.cc (Gcc_backend::return_statement): Check for
59 void_type_node when checking result size.
61 2017-02-20 Ian Lance Taylor <iant@golang.org>
64 * lang.opt (-fgo-relative-import-path): Change space to tab.
66 2017-02-07 Richard Biener <rguenther@suse.de>
68 PR tree-optimization/79256
70 * go-backend.c (go_field_alignment): Adjust.
72 2017-01-11 Than McIntosh <thanm@google.com>
74 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
76 2017-01-01 Jakub Jelinek <jakub@redhat.com>
78 Update copyright years.
80 * gccgo.texi: Bump @copyrights-go year.
82 2016-12-16 Than McIntosh <thanm@google.com>
84 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
86 (Gcc_backend::init_statement): Likewise.
87 (Gcc_backend::assignment_statement): Likewise.
88 (Gcc_backend::if_statement): Likewise.
90 2016-12-06 Than McIntosh <thanm@google.com>
92 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
95 2016-11-22 Than McIntosh <thanm@google.com>
97 * go-gcc.cc (char_needs_encoding): Remove.
98 (needs_encoding, fetch_utf8_char, encode_id): Remove.
99 (Gcc_backend::global_variable): Add asm_name parameter. Don't
100 compute asm_name here.
101 (Gcc_backend::implicit_variable): Likewise.
102 (Gcc_backend::implicit_variable_reference): Likewise.
103 (Gcc_backend::immutable_struct): Likewise.
104 (Gcc_backend::immutable_struct_reference): Likewise.
105 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
107 2016-11-22 Ian Lance Taylor <iant@google.com>
109 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
110 __builtin_frame_address.
112 2016-10-25 David Malcolm <dmalcolm@redhat.com>
114 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
115 from result of GET_MODE_CLASS. Minor formatting fixes.
117 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
119 * go-backend.c: Include memmodel.h.
121 2016-10-10 Than McIntosh <thanm@google.com>
123 * go-gcc.h: New file.
124 * go-c.h (struct go_create_gogo_args): Add backend and linemap
126 * go-lang.c: Include "go-gcc.h".
127 (go_langhook_init): Set linemap and backend fields of args.
128 * go-gcc.cc: Include "go-gcc.h".
129 * go-linemap.cc: Include "go-gcc.h".
131 2016-10-10 Than McIntosh <thanm@google.com>
133 * go-linemap.cc (Gcc_linemap::location_line): New method.
135 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
137 * config-lang.in (lang_requires_boot_languages): Delete.
139 2016-10-06 Chris Manghane <cmang@google.com>
141 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
144 2016-09-27 Than McIntosh <thanm@google.com>
146 * go-linemap.cc (Gcc_linemap::to_string): New method.
148 2016-09-23 Than McIntosh <thanm@google.com>
150 * go-gcc-diagnostics.cc: New file.
151 * go-location.h (Location): Remove operator source_location. Add
153 * go-system.h: #include <sstream>.
154 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
155 go/go-gcc-diagnostics.o.
156 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
158 2016-09-23 Chris Manghane <cmang@google.com>
161 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
162 to pass arguments in the correct order.
164 2016-09-22 Ian Lance Taylor <iant@golang.org>
166 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
167 __builtin_frame_address.
169 2016-09-11 Ian Lance Taylor <iant@golang.org>
171 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
172 ctz, ctzll, bswap32, bswap64.
174 2016-09-10 Ian Lance Taylor <iant@golang.org>
176 * go-backend.c (go_trampoline_info): Remove.
177 * go-c.h (go_trampoline_info): Don't declare.
179 2016-09-09 Than McIntosh <thanm@google.com>
181 * go-sha1.cc: New file.
182 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
183 (CFLAGS-go/go-sha1.o): New variable.
185 2016-08-29 Ian Lance Taylor <iant@google.com>
187 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
188 * go-c.h (struct go_create_gogo_args): Define.
189 (go_create_gogo): Change declaration to take struct pointer.
190 * go-lang.c (go_c_header): New static variable.
191 (go_langhook_init): Update call to go_create_gogo.
192 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
193 -fgo-compiling-runtime.
195 2016-08-09 Ian Lance Taylor <iant@google.com>
197 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
199 (Compiler Directives): New chapter.
200 (Function Names): Describe using //go:linkname. Suggest using
201 -fgo-pkgpath rather than -fgo-prefix.
203 2016-08-08 Ian Lance Taylor <iant@google.com>
206 * go-gcc.cc (Gcc_backend::function_type): If the return type is
207 zero bytes, treat the function as returning void.
208 (return_statement): If the return type is zero bytes, don't
209 actually return any values.
211 2016-08-05 Ian Lance Taylor <iant@google.com>
214 * go-gcc.cc (char_needs_encoding): New static function.
215 (needs_encoding, fetch_utf8_char): New static functions.
216 (encode_id): New static function.
217 (Gcc_backend::global_variable): Set asm name if the name is not
219 (Gcc_backend::implicit_variable): Likewise.
220 (Gcc_backend::implicit_variable_reference): Likewise.
221 (Gcc_backend::immutable_struct): Likewise.
222 (Gcc_backend::immutable_struct_reference): Likewise.
223 (Gcc_backend::function): Likewise.
225 2016-08-02 Chris Manghane <cmang@google.com>
227 * lang.opt: Add -fgo-debug-escape option.
228 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
229 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
232 2016-05-06 Chris Manghane <cmang@google.com>
234 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
237 2016-04-29 Chris Manghane <cmang@google.com>
239 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
241 2016-04-18 Michael Matz <matz@suse.de>
243 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
245 2016-02-12 Jakub Jelinek <jakub@redhat.com>
247 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
248 neighbour -> neighbor.
249 * gccgo.texi: Likewise.
251 2016-01-27 Ian Lance Taylor <iant@google.com>
253 * go-lang.c (go_langhook_init_options_struct): Default to
254 -fkeep-gc-roots-live.
256 2016-01-04 Jakub Jelinek <jakub@redhat.com>
258 Update copyright years.
260 * gccgo.texi: Bump @copyrights-go year.
262 2015-12-21 Ian Lance Taylor <iant@google.com>
264 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
265 t_ and orig_type_ fields. Add new two parameter constructor. Add
266 get_tree and get_decl methods.
267 (Gcc_backend::var_expression): Pass location to var get_tree.
268 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
269 two parameter constructor for Bvariable.
270 (Gcc_backend::global_variable_set_init): Don't remove
271 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
272 (Gcc_backend::write_global_definitions): Likewise.
273 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
274 (Gcc_backend::block): Likewise.
275 (Gcc_backend::implicit_variable_set_init): Likewise.
276 (Gcc_backend::immutable_struct_set_init): Likewise.
277 (Gcc_backend::function_set_parameters): Likewise.
279 2015-12-21 Ian Lance Taylor <iant@google.com>
281 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
282 add a VIEW_CONVERT_EXPR to the tree.
283 (Gcc_backend::global_variable_set_init): Remove any
285 (Gcc_backend::write_global_definitions): Likewise.
287 2015-11-30 Ian Lance Taylor <iant@google.com>
290 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
291 TYPE_STRING_FLAG on a variant type.
293 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
295 * go-backend.c: Remove unused header files.
296 * go-gcc.cc: Likewise.
297 * go-lang.c: Likewise.
298 * gospec.c: Likewise.
300 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
302 * go-backend.c: Reorder #include's and remove duplicates.
303 * go-lang.c: Likewise.
305 2015-10-20 Alan Modra <amodra@gmail.com>
308 * gospec.c (saw_opt_m32): Rename to..
309 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
311 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
313 2015-10-01 Ian Lance Taylor <iant@google.com>
316 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
317 TARGET_CAN_SPLIT_STACK_64BIT is defined.
319 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
322 * gospec.c (lang_specific_driver): Set appropriate split stack
323 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
325 2015-09-10 Chris Manghane <cmang@google.com>
327 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
328 unrepresentable size.
330 2015-08-24 Marek Polacek <polacek@redhat.com>
332 PR tree-optimization/67284
333 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
334 Set TREE_THIS_VOLATILE.
335 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
336 Pass false to the rest of define_builtin calls.
338 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
340 * go-lang.c (go_langhook_init_options_struct): Don't set
342 (go_langhook_post_options): Set it here instead.
344 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
346 * gofrontend/backend.h: Fix double word typos.
347 * gofrontend/expressions.cc: Same.
350 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
352 * go-backend.c: Adjust includes.
353 * go-gcc.cc: Likewise.
354 * go-lang.c: Likewise.
356 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
358 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
360 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
362 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
363 * go-gcc.cc: Likewise.
364 * go-lang.c: Likewise.
365 * go-system.h: Likewise.
367 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
369 * go-backend.c : Adjust include files.
370 * go-gcc.cc : Likewise.
371 * go-lang.c : Likewise.
373 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
375 * go-gcc.cc (write_global_definitions): Remove call to
376 finalize_compilation_unit.
377 Remove Go specific debug generation.
378 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
379 (go_langhook_write_globals): Remove.
380 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
382 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
384 * go-backend.c: Adjust includes for restructured coretypes.h.
386 * go-gcc.cc: Likewise.
387 * go-lang.c: Likewise.
389 2015-04-30 Chris Manghane <cmang@google.com>
391 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
394 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
396 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
398 2015-04-17 Chris Manghane <cmang@google.com>
400 * Make-lang.in (GO_OBJS): Add go/escape.o.
402 2015-02-02 Ian Lance Taylor <iant@google.com>
406 * go-gcc.cc (Gcc_backend::type_size): Change return type to
408 (Gcc_backend::type_alignment): Likewise.
409 (Gcc_backend::type_field_alignment): Likewise.
410 (Gcc_backend::type_field_offset): Likewise.
411 (Gcc_backend::implicit_variable): Change alignment parameter type
414 2015-01-23 Ian Lance Taylor <iant@google.com>
417 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
420 * gccgo.texi (C Interoperability): Mention that people should use
423 2015-01-23 Ian Lance Taylor <iant@google.com>
426 * go-lang.c (go_langhook_init_options_struct): Set default
428 (go_langhook_post_options): If debug_info_level is still the
429 default, make sure write_symbols is set.
430 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
432 2015-01-16 Richard Henderson <rth@redhat.com>
434 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
435 (Gcc_backend::static_chain_variable): New method.
437 2015-01-09 Ian Lance Taylor <iant@google.com>
439 * config-lang.in (lang_dirs): Define.
441 2015-01-09 Michael Collison <michael.collison@linaro.org>
443 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
444 input.h, alias.h, symtab.h, options.h, fold-const.h,
445 wide-int.h, and inchash.h due to flattening of tree.h.
447 * go-backend.c: Ditto.
449 2015-01-07 Chris Manghane <cmang@google.com>
452 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
455 2015-01-06 Chris Manghane <cmang@google.com>
457 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
458 initialize zero-sized fields, just evaluate the values for side
461 2015-01-05 Jakub Jelinek <jakub@redhat.com>
463 Update copyright years.
465 * gccgo.texi: Bump @copyrights-go year.
467 2014-12-19 Chris Manghane <cmang@google.com>
469 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
470 construct arrays of zero-sized values.
472 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
474 * go-lang.c: Remove redundant enum from machine_mode.
476 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
478 * go-gcc.cc: Adjust include files.
480 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
482 * go-gcc.cc: Adjust include files.
485 2014-10-23 Ian Lance Taylor <iant@google.com>
487 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
488 mpc_t parameter instead of two mpfr_t parameters.
490 2014-09-15 Jakub Jelinek <jakub@redhat.com>
492 * Make-lang.in (check_go_parallelize): Change to just an upper bound
495 2014-09-03 Chris Manghane <cmang@google.com>
497 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
498 parameter. Add is_hidden parameter.
499 (Gcc_backend::implicit_variable_set_init): New method.
500 (Gcc_backend::implicit_variable_reference): New method.
502 2014-08-08 Ian Lance Taylor <iant@google.com>
504 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
507 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
509 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
510 symtab_get_node to symtab_node::get.
512 2014-06-13 Ian Lance Taylor <iant@google.com>
515 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
516 ld, add -t option to avoid warning about common symbol changing
519 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
521 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
522 symtab_get_node(var_decl)->implicit_section.
524 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
526 * go-gcc.cc (global_variable_set_init): Use
527 set_decl_section_name.
529 2014-06-04 Ian Lance Taylor <iant@google.com>
531 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
532 alignment parameters. Permit init parameter to be NULL.
534 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
536 * go-gcc.cc: Include builtins.h.
538 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
540 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
542 2014-05-06 Chris Manghane <cmang@google.com>
544 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
545 (Gcc_backend::boolean_constant_expression): New method.
546 (Gcc_backend::zero_expression): Use this->make_expression rather
548 (Gcc_backend::var_expression): Likewise.
549 (Gcc_backend::integer_constant_expression): Likewise.
550 (Gcc_backend::float_constant_expression): Likewise.
551 (Gcc_backend::complex_constant_expression): Likewise.
552 (Gcc_backend::struct_field_expression): Likewise.
553 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
554 (tree_to_function, tree_to_block): Remove functions.
555 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
556 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
558 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
559 Mike Stump <mikestump@comcast.net>
560 Richard Sandiford <rdsandiford@googlemail.com>
562 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
564 2014-05-06 Chris Manghane <cmang@google.com>
566 * go-c.h (go_create_gogo): Update declaration to add
567 check_divide_zero and check_divide_overflow parameters.
568 * go-lang.c (go_langhook_init): Pass new arguments to
571 2014-05-05 Chris Manghane <cmang@google.com>
573 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
574 gc_root_variable. Add name and is_constant parameters.
576 2014-05-05 Chris Manghane <cmang@google.com>
578 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
580 (Gcc_backend::temporary_variable): Check for erroneous function.
582 2014-04-30 Chris Manghane <cmang@google.com>
584 * go-backend.c: #include "diagnostics.h".
585 (saw_errors): New function.
586 * go-c.h (saw_errors): Declare.
587 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
589 2014-04-30 Chris Manghane <cmang@google.com>
591 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
592 calling into Go frontend.
593 (go_langhook_type_for_mode): Likewise.
594 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
596 2014-04-30 Chris Manghane <cmang@google.com>
598 * go-gcc.cc: #include "langhooks.h".
599 (Gcc_backend::Gcc_backend): Add constructor.
600 (Gcc_backend::lookup_function): New function.
601 (Gcc_backend::define_builtin): New private function.
602 (Gcc_backend::gcc_backend): Remove.
603 (go_get_backend): Use new to create new Gcc_backend.
605 2014-04-25 Chris Manghane <cmang@google.com>
607 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
608 (Gcc_backend::return_statement): Push and pop function.
609 (Gcc_backend::label): Likewise.
610 (Gcc_backend::function_defer_statement): Likewise.
611 (Gcc_backend::switch_statement): Add function parameter.
612 (Gcc_backend::block): Don't permit function to be NULL.
613 (Gcc_backend::temporary_variable): Change go_assert to
615 (Gcc_backend::gc_root_variable): New function.
616 (Gcc_backend::write_global_definitions): New function.
618 2014-04-22 Chris Manghane <cmang@google.com>
620 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
621 call to create_tmp_var. Require that function be non-NULL.
623 2014-04-17 Chris Manghane <cmang@google.com>
625 * go-gcc.cc (Gcc_backend::named_constant_expression): New
628 2014-04-14 Chris Manghane <cmang@google.com>
630 * go-gcc.cc: Include "convert.h".
631 (Gcc_backend::string_constant_expression): New function.
632 (Gcc_backend::real_part_expression): Likewise.
633 (Gcc_backend::imag_part_expression): Likewise.
634 (Gcc_backend::complex_expression): Likewise.
635 (Gcc_backend::constructor_expression): Likewise.
636 (Gcc_backend::array_constructor_expression): Likewise.
637 (Gcc_backend::pointer_offset_expression): Likewise.
638 (Gcc_backend::array_index_expression): Likewise.
639 (Gcc_backend::call_expression): Likewise.
640 (Gcc_backend::exception_handler_statement): Likewise.
641 (Gcc_backend::function_defer_statement): Likewise.
642 (Gcc_backend::function_set_parameters): Likewise.
643 (Gcc_backend::function_set_body): Likewise.
644 (Gcc_backend::convert_expression): Handle various type
647 2014-03-03 Ian Lance Taylor <iant@google.com>
649 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
651 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
654 2014-01-24 Chris Manghane <cmang@google.com>
656 * go-gcc.cc (Gcc_backend::unary_expression): New function.
658 2014-01-16 Chris Manghane <cmang@google.com>
660 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
662 (operator_to_tree_code): New static function.
663 (Gcc_backend::binary_expression): New function.
665 2014-01-14 Chris Manghane <cmang@google.com>
667 * go-gcc.cc (Gcc_backend::compound_expression): New function.
668 (Gcc_backend::conditional_expression): New function.
670 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
672 Update copyright years
674 2014-01-02 Tobias Burnus <burnus@net-b.de>
676 * gccgo.texi: Bump @copying's copyright year.
678 2013-12-16 Chris Manghane <cmang@google.com>
680 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
682 2013-12-11 Ian Lance Taylor <iant@google.com>
684 * go-lang.c (go_langhook_post_options): Disable sibling calls by
687 2013-12-10 Ian Lance Taylor <iant@google.com>
689 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
692 2013-12-05 Ian Lance Taylor <iant@google.com>
694 Revert this change; no longer required.
695 2013-11-06 Ian Lance Taylor <iant@google.com>
697 * go-lang.c (go_langhook_post_options): If
698 -fisolate-erroneous-paths was turned on by an optimization option,
701 2013-11-23 Ian Lance Taylor <iant@google.com>
703 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
706 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
708 * go-gcc.cc: Add required include files from gimple.h.
709 * go-lang.c: Likewise
711 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
713 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
714 tree_to_shwi throughout.
716 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
718 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
719 tree_fits_shwi_p throughout.
721 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
723 * go-lang.c: Include only gimplify.h and gimple.h as needed.
725 2013-11-14 Diego Novillo <dnovillo@google.com>
727 * go-backend.c: Include stor-layout.h.
728 * go-gcc.cc: Include stringpool.h.
729 Include stor-layout.h.
731 * go-lang.c: Include stor-layout.h.
733 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
735 * go-lang.c: Include gimplify.h.
737 2013-11-06 Ian Lance Taylor <iant@google.com>
739 * go-lang.c (go_langhook_post_options): If
740 -fisolate-erroneous-paths was turned on by an optimization option,
743 2013-10-14 Chris Manghane <cmang@google.com>
745 * go-gcc.cc (Gcc_backend::address_expression): New function.
747 2013-10-11 Chris Manghane <cmang@google.com>
749 * go-gcc.cc (Gcc_backend::function_code_expression): New
752 2013-10-10 Chris Manghane <cmang@google.com>
754 * go-gcc.cc (Gcc_backend::error_function): New function.
755 (Gcc_backend::function): New function.
756 (Gcc_backend::make_function): New function.
757 (function_to_tree): New function.
759 2013-10-04 Chris Manghane <cmang@google.com>
761 * go-gcc.cc (Gcc_backend::convert_expression): New function.
763 2013-10-02 Chris Manghane <cmang@google.com>
765 * go-gcc.cc: Include "real.h" and "realmpfr.h".
766 (Gcc_backend::integer_constant_expression): New function.
767 (Gcc_backend::float_constant_expression): New function.
768 (Gcc_backend::complex_constant_expression): New function.
770 2013-09-30 Chris Manghane <cmang@google.com>
772 * go-gcc.cc (Gcc_backend::error_expression): New function.
773 (Gcc_backend::var_expression): New function.
774 (Gcc_backend::indirect_expression): New function.
776 2013-09-25 Tom Tromey <tromey@redhat.com>
778 * Make-lang.in (gospec.o): Remove.
779 (CFLAGS-go/gospec.o): New variable.
780 (GCCGO_OBJS): Update to use go/gospec.o.
782 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
783 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
784 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
785 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
786 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
787 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
788 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
789 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
790 (go/unsafe.o): Remove.
791 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
792 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
794 2013-09-25 Tom Tromey <tromey@redhat.com>
796 * Make-lang.in (gospec.o): Don't use subshell.
798 2013-08-28 Ian Lance Taylor <iant@google.com>
800 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
801 the struct is not hidden.
802 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
804 2013-08-06 Ian Lance Taylor <iant@google.com>
806 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
807 compute_reloc_for_constant.
809 2013-08-02 Ian Lance Taylor <iant@google.com>
811 * go-gcc.cc (immutable_struct_set_init): Always call
812 resolve_unique_section.
814 2013-07-24 Ian Lance Taylor <iant@google.com>
816 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
817 fields, recreate those fields with the first one with a non-zero
820 2013-07-23 Ian Lance Taylor <iant@google.com>
822 * go-backend.c: Don't #include "rtl.h".
823 (go_imported_unsafe): Don't call init_varasm_once.
824 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
826 2013-07-23 Ian Lance Taylor <iant@google.com>
828 * go-lang.c: Don't #include "except.h".
829 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
831 2013-06-18 Ian Lance Taylor <iant@google.com>
833 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
835 (Gcc_backend::immutable_struct_set_init): Likewise.
837 2013-05-16 Jason Merrill <jason@redhat.com>
839 * Make-lang.in (go1$(exeext)): Use link mutex.
841 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
843 * gospec.c: pass -u pthread_create to linker when static linking.
845 2012-12-21 Ian Lance Taylor <iant@google.com>
848 * go-system.h: Don't include <cstdio>.
850 2012-12-18 Ian Lance Taylor <iant@google.com>
853 * gospec.c: Revert last patch.
855 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
858 * gospec.c (LIBATOMIC): Define.
859 (LIBATOMIC_PROFILE): Define.
860 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
862 2012-11-29 Ian Lance Taylor <iant@google.com>
864 * go-gcc.cc: Include "output.h".
865 (global_variable): Add is_unique_section parameter.
866 (global_variable_set_init): Adjust unique section if necessary.
867 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
869 2012-11-17 Diego Novillo <dnovillo@google.com>
871 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
873 * go-lang.c: Use new vec API in vec.h.
875 2012-11-16 Ian Lance Taylor <iant@google.com>
877 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
878 (go1$(exeext)): Likewise.
880 2012-10-30 Ian Lance Taylor <iant@google.com>
882 * lang.opt (-fgo-relative-import-path): New option.
883 * go-lang.c (go_relative_import_path): New static variable.
884 (go_langhook_init): Pass go_relative_import_path to
886 (go_langhook_handle_option): Handle -fgo-relative-import-path.
887 * go-c.h (go_create_gogo): Update declaration.
888 * gccgo.texi (Invoking gccgo): Document
889 -fgo-relative-import-path.
891 2012-09-17 Ian Lance Taylor <iant@google.com>
893 * config-lang.in (target_libs): Add target-libbacktrace.
895 2012-09-16 Ian Lance Taylor <iant@google.com>
897 * Make-lang.in (go/gogo.o): Depend on filenames.h.
899 2012-08-14 Diego Novillo <dnovillo@google.com>
901 Merge from cxx-conversion branch. Configury.
903 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
904 * go-gcc.cc: Likewise.
905 * go-system.h: Likewise.
907 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
909 * go-lang.c (lang_decl): Add variable_size GTY option.
911 2012-05-09 Ian Lance Taylor <iant@google.com>
913 * lang.opt: Add -fgo-pkgpath.
914 * go-lang.c (go_pkgpath): New static variable.
915 (go_prefix): New static variable.
916 (go_langhook_init): Pass go_pkgpath and go_prefix to
918 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
919 -fgo-prefix handling to just set go_prefix.
920 * go-c.h (go_set_prefix): Don't declare.
921 (go_create_gogo): Add pkgpath and prefix to declaration.
922 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
923 to pkgpath. Don't include the package name in the asm name.
924 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
925 docs for -fgo-prefix.
927 2012-04-23 Ian Lance Taylor <iant@google.com>
929 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
931 2012-04-20 Ian Lance Taylor <iant@google.com>
933 * lang.opt: Add -fgo-check-divide-zero and
934 -fgo-check-divide-overflow.
935 * gccgo.texi (Invoking gccgo): Document new options.
937 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
939 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
940 with NULL_TREE type instead of void_type_node.
942 2012-03-09 Ian Lance Taylor <iant@google.com>
944 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
945 to the lhs type if necessary.
947 2012-03-08 Ian Lance Taylor <iant@google.com>
949 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
951 (go_non_zero_struct): New global variable.
952 (Gcc_backend::non_zero_size_type): New function.
953 (Gcc_backend::global_variable): Don't build an assignment for a
955 * go-c.h (go_non_zero_struct): Declare.
956 * config-lang.in (gtfiles): Add go-c.h.
958 2012-02-29 Ian Lance Taylor <iant@google.com>
960 * go-gcc.cc (class Gcc_tree): Add set_tree method.
961 (set_placeholder_pointer_type): When setting to a pointer to
962 error, set to error_mark_node.
964 2012-02-23 Richard Guenther <rguenther@suse.de>
966 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
967 build_distinct_type_copy.
969 2012-02-17 Ian Lance Taylor <iant@google.com>
971 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
973 2012-02-17 Ian Lance Taylor <iant@google.com>
975 * gospec.c (lang_specific_driver): If linking, and no -o option
978 2012-02-14 Ian Lance Taylor <iant@google.com>
981 * Make-lang.in (gccgo-cross$(exeext)): New target.
982 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
984 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
985 gccgo-cross$(exeext) does not exist.
987 2012-02-07 Ian Lance Taylor <iant@google.com>
989 * gccgo.texi (Function Names): Document //extern instead of
992 2012-02-01 Jakub Jelinek <jakub@redhat.com>
995 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
996 return build_nonstandard_integer_type result if possible.
998 2012-01-21 Ian Lance Taylor <iant@google.com>
1000 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1001 (Gcc_backend::type_alignment): Likewise.
1002 (Gcc_backend::type_field_alignment): Likewise.
1003 (Gcc_backend::type_field_offset): Likewise.
1005 2012-01-20 Ian Lance Taylor <iant@google.com>
1007 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1009 (Gcc_backend::set_placeholder_struct_type): Likewise.
1011 2012-01-17 Ian Lance Taylor <iant@google.com>
1013 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1014 BASE.s rather than -o BASE.o.
1016 2012-01-11 Ian Lance Taylor <iant@google.com>
1018 * go-lang.c (go_langhook_init): Initialize void_list_node before
1019 calling go_create_gogo.
1021 2012-01-10 Ian Lance Taylor <iant@google.com>
1023 * go-gcc.cc (Gcc_backend::type_size): New function.
1024 (Gcc_backend::type_alignment): New function.
1025 (Gcc_backend::type_field_alignment): New function.
1026 (Gcc_backend::type_field_offset): New function.
1027 * go-backend.c (go_type_alignment): Remove.
1028 * go-c.h (go_type_alignment): Don't declare.
1030 2011-12-27 Ian Lance Taylor <iant@google.com>
1032 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1033 build_distinct_type_copy rather than build_variant_type_copy.
1034 (Gcc_backend::set_placeholder_array_type): Likewise.
1035 (Gcc_backend::named_type): Add special handling for builtin
1038 2011-12-22 Ian Lance Taylor <iant@google.com>
1040 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1041 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1042 (Gcc_backend::set_placeholder_struct_type): Likewise.
1043 (Gcc_backend::set_placeholder_array_type): Likewise.
1044 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1046 2011-12-13 Ian Lance Taylor <iant@google.com>
1048 * go-backend.c: #include "simple-object.h" and "intl.h".
1049 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1050 (GO_EXPORT_SECTION_NAME): Likewise.
1051 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1052 (go_read_export_data): New function.
1053 * go-c.h (go_read_export_data): Declare.
1055 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1056 Ian Lance Taylor <iant@google.com>
1058 * go-location.h: New file.
1059 * go-linemap.cc: New file.
1060 * go-gcc.cc: Change all uses of source_location to Location.
1061 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1062 (GO_LINEMAP_H): New variable.
1063 (GO_LEX_H): Use $(GO_LINEMAP_H).
1064 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1065 (go/go-linemap.o): New target.
1067 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1069 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1071 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1073 * lang.opt: Add fgo-optimize-.
1074 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1075 * go-c.h (go_enable_optimize): Declare.
1076 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1077 (GO_EXPORT_H): Define.
1078 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1079 (GO_AST_DUMP_H): Define.
1080 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1081 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1082 (go/types.o): Likewise.
1083 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1084 (go/go-optimize.o): New target.
1086 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1088 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1089 (go/go-lang.o): Remove explicit compilation rule.
1091 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1093 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1095 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1097 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1098 (go/ast-dump.o): New target.
1099 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1100 (go/statements.o): Likewise.
1102 2011-07-06 Richard Guenther <rguenther@suse.de>
1104 * go-lang.c (go_langhook_init):
1105 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1107 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1109 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1111 * go-backend.c: Include common/common-target.h.
1112 (go_write_export_data): Use targetm_common.have_named_sections.
1113 * go-lang.c: Include common/common-target.h.
1114 (go_langhook_init_options_struct): Use
1115 targetm_common.supports_split_stack.
1117 2011-06-13 Ian Lance Taylor <iant@google.com>
1119 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1121 2011-06-10 Ian Lance Taylor <iant@google.com>
1123 * go-gcc.cc: Include "toplev.h".
1124 (Gcc_backend::immutable_struct): New function.
1125 (Gcc_backend::immutable_struct_set_init): New function.
1126 (Gcc_backend::immutable_struct_reference): New function.
1127 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1129 2011-06-09 Ian Lance Taylor <iant@google.com>
1131 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1133 2011-06-07 Richard Guenther <rguenther@suse.de>
1135 * go-lang.c (go_langhook_init): Do not set
1136 size_type_node or call set_sizetype.
1138 2011-05-27 Ian Lance Taylor <iant@google.com>
1140 * go-backend.c: Include "output.h".
1141 (go_write_export_data): New function.
1142 * go-c.h (go_write_export_data): Declare.
1143 * Make-lang.in (go/go-backend.o): Depend on output.h.
1144 (go/export.o): Depend on $(GO_C_H). Do not depend on
1145 $(MACHMODE_H), output.h, or $(TARGET_H).
1147 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1149 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1150 (gccgo$(exeext)): Use libcommon-target.a.
1152 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1154 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1156 2011-05-13 Ian Lance Taylor <iant@google.com>
1158 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1159 for multiple results, check that all fields types have a size.
1160 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1162 2011-05-12 Ian Lance Taylor <iant@google.com>
1164 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1166 (Gcc_backend::parameter_variable): Likewise.
1168 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1170 * go-lang.c (global_bindings_p): Return bool and simplify.
1172 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1174 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1176 2011-05-04 Ian Lance Taylor <iant@google.com>
1178 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1179 (Gcc_backend::fill_in_struct): New function.
1180 (Gcc_backend::array_type): Implement.
1181 (Gcc_backend::fill_in_array): New function.
1182 (Gcc_backend::placeholder_pointer_type): New function.
1183 (Gcc_backend::set_placeholder_pointer_type): New function.
1184 (Gcc_backend::set_placeholder_function_type): New function.
1185 (Gcc_backend::placeholder_struct_type): New function.
1186 (Gcc_backend::set_placeholder_struct_type): New function.
1187 (Gcc_backend::placeholder_array_type): New function.
1188 (Gcc_backend::set_placeholder_array_type): New function.
1189 (Gcc_backend::named_type): New function.
1190 (Gcc_backend::circular_pointer_type): New function.
1191 (Gcc_backend::is_circular_pointer_type): New function.
1193 2011-04-26 Ian Lance Taylor <iant@google.com>
1195 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1197 2011-04-25 Ian Lance Taylor <iant@google.com>
1199 * go-gcc.cc (Gcc_backend::error_type): Implement.
1200 (Gcc_backend::string_type): Remove.
1201 (Gcc_backend::function_type): Change signature and implement.
1202 (Gcc_backend::struct_type): Change signature.
1203 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1204 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1205 (Gcc_backend::pointer_type): Check for error.
1206 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1208 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1210 * go-gcc.c (class Gcc_tree): Make get_tree const.
1211 (Gcc_backend::void_type): Implement.
1212 (Gcc_backend::bool_type): Implement.
1213 (Gcc_backend::integer_type): Implement.
1214 (Gcc_backend::float_type): Implement.
1215 (Gcc_backend::complex_type): New function.
1216 (Gcc_backend::pointer_type): New function.
1217 (Gcc_backend::make_type): New function.
1218 (type_to_tree): New function.
1220 2011-04-21 Ian Lance Taylor <iant@google.com>
1222 * go-system.h (go_assert, go_unreachable): Define.
1224 2011-04-19 Ian Lance Taylor <iant@google.com>
1226 * go-system.h: Include "intl.h".
1227 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1228 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1229 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1231 2011-04-19 Ian Lance Taylor <iant@google.com>
1233 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1235 2011-04-19 Ian Lance Taylor <iant@google.com>
1237 * go-gcc.cc (class Bblock): Define.
1238 (Gcc_backend::if_statement): Change then_block and else_block to
1240 (Gcc_backend::block): New function.
1241 (Gcc_backend::block_add_statements): New function.
1242 (Gcc_backend::block_statement): New function.
1243 (tree_to_block, block_to_tree): New functions.
1245 2011-04-18 Ian Lance Taylor <iant@google.com>
1247 * go-gcc.cc: Include "go-c.h".
1248 (class Bvariable): Define.
1249 (Gcc_backend::init_statement): New function.
1250 (Gcc_backend::global_variable): New function.
1251 (Gcc_backend::global_variable_set_init): New function.
1252 (Gcc_backend::local_variable): New function.
1253 (Gcc_backend::parameter_variable): New function.
1254 (tree_to_type, var_to_tree): New functions.
1255 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1256 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1258 2011-04-15 Ian Lance Taylor <iant@google.com>
1260 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1261 (Gcc_backend::assignment_statement): Use error_statement.
1262 (Gcc_backend::return_statement): Likewise.
1263 (Gcc_backend::if_statement): Likewise.
1264 (Gcc_backend::switch_statement): Likewise.
1265 (Gcc_backend::statement_list): Likewise.
1267 2011-04-14 Ian Lance Taylor <iant@google.com>
1269 * go-gcc.cc (Gcc_backend::error_statement): New function.
1271 2011-04-13 Ian Lance Taylor <iant@google.com>
1273 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1275 2011-04-13 Ian Lance Taylor <iant@google.com>
1277 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1278 (GO_RUNTIME_H): New variable.
1279 (go/runtime.o): New target.
1280 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1281 (go/statements.o): Likewise.
1283 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1285 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1288 2011-04-06 Ian Lance Taylor <iant@google.com>
1290 * go-gcc.cc (if_statement): Use build3_loc.
1291 (Gcc_backend::switch_statement): New function.
1292 (Gcc_backend::statement_list): New function.
1294 2011-04-06 Ian Lance Taylor <iant@google.com>
1296 * go-gcc.cc (Gcc_backend::if_statement): New function.
1297 (tree_to_stat): New function.
1298 (expr_to_tree): Renamed from expression_to_tree.
1299 (stat_to_tree): Renamed from statement_to_tree.
1301 2011-04-06 Ian Lance Taylor <iant@google.com>
1303 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1305 2011-04-04 Ian Lance Taylor <iant@google.com>
1307 * go-gcc.c (class Blabel): Define.
1308 (Gcc_backend::make_expression): New function.
1309 (get_identifier_from_string): New function.
1310 (Gcc_backend::label): New function.
1311 (Gcc_backend::label_definition_statement): New function.
1312 (Gcc_backend::goto_statement): New function.
1313 (Gcc_backend::label_address): New function.
1314 (expression_to_tree): New function.
1315 * Make-lang.in (go/expressions.o): Depend on
1316 go/gofrontend/backend.h.
1317 (go/gogo.o): Likewise.
1319 2011-04-04 Ian Lance Taylor <iant@google.com>
1321 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1322 (class Bfunction): Define.
1323 (Gcc_backend::assignment_statement): Rename from assignment.
1325 (Gcc_backend::return_statement): New function.
1326 (tree_to_function): New function.
1327 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1328 $(GIMPLE_H), and $(GO_GOGO_H).
1330 2011-04-03 Ian Lance Taylor <iant@google.com>
1332 * go-gcc.cc: New file.
1333 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1334 (go/go-gcc.o): New target.
1335 (go/go.o): Depend on go/gofrontend/backend.h.
1336 (go/statements.o): Likewise.
1338 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1340 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1342 2011-02-08 Ian Lance Taylor <iant@google.com>
1344 * go-lang.c (go_langhook_init_options_struct): Set
1345 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1347 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1349 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1350 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1352 2011-01-21 Ian Lance Taylor <iant@google.com>
1354 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1356 * go-c.h: Update declaration of go_create_gogo.
1358 2011-01-13 Ian Lance Taylor <iant@google.com>
1360 * go-backend.c: Include "rtl.h" and "target.h".
1361 (go_imported_unsafe): New function.
1362 * go-c.h (go_imported_unsafe): Declare.
1363 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1364 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1365 (go/unsafe.o): Depend on $(GO_C_H).
1367 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1370 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1373 2010-12-21 Ian Lance Taylor <iant@google.com>
1375 * Make-lang.in (check-go): Remove.
1376 (lang_checks_parallelized): Add check-go.
1377 (check_go_parallelize): Set.
1379 2010-12-13 Ian Lance Taylor <iant@google.com>
1381 * gospec.c (lang_specific_driver): Add a -o option if not linking
1382 and there is no -o option already.
1384 2010-12-07 Ian Lance Taylor <iant@google.com>
1386 PR tree-optimization/46805
1387 PR tree-optimization/46833
1388 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1390 2010-12-06 Ian Lance Taylor <iant@google.com>
1394 * go-lang.c (go_char_p): Define type and vectors.
1395 (go_search_dirs): New static variable.
1396 (go_langhook_handle_option): Use version and version/machine
1398 (go_langhook_post_options): Add non-specific -L paths.
1399 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1400 DEFAULT_TARGET_MACHINE when compiling.
1401 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1402 (Import and Export): Don't mention -L for finding import files.
1404 2010-12-03 Ian Lance Taylor <iant@google.com>
1407 * go-backend.c: New file.
1408 * go-c.h (go_type_alignment): Declare.
1409 (go_field_alignment, go_trampoline_info): Declare.
1410 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1411 (go/go-backend.o): New target.
1412 (go/go-lang.o): Make dependencies match source file.
1413 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1414 (go/gogo-tree.o): Don't depend on $(TM_H).
1416 2010-12-03 Ian Lance Taylor <iant@google.com>
1418 * config-lang.in (build_by_default): Set to no.
1420 2010-12-02 Ian Lance Taylor <iant@google.com>
1422 Go frontend added to gcc repository.
1424 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1426 Copying and distribution of this file, with or without modification,
1427 are permitted in any medium without royalty provided the copyright
1428 notice and this notice are preserved.