1 2018-01-03 Jakub Jelinek <jakub@redhat.com>
3 * gccgo.texi: Bump @copyrights-go year.
5 2017-12-12 Tony Reix <tony.reix@atos.net>
6 Ian Lance Taylor <iant@golang.org>
8 * go-lang.c (TARGET_AIX): Define if not defined.
9 (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
11 2017-12-01 Ian Lance Taylor <iant@golang.org>
13 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
14 __builtin_unreachable.
15 (Gcc_backend::function): Add does_not_return parameter.
17 2017-12-01 Than McIntosh <thanm@google.com>
19 * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
21 * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
23 2017-11-28 Jakub Jelinek <jakub@redhat.com>
25 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
26 build2_loc instead of build3_loc.
28 2017-11-14 Than McIntosh <thanm@google.com>
30 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
32 2017-10-11 Tony Reix <tony.reix@atos.net>
34 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
35 system header files, as is done in ../system.h.
37 2017-10-05 Ian Lance Taylor <iant@golang.org>
39 * Make-lang.in (GO_OBJS): Add go/names.o.
41 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
42 Alan Hayward <alan.hayward@arm.com>
43 David Sherwood <david.sherwood@arm.com>
45 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
47 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
48 Alan Hayward <alan.hayward@arm.com>
49 David Sherwood <david.sherwood@arm.com>
51 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
53 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
54 Alan Hayward <alan.hayward@arm.com>
55 David Sherwood <david.sherwood@arm.com>
57 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
59 2017-08-07 Martin Liska <mliska@suse.cz>
61 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
62 and not __no_split_stack__.
64 2017-07-27 Tony Reix <tony.reix@atos.net>
66 * go-backend.c (go_write_export_data): Use EXCLUDE section for
69 2017-06-09 Ian Lance Taylor <iant@golang.org>
71 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
72 on, disable implicit -forder-blocks-and-partition.
74 2017-05-12 Than McIntosh <thanm@google.com>
76 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
78 2017-05-11 Ian Lance Taylor <iant@google.com>
81 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
82 DECL_EXTERNAL, clear TREE_STATIC.
84 2017-05-10 Than McIntosh <thanm@google.com>
86 * go-backend.c: Include "go-c.h".
87 * go-gcc.cc (Gcc_backend::write_export_data): New method.
89 2017-05-10 Ian Lance Taylor <iant@google.com>
91 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
93 * Make-lang.in (GO_OBJS): Add go/wb.o.
95 2017-03-28 Than McIntosh <thanm@google.com>
98 * go-gcc.cc (Gcc_backend::return_statement): Check for
99 void_type_node when checking result size.
101 2017-02-20 Ian Lance Taylor <iant@golang.org>
104 * lang.opt (-fgo-relative-import-path): Change space to tab.
106 2017-02-07 Richard Biener <rguenther@suse.de>
108 PR tree-optimization/79256
110 * go-backend.c (go_field_alignment): Adjust.
112 2017-01-11 Than McIntosh <thanm@google.com>
114 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
116 2017-01-01 Jakub Jelinek <jakub@redhat.com>
118 Update copyright years.
120 * gccgo.texi: Bump @copyrights-go year.
122 2016-12-16 Than McIntosh <thanm@google.com>
124 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
126 (Gcc_backend::init_statement): Likewise.
127 (Gcc_backend::assignment_statement): Likewise.
128 (Gcc_backend::if_statement): Likewise.
130 2016-12-06 Than McIntosh <thanm@google.com>
132 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
135 2016-11-22 Than McIntosh <thanm@google.com>
137 * go-gcc.cc (char_needs_encoding): Remove.
138 (needs_encoding, fetch_utf8_char, encode_id): Remove.
139 (Gcc_backend::global_variable): Add asm_name parameter. Don't
140 compute asm_name here.
141 (Gcc_backend::implicit_variable): Likewise.
142 (Gcc_backend::implicit_variable_reference): Likewise.
143 (Gcc_backend::immutable_struct): Likewise.
144 (Gcc_backend::immutable_struct_reference): Likewise.
145 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
147 2016-11-22 Ian Lance Taylor <iant@google.com>
149 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
150 __builtin_frame_address.
152 2016-10-25 David Malcolm <dmalcolm@redhat.com>
154 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
155 from result of GET_MODE_CLASS. Minor formatting fixes.
157 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
159 * go-backend.c: Include memmodel.h.
161 2016-10-10 Than McIntosh <thanm@google.com>
163 * go-gcc.h: New file.
164 * go-c.h (struct go_create_gogo_args): Add backend and linemap
166 * go-lang.c: Include "go-gcc.h".
167 (go_langhook_init): Set linemap and backend fields of args.
168 * go-gcc.cc: Include "go-gcc.h".
169 * go-linemap.cc: Include "go-gcc.h".
171 2016-10-10 Than McIntosh <thanm@google.com>
173 * go-linemap.cc (Gcc_linemap::location_line): New method.
175 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
177 * config-lang.in (lang_requires_boot_languages): Delete.
179 2016-10-06 Chris Manghane <cmang@google.com>
181 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
184 2016-09-27 Than McIntosh <thanm@google.com>
186 * go-linemap.cc (Gcc_linemap::to_string): New method.
188 2016-09-23 Than McIntosh <thanm@google.com>
190 * go-gcc-diagnostics.cc: New file.
191 * go-location.h (Location): Remove operator source_location. Add
193 * go-system.h: #include <sstream>.
194 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
195 go/go-gcc-diagnostics.o.
196 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
198 2016-09-23 Chris Manghane <cmang@google.com>
201 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
202 to pass arguments in the correct order.
204 2016-09-22 Ian Lance Taylor <iant@golang.org>
206 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
207 __builtin_frame_address.
209 2016-09-11 Ian Lance Taylor <iant@golang.org>
211 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
212 ctz, ctzll, bswap32, bswap64.
214 2016-09-10 Ian Lance Taylor <iant@golang.org>
216 * go-backend.c (go_trampoline_info): Remove.
217 * go-c.h (go_trampoline_info): Don't declare.
219 2016-09-09 Than McIntosh <thanm@google.com>
221 * go-sha1.cc: New file.
222 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
223 (CFLAGS-go/go-sha1.o): New variable.
225 2016-08-29 Ian Lance Taylor <iant@google.com>
227 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
228 * go-c.h (struct go_create_gogo_args): Define.
229 (go_create_gogo): Change declaration to take struct pointer.
230 * go-lang.c (go_c_header): New static variable.
231 (go_langhook_init): Update call to go_create_gogo.
232 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
233 -fgo-compiling-runtime.
235 2016-08-09 Ian Lance Taylor <iant@google.com>
237 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
239 (Compiler Directives): New chapter.
240 (Function Names): Describe using //go:linkname. Suggest using
241 -fgo-pkgpath rather than -fgo-prefix.
243 2016-08-08 Ian Lance Taylor <iant@google.com>
246 * go-gcc.cc (Gcc_backend::function_type): If the return type is
247 zero bytes, treat the function as returning void.
248 (return_statement): If the return type is zero bytes, don't
249 actually return any values.
251 2016-08-05 Ian Lance Taylor <iant@google.com>
254 * go-gcc.cc (char_needs_encoding): New static function.
255 (needs_encoding, fetch_utf8_char): New static functions.
256 (encode_id): New static function.
257 (Gcc_backend::global_variable): Set asm name if the name is not
259 (Gcc_backend::implicit_variable): Likewise.
260 (Gcc_backend::implicit_variable_reference): Likewise.
261 (Gcc_backend::immutable_struct): Likewise.
262 (Gcc_backend::immutable_struct_reference): Likewise.
263 (Gcc_backend::function): Likewise.
265 2016-08-02 Chris Manghane <cmang@google.com>
267 * lang.opt: Add -fgo-debug-escape option.
268 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
269 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
272 2016-05-06 Chris Manghane <cmang@google.com>
274 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
277 2016-04-29 Chris Manghane <cmang@google.com>
279 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
281 2016-04-18 Michael Matz <matz@suse.de>
283 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
285 2016-02-12 Jakub Jelinek <jakub@redhat.com>
287 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
288 neighbour -> neighbor.
289 * gccgo.texi: Likewise.
291 2016-01-27 Ian Lance Taylor <iant@google.com>
293 * go-lang.c (go_langhook_init_options_struct): Default to
294 -fkeep-gc-roots-live.
296 2016-01-04 Jakub Jelinek <jakub@redhat.com>
298 Update copyright years.
300 * gccgo.texi: Bump @copyrights-go year.
302 2015-12-21 Ian Lance Taylor <iant@google.com>
304 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
305 t_ and orig_type_ fields. Add new two parameter constructor. Add
306 get_tree and get_decl methods.
307 (Gcc_backend::var_expression): Pass location to var get_tree.
308 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
309 two parameter constructor for Bvariable.
310 (Gcc_backend::global_variable_set_init): Don't remove
311 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
312 (Gcc_backend::write_global_definitions): Likewise.
313 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
314 (Gcc_backend::block): Likewise.
315 (Gcc_backend::implicit_variable_set_init): Likewise.
316 (Gcc_backend::immutable_struct_set_init): Likewise.
317 (Gcc_backend::function_set_parameters): Likewise.
319 2015-12-21 Ian Lance Taylor <iant@google.com>
321 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
322 add a VIEW_CONVERT_EXPR to the tree.
323 (Gcc_backend::global_variable_set_init): Remove any
325 (Gcc_backend::write_global_definitions): Likewise.
327 2015-11-30 Ian Lance Taylor <iant@google.com>
330 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
331 TYPE_STRING_FLAG on a variant type.
333 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
335 * go-backend.c: Remove unused header files.
336 * go-gcc.cc: Likewise.
337 * go-lang.c: Likewise.
338 * gospec.c: Likewise.
340 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
342 * go-backend.c: Reorder #include's and remove duplicates.
343 * go-lang.c: Likewise.
345 2015-10-20 Alan Modra <amodra@gmail.com>
348 * gospec.c (saw_opt_m32): Rename to..
349 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
351 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
353 2015-10-01 Ian Lance Taylor <iant@google.com>
356 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
357 TARGET_CAN_SPLIT_STACK_64BIT is defined.
359 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
362 * gospec.c (lang_specific_driver): Set appropriate split stack
363 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
365 2015-09-10 Chris Manghane <cmang@google.com>
367 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
368 unrepresentable size.
370 2015-08-24 Marek Polacek <polacek@redhat.com>
372 PR tree-optimization/67284
373 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
374 Set TREE_THIS_VOLATILE.
375 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
376 Pass false to the rest of define_builtin calls.
378 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
380 * go-lang.c (go_langhook_init_options_struct): Don't set
382 (go_langhook_post_options): Set it here instead.
384 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
386 * gofrontend/backend.h: Fix double word typos.
387 * gofrontend/expressions.cc: Same.
390 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
392 * go-backend.c: Adjust includes.
393 * go-gcc.cc: Likewise.
394 * go-lang.c: Likewise.
396 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
398 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
400 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
402 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
403 * go-gcc.cc: Likewise.
404 * go-lang.c: Likewise.
405 * go-system.h: Likewise.
407 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
409 * go-backend.c : Adjust include files.
410 * go-gcc.cc : Likewise.
411 * go-lang.c : Likewise.
413 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
415 * go-gcc.cc (write_global_definitions): Remove call to
416 finalize_compilation_unit.
417 Remove Go specific debug generation.
418 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
419 (go_langhook_write_globals): Remove.
420 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
422 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
424 * go-backend.c: Adjust includes for restructured coretypes.h.
426 * go-gcc.cc: Likewise.
427 * go-lang.c: Likewise.
429 2015-04-30 Chris Manghane <cmang@google.com>
431 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
434 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
436 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
438 2015-04-17 Chris Manghane <cmang@google.com>
440 * Make-lang.in (GO_OBJS): Add go/escape.o.
442 2015-02-02 Ian Lance Taylor <iant@google.com>
446 * go-gcc.cc (Gcc_backend::type_size): Change return type to
448 (Gcc_backend::type_alignment): Likewise.
449 (Gcc_backend::type_field_alignment): Likewise.
450 (Gcc_backend::type_field_offset): Likewise.
451 (Gcc_backend::implicit_variable): Change alignment parameter type
454 2015-01-23 Ian Lance Taylor <iant@google.com>
457 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
460 * gccgo.texi (C Interoperability): Mention that people should use
463 2015-01-23 Ian Lance Taylor <iant@google.com>
466 * go-lang.c (go_langhook_init_options_struct): Set default
468 (go_langhook_post_options): If debug_info_level is still the
469 default, make sure write_symbols is set.
470 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
472 2015-01-16 Richard Henderson <rth@redhat.com>
474 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
475 (Gcc_backend::static_chain_variable): New method.
477 2015-01-09 Ian Lance Taylor <iant@google.com>
479 * config-lang.in (lang_dirs): Define.
481 2015-01-09 Michael Collison <michael.collison@linaro.org>
483 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
484 input.h, alias.h, symtab.h, options.h, fold-const.h,
485 wide-int.h, and inchash.h due to flattening of tree.h.
487 * go-backend.c: Ditto.
489 2015-01-07 Chris Manghane <cmang@google.com>
492 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
495 2015-01-06 Chris Manghane <cmang@google.com>
497 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
498 initialize zero-sized fields, just evaluate the values for side
501 2015-01-05 Jakub Jelinek <jakub@redhat.com>
503 Update copyright years.
505 * gccgo.texi: Bump @copyrights-go year.
507 2014-12-19 Chris Manghane <cmang@google.com>
509 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
510 construct arrays of zero-sized values.
512 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
514 * go-lang.c: Remove redundant enum from machine_mode.
516 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
518 * go-gcc.cc: Adjust include files.
520 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
522 * go-gcc.cc: Adjust include files.
525 2014-10-23 Ian Lance Taylor <iant@google.com>
527 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
528 mpc_t parameter instead of two mpfr_t parameters.
530 2014-09-15 Jakub Jelinek <jakub@redhat.com>
532 * Make-lang.in (check_go_parallelize): Change to just an upper bound
535 2014-09-03 Chris Manghane <cmang@google.com>
537 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
538 parameter. Add is_hidden parameter.
539 (Gcc_backend::implicit_variable_set_init): New method.
540 (Gcc_backend::implicit_variable_reference): New method.
542 2014-08-08 Ian Lance Taylor <iant@google.com>
544 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
547 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
549 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
550 symtab_get_node to symtab_node::get.
552 2014-06-13 Ian Lance Taylor <iant@google.com>
555 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
556 ld, add -t option to avoid warning about common symbol changing
559 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
561 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
562 symtab_get_node(var_decl)->implicit_section.
564 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
566 * go-gcc.cc (global_variable_set_init): Use
567 set_decl_section_name.
569 2014-06-04 Ian Lance Taylor <iant@google.com>
571 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
572 alignment parameters. Permit init parameter to be NULL.
574 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
576 * go-gcc.cc: Include builtins.h.
578 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
580 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
582 2014-05-06 Chris Manghane <cmang@google.com>
584 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
585 (Gcc_backend::boolean_constant_expression): New method.
586 (Gcc_backend::zero_expression): Use this->make_expression rather
588 (Gcc_backend::var_expression): Likewise.
589 (Gcc_backend::integer_constant_expression): Likewise.
590 (Gcc_backend::float_constant_expression): Likewise.
591 (Gcc_backend::complex_constant_expression): Likewise.
592 (Gcc_backend::struct_field_expression): Likewise.
593 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
594 (tree_to_function, tree_to_block): Remove functions.
595 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
596 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
598 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
599 Mike Stump <mikestump@comcast.net>
600 Richard Sandiford <rdsandiford@googlemail.com>
602 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
604 2014-05-06 Chris Manghane <cmang@google.com>
606 * go-c.h (go_create_gogo): Update declaration to add
607 check_divide_zero and check_divide_overflow parameters.
608 * go-lang.c (go_langhook_init): Pass new arguments to
611 2014-05-05 Chris Manghane <cmang@google.com>
613 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
614 gc_root_variable. Add name and is_constant parameters.
616 2014-05-05 Chris Manghane <cmang@google.com>
618 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
620 (Gcc_backend::temporary_variable): Check for erroneous function.
622 2014-04-30 Chris Manghane <cmang@google.com>
624 * go-backend.c: #include "diagnostics.h".
625 (saw_errors): New function.
626 * go-c.h (saw_errors): Declare.
627 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
629 2014-04-30 Chris Manghane <cmang@google.com>
631 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
632 calling into Go frontend.
633 (go_langhook_type_for_mode): Likewise.
634 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
636 2014-04-30 Chris Manghane <cmang@google.com>
638 * go-gcc.cc: #include "langhooks.h".
639 (Gcc_backend::Gcc_backend): Add constructor.
640 (Gcc_backend::lookup_function): New function.
641 (Gcc_backend::define_builtin): New private function.
642 (Gcc_backend::gcc_backend): Remove.
643 (go_get_backend): Use new to create new Gcc_backend.
645 2014-04-25 Chris Manghane <cmang@google.com>
647 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
648 (Gcc_backend::return_statement): Push and pop function.
649 (Gcc_backend::label): Likewise.
650 (Gcc_backend::function_defer_statement): Likewise.
651 (Gcc_backend::switch_statement): Add function parameter.
652 (Gcc_backend::block): Don't permit function to be NULL.
653 (Gcc_backend::temporary_variable): Change go_assert to
655 (Gcc_backend::gc_root_variable): New function.
656 (Gcc_backend::write_global_definitions): New function.
658 2014-04-22 Chris Manghane <cmang@google.com>
660 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
661 call to create_tmp_var. Require that function be non-NULL.
663 2014-04-17 Chris Manghane <cmang@google.com>
665 * go-gcc.cc (Gcc_backend::named_constant_expression): New
668 2014-04-14 Chris Manghane <cmang@google.com>
670 * go-gcc.cc: Include "convert.h".
671 (Gcc_backend::string_constant_expression): New function.
672 (Gcc_backend::real_part_expression): Likewise.
673 (Gcc_backend::imag_part_expression): Likewise.
674 (Gcc_backend::complex_expression): Likewise.
675 (Gcc_backend::constructor_expression): Likewise.
676 (Gcc_backend::array_constructor_expression): Likewise.
677 (Gcc_backend::pointer_offset_expression): Likewise.
678 (Gcc_backend::array_index_expression): Likewise.
679 (Gcc_backend::call_expression): Likewise.
680 (Gcc_backend::exception_handler_statement): Likewise.
681 (Gcc_backend::function_defer_statement): Likewise.
682 (Gcc_backend::function_set_parameters): Likewise.
683 (Gcc_backend::function_set_body): Likewise.
684 (Gcc_backend::convert_expression): Handle various type
687 2014-03-03 Ian Lance Taylor <iant@google.com>
689 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
691 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
694 2014-01-24 Chris Manghane <cmang@google.com>
696 * go-gcc.cc (Gcc_backend::unary_expression): New function.
698 2014-01-16 Chris Manghane <cmang@google.com>
700 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
702 (operator_to_tree_code): New static function.
703 (Gcc_backend::binary_expression): New function.
705 2014-01-14 Chris Manghane <cmang@google.com>
707 * go-gcc.cc (Gcc_backend::compound_expression): New function.
708 (Gcc_backend::conditional_expression): New function.
710 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
712 Update copyright years
714 2014-01-02 Tobias Burnus <burnus@net-b.de>
716 * gccgo.texi: Bump @copying's copyright year.
718 2013-12-16 Chris Manghane <cmang@google.com>
720 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
722 2013-12-11 Ian Lance Taylor <iant@google.com>
724 * go-lang.c (go_langhook_post_options): Disable sibling calls by
727 2013-12-10 Ian Lance Taylor <iant@google.com>
729 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
732 2013-12-05 Ian Lance Taylor <iant@google.com>
734 Revert this change; no longer required.
735 2013-11-06 Ian Lance Taylor <iant@google.com>
737 * go-lang.c (go_langhook_post_options): If
738 -fisolate-erroneous-paths was turned on by an optimization option,
741 2013-11-23 Ian Lance Taylor <iant@google.com>
743 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
746 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
748 * go-gcc.cc: Add required include files from gimple.h.
749 * go-lang.c: Likewise
751 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
753 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
754 tree_to_shwi throughout.
756 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
758 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
759 tree_fits_shwi_p throughout.
761 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
763 * go-lang.c: Include only gimplify.h and gimple.h as needed.
765 2013-11-14 Diego Novillo <dnovillo@google.com>
767 * go-backend.c: Include stor-layout.h.
768 * go-gcc.cc: Include stringpool.h.
769 Include stor-layout.h.
771 * go-lang.c: Include stor-layout.h.
773 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
775 * go-lang.c: Include gimplify.h.
777 2013-11-06 Ian Lance Taylor <iant@google.com>
779 * go-lang.c (go_langhook_post_options): If
780 -fisolate-erroneous-paths was turned on by an optimization option,
783 2013-10-14 Chris Manghane <cmang@google.com>
785 * go-gcc.cc (Gcc_backend::address_expression): New function.
787 2013-10-11 Chris Manghane <cmang@google.com>
789 * go-gcc.cc (Gcc_backend::function_code_expression): New
792 2013-10-10 Chris Manghane <cmang@google.com>
794 * go-gcc.cc (Gcc_backend::error_function): New function.
795 (Gcc_backend::function): New function.
796 (Gcc_backend::make_function): New function.
797 (function_to_tree): New function.
799 2013-10-04 Chris Manghane <cmang@google.com>
801 * go-gcc.cc (Gcc_backend::convert_expression): New function.
803 2013-10-02 Chris Manghane <cmang@google.com>
805 * go-gcc.cc: Include "real.h" and "realmpfr.h".
806 (Gcc_backend::integer_constant_expression): New function.
807 (Gcc_backend::float_constant_expression): New function.
808 (Gcc_backend::complex_constant_expression): New function.
810 2013-09-30 Chris Manghane <cmang@google.com>
812 * go-gcc.cc (Gcc_backend::error_expression): New function.
813 (Gcc_backend::var_expression): New function.
814 (Gcc_backend::indirect_expression): New function.
816 2013-09-25 Tom Tromey <tromey@redhat.com>
818 * Make-lang.in (gospec.o): Remove.
819 (CFLAGS-go/gospec.o): New variable.
820 (GCCGO_OBJS): Update to use go/gospec.o.
822 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
823 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
824 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
825 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
826 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
827 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
828 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
829 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
830 (go/unsafe.o): Remove.
831 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
832 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
834 2013-09-25 Tom Tromey <tromey@redhat.com>
836 * Make-lang.in (gospec.o): Don't use subshell.
838 2013-08-28 Ian Lance Taylor <iant@google.com>
840 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
841 the struct is not hidden.
842 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
844 2013-08-06 Ian Lance Taylor <iant@google.com>
846 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
847 compute_reloc_for_constant.
849 2013-08-02 Ian Lance Taylor <iant@google.com>
851 * go-gcc.cc (immutable_struct_set_init): Always call
852 resolve_unique_section.
854 2013-07-24 Ian Lance Taylor <iant@google.com>
856 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
857 fields, recreate those fields with the first one with a non-zero
860 2013-07-23 Ian Lance Taylor <iant@google.com>
862 * go-backend.c: Don't #include "rtl.h".
863 (go_imported_unsafe): Don't call init_varasm_once.
864 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
866 2013-07-23 Ian Lance Taylor <iant@google.com>
868 * go-lang.c: Don't #include "except.h".
869 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
871 2013-06-18 Ian Lance Taylor <iant@google.com>
873 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
875 (Gcc_backend::immutable_struct_set_init): Likewise.
877 2013-05-16 Jason Merrill <jason@redhat.com>
879 * Make-lang.in (go1$(exeext)): Use link mutex.
881 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
883 * gospec.c: pass -u pthread_create to linker when static linking.
885 2012-12-21 Ian Lance Taylor <iant@google.com>
888 * go-system.h: Don't include <cstdio>.
890 2012-12-18 Ian Lance Taylor <iant@google.com>
893 * gospec.c: Revert last patch.
895 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
898 * gospec.c (LIBATOMIC): Define.
899 (LIBATOMIC_PROFILE): Define.
900 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
902 2012-11-29 Ian Lance Taylor <iant@google.com>
904 * go-gcc.cc: Include "output.h".
905 (global_variable): Add is_unique_section parameter.
906 (global_variable_set_init): Adjust unique section if necessary.
907 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
909 2012-11-17 Diego Novillo <dnovillo@google.com>
911 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
913 * go-lang.c: Use new vec API in vec.h.
915 2012-11-16 Ian Lance Taylor <iant@google.com>
917 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
918 (go1$(exeext)): Likewise.
920 2012-10-30 Ian Lance Taylor <iant@google.com>
922 * lang.opt (-fgo-relative-import-path): New option.
923 * go-lang.c (go_relative_import_path): New static variable.
924 (go_langhook_init): Pass go_relative_import_path to
926 (go_langhook_handle_option): Handle -fgo-relative-import-path.
927 * go-c.h (go_create_gogo): Update declaration.
928 * gccgo.texi (Invoking gccgo): Document
929 -fgo-relative-import-path.
931 2012-09-17 Ian Lance Taylor <iant@google.com>
933 * config-lang.in (target_libs): Add target-libbacktrace.
935 2012-09-16 Ian Lance Taylor <iant@google.com>
937 * Make-lang.in (go/gogo.o): Depend on filenames.h.
939 2012-08-14 Diego Novillo <dnovillo@google.com>
941 Merge from cxx-conversion branch. Configury.
943 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
944 * go-gcc.cc: Likewise.
945 * go-system.h: Likewise.
947 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
949 * go-lang.c (lang_decl): Add variable_size GTY option.
951 2012-05-09 Ian Lance Taylor <iant@google.com>
953 * lang.opt: Add -fgo-pkgpath.
954 * go-lang.c (go_pkgpath): New static variable.
955 (go_prefix): New static variable.
956 (go_langhook_init): Pass go_pkgpath and go_prefix to
958 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
959 -fgo-prefix handling to just set go_prefix.
960 * go-c.h (go_set_prefix): Don't declare.
961 (go_create_gogo): Add pkgpath and prefix to declaration.
962 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
963 to pkgpath. Don't include the package name in the asm name.
964 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
965 docs for -fgo-prefix.
967 2012-04-23 Ian Lance Taylor <iant@google.com>
969 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
971 2012-04-20 Ian Lance Taylor <iant@google.com>
973 * lang.opt: Add -fgo-check-divide-zero and
974 -fgo-check-divide-overflow.
975 * gccgo.texi (Invoking gccgo): Document new options.
977 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
979 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
980 with NULL_TREE type instead of void_type_node.
982 2012-03-09 Ian Lance Taylor <iant@google.com>
984 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
985 to the lhs type if necessary.
987 2012-03-08 Ian Lance Taylor <iant@google.com>
989 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
991 (go_non_zero_struct): New global variable.
992 (Gcc_backend::non_zero_size_type): New function.
993 (Gcc_backend::global_variable): Don't build an assignment for a
995 * go-c.h (go_non_zero_struct): Declare.
996 * config-lang.in (gtfiles): Add go-c.h.
998 2012-02-29 Ian Lance Taylor <iant@google.com>
1000 * go-gcc.cc (class Gcc_tree): Add set_tree method.
1001 (set_placeholder_pointer_type): When setting to a pointer to
1002 error, set to error_mark_node.
1004 2012-02-23 Richard Guenther <rguenther@suse.de>
1006 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1007 build_distinct_type_copy.
1009 2012-02-17 Ian Lance Taylor <iant@google.com>
1011 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1013 2012-02-17 Ian Lance Taylor <iant@google.com>
1015 * gospec.c (lang_specific_driver): If linking, and no -o option
1018 2012-02-14 Ian Lance Taylor <iant@google.com>
1021 * Make-lang.in (gccgo-cross$(exeext)): New target.
1022 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1024 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1025 gccgo-cross$(exeext) does not exist.
1027 2012-02-07 Ian Lance Taylor <iant@google.com>
1029 * gccgo.texi (Function Names): Document //extern instead of
1032 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1035 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1036 return build_nonstandard_integer_type result if possible.
1038 2012-01-21 Ian Lance Taylor <iant@google.com>
1040 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1041 (Gcc_backend::type_alignment): Likewise.
1042 (Gcc_backend::type_field_alignment): Likewise.
1043 (Gcc_backend::type_field_offset): Likewise.
1045 2012-01-20 Ian Lance Taylor <iant@google.com>
1047 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1049 (Gcc_backend::set_placeholder_struct_type): Likewise.
1051 2012-01-17 Ian Lance Taylor <iant@google.com>
1053 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1054 BASE.s rather than -o BASE.o.
1056 2012-01-11 Ian Lance Taylor <iant@google.com>
1058 * go-lang.c (go_langhook_init): Initialize void_list_node before
1059 calling go_create_gogo.
1061 2012-01-10 Ian Lance Taylor <iant@google.com>
1063 * go-gcc.cc (Gcc_backend::type_size): New function.
1064 (Gcc_backend::type_alignment): New function.
1065 (Gcc_backend::type_field_alignment): New function.
1066 (Gcc_backend::type_field_offset): New function.
1067 * go-backend.c (go_type_alignment): Remove.
1068 * go-c.h (go_type_alignment): Don't declare.
1070 2011-12-27 Ian Lance Taylor <iant@google.com>
1072 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1073 build_distinct_type_copy rather than build_variant_type_copy.
1074 (Gcc_backend::set_placeholder_array_type): Likewise.
1075 (Gcc_backend::named_type): Add special handling for builtin
1078 2011-12-22 Ian Lance Taylor <iant@google.com>
1080 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1081 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1082 (Gcc_backend::set_placeholder_struct_type): Likewise.
1083 (Gcc_backend::set_placeholder_array_type): Likewise.
1084 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1086 2011-12-13 Ian Lance Taylor <iant@google.com>
1088 * go-backend.c: #include "simple-object.h" and "intl.h".
1089 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1090 (GO_EXPORT_SECTION_NAME): Likewise.
1091 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1092 (go_read_export_data): New function.
1093 * go-c.h (go_read_export_data): Declare.
1095 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1096 Ian Lance Taylor <iant@google.com>
1098 * go-location.h: New file.
1099 * go-linemap.cc: New file.
1100 * go-gcc.cc: Change all uses of source_location to Location.
1101 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1102 (GO_LINEMAP_H): New variable.
1103 (GO_LEX_H): Use $(GO_LINEMAP_H).
1104 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1105 (go/go-linemap.o): New target.
1107 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1109 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1111 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1113 * lang.opt: Add fgo-optimize-.
1114 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1115 * go-c.h (go_enable_optimize): Declare.
1116 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1117 (GO_EXPORT_H): Define.
1118 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1119 (GO_AST_DUMP_H): Define.
1120 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1121 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1122 (go/types.o): Likewise.
1123 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1124 (go/go-optimize.o): New target.
1126 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1128 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1129 (go/go-lang.o): Remove explicit compilation rule.
1131 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1133 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1135 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1137 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1138 (go/ast-dump.o): New target.
1139 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1140 (go/statements.o): Likewise.
1142 2011-07-06 Richard Guenther <rguenther@suse.de>
1144 * go-lang.c (go_langhook_init):
1145 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1147 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1149 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1151 * go-backend.c: Include common/common-target.h.
1152 (go_write_export_data): Use targetm_common.have_named_sections.
1153 * go-lang.c: Include common/common-target.h.
1154 (go_langhook_init_options_struct): Use
1155 targetm_common.supports_split_stack.
1157 2011-06-13 Ian Lance Taylor <iant@google.com>
1159 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1161 2011-06-10 Ian Lance Taylor <iant@google.com>
1163 * go-gcc.cc: Include "toplev.h".
1164 (Gcc_backend::immutable_struct): New function.
1165 (Gcc_backend::immutable_struct_set_init): New function.
1166 (Gcc_backend::immutable_struct_reference): New function.
1167 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1169 2011-06-09 Ian Lance Taylor <iant@google.com>
1171 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1173 2011-06-07 Richard Guenther <rguenther@suse.de>
1175 * go-lang.c (go_langhook_init): Do not set
1176 size_type_node or call set_sizetype.
1178 2011-05-27 Ian Lance Taylor <iant@google.com>
1180 * go-backend.c: Include "output.h".
1181 (go_write_export_data): New function.
1182 * go-c.h (go_write_export_data): Declare.
1183 * Make-lang.in (go/go-backend.o): Depend on output.h.
1184 (go/export.o): Depend on $(GO_C_H). Do not depend on
1185 $(MACHMODE_H), output.h, or $(TARGET_H).
1187 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1189 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1190 (gccgo$(exeext)): Use libcommon-target.a.
1192 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1194 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1196 2011-05-13 Ian Lance Taylor <iant@google.com>
1198 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1199 for multiple results, check that all fields types have a size.
1200 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1202 2011-05-12 Ian Lance Taylor <iant@google.com>
1204 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1206 (Gcc_backend::parameter_variable): Likewise.
1208 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1210 * go-lang.c (global_bindings_p): Return bool and simplify.
1212 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1214 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1216 2011-05-04 Ian Lance Taylor <iant@google.com>
1218 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1219 (Gcc_backend::fill_in_struct): New function.
1220 (Gcc_backend::array_type): Implement.
1221 (Gcc_backend::fill_in_array): New function.
1222 (Gcc_backend::placeholder_pointer_type): New function.
1223 (Gcc_backend::set_placeholder_pointer_type): New function.
1224 (Gcc_backend::set_placeholder_function_type): New function.
1225 (Gcc_backend::placeholder_struct_type): New function.
1226 (Gcc_backend::set_placeholder_struct_type): New function.
1227 (Gcc_backend::placeholder_array_type): New function.
1228 (Gcc_backend::set_placeholder_array_type): New function.
1229 (Gcc_backend::named_type): New function.
1230 (Gcc_backend::circular_pointer_type): New function.
1231 (Gcc_backend::is_circular_pointer_type): New function.
1233 2011-04-26 Ian Lance Taylor <iant@google.com>
1235 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1237 2011-04-25 Ian Lance Taylor <iant@google.com>
1239 * go-gcc.cc (Gcc_backend::error_type): Implement.
1240 (Gcc_backend::string_type): Remove.
1241 (Gcc_backend::function_type): Change signature and implement.
1242 (Gcc_backend::struct_type): Change signature.
1243 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1244 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1245 (Gcc_backend::pointer_type): Check for error.
1246 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1248 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1250 * go-gcc.c (class Gcc_tree): Make get_tree const.
1251 (Gcc_backend::void_type): Implement.
1252 (Gcc_backend::bool_type): Implement.
1253 (Gcc_backend::integer_type): Implement.
1254 (Gcc_backend::float_type): Implement.
1255 (Gcc_backend::complex_type): New function.
1256 (Gcc_backend::pointer_type): New function.
1257 (Gcc_backend::make_type): New function.
1258 (type_to_tree): New function.
1260 2011-04-21 Ian Lance Taylor <iant@google.com>
1262 * go-system.h (go_assert, go_unreachable): Define.
1264 2011-04-19 Ian Lance Taylor <iant@google.com>
1266 * go-system.h: Include "intl.h".
1267 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1268 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1269 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1271 2011-04-19 Ian Lance Taylor <iant@google.com>
1273 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1275 2011-04-19 Ian Lance Taylor <iant@google.com>
1277 * go-gcc.cc (class Bblock): Define.
1278 (Gcc_backend::if_statement): Change then_block and else_block to
1280 (Gcc_backend::block): New function.
1281 (Gcc_backend::block_add_statements): New function.
1282 (Gcc_backend::block_statement): New function.
1283 (tree_to_block, block_to_tree): New functions.
1285 2011-04-18 Ian Lance Taylor <iant@google.com>
1287 * go-gcc.cc: Include "go-c.h".
1288 (class Bvariable): Define.
1289 (Gcc_backend::init_statement): New function.
1290 (Gcc_backend::global_variable): New function.
1291 (Gcc_backend::global_variable_set_init): New function.
1292 (Gcc_backend::local_variable): New function.
1293 (Gcc_backend::parameter_variable): New function.
1294 (tree_to_type, var_to_tree): New functions.
1295 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1296 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1298 2011-04-15 Ian Lance Taylor <iant@google.com>
1300 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1301 (Gcc_backend::assignment_statement): Use error_statement.
1302 (Gcc_backend::return_statement): Likewise.
1303 (Gcc_backend::if_statement): Likewise.
1304 (Gcc_backend::switch_statement): Likewise.
1305 (Gcc_backend::statement_list): Likewise.
1307 2011-04-14 Ian Lance Taylor <iant@google.com>
1309 * go-gcc.cc (Gcc_backend::error_statement): New function.
1311 2011-04-13 Ian Lance Taylor <iant@google.com>
1313 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1315 2011-04-13 Ian Lance Taylor <iant@google.com>
1317 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1318 (GO_RUNTIME_H): New variable.
1319 (go/runtime.o): New target.
1320 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1321 (go/statements.o): Likewise.
1323 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1325 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1328 2011-04-06 Ian Lance Taylor <iant@google.com>
1330 * go-gcc.cc (if_statement): Use build3_loc.
1331 (Gcc_backend::switch_statement): New function.
1332 (Gcc_backend::statement_list): New function.
1334 2011-04-06 Ian Lance Taylor <iant@google.com>
1336 * go-gcc.cc (Gcc_backend::if_statement): New function.
1337 (tree_to_stat): New function.
1338 (expr_to_tree): Renamed from expression_to_tree.
1339 (stat_to_tree): Renamed from statement_to_tree.
1341 2011-04-06 Ian Lance Taylor <iant@google.com>
1343 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1345 2011-04-04 Ian Lance Taylor <iant@google.com>
1347 * go-gcc.c (class Blabel): Define.
1348 (Gcc_backend::make_expression): New function.
1349 (get_identifier_from_string): New function.
1350 (Gcc_backend::label): New function.
1351 (Gcc_backend::label_definition_statement): New function.
1352 (Gcc_backend::goto_statement): New function.
1353 (Gcc_backend::label_address): New function.
1354 (expression_to_tree): New function.
1355 * Make-lang.in (go/expressions.o): Depend on
1356 go/gofrontend/backend.h.
1357 (go/gogo.o): Likewise.
1359 2011-04-04 Ian Lance Taylor <iant@google.com>
1361 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1362 (class Bfunction): Define.
1363 (Gcc_backend::assignment_statement): Rename from assignment.
1365 (Gcc_backend::return_statement): New function.
1366 (tree_to_function): New function.
1367 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1368 $(GIMPLE_H), and $(GO_GOGO_H).
1370 2011-04-03 Ian Lance Taylor <iant@google.com>
1372 * go-gcc.cc: New file.
1373 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1374 (go/go-gcc.o): New target.
1375 (go/go.o): Depend on go/gofrontend/backend.h.
1376 (go/statements.o): Likewise.
1378 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1380 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1382 2011-02-08 Ian Lance Taylor <iant@google.com>
1384 * go-lang.c (go_langhook_init_options_struct): Set
1385 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1387 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1389 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1390 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1392 2011-01-21 Ian Lance Taylor <iant@google.com>
1394 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1396 * go-c.h: Update declaration of go_create_gogo.
1398 2011-01-13 Ian Lance Taylor <iant@google.com>
1400 * go-backend.c: Include "rtl.h" and "target.h".
1401 (go_imported_unsafe): New function.
1402 * go-c.h (go_imported_unsafe): Declare.
1403 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1404 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1405 (go/unsafe.o): Depend on $(GO_C_H).
1407 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1410 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1413 2010-12-21 Ian Lance Taylor <iant@google.com>
1415 * Make-lang.in (check-go): Remove.
1416 (lang_checks_parallelized): Add check-go.
1417 (check_go_parallelize): Set.
1419 2010-12-13 Ian Lance Taylor <iant@google.com>
1421 * gospec.c (lang_specific_driver): Add a -o option if not linking
1422 and there is no -o option already.
1424 2010-12-07 Ian Lance Taylor <iant@google.com>
1426 PR tree-optimization/46805
1427 PR tree-optimization/46833
1428 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1430 2010-12-06 Ian Lance Taylor <iant@google.com>
1434 * go-lang.c (go_char_p): Define type and vectors.
1435 (go_search_dirs): New static variable.
1436 (go_langhook_handle_option): Use version and version/machine
1438 (go_langhook_post_options): Add non-specific -L paths.
1439 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1440 DEFAULT_TARGET_MACHINE when compiling.
1441 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1442 (Import and Export): Don't mention -L for finding import files.
1444 2010-12-03 Ian Lance Taylor <iant@google.com>
1447 * go-backend.c: New file.
1448 * go-c.h (go_type_alignment): Declare.
1449 (go_field_alignment, go_trampoline_info): Declare.
1450 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1451 (go/go-backend.o): New target.
1452 (go/go-lang.o): Make dependencies match source file.
1453 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1454 (go/gogo-tree.o): Don't depend on $(TM_H).
1456 2010-12-03 Ian Lance Taylor <iant@google.com>
1458 * config-lang.in (build_by_default): Set to no.
1460 2010-12-02 Ian Lance Taylor <iant@google.com>
1462 Go frontend added to gcc repository.
1464 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1466 Copying and distribution of this file, with or without modification,
1467 are permitted in any medium without royalty provided the copyright
1468 notice and this notice are preserved.