1 2018-06-08 Cherry Zhang <cherryyz@google.com>
3 * go-gcc.cc (class Gcc_backend): Remove
4 stack_allocation_expression method.
6 2018-02-03 Ian Lance Taylor <iant@golang.org>
8 * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
9 using structural equality.
11 2018-02-02 Ian Lance Taylor <iant@golang.org>
13 * go-gcc.cc (Gcc_backend::type_size): Return 0 for
15 (Gcc_backend::convert_expression): Don't convert if the type of
16 expr_tree is void_type_node.
17 (Gcc_backend::array_index_expression): Don't index if the type of
18 the array expression is void_type_node.
19 (Gcc_backend::init_statement): Don't initialize if the type of the
20 initializer expression is void_type_node.
21 (Gcc_backend::assignment_statement): Don't assign if the type of
22 either the left or right hand side is void_type_node.
23 (Gcc_backend::temporary_variable): Don't initialize if the type of
24 the initializer expression is void_type_node.
26 2018-02-01 Cherry Zhang <cherryyz@google.com>
28 * lang.opt (fgo-optimize): Remove RejectNegative.
29 * go-c.h (go_enable_optimize): Update declaration to take value
31 * go-lang.c (go_langhook_handle_option): Pass value to
33 * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
35 2018-01-30 Ian Lance Taylor <iant@golang.org>
37 * go-gcc.cc (Gcc_backend::convert_tree): New private method.
38 (Gcc_backend::constructor_expression): Call it.
39 (Gcc_backend::assignment_statement): Likewise.
40 (Gcc_backend::temporary_variable): Likewise.
42 2018-01-09 Cherry Zhang <cherryyz@google.com>
44 * go-gcc.cc (local_variable): Add decl_var parameter.
46 2018-01-09 Cherry Zhang <cherryyz@google.com>
48 * lang.opt (fgo-debug-escape-hash): New option.
49 * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
51 * go-lang.c (go_langhook_init): Set debug_escape_hash field.
52 * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
54 2018-01-05 Ian Lance Taylor <iant@golang.org>
56 * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
57 math_function_type_long to take one argument.
59 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
60 Alan Hayward <alan.hayward@arm.com>
61 David Sherwood <david.sherwood@arm.com>
63 * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
65 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
66 Alan Hayward <alan.hayward@arm.com>
67 David Sherwood <david.sherwood@arm.com>
69 * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
71 2018-01-03 Jakub Jelinek <jakub@redhat.com>
73 Update copyright years.
75 * gccgo.texi: Bump @copyrights-go year.
77 2017-12-12 Tony Reix <tony.reix@atos.net>
78 Ian Lance Taylor <iant@golang.org>
80 * go-lang.c (TARGET_AIX): Define if not defined.
81 (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
83 2017-12-01 Ian Lance Taylor <iant@golang.org>
85 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
86 __builtin_unreachable.
87 (Gcc_backend::function): Add does_not_return parameter.
89 2017-12-01 Than McIntosh <thanm@google.com>
91 * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
93 * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
95 2017-11-28 Jakub Jelinek <jakub@redhat.com>
97 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
98 build2_loc instead of build3_loc.
100 2017-11-14 Than McIntosh <thanm@google.com>
102 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
104 2017-10-11 Tony Reix <tony.reix@atos.net>
106 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
107 system header files, as is done in ../system.h.
109 2017-10-05 Ian Lance Taylor <iant@golang.org>
111 * Make-lang.in (GO_OBJS): Add go/names.o.
113 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
114 Alan Hayward <alan.hayward@arm.com>
115 David Sherwood <david.sherwood@arm.com>
117 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
119 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
120 Alan Hayward <alan.hayward@arm.com>
121 David Sherwood <david.sherwood@arm.com>
123 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
125 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
126 Alan Hayward <alan.hayward@arm.com>
127 David Sherwood <david.sherwood@arm.com>
129 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
131 2017-08-07 Martin Liska <mliska@suse.cz>
133 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
134 and not __no_split_stack__.
136 2017-07-27 Tony Reix <tony.reix@atos.net>
138 * go-backend.c (go_write_export_data): Use EXCLUDE section for
141 2017-06-09 Ian Lance Taylor <iant@golang.org>
143 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
144 on, disable implicit -forder-blocks-and-partition.
146 2017-05-12 Than McIntosh <thanm@google.com>
148 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
150 2017-05-11 Ian Lance Taylor <iant@google.com>
153 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
154 DECL_EXTERNAL, clear TREE_STATIC.
156 2017-05-10 Than McIntosh <thanm@google.com>
158 * go-backend.c: Include "go-c.h".
159 * go-gcc.cc (Gcc_backend::write_export_data): New method.
161 2017-05-10 Ian Lance Taylor <iant@google.com>
163 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
165 * Make-lang.in (GO_OBJS): Add go/wb.o.
167 2017-03-28 Than McIntosh <thanm@google.com>
170 * go-gcc.cc (Gcc_backend::return_statement): Check for
171 void_type_node when checking result size.
173 2017-02-20 Ian Lance Taylor <iant@golang.org>
176 * lang.opt (-fgo-relative-import-path): Change space to tab.
178 2017-02-07 Richard Biener <rguenther@suse.de>
180 PR tree-optimization/79256
182 * go-backend.c (go_field_alignment): Adjust.
184 2017-01-11 Than McIntosh <thanm@google.com>
186 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
188 2017-01-01 Jakub Jelinek <jakub@redhat.com>
190 Update copyright years.
192 * gccgo.texi: Bump @copyrights-go year.
194 2016-12-16 Than McIntosh <thanm@google.com>
196 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
198 (Gcc_backend::init_statement): Likewise.
199 (Gcc_backend::assignment_statement): Likewise.
200 (Gcc_backend::if_statement): Likewise.
202 2016-12-06 Than McIntosh <thanm@google.com>
204 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
207 2016-11-22 Than McIntosh <thanm@google.com>
209 * go-gcc.cc (char_needs_encoding): Remove.
210 (needs_encoding, fetch_utf8_char, encode_id): Remove.
211 (Gcc_backend::global_variable): Add asm_name parameter. Don't
212 compute asm_name here.
213 (Gcc_backend::implicit_variable): Likewise.
214 (Gcc_backend::implicit_variable_reference): Likewise.
215 (Gcc_backend::immutable_struct): Likewise.
216 (Gcc_backend::immutable_struct_reference): Likewise.
217 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
219 2016-11-22 Ian Lance Taylor <iant@google.com>
221 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
222 __builtin_frame_address.
224 2016-10-25 David Malcolm <dmalcolm@redhat.com>
226 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
227 from result of GET_MODE_CLASS. Minor formatting fixes.
229 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
231 * go-backend.c: Include memmodel.h.
233 2016-10-10 Than McIntosh <thanm@google.com>
235 * go-gcc.h: New file.
236 * go-c.h (struct go_create_gogo_args): Add backend and linemap
238 * go-lang.c: Include "go-gcc.h".
239 (go_langhook_init): Set linemap and backend fields of args.
240 * go-gcc.cc: Include "go-gcc.h".
241 * go-linemap.cc: Include "go-gcc.h".
243 2016-10-10 Than McIntosh <thanm@google.com>
245 * go-linemap.cc (Gcc_linemap::location_line): New method.
247 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
249 * config-lang.in (lang_requires_boot_languages): Delete.
251 2016-10-06 Chris Manghane <cmang@google.com>
253 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
256 2016-09-27 Than McIntosh <thanm@google.com>
258 * go-linemap.cc (Gcc_linemap::to_string): New method.
260 2016-09-23 Than McIntosh <thanm@google.com>
262 * go-gcc-diagnostics.cc: New file.
263 * go-location.h (Location): Remove operator source_location. Add
265 * go-system.h: #include <sstream>.
266 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
267 go/go-gcc-diagnostics.o.
268 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
270 2016-09-23 Chris Manghane <cmang@google.com>
273 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
274 to pass arguments in the correct order.
276 2016-09-22 Ian Lance Taylor <iant@golang.org>
278 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
279 __builtin_frame_address.
281 2016-09-11 Ian Lance Taylor <iant@golang.org>
283 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
284 ctz, ctzll, bswap32, bswap64.
286 2016-09-10 Ian Lance Taylor <iant@golang.org>
288 * go-backend.c (go_trampoline_info): Remove.
289 * go-c.h (go_trampoline_info): Don't declare.
291 2016-09-09 Than McIntosh <thanm@google.com>
293 * go-sha1.cc: New file.
294 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
295 (CFLAGS-go/go-sha1.o): New variable.
297 2016-08-29 Ian Lance Taylor <iant@google.com>
299 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
300 * go-c.h (struct go_create_gogo_args): Define.
301 (go_create_gogo): Change declaration to take struct pointer.
302 * go-lang.c (go_c_header): New static variable.
303 (go_langhook_init): Update call to go_create_gogo.
304 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
305 -fgo-compiling-runtime.
307 2016-08-09 Ian Lance Taylor <iant@google.com>
309 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
311 (Compiler Directives): New chapter.
312 (Function Names): Describe using //go:linkname. Suggest using
313 -fgo-pkgpath rather than -fgo-prefix.
315 2016-08-08 Ian Lance Taylor <iant@google.com>
318 * go-gcc.cc (Gcc_backend::function_type): If the return type is
319 zero bytes, treat the function as returning void.
320 (return_statement): If the return type is zero bytes, don't
321 actually return any values.
323 2016-08-05 Ian Lance Taylor <iant@google.com>
326 * go-gcc.cc (char_needs_encoding): New static function.
327 (needs_encoding, fetch_utf8_char): New static functions.
328 (encode_id): New static function.
329 (Gcc_backend::global_variable): Set asm name if the name is not
331 (Gcc_backend::implicit_variable): Likewise.
332 (Gcc_backend::implicit_variable_reference): Likewise.
333 (Gcc_backend::immutable_struct): Likewise.
334 (Gcc_backend::immutable_struct_reference): Likewise.
335 (Gcc_backend::function): Likewise.
337 2016-08-02 Chris Manghane <cmang@google.com>
339 * lang.opt: Add -fgo-debug-escape option.
340 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
341 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
344 2016-05-06 Chris Manghane <cmang@google.com>
346 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
349 2016-04-29 Chris Manghane <cmang@google.com>
351 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
353 2016-04-18 Michael Matz <matz@suse.de>
355 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
357 2016-02-12 Jakub Jelinek <jakub@redhat.com>
359 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
360 neighbour -> neighbor.
361 * gccgo.texi: Likewise.
363 2016-01-27 Ian Lance Taylor <iant@google.com>
365 * go-lang.c (go_langhook_init_options_struct): Default to
366 -fkeep-gc-roots-live.
368 2016-01-04 Jakub Jelinek <jakub@redhat.com>
370 Update copyright years.
372 * gccgo.texi: Bump @copyrights-go year.
374 2015-12-21 Ian Lance Taylor <iant@google.com>
376 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
377 t_ and orig_type_ fields. Add new two parameter constructor. Add
378 get_tree and get_decl methods.
379 (Gcc_backend::var_expression): Pass location to var get_tree.
380 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
381 two parameter constructor for Bvariable.
382 (Gcc_backend::global_variable_set_init): Don't remove
383 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
384 (Gcc_backend::write_global_definitions): Likewise.
385 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
386 (Gcc_backend::block): Likewise.
387 (Gcc_backend::implicit_variable_set_init): Likewise.
388 (Gcc_backend::immutable_struct_set_init): Likewise.
389 (Gcc_backend::function_set_parameters): Likewise.
391 2015-12-21 Ian Lance Taylor <iant@google.com>
393 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
394 add a VIEW_CONVERT_EXPR to the tree.
395 (Gcc_backend::global_variable_set_init): Remove any
397 (Gcc_backend::write_global_definitions): Likewise.
399 2015-11-30 Ian Lance Taylor <iant@google.com>
402 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
403 TYPE_STRING_FLAG on a variant type.
405 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
407 * go-backend.c: Remove unused header files.
408 * go-gcc.cc: Likewise.
409 * go-lang.c: Likewise.
410 * gospec.c: Likewise.
412 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
414 * go-backend.c: Reorder #include's and remove duplicates.
415 * go-lang.c: Likewise.
417 2015-10-20 Alan Modra <amodra@gmail.com>
420 * gospec.c (saw_opt_m32): Rename to..
421 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
423 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
425 2015-10-01 Ian Lance Taylor <iant@google.com>
428 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
429 TARGET_CAN_SPLIT_STACK_64BIT is defined.
431 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
434 * gospec.c (lang_specific_driver): Set appropriate split stack
435 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
437 2015-09-10 Chris Manghane <cmang@google.com>
439 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
440 unrepresentable size.
442 2015-08-24 Marek Polacek <polacek@redhat.com>
444 PR tree-optimization/67284
445 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
446 Set TREE_THIS_VOLATILE.
447 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
448 Pass false to the rest of define_builtin calls.
450 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
452 * go-lang.c (go_langhook_init_options_struct): Don't set
454 (go_langhook_post_options): Set it here instead.
456 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
458 * gofrontend/backend.h: Fix double word typos.
459 * gofrontend/expressions.cc: Same.
462 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
464 * go-backend.c: Adjust includes.
465 * go-gcc.cc: Likewise.
466 * go-lang.c: Likewise.
468 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
470 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
472 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
474 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
475 * go-gcc.cc: Likewise.
476 * go-lang.c: Likewise.
477 * go-system.h: Likewise.
479 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
481 * go-backend.c : Adjust include files.
482 * go-gcc.cc : Likewise.
483 * go-lang.c : Likewise.
485 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
487 * go-gcc.cc (write_global_definitions): Remove call to
488 finalize_compilation_unit.
489 Remove Go specific debug generation.
490 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
491 (go_langhook_write_globals): Remove.
492 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
494 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
496 * go-backend.c: Adjust includes for restructured coretypes.h.
498 * go-gcc.cc: Likewise.
499 * go-lang.c: Likewise.
501 2015-04-30 Chris Manghane <cmang@google.com>
503 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
506 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
508 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
510 2015-04-17 Chris Manghane <cmang@google.com>
512 * Make-lang.in (GO_OBJS): Add go/escape.o.
514 2015-02-02 Ian Lance Taylor <iant@google.com>
518 * go-gcc.cc (Gcc_backend::type_size): Change return type to
520 (Gcc_backend::type_alignment): Likewise.
521 (Gcc_backend::type_field_alignment): Likewise.
522 (Gcc_backend::type_field_offset): Likewise.
523 (Gcc_backend::implicit_variable): Change alignment parameter type
526 2015-01-23 Ian Lance Taylor <iant@google.com>
529 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
532 * gccgo.texi (C Interoperability): Mention that people should use
535 2015-01-23 Ian Lance Taylor <iant@google.com>
538 * go-lang.c (go_langhook_init_options_struct): Set default
540 (go_langhook_post_options): If debug_info_level is still the
541 default, make sure write_symbols is set.
542 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
544 2015-01-16 Richard Henderson <rth@redhat.com>
546 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
547 (Gcc_backend::static_chain_variable): New method.
549 2015-01-09 Ian Lance Taylor <iant@google.com>
551 * config-lang.in (lang_dirs): Define.
553 2015-01-09 Michael Collison <michael.collison@linaro.org>
555 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
556 input.h, alias.h, symtab.h, options.h, fold-const.h,
557 wide-int.h, and inchash.h due to flattening of tree.h.
559 * go-backend.c: Ditto.
561 2015-01-07 Chris Manghane <cmang@google.com>
564 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
567 2015-01-06 Chris Manghane <cmang@google.com>
569 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
570 initialize zero-sized fields, just evaluate the values for side
573 2015-01-05 Jakub Jelinek <jakub@redhat.com>
575 Update copyright years.
577 * gccgo.texi: Bump @copyrights-go year.
579 2014-12-19 Chris Manghane <cmang@google.com>
581 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
582 construct arrays of zero-sized values.
584 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
586 * go-lang.c: Remove redundant enum from machine_mode.
588 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
590 * go-gcc.cc: Adjust include files.
592 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
594 * go-gcc.cc: Adjust include files.
597 2014-10-23 Ian Lance Taylor <iant@google.com>
599 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
600 mpc_t parameter instead of two mpfr_t parameters.
602 2014-09-15 Jakub Jelinek <jakub@redhat.com>
604 * Make-lang.in (check_go_parallelize): Change to just an upper bound
607 2014-09-03 Chris Manghane <cmang@google.com>
609 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
610 parameter. Add is_hidden parameter.
611 (Gcc_backend::implicit_variable_set_init): New method.
612 (Gcc_backend::implicit_variable_reference): New method.
614 2014-08-08 Ian Lance Taylor <iant@google.com>
616 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
619 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
621 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
622 symtab_get_node to symtab_node::get.
624 2014-06-13 Ian Lance Taylor <iant@google.com>
627 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
628 ld, add -t option to avoid warning about common symbol changing
631 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
633 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
634 symtab_get_node(var_decl)->implicit_section.
636 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
638 * go-gcc.cc (global_variable_set_init): Use
639 set_decl_section_name.
641 2014-06-04 Ian Lance Taylor <iant@google.com>
643 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
644 alignment parameters. Permit init parameter to be NULL.
646 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
648 * go-gcc.cc: Include builtins.h.
650 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
652 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
654 2014-05-06 Chris Manghane <cmang@google.com>
656 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
657 (Gcc_backend::boolean_constant_expression): New method.
658 (Gcc_backend::zero_expression): Use this->make_expression rather
660 (Gcc_backend::var_expression): Likewise.
661 (Gcc_backend::integer_constant_expression): Likewise.
662 (Gcc_backend::float_constant_expression): Likewise.
663 (Gcc_backend::complex_constant_expression): Likewise.
664 (Gcc_backend::struct_field_expression): Likewise.
665 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
666 (tree_to_function, tree_to_block): Remove functions.
667 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
668 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
670 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
671 Mike Stump <mikestump@comcast.net>
672 Richard Sandiford <rdsandiford@googlemail.com>
674 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
676 2014-05-06 Chris Manghane <cmang@google.com>
678 * go-c.h (go_create_gogo): Update declaration to add
679 check_divide_zero and check_divide_overflow parameters.
680 * go-lang.c (go_langhook_init): Pass new arguments to
683 2014-05-05 Chris Manghane <cmang@google.com>
685 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
686 gc_root_variable. Add name and is_constant parameters.
688 2014-05-05 Chris Manghane <cmang@google.com>
690 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
692 (Gcc_backend::temporary_variable): Check for erroneous function.
694 2014-04-30 Chris Manghane <cmang@google.com>
696 * go-backend.c: #include "diagnostics.h".
697 (saw_errors): New function.
698 * go-c.h (saw_errors): Declare.
699 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
701 2014-04-30 Chris Manghane <cmang@google.com>
703 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
704 calling into Go frontend.
705 (go_langhook_type_for_mode): Likewise.
706 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
708 2014-04-30 Chris Manghane <cmang@google.com>
710 * go-gcc.cc: #include "langhooks.h".
711 (Gcc_backend::Gcc_backend): Add constructor.
712 (Gcc_backend::lookup_function): New function.
713 (Gcc_backend::define_builtin): New private function.
714 (Gcc_backend::gcc_backend): Remove.
715 (go_get_backend): Use new to create new Gcc_backend.
717 2014-04-25 Chris Manghane <cmang@google.com>
719 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
720 (Gcc_backend::return_statement): Push and pop function.
721 (Gcc_backend::label): Likewise.
722 (Gcc_backend::function_defer_statement): Likewise.
723 (Gcc_backend::switch_statement): Add function parameter.
724 (Gcc_backend::block): Don't permit function to be NULL.
725 (Gcc_backend::temporary_variable): Change go_assert to
727 (Gcc_backend::gc_root_variable): New function.
728 (Gcc_backend::write_global_definitions): New function.
730 2014-04-22 Chris Manghane <cmang@google.com>
732 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
733 call to create_tmp_var. Require that function be non-NULL.
735 2014-04-17 Chris Manghane <cmang@google.com>
737 * go-gcc.cc (Gcc_backend::named_constant_expression): New
740 2014-04-14 Chris Manghane <cmang@google.com>
742 * go-gcc.cc: Include "convert.h".
743 (Gcc_backend::string_constant_expression): New function.
744 (Gcc_backend::real_part_expression): Likewise.
745 (Gcc_backend::imag_part_expression): Likewise.
746 (Gcc_backend::complex_expression): Likewise.
747 (Gcc_backend::constructor_expression): Likewise.
748 (Gcc_backend::array_constructor_expression): Likewise.
749 (Gcc_backend::pointer_offset_expression): Likewise.
750 (Gcc_backend::array_index_expression): Likewise.
751 (Gcc_backend::call_expression): Likewise.
752 (Gcc_backend::exception_handler_statement): Likewise.
753 (Gcc_backend::function_defer_statement): Likewise.
754 (Gcc_backend::function_set_parameters): Likewise.
755 (Gcc_backend::function_set_body): Likewise.
756 (Gcc_backend::convert_expression): Handle various type
759 2014-03-03 Ian Lance Taylor <iant@google.com>
761 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
763 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
766 2014-01-24 Chris Manghane <cmang@google.com>
768 * go-gcc.cc (Gcc_backend::unary_expression): New function.
770 2014-01-16 Chris Manghane <cmang@google.com>
772 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
774 (operator_to_tree_code): New static function.
775 (Gcc_backend::binary_expression): New function.
777 2014-01-14 Chris Manghane <cmang@google.com>
779 * go-gcc.cc (Gcc_backend::compound_expression): New function.
780 (Gcc_backend::conditional_expression): New function.
782 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
784 Update copyright years
786 2014-01-02 Tobias Burnus <burnus@net-b.de>
788 * gccgo.texi: Bump @copying's copyright year.
790 2013-12-16 Chris Manghane <cmang@google.com>
792 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
794 2013-12-11 Ian Lance Taylor <iant@google.com>
796 * go-lang.c (go_langhook_post_options): Disable sibling calls by
799 2013-12-10 Ian Lance Taylor <iant@google.com>
801 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
804 2013-12-05 Ian Lance Taylor <iant@google.com>
806 Revert this change; no longer required.
807 2013-11-06 Ian Lance Taylor <iant@google.com>
809 * go-lang.c (go_langhook_post_options): If
810 -fisolate-erroneous-paths was turned on by an optimization option,
813 2013-11-23 Ian Lance Taylor <iant@google.com>
815 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
818 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
820 * go-gcc.cc: Add required include files from gimple.h.
821 * go-lang.c: Likewise
823 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
825 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
826 tree_to_shwi throughout.
828 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
830 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
831 tree_fits_shwi_p throughout.
833 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
835 * go-lang.c: Include only gimplify.h and gimple.h as needed.
837 2013-11-14 Diego Novillo <dnovillo@google.com>
839 * go-backend.c: Include stor-layout.h.
840 * go-gcc.cc: Include stringpool.h.
841 Include stor-layout.h.
843 * go-lang.c: Include stor-layout.h.
845 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
847 * go-lang.c: Include gimplify.h.
849 2013-11-06 Ian Lance Taylor <iant@google.com>
851 * go-lang.c (go_langhook_post_options): If
852 -fisolate-erroneous-paths was turned on by an optimization option,
855 2013-10-14 Chris Manghane <cmang@google.com>
857 * go-gcc.cc (Gcc_backend::address_expression): New function.
859 2013-10-11 Chris Manghane <cmang@google.com>
861 * go-gcc.cc (Gcc_backend::function_code_expression): New
864 2013-10-10 Chris Manghane <cmang@google.com>
866 * go-gcc.cc (Gcc_backend::error_function): New function.
867 (Gcc_backend::function): New function.
868 (Gcc_backend::make_function): New function.
869 (function_to_tree): New function.
871 2013-10-04 Chris Manghane <cmang@google.com>
873 * go-gcc.cc (Gcc_backend::convert_expression): New function.
875 2013-10-02 Chris Manghane <cmang@google.com>
877 * go-gcc.cc: Include "real.h" and "realmpfr.h".
878 (Gcc_backend::integer_constant_expression): New function.
879 (Gcc_backend::float_constant_expression): New function.
880 (Gcc_backend::complex_constant_expression): New function.
882 2013-09-30 Chris Manghane <cmang@google.com>
884 * go-gcc.cc (Gcc_backend::error_expression): New function.
885 (Gcc_backend::var_expression): New function.
886 (Gcc_backend::indirect_expression): New function.
888 2013-09-25 Tom Tromey <tromey@redhat.com>
890 * Make-lang.in (gospec.o): Remove.
891 (CFLAGS-go/gospec.o): New variable.
892 (GCCGO_OBJS): Update to use go/gospec.o.
894 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
895 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
896 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
897 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
898 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
899 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
900 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
901 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
902 (go/unsafe.o): Remove.
903 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
904 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
906 2013-09-25 Tom Tromey <tromey@redhat.com>
908 * Make-lang.in (gospec.o): Don't use subshell.
910 2013-08-28 Ian Lance Taylor <iant@google.com>
912 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
913 the struct is not hidden.
914 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
916 2013-08-06 Ian Lance Taylor <iant@google.com>
918 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
919 compute_reloc_for_constant.
921 2013-08-02 Ian Lance Taylor <iant@google.com>
923 * go-gcc.cc (immutable_struct_set_init): Always call
924 resolve_unique_section.
926 2013-07-24 Ian Lance Taylor <iant@google.com>
928 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
929 fields, recreate those fields with the first one with a non-zero
932 2013-07-23 Ian Lance Taylor <iant@google.com>
934 * go-backend.c: Don't #include "rtl.h".
935 (go_imported_unsafe): Don't call init_varasm_once.
936 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
938 2013-07-23 Ian Lance Taylor <iant@google.com>
940 * go-lang.c: Don't #include "except.h".
941 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
943 2013-06-18 Ian Lance Taylor <iant@google.com>
945 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
947 (Gcc_backend::immutable_struct_set_init): Likewise.
949 2013-05-16 Jason Merrill <jason@redhat.com>
951 * Make-lang.in (go1$(exeext)): Use link mutex.
953 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
955 * gospec.c: pass -u pthread_create to linker when static linking.
957 2012-12-21 Ian Lance Taylor <iant@google.com>
960 * go-system.h: Don't include <cstdio>.
962 2012-12-18 Ian Lance Taylor <iant@google.com>
965 * gospec.c: Revert last patch.
967 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
970 * gospec.c (LIBATOMIC): Define.
971 (LIBATOMIC_PROFILE): Define.
972 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
974 2012-11-29 Ian Lance Taylor <iant@google.com>
976 * go-gcc.cc: Include "output.h".
977 (global_variable): Add is_unique_section parameter.
978 (global_variable_set_init): Adjust unique section if necessary.
979 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
981 2012-11-17 Diego Novillo <dnovillo@google.com>
983 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
985 * go-lang.c: Use new vec API in vec.h.
987 2012-11-16 Ian Lance Taylor <iant@google.com>
989 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
990 (go1$(exeext)): Likewise.
992 2012-10-30 Ian Lance Taylor <iant@google.com>
994 * lang.opt (-fgo-relative-import-path): New option.
995 * go-lang.c (go_relative_import_path): New static variable.
996 (go_langhook_init): Pass go_relative_import_path to
998 (go_langhook_handle_option): Handle -fgo-relative-import-path.
999 * go-c.h (go_create_gogo): Update declaration.
1000 * gccgo.texi (Invoking gccgo): Document
1001 -fgo-relative-import-path.
1003 2012-09-17 Ian Lance Taylor <iant@google.com>
1005 * config-lang.in (target_libs): Add target-libbacktrace.
1007 2012-09-16 Ian Lance Taylor <iant@google.com>
1009 * Make-lang.in (go/gogo.o): Depend on filenames.h.
1011 2012-08-14 Diego Novillo <dnovillo@google.com>
1013 Merge from cxx-conversion branch. Configury.
1015 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1016 * go-gcc.cc: Likewise.
1017 * go-system.h: Likewise.
1019 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
1021 * go-lang.c (lang_decl): Add variable_size GTY option.
1023 2012-05-09 Ian Lance Taylor <iant@google.com>
1025 * lang.opt: Add -fgo-pkgpath.
1026 * go-lang.c (go_pkgpath): New static variable.
1027 (go_prefix): New static variable.
1028 (go_langhook_init): Pass go_pkgpath and go_prefix to
1030 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
1031 -fgo-prefix handling to just set go_prefix.
1032 * go-c.h (go_set_prefix): Don't declare.
1033 (go_create_gogo): Add pkgpath and prefix to declaration.
1034 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1035 to pkgpath. Don't include the package name in the asm name.
1036 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
1037 docs for -fgo-prefix.
1039 2012-04-23 Ian Lance Taylor <iant@google.com>
1041 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1043 2012-04-20 Ian Lance Taylor <iant@google.com>
1045 * lang.opt: Add -fgo-check-divide-zero and
1046 -fgo-check-divide-overflow.
1047 * gccgo.texi (Invoking gccgo): Document new options.
1049 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1051 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1052 with NULL_TREE type instead of void_type_node.
1054 2012-03-09 Ian Lance Taylor <iant@google.com>
1056 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1057 to the lhs type if necessary.
1059 2012-03-08 Ian Lance Taylor <iant@google.com>
1061 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1062 zero-sized variable.
1063 (go_non_zero_struct): New global variable.
1064 (Gcc_backend::non_zero_size_type): New function.
1065 (Gcc_backend::global_variable): Don't build an assignment for a
1067 * go-c.h (go_non_zero_struct): Declare.
1068 * config-lang.in (gtfiles): Add go-c.h.
1070 2012-02-29 Ian Lance Taylor <iant@google.com>
1072 * go-gcc.cc (class Gcc_tree): Add set_tree method.
1073 (set_placeholder_pointer_type): When setting to a pointer to
1074 error, set to error_mark_node.
1076 2012-02-23 Richard Guenther <rguenther@suse.de>
1078 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1079 build_distinct_type_copy.
1081 2012-02-17 Ian Lance Taylor <iant@google.com>
1083 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1085 2012-02-17 Ian Lance Taylor <iant@google.com>
1087 * gospec.c (lang_specific_driver): If linking, and no -o option
1090 2012-02-14 Ian Lance Taylor <iant@google.com>
1093 * Make-lang.in (gccgo-cross$(exeext)): New target.
1094 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1096 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1097 gccgo-cross$(exeext) does not exist.
1099 2012-02-07 Ian Lance Taylor <iant@google.com>
1101 * gccgo.texi (Function Names): Document //extern instead of
1104 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1107 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1108 return build_nonstandard_integer_type result if possible.
1110 2012-01-21 Ian Lance Taylor <iant@google.com>
1112 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1113 (Gcc_backend::type_alignment): Likewise.
1114 (Gcc_backend::type_field_alignment): Likewise.
1115 (Gcc_backend::type_field_offset): Likewise.
1117 2012-01-20 Ian Lance Taylor <iant@google.com>
1119 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1121 (Gcc_backend::set_placeholder_struct_type): Likewise.
1123 2012-01-17 Ian Lance Taylor <iant@google.com>
1125 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1126 BASE.s rather than -o BASE.o.
1128 2012-01-11 Ian Lance Taylor <iant@google.com>
1130 * go-lang.c (go_langhook_init): Initialize void_list_node before
1131 calling go_create_gogo.
1133 2012-01-10 Ian Lance Taylor <iant@google.com>
1135 * go-gcc.cc (Gcc_backend::type_size): New function.
1136 (Gcc_backend::type_alignment): New function.
1137 (Gcc_backend::type_field_alignment): New function.
1138 (Gcc_backend::type_field_offset): New function.
1139 * go-backend.c (go_type_alignment): Remove.
1140 * go-c.h (go_type_alignment): Don't declare.
1142 2011-12-27 Ian Lance Taylor <iant@google.com>
1144 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1145 build_distinct_type_copy rather than build_variant_type_copy.
1146 (Gcc_backend::set_placeholder_array_type): Likewise.
1147 (Gcc_backend::named_type): Add special handling for builtin
1150 2011-12-22 Ian Lance Taylor <iant@google.com>
1152 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1153 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1154 (Gcc_backend::set_placeholder_struct_type): Likewise.
1155 (Gcc_backend::set_placeholder_array_type): Likewise.
1156 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1158 2011-12-13 Ian Lance Taylor <iant@google.com>
1160 * go-backend.c: #include "simple-object.h" and "intl.h".
1161 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1162 (GO_EXPORT_SECTION_NAME): Likewise.
1163 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1164 (go_read_export_data): New function.
1165 * go-c.h (go_read_export_data): Declare.
1167 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1168 Ian Lance Taylor <iant@google.com>
1170 * go-location.h: New file.
1171 * go-linemap.cc: New file.
1172 * go-gcc.cc: Change all uses of source_location to Location.
1173 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1174 (GO_LINEMAP_H): New variable.
1175 (GO_LEX_H): Use $(GO_LINEMAP_H).
1176 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1177 (go/go-linemap.o): New target.
1179 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1181 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1183 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1185 * lang.opt: Add fgo-optimize-.
1186 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1187 * go-c.h (go_enable_optimize): Declare.
1188 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1189 (GO_EXPORT_H): Define.
1190 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1191 (GO_AST_DUMP_H): Define.
1192 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1193 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1194 (go/types.o): Likewise.
1195 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1196 (go/go-optimize.o): New target.
1198 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1200 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1201 (go/go-lang.o): Remove explicit compilation rule.
1203 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1205 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1207 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1209 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1210 (go/ast-dump.o): New target.
1211 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1212 (go/statements.o): Likewise.
1214 2011-07-06 Richard Guenther <rguenther@suse.de>
1216 * go-lang.c (go_langhook_init):
1217 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1219 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1221 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1223 * go-backend.c: Include common/common-target.h.
1224 (go_write_export_data): Use targetm_common.have_named_sections.
1225 * go-lang.c: Include common/common-target.h.
1226 (go_langhook_init_options_struct): Use
1227 targetm_common.supports_split_stack.
1229 2011-06-13 Ian Lance Taylor <iant@google.com>
1231 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1233 2011-06-10 Ian Lance Taylor <iant@google.com>
1235 * go-gcc.cc: Include "toplev.h".
1236 (Gcc_backend::immutable_struct): New function.
1237 (Gcc_backend::immutable_struct_set_init): New function.
1238 (Gcc_backend::immutable_struct_reference): New function.
1239 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1241 2011-06-09 Ian Lance Taylor <iant@google.com>
1243 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1245 2011-06-07 Richard Guenther <rguenther@suse.de>
1247 * go-lang.c (go_langhook_init): Do not set
1248 size_type_node or call set_sizetype.
1250 2011-05-27 Ian Lance Taylor <iant@google.com>
1252 * go-backend.c: Include "output.h".
1253 (go_write_export_data): New function.
1254 * go-c.h (go_write_export_data): Declare.
1255 * Make-lang.in (go/go-backend.o): Depend on output.h.
1256 (go/export.o): Depend on $(GO_C_H). Do not depend on
1257 $(MACHMODE_H), output.h, or $(TARGET_H).
1259 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1261 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1262 (gccgo$(exeext)): Use libcommon-target.a.
1264 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1266 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1268 2011-05-13 Ian Lance Taylor <iant@google.com>
1270 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1271 for multiple results, check that all fields types have a size.
1272 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1274 2011-05-12 Ian Lance Taylor <iant@google.com>
1276 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1278 (Gcc_backend::parameter_variable): Likewise.
1280 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1282 * go-lang.c (global_bindings_p): Return bool and simplify.
1284 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1286 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1288 2011-05-04 Ian Lance Taylor <iant@google.com>
1290 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1291 (Gcc_backend::fill_in_struct): New function.
1292 (Gcc_backend::array_type): Implement.
1293 (Gcc_backend::fill_in_array): New function.
1294 (Gcc_backend::placeholder_pointer_type): New function.
1295 (Gcc_backend::set_placeholder_pointer_type): New function.
1296 (Gcc_backend::set_placeholder_function_type): New function.
1297 (Gcc_backend::placeholder_struct_type): New function.
1298 (Gcc_backend::set_placeholder_struct_type): New function.
1299 (Gcc_backend::placeholder_array_type): New function.
1300 (Gcc_backend::set_placeholder_array_type): New function.
1301 (Gcc_backend::named_type): New function.
1302 (Gcc_backend::circular_pointer_type): New function.
1303 (Gcc_backend::is_circular_pointer_type): New function.
1305 2011-04-26 Ian Lance Taylor <iant@google.com>
1307 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1309 2011-04-25 Ian Lance Taylor <iant@google.com>
1311 * go-gcc.cc (Gcc_backend::error_type): Implement.
1312 (Gcc_backend::string_type): Remove.
1313 (Gcc_backend::function_type): Change signature and implement.
1314 (Gcc_backend::struct_type): Change signature.
1315 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1316 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1317 (Gcc_backend::pointer_type): Check for error.
1318 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1320 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1322 * go-gcc.c (class Gcc_tree): Make get_tree const.
1323 (Gcc_backend::void_type): Implement.
1324 (Gcc_backend::bool_type): Implement.
1325 (Gcc_backend::integer_type): Implement.
1326 (Gcc_backend::float_type): Implement.
1327 (Gcc_backend::complex_type): New function.
1328 (Gcc_backend::pointer_type): New function.
1329 (Gcc_backend::make_type): New function.
1330 (type_to_tree): New function.
1332 2011-04-21 Ian Lance Taylor <iant@google.com>
1334 * go-system.h (go_assert, go_unreachable): Define.
1336 2011-04-19 Ian Lance Taylor <iant@google.com>
1338 * go-system.h: Include "intl.h".
1339 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1340 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1341 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1343 2011-04-19 Ian Lance Taylor <iant@google.com>
1345 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1347 2011-04-19 Ian Lance Taylor <iant@google.com>
1349 * go-gcc.cc (class Bblock): Define.
1350 (Gcc_backend::if_statement): Change then_block and else_block to
1352 (Gcc_backend::block): New function.
1353 (Gcc_backend::block_add_statements): New function.
1354 (Gcc_backend::block_statement): New function.
1355 (tree_to_block, block_to_tree): New functions.
1357 2011-04-18 Ian Lance Taylor <iant@google.com>
1359 * go-gcc.cc: Include "go-c.h".
1360 (class Bvariable): Define.
1361 (Gcc_backend::init_statement): New function.
1362 (Gcc_backend::global_variable): New function.
1363 (Gcc_backend::global_variable_set_init): New function.
1364 (Gcc_backend::local_variable): New function.
1365 (Gcc_backend::parameter_variable): New function.
1366 (tree_to_type, var_to_tree): New functions.
1367 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1368 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1370 2011-04-15 Ian Lance Taylor <iant@google.com>
1372 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1373 (Gcc_backend::assignment_statement): Use error_statement.
1374 (Gcc_backend::return_statement): Likewise.
1375 (Gcc_backend::if_statement): Likewise.
1376 (Gcc_backend::switch_statement): Likewise.
1377 (Gcc_backend::statement_list): Likewise.
1379 2011-04-14 Ian Lance Taylor <iant@google.com>
1381 * go-gcc.cc (Gcc_backend::error_statement): New function.
1383 2011-04-13 Ian Lance Taylor <iant@google.com>
1385 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1387 2011-04-13 Ian Lance Taylor <iant@google.com>
1389 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1390 (GO_RUNTIME_H): New variable.
1391 (go/runtime.o): New target.
1392 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1393 (go/statements.o): Likewise.
1395 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1397 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1400 2011-04-06 Ian Lance Taylor <iant@google.com>
1402 * go-gcc.cc (if_statement): Use build3_loc.
1403 (Gcc_backend::switch_statement): New function.
1404 (Gcc_backend::statement_list): New function.
1406 2011-04-06 Ian Lance Taylor <iant@google.com>
1408 * go-gcc.cc (Gcc_backend::if_statement): New function.
1409 (tree_to_stat): New function.
1410 (expr_to_tree): Renamed from expression_to_tree.
1411 (stat_to_tree): Renamed from statement_to_tree.
1413 2011-04-06 Ian Lance Taylor <iant@google.com>
1415 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1417 2011-04-04 Ian Lance Taylor <iant@google.com>
1419 * go-gcc.c (class Blabel): Define.
1420 (Gcc_backend::make_expression): New function.
1421 (get_identifier_from_string): New function.
1422 (Gcc_backend::label): New function.
1423 (Gcc_backend::label_definition_statement): New function.
1424 (Gcc_backend::goto_statement): New function.
1425 (Gcc_backend::label_address): New function.
1426 (expression_to_tree): New function.
1427 * Make-lang.in (go/expressions.o): Depend on
1428 go/gofrontend/backend.h.
1429 (go/gogo.o): Likewise.
1431 2011-04-04 Ian Lance Taylor <iant@google.com>
1433 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1434 (class Bfunction): Define.
1435 (Gcc_backend::assignment_statement): Rename from assignment.
1437 (Gcc_backend::return_statement): New function.
1438 (tree_to_function): New function.
1439 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1440 $(GIMPLE_H), and $(GO_GOGO_H).
1442 2011-04-03 Ian Lance Taylor <iant@google.com>
1444 * go-gcc.cc: New file.
1445 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1446 (go/go-gcc.o): New target.
1447 (go/go.o): Depend on go/gofrontend/backend.h.
1448 (go/statements.o): Likewise.
1450 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1452 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1454 2011-02-08 Ian Lance Taylor <iant@google.com>
1456 * go-lang.c (go_langhook_init_options_struct): Set
1457 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1459 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1461 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1462 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1464 2011-01-21 Ian Lance Taylor <iant@google.com>
1466 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1468 * go-c.h: Update declaration of go_create_gogo.
1470 2011-01-13 Ian Lance Taylor <iant@google.com>
1472 * go-backend.c: Include "rtl.h" and "target.h".
1473 (go_imported_unsafe): New function.
1474 * go-c.h (go_imported_unsafe): Declare.
1475 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1476 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1477 (go/unsafe.o): Depend on $(GO_C_H).
1479 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1482 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1485 2010-12-21 Ian Lance Taylor <iant@google.com>
1487 * Make-lang.in (check-go): Remove.
1488 (lang_checks_parallelized): Add check-go.
1489 (check_go_parallelize): Set.
1491 2010-12-13 Ian Lance Taylor <iant@google.com>
1493 * gospec.c (lang_specific_driver): Add a -o option if not linking
1494 and there is no -o option already.
1496 2010-12-07 Ian Lance Taylor <iant@google.com>
1498 PR tree-optimization/46805
1499 PR tree-optimization/46833
1500 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1502 2010-12-06 Ian Lance Taylor <iant@google.com>
1506 * go-lang.c (go_char_p): Define type and vectors.
1507 (go_search_dirs): New static variable.
1508 (go_langhook_handle_option): Use version and version/machine
1510 (go_langhook_post_options): Add non-specific -L paths.
1511 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1512 DEFAULT_TARGET_MACHINE when compiling.
1513 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1514 (Import and Export): Don't mention -L for finding import files.
1516 2010-12-03 Ian Lance Taylor <iant@google.com>
1519 * go-backend.c: New file.
1520 * go-c.h (go_type_alignment): Declare.
1521 (go_field_alignment, go_trampoline_info): Declare.
1522 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1523 (go/go-backend.o): New target.
1524 (go/go-lang.o): Make dependencies match source file.
1525 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1526 (go/gogo-tree.o): Don't depend on $(TM_H).
1528 2010-12-03 Ian Lance Taylor <iant@google.com>
1530 * config-lang.in (build_by_default): Set to no.
1532 2010-12-02 Ian Lance Taylor <iant@google.com>
1534 Go frontend added to gcc repository.
1536 Copyright (C) 2010-2018 Free Software Foundation, Inc.
1538 Copying and distribution of this file, with or without modification,
1539 are permitted in any medium without royalty provided the copyright
1540 notice and this notice are preserved.