1 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3 Update copyright years.
5 * gccgo.texi: Bump @copyrights-go year.
7 2016-12-16 Than McIntosh <thanm@google.com>
9 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
11 (Gcc_backend::init_statement): Likewise.
12 (Gcc_backend::assignment_statement): Likewise.
13 (Gcc_backend::if_statement): Likewise.
15 2016-12-06 Than McIntosh <thanm@google.com>
17 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
20 2016-11-22 Than McIntosh <thanm@google.com>
22 * go-gcc.cc (char_needs_encoding): Remove.
23 (needs_encoding, fetch_utf8_char, encode_id): Remove.
24 (Gcc_backend::global_variable): Add asm_name parameter. Don't
25 compute asm_name here.
26 (Gcc_backend::implicit_variable): Likewise.
27 (Gcc_backend::implicit_variable_reference): Likewise.
28 (Gcc_backend::immutable_struct): Likewise.
29 (Gcc_backend::immutable_struct_reference): Likewise.
30 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
32 2016-11-22 Ian Lance Taylor <iant@google.com>
34 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
35 __builtin_frame_address.
37 2016-10-25 David Malcolm <dmalcolm@redhat.com>
39 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
40 from result of GET_MODE_CLASS. Minor formatting fixes.
42 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
44 * go-backend.c: Include memmodel.h.
46 2016-10-10 Than McIntosh <thanm@google.com>
49 * go-c.h (struct go_create_gogo_args): Add backend and linemap
51 * go-lang.c: Include "go-gcc.h".
52 (go_langhook_init): Set linemap and backend fields of args.
53 * go-gcc.cc: Include "go-gcc.h".
54 * go-linemap.cc: Include "go-gcc.h".
56 2016-10-10 Than McIntosh <thanm@google.com>
58 * go-linemap.cc (Gcc_linemap::location_line): New method.
60 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
62 * config-lang.in (lang_requires_boot_languages): Delete.
64 2016-10-06 Chris Manghane <cmang@google.com>
66 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
69 2016-09-27 Than McIntosh <thanm@google.com>
71 * go-linemap.cc (Gcc_linemap::to_string): New method.
73 2016-09-23 Than McIntosh <thanm@google.com>
75 * go-gcc-diagnostics.cc: New file.
76 * go-location.h (Location): Remove operator source_location. Add
78 * go-system.h: #include <sstream>.
79 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
80 go/go-gcc-diagnostics.o.
81 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
83 2016-09-23 Chris Manghane <cmang@google.com>
86 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
87 to pass arguments in the correct order.
89 2016-09-22 Ian Lance Taylor <iant@golang.org>
91 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
92 __builtin_frame_address.
94 2016-09-11 Ian Lance Taylor <iant@golang.org>
96 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
97 ctz, ctzll, bswap32, bswap64.
99 2016-09-10 Ian Lance Taylor <iant@golang.org>
101 * go-backend.c (go_trampoline_info): Remove.
102 * go-c.h (go_trampoline_info): Don't declare.
104 2016-09-09 Than McIntosh <thanm@google.com>
106 * go-sha1.cc: New file.
107 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
108 (CFLAGS-go/go-sha1.o): New variable.
110 2016-08-29 Ian Lance Taylor <iant@google.com>
112 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
113 * go-c.h (struct go_create_gogo_args): Define.
114 (go_create_gogo): Change declaration to take struct pointer.
115 * go-lang.c (go_c_header): New static variable.
116 (go_langhook_init): Update call to go_create_gogo.
117 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
118 -fgo-compiling-runtime.
120 2016-08-09 Ian Lance Taylor <iant@google.com>
122 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
124 (Compiler Directives): New chapter.
125 (Function Names): Describe using //go:linkname. Suggest using
126 -fgo-pkgpath rather than -fgo-prefix.
128 2016-08-08 Ian Lance Taylor <iant@google.com>
131 * go-gcc.cc (Gcc_backend::function_type): If the return type is
132 zero bytes, treat the function as returning void.
133 (return_statement): If the return type is zero bytes, don't
134 actually return any values.
136 2016-08-05 Ian Lance Taylor <iant@google.com>
139 * go-gcc.cc (char_needs_encoding): New static function.
140 (needs_encoding, fetch_utf8_char): New static functions.
141 (encode_id): New static function.
142 (Gcc_backend::global_variable): Set asm name if the name is not
144 (Gcc_backend::implicit_variable): Likewise.
145 (Gcc_backend::implicit_variable_reference): Likewise.
146 (Gcc_backend::immutable_struct): Likewise.
147 (Gcc_backend::immutable_struct_reference): Likewise.
148 (Gcc_backend::function): Likewise.
150 2016-08-02 Chris Manghane <cmang@google.com>
152 * lang.opt: Add -fgo-debug-escape option.
153 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
154 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
157 2016-05-06 Chris Manghane <cmang@google.com>
159 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
162 2016-04-29 Chris Manghane <cmang@google.com>
164 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
166 2016-04-18 Michael Matz <matz@suse.de>
168 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
170 2016-02-12 Jakub Jelinek <jakub@redhat.com>
172 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
173 neighbour -> neighbor.
174 * gccgo.texi: Likewise.
176 2016-01-27 Ian Lance Taylor <iant@google.com>
178 * go-lang.c (go_langhook_init_options_struct): Default to
179 -fkeep-gc-roots-live.
181 2016-01-04 Jakub Jelinek <jakub@redhat.com>
183 Update copyright years.
185 * gccgo.texi: Bump @copyrights-go year.
187 2015-12-21 Ian Lance Taylor <iant@google.com>
189 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
190 t_ and orig_type_ fields. Add new two parameter constructor. Add
191 get_tree and get_decl methods.
192 (Gcc_backend::var_expression): Pass location to var get_tree.
193 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
194 two parameter constructor for Bvariable.
195 (Gcc_backend::global_variable_set_init): Don't remove
196 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
197 (Gcc_backend::write_global_definitions): Likewise.
198 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
199 (Gcc_backend::block): Likewise.
200 (Gcc_backend::implicit_variable_set_init): Likewise.
201 (Gcc_backend::immutable_struct_set_init): Likewise.
202 (Gcc_backend::function_set_parameters): Likewise.
204 2015-12-21 Ian Lance Taylor <iant@google.com>
206 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
207 add a VIEW_CONVERT_EXPR to the tree.
208 (Gcc_backend::global_variable_set_init): Remove any
210 (Gcc_backend::write_global_definitions): Likewise.
212 2015-11-30 Ian Lance Taylor <iant@google.com>
215 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
216 TYPE_STRING_FLAG on a variant type.
218 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
220 * go-backend.c: Remove unused header files.
221 * go-gcc.cc: Likewise.
222 * go-lang.c: Likewise.
223 * gospec.c: Likewise.
225 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
227 * go-backend.c: Reorder #include's and remove duplicates.
228 * go-lang.c: Likewise.
230 2015-10-20 Alan Modra <amodra@gmail.com>
233 * gospec.c (saw_opt_m32): Rename to..
234 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
236 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
238 2015-10-01 Ian Lance Taylor <iant@google.com>
241 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
242 TARGET_CAN_SPLIT_STACK_64BIT is defined.
244 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
247 * gospec.c (lang_specific_driver): Set appropriate split stack
248 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
250 2015-09-10 Chris Manghane <cmang@google.com>
252 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
253 unrepresentable size.
255 2015-08-24 Marek Polacek <polacek@redhat.com>
257 PR tree-optimization/67284
258 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
259 Set TREE_THIS_VOLATILE.
260 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
261 Pass false to the rest of define_builtin calls.
263 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
265 * go-lang.c (go_langhook_init_options_struct): Don't set
267 (go_langhook_post_options): Set it here instead.
269 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
271 * gofrontend/backend.h: Fix double word typos.
272 * gofrontend/expressions.cc: Same.
275 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
277 * go-backend.c: Adjust includes.
278 * go-gcc.cc: Likewise.
279 * go-lang.c: Likewise.
281 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
283 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
285 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
287 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
288 * go-gcc.cc: Likewise.
289 * go-lang.c: Likewise.
290 * go-system.h: Likewise.
292 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
294 * go-backend.c : Adjust include files.
295 * go-gcc.cc : Likewise.
296 * go-lang.c : Likewise.
298 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
300 * go-gcc.cc (write_global_definitions): Remove call to
301 finalize_compilation_unit.
302 Remove Go specific debug generation.
303 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
304 (go_langhook_write_globals): Remove.
305 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
307 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
309 * go-backend.c: Adjust includes for restructured coretypes.h.
311 * go-gcc.cc: Likewise.
312 * go-lang.c: Likewise.
314 2015-04-30 Chris Manghane <cmang@google.com>
316 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
319 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
321 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
323 2015-04-17 Chris Manghane <cmang@google.com>
325 * Make-lang.in (GO_OBJS): Add go/escape.o.
327 2015-02-02 Ian Lance Taylor <iant@google.com>
331 * go-gcc.cc (Gcc_backend::type_size): Change return type to
333 (Gcc_backend::type_alignment): Likewise.
334 (Gcc_backend::type_field_alignment): Likewise.
335 (Gcc_backend::type_field_offset): Likewise.
336 (Gcc_backend::implicit_variable): Change alignment parameter type
339 2015-01-23 Ian Lance Taylor <iant@google.com>
342 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
345 * gccgo.texi (C Interoperability): Mention that people should use
348 2015-01-23 Ian Lance Taylor <iant@google.com>
351 * go-lang.c (go_langhook_init_options_struct): Set default
353 (go_langhook_post_options): If debug_info_level is still the
354 default, make sure write_symbols is set.
355 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
357 2015-01-16 Richard Henderson <rth@redhat.com>
359 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
360 (Gcc_backend::static_chain_variable): New method.
362 2015-01-09 Ian Lance Taylor <iant@google.com>
364 * config-lang.in (lang_dirs): Define.
366 2015-01-09 Michael Collison <michael.collison@linaro.org>
368 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
369 input.h, alias.h, symtab.h, options.h, fold-const.h,
370 wide-int.h, and inchash.h due to flattening of tree.h.
372 * go-backend.c: Ditto.
374 2015-01-07 Chris Manghane <cmang@google.com>
377 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
380 2015-01-06 Chris Manghane <cmang@google.com>
382 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
383 initialize zero-sized fields, just evaluate the values for side
386 2015-01-05 Jakub Jelinek <jakub@redhat.com>
388 Update copyright years.
390 * gccgo.texi: Bump @copyrights-go year.
392 2014-12-19 Chris Manghane <cmang@google.com>
394 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
395 construct arrays of zero-sized values.
397 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
399 * go-lang.c: Remove redundant enum from machine_mode.
401 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
403 * go-gcc.cc: Adjust include files.
405 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
407 * go-gcc.cc: Adjust include files.
410 2014-10-23 Ian Lance Taylor <iant@google.com>
412 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
413 mpc_t parameter instead of two mpfr_t parameters.
415 2014-09-15 Jakub Jelinek <jakub@redhat.com>
417 * Make-lang.in (check_go_parallelize): Change to just an upper bound
420 2014-09-03 Chris Manghane <cmang@google.com>
422 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
423 parameter. Add is_hidden parameter.
424 (Gcc_backend::implicit_variable_set_init): New method.
425 (Gcc_backend::implicit_variable_reference): New method.
427 2014-08-08 Ian Lance Taylor <iant@google.com>
429 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
432 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
434 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
435 symtab_get_node to symtab_node::get.
437 2014-06-13 Ian Lance Taylor <iant@google.com>
440 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
441 ld, add -t option to avoid warning about common symbol changing
444 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
446 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
447 symtab_get_node(var_decl)->implicit_section.
449 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
451 * go-gcc.cc (global_variable_set_init): Use
452 set_decl_section_name.
454 2014-06-04 Ian Lance Taylor <iant@google.com>
456 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
457 alignment parameters. Permit init parameter to be NULL.
459 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
461 * go-gcc.cc: Include builtins.h.
463 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
465 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
467 2014-05-06 Chris Manghane <cmang@google.com>
469 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
470 (Gcc_backend::boolean_constant_expression): New method.
471 (Gcc_backend::zero_expression): Use this->make_expression rather
473 (Gcc_backend::var_expression): Likewise.
474 (Gcc_backend::integer_constant_expression): Likewise.
475 (Gcc_backend::float_constant_expression): Likewise.
476 (Gcc_backend::complex_constant_expression): Likewise.
477 (Gcc_backend::struct_field_expression): Likewise.
478 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
479 (tree_to_function, tree_to_block): Remove functions.
480 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
481 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
483 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
484 Mike Stump <mikestump@comcast.net>
485 Richard Sandiford <rdsandiford@googlemail.com>
487 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
489 2014-05-06 Chris Manghane <cmang@google.com>
491 * go-c.h (go_create_gogo): Update declaration to add
492 check_divide_zero and check_divide_overflow parameters.
493 * go-lang.c (go_langhook_init): Pass new arguments to
496 2014-05-05 Chris Manghane <cmang@google.com>
498 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
499 gc_root_variable. Add name and is_constant parameters.
501 2014-05-05 Chris Manghane <cmang@google.com>
503 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
505 (Gcc_backend::temporary_variable): Check for erroneous function.
507 2014-04-30 Chris Manghane <cmang@google.com>
509 * go-backend.c: #include "diagnostics.h".
510 (saw_errors): New function.
511 * go-c.h (saw_errors): Declare.
512 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
514 2014-04-30 Chris Manghane <cmang@google.com>
516 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
517 calling into Go frontend.
518 (go_langhook_type_for_mode): Likewise.
519 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
521 2014-04-30 Chris Manghane <cmang@google.com>
523 * go-gcc.cc: #include "langhooks.h".
524 (Gcc_backend::Gcc_backend): Add constructor.
525 (Gcc_backend::lookup_function): New function.
526 (Gcc_backend::define_builtin): New private function.
527 (Gcc_backend::gcc_backend): Remove.
528 (go_get_backend): Use new to create new Gcc_backend.
530 2014-04-25 Chris Manghane <cmang@google.com>
532 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
533 (Gcc_backend::return_statement): Push and pop function.
534 (Gcc_backend::label): Likewise.
535 (Gcc_backend::function_defer_statement): Likewise.
536 (Gcc_backend::switch_statement): Add function parameter.
537 (Gcc_backend::block): Don't permit function to be NULL.
538 (Gcc_backend::temporary_variable): Change go_assert to
540 (Gcc_backend::gc_root_variable): New function.
541 (Gcc_backend::write_global_definitions): New function.
543 2014-04-22 Chris Manghane <cmang@google.com>
545 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
546 call to create_tmp_var. Require that function be non-NULL.
548 2014-04-17 Chris Manghane <cmang@google.com>
550 * go-gcc.cc (Gcc_backend::named_constant_expression): New
553 2014-04-14 Chris Manghane <cmang@google.com>
555 * go-gcc.cc: Include "convert.h".
556 (Gcc_backend::string_constant_expression): New function.
557 (Gcc_backend::real_part_expression): Likewise.
558 (Gcc_backend::imag_part_expression): Likewise.
559 (Gcc_backend::complex_expression): Likewise.
560 (Gcc_backend::constructor_expression): Likewise.
561 (Gcc_backend::array_constructor_expression): Likewise.
562 (Gcc_backend::pointer_offset_expression): Likewise.
563 (Gcc_backend::array_index_expression): Likewise.
564 (Gcc_backend::call_expression): Likewise.
565 (Gcc_backend::exception_handler_statement): Likewise.
566 (Gcc_backend::function_defer_statement): Likewise.
567 (Gcc_backend::function_set_parameters): Likewise.
568 (Gcc_backend::function_set_body): Likewise.
569 (Gcc_backend::convert_expression): Handle various type
572 2014-03-03 Ian Lance Taylor <iant@google.com>
574 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
576 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
579 2014-01-24 Chris Manghane <cmang@google.com>
581 * go-gcc.cc (Gcc_backend::unary_expression): New function.
583 2014-01-16 Chris Manghane <cmang@google.com>
585 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
587 (operator_to_tree_code): New static function.
588 (Gcc_backend::binary_expression): New function.
590 2014-01-14 Chris Manghane <cmang@google.com>
592 * go-gcc.cc (Gcc_backend::compound_expression): New function.
593 (Gcc_backend::conditional_expression): New function.
595 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
597 Update copyright years
599 2014-01-02 Tobias Burnus <burnus@net-b.de>
601 * gccgo.texi: Bump @copying's copyright year.
603 2013-12-16 Chris Manghane <cmang@google.com>
605 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
607 2013-12-11 Ian Lance Taylor <iant@google.com>
609 * go-lang.c (go_langhook_post_options): Disable sibling calls by
612 2013-12-10 Ian Lance Taylor <iant@google.com>
614 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
617 2013-12-05 Ian Lance Taylor <iant@google.com>
619 Revert this change; no longer required.
620 2013-11-06 Ian Lance Taylor <iant@google.com>
622 * go-lang.c (go_langhook_post_options): If
623 -fisolate-erroneous-paths was turned on by an optimization option,
626 2013-11-23 Ian Lance Taylor <iant@google.com>
628 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
631 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
633 * go-gcc.cc: Add required include files from gimple.h.
634 * go-lang.c: Likewise
636 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
638 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
639 tree_to_shwi throughout.
641 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
643 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
644 tree_fits_shwi_p throughout.
646 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
648 * go-lang.c: Include only gimplify.h and gimple.h as needed.
650 2013-11-14 Diego Novillo <dnovillo@google.com>
652 * go-backend.c: Include stor-layout.h.
653 * go-gcc.cc: Include stringpool.h.
654 Include stor-layout.h.
656 * go-lang.c: Include stor-layout.h.
658 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
660 * go-lang.c: Include gimplify.h.
662 2013-11-06 Ian Lance Taylor <iant@google.com>
664 * go-lang.c (go_langhook_post_options): If
665 -fisolate-erroneous-paths was turned on by an optimization option,
668 2013-10-14 Chris Manghane <cmang@google.com>
670 * go-gcc.cc (Gcc_backend::address_expression): New function.
672 2013-10-11 Chris Manghane <cmang@google.com>
674 * go-gcc.cc (Gcc_backend::function_code_expression): New
677 2013-10-10 Chris Manghane <cmang@google.com>
679 * go-gcc.cc (Gcc_backend::error_function): New function.
680 (Gcc_backend::function): New function.
681 (Gcc_backend::make_function): New function.
682 (function_to_tree): New function.
684 2013-10-04 Chris Manghane <cmang@google.com>
686 * go-gcc.cc (Gcc_backend::convert_expression): New function.
688 2013-10-02 Chris Manghane <cmang@google.com>
690 * go-gcc.cc: Include "real.h" and "realmpfr.h".
691 (Gcc_backend::integer_constant_expression): New function.
692 (Gcc_backend::float_constant_expression): New function.
693 (Gcc_backend::complex_constant_expression): New function.
695 2013-09-30 Chris Manghane <cmang@google.com>
697 * go-gcc.cc (Gcc_backend::error_expression): New function.
698 (Gcc_backend::var_expression): New function.
699 (Gcc_backend::indirect_expression): New function.
701 2013-09-25 Tom Tromey <tromey@redhat.com>
703 * Make-lang.in (gospec.o): Remove.
704 (CFLAGS-go/gospec.o): New variable.
705 (GCCGO_OBJS): Update to use go/gospec.o.
707 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
708 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
709 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
710 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
711 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
712 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
713 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
714 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
715 (go/unsafe.o): Remove.
716 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
717 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
719 2013-09-25 Tom Tromey <tromey@redhat.com>
721 * Make-lang.in (gospec.o): Don't use subshell.
723 2013-08-28 Ian Lance Taylor <iant@google.com>
725 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
726 the struct is not hidden.
727 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
729 2013-08-06 Ian Lance Taylor <iant@google.com>
731 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
732 compute_reloc_for_constant.
734 2013-08-02 Ian Lance Taylor <iant@google.com>
736 * go-gcc.cc (immutable_struct_set_init): Always call
737 resolve_unique_section.
739 2013-07-24 Ian Lance Taylor <iant@google.com>
741 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
742 fields, recreate those fields with the first one with a non-zero
745 2013-07-23 Ian Lance Taylor <iant@google.com>
747 * go-backend.c: Don't #include "rtl.h".
748 (go_imported_unsafe): Don't call init_varasm_once.
749 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
751 2013-07-23 Ian Lance Taylor <iant@google.com>
753 * go-lang.c: Don't #include "except.h".
754 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
756 2013-06-18 Ian Lance Taylor <iant@google.com>
758 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
760 (Gcc_backend::immutable_struct_set_init): Likewise.
762 2013-05-16 Jason Merrill <jason@redhat.com>
764 * Make-lang.in (go1$(exeext)): Use link mutex.
766 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
768 * gospec.c: pass -u pthread_create to linker when static linking.
770 2012-12-21 Ian Lance Taylor <iant@google.com>
773 * go-system.h: Don't include <cstdio>.
775 2012-12-18 Ian Lance Taylor <iant@google.com>
778 * gospec.c: Revert last patch.
780 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
783 * gospec.c (LIBATOMIC): Define.
784 (LIBATOMIC_PROFILE): Define.
785 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
787 2012-11-29 Ian Lance Taylor <iant@google.com>
789 * go-gcc.cc: Include "output.h".
790 (global_variable): Add is_unique_section parameter.
791 (global_variable_set_init): Adjust unique section if necessary.
792 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
794 2012-11-17 Diego Novillo <dnovillo@google.com>
796 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
798 * go-lang.c: Use new vec API in vec.h.
800 2012-11-16 Ian Lance Taylor <iant@google.com>
802 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
803 (go1$(exeext)): Likewise.
805 2012-10-30 Ian Lance Taylor <iant@google.com>
807 * lang.opt (-fgo-relative-import-path): New option.
808 * go-lang.c (go_relative_import_path): New static variable.
809 (go_langhook_init): Pass go_relative_import_path to
811 (go_langhook_handle_option): Handle -fgo-relative-import-path.
812 * go-c.h (go_create_gogo): Update declaration.
813 * gccgo.texi (Invoking gccgo): Document
814 -fgo-relative-import-path.
816 2012-09-17 Ian Lance Taylor <iant@google.com>
818 * config-lang.in (target_libs): Add target-libbacktrace.
820 2012-09-16 Ian Lance Taylor <iant@google.com>
822 * Make-lang.in (go/gogo.o): Depend on filenames.h.
824 2012-08-14 Diego Novillo <dnovillo@google.com>
826 Merge from cxx-conversion branch. Configury.
828 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
829 * go-gcc.cc: Likewise.
830 * go-system.h: Likewise.
832 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
834 * go-lang.c (lang_decl): Add variable_size GTY option.
836 2012-05-09 Ian Lance Taylor <iant@google.com>
838 * lang.opt: Add -fgo-pkgpath.
839 * go-lang.c (go_pkgpath): New static variable.
840 (go_prefix): New static variable.
841 (go_langhook_init): Pass go_pkgpath and go_prefix to
843 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
844 -fgo-prefix handling to just set go_prefix.
845 * go-c.h (go_set_prefix): Don't declare.
846 (go_create_gogo): Add pkgpath and prefix to declaration.
847 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
848 to pkgpath. Don't include the package name in the asm name.
849 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
850 docs for -fgo-prefix.
852 2012-04-23 Ian Lance Taylor <iant@google.com>
854 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
856 2012-04-20 Ian Lance Taylor <iant@google.com>
858 * lang.opt: Add -fgo-check-divide-zero and
859 -fgo-check-divide-overflow.
860 * gccgo.texi (Invoking gccgo): Document new options.
862 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
864 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
865 with NULL_TREE type instead of void_type_node.
867 2012-03-09 Ian Lance Taylor <iant@google.com>
869 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
870 to the lhs type if necessary.
872 2012-03-08 Ian Lance Taylor <iant@google.com>
874 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
876 (go_non_zero_struct): New global variable.
877 (Gcc_backend::non_zero_size_type): New function.
878 (Gcc_backend::global_variable): Don't build an assignment for a
880 * go-c.h (go_non_zero_struct): Declare.
881 * config-lang.in (gtfiles): Add go-c.h.
883 2012-02-29 Ian Lance Taylor <iant@google.com>
885 * go-gcc.cc (class Gcc_tree): Add set_tree method.
886 (set_placeholder_pointer_type): When setting to a pointer to
887 error, set to error_mark_node.
889 2012-02-23 Richard Guenther <rguenther@suse.de>
891 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
892 build_distinct_type_copy.
894 2012-02-17 Ian Lance Taylor <iant@google.com>
896 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
898 2012-02-17 Ian Lance Taylor <iant@google.com>
900 * gospec.c (lang_specific_driver): If linking, and no -o option
903 2012-02-14 Ian Lance Taylor <iant@google.com>
906 * Make-lang.in (gccgo-cross$(exeext)): New target.
907 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
909 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
910 gccgo-cross$(exeext) does not exist.
912 2012-02-07 Ian Lance Taylor <iant@google.com>
914 * gccgo.texi (Function Names): Document //extern instead of
917 2012-02-01 Jakub Jelinek <jakub@redhat.com>
920 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
921 return build_nonstandard_integer_type result if possible.
923 2012-01-21 Ian Lance Taylor <iant@google.com>
925 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
926 (Gcc_backend::type_alignment): Likewise.
927 (Gcc_backend::type_field_alignment): Likewise.
928 (Gcc_backend::type_field_offset): Likewise.
930 2012-01-20 Ian Lance Taylor <iant@google.com>
932 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
934 (Gcc_backend::set_placeholder_struct_type): Likewise.
936 2012-01-17 Ian Lance Taylor <iant@google.com>
938 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
939 BASE.s rather than -o BASE.o.
941 2012-01-11 Ian Lance Taylor <iant@google.com>
943 * go-lang.c (go_langhook_init): Initialize void_list_node before
944 calling go_create_gogo.
946 2012-01-10 Ian Lance Taylor <iant@google.com>
948 * go-gcc.cc (Gcc_backend::type_size): New function.
949 (Gcc_backend::type_alignment): New function.
950 (Gcc_backend::type_field_alignment): New function.
951 (Gcc_backend::type_field_offset): New function.
952 * go-backend.c (go_type_alignment): Remove.
953 * go-c.h (go_type_alignment): Don't declare.
955 2011-12-27 Ian Lance Taylor <iant@google.com>
957 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
958 build_distinct_type_copy rather than build_variant_type_copy.
959 (Gcc_backend::set_placeholder_array_type): Likewise.
960 (Gcc_backend::named_type): Add special handling for builtin
963 2011-12-22 Ian Lance Taylor <iant@google.com>
965 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
966 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
967 (Gcc_backend::set_placeholder_struct_type): Likewise.
968 (Gcc_backend::set_placeholder_array_type): Likewise.
969 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
971 2011-12-13 Ian Lance Taylor <iant@google.com>
973 * go-backend.c: #include "simple-object.h" and "intl.h".
974 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
975 (GO_EXPORT_SECTION_NAME): Likewise.
976 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
977 (go_read_export_data): New function.
978 * go-c.h (go_read_export_data): Declare.
980 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
981 Ian Lance Taylor <iant@google.com>
983 * go-location.h: New file.
984 * go-linemap.cc: New file.
985 * go-gcc.cc: Change all uses of source_location to Location.
986 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
987 (GO_LINEMAP_H): New variable.
988 (GO_LEX_H): Use $(GO_LINEMAP_H).
989 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
990 (go/go-linemap.o): New target.
992 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
994 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
996 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
998 * lang.opt: Add fgo-optimize-.
999 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1000 * go-c.h (go_enable_optimize): Declare.
1001 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1002 (GO_EXPORT_H): Define.
1003 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1004 (GO_AST_DUMP_H): Define.
1005 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1006 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1007 (go/types.o): Likewise.
1008 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1009 (go/go-optimize.o): New target.
1011 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1013 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1014 (go/go-lang.o): Remove explicit compilation rule.
1016 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1018 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1020 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1022 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1023 (go/ast-dump.o): New target.
1024 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1025 (go/statements.o): Likewise.
1027 2011-07-06 Richard Guenther <rguenther@suse.de>
1029 * go-lang.c (go_langhook_init):
1030 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1032 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1034 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1036 * go-backend.c: Include common/common-target.h.
1037 (go_write_export_data): Use targetm_common.have_named_sections.
1038 * go-lang.c: Include common/common-target.h.
1039 (go_langhook_init_options_struct): Use
1040 targetm_common.supports_split_stack.
1042 2011-06-13 Ian Lance Taylor <iant@google.com>
1044 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1046 2011-06-10 Ian Lance Taylor <iant@google.com>
1048 * go-gcc.cc: Include "toplev.h".
1049 (Gcc_backend::immutable_struct): New function.
1050 (Gcc_backend::immutable_struct_set_init): New function.
1051 (Gcc_backend::immutable_struct_reference): New function.
1052 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1054 2011-06-09 Ian Lance Taylor <iant@google.com>
1056 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1058 2011-06-07 Richard Guenther <rguenther@suse.de>
1060 * go-lang.c (go_langhook_init): Do not set
1061 size_type_node or call set_sizetype.
1063 2011-05-27 Ian Lance Taylor <iant@google.com>
1065 * go-backend.c: Include "output.h".
1066 (go_write_export_data): New function.
1067 * go-c.h (go_write_export_data): Declare.
1068 * Make-lang.in (go/go-backend.o): Depend on output.h.
1069 (go/export.o): Depend on $(GO_C_H). Do not depend on
1070 $(MACHMODE_H), output.h, or $(TARGET_H).
1072 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1074 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1075 (gccgo$(exeext)): Use libcommon-target.a.
1077 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1079 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1081 2011-05-13 Ian Lance Taylor <iant@google.com>
1083 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1084 for multiple results, check that all fields types have a size.
1085 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1087 2011-05-12 Ian Lance Taylor <iant@google.com>
1089 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1091 (Gcc_backend::parameter_variable): Likewise.
1093 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1095 * go-lang.c (global_bindings_p): Return bool and simplify.
1097 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1099 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1101 2011-05-04 Ian Lance Taylor <iant@google.com>
1103 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1104 (Gcc_backend::fill_in_struct): New function.
1105 (Gcc_backend::array_type): Implement.
1106 (Gcc_backend::fill_in_array): New function.
1107 (Gcc_backend::placeholder_pointer_type): New function.
1108 (Gcc_backend::set_placeholder_pointer_type): New function.
1109 (Gcc_backend::set_placeholder_function_type): New function.
1110 (Gcc_backend::placeholder_struct_type): New function.
1111 (Gcc_backend::set_placeholder_struct_type): New function.
1112 (Gcc_backend::placeholder_array_type): New function.
1113 (Gcc_backend::set_placeholder_array_type): New function.
1114 (Gcc_backend::named_type): New function.
1115 (Gcc_backend::circular_pointer_type): New function.
1116 (Gcc_backend::is_circular_pointer_type): New function.
1118 2011-04-26 Ian Lance Taylor <iant@google.com>
1120 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1122 2011-04-25 Ian Lance Taylor <iant@google.com>
1124 * go-gcc.cc (Gcc_backend::error_type): Implement.
1125 (Gcc_backend::string_type): Remove.
1126 (Gcc_backend::function_type): Change signature and implement.
1127 (Gcc_backend::struct_type): Change signature.
1128 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1129 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1130 (Gcc_backend::pointer_type): Check for error.
1131 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1133 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1135 * go-gcc.c (class Gcc_tree): Make get_tree const.
1136 (Gcc_backend::void_type): Implement.
1137 (Gcc_backend::bool_type): Implement.
1138 (Gcc_backend::integer_type): Implement.
1139 (Gcc_backend::float_type): Implement.
1140 (Gcc_backend::complex_type): New function.
1141 (Gcc_backend::pointer_type): New function.
1142 (Gcc_backend::make_type): New function.
1143 (type_to_tree): New function.
1145 2011-04-21 Ian Lance Taylor <iant@google.com>
1147 * go-system.h (go_assert, go_unreachable): Define.
1149 2011-04-19 Ian Lance Taylor <iant@google.com>
1151 * go-system.h: Include "intl.h".
1152 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1153 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1154 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1156 2011-04-19 Ian Lance Taylor <iant@google.com>
1158 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1160 2011-04-19 Ian Lance Taylor <iant@google.com>
1162 * go-gcc.cc (class Bblock): Define.
1163 (Gcc_backend::if_statement): Change then_block and else_block to
1165 (Gcc_backend::block): New function.
1166 (Gcc_backend::block_add_statements): New function.
1167 (Gcc_backend::block_statement): New function.
1168 (tree_to_block, block_to_tree): New functions.
1170 2011-04-18 Ian Lance Taylor <iant@google.com>
1172 * go-gcc.cc: Include "go-c.h".
1173 (class Bvariable): Define.
1174 (Gcc_backend::init_statement): New function.
1175 (Gcc_backend::global_variable): New function.
1176 (Gcc_backend::global_variable_set_init): New function.
1177 (Gcc_backend::local_variable): New function.
1178 (Gcc_backend::parameter_variable): New function.
1179 (tree_to_type, var_to_tree): New functions.
1180 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1181 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1183 2011-04-15 Ian Lance Taylor <iant@google.com>
1185 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1186 (Gcc_backend::assignment_statement): Use error_statement.
1187 (Gcc_backend::return_statement): Likewise.
1188 (Gcc_backend::if_statement): Likewise.
1189 (Gcc_backend::switch_statement): Likewise.
1190 (Gcc_backend::statement_list): Likewise.
1192 2011-04-14 Ian Lance Taylor <iant@google.com>
1194 * go-gcc.cc (Gcc_backend::error_statement): New function.
1196 2011-04-13 Ian Lance Taylor <iant@google.com>
1198 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1200 2011-04-13 Ian Lance Taylor <iant@google.com>
1202 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1203 (GO_RUNTIME_H): New variable.
1204 (go/runtime.o): New target.
1205 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1206 (go/statements.o): Likewise.
1208 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1210 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1213 2011-04-06 Ian Lance Taylor <iant@google.com>
1215 * go-gcc.cc (if_statement): Use build3_loc.
1216 (Gcc_backend::switch_statement): New function.
1217 (Gcc_backend::statement_list): New function.
1219 2011-04-06 Ian Lance Taylor <iant@google.com>
1221 * go-gcc.cc (Gcc_backend::if_statement): New function.
1222 (tree_to_stat): New function.
1223 (expr_to_tree): Renamed from expression_to_tree.
1224 (stat_to_tree): Renamed from statement_to_tree.
1226 2011-04-06 Ian Lance Taylor <iant@google.com>
1228 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1230 2011-04-04 Ian Lance Taylor <iant@google.com>
1232 * go-gcc.c (class Blabel): Define.
1233 (Gcc_backend::make_expression): New function.
1234 (get_identifier_from_string): New function.
1235 (Gcc_backend::label): New function.
1236 (Gcc_backend::label_definition_statement): New function.
1237 (Gcc_backend::goto_statement): New function.
1238 (Gcc_backend::label_address): New function.
1239 (expression_to_tree): New function.
1240 * Make-lang.in (go/expressions.o): Depend on
1241 go/gofrontend/backend.h.
1242 (go/gogo.o): Likewise.
1244 2011-04-04 Ian Lance Taylor <iant@google.com>
1246 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1247 (class Bfunction): Define.
1248 (Gcc_backend::assignment_statement): Rename from assignment.
1250 (Gcc_backend::return_statement): New function.
1251 (tree_to_function): New function.
1252 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1253 $(GIMPLE_H), and $(GO_GOGO_H).
1255 2011-04-03 Ian Lance Taylor <iant@google.com>
1257 * go-gcc.cc: New file.
1258 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1259 (go/go-gcc.o): New target.
1260 (go/go.o): Depend on go/gofrontend/backend.h.
1261 (go/statements.o): Likewise.
1263 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1265 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1267 2011-02-08 Ian Lance Taylor <iant@google.com>
1269 * go-lang.c (go_langhook_init_options_struct): Set
1270 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1272 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1274 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1275 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1277 2011-01-21 Ian Lance Taylor <iant@google.com>
1279 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1281 * go-c.h: Update declaration of go_create_gogo.
1283 2011-01-13 Ian Lance Taylor <iant@google.com>
1285 * go-backend.c: Include "rtl.h" and "target.h".
1286 (go_imported_unsafe): New function.
1287 * go-c.h (go_imported_unsafe): Declare.
1288 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1289 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1290 (go/unsafe.o): Depend on $(GO_C_H).
1292 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1295 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1298 2010-12-21 Ian Lance Taylor <iant@google.com>
1300 * Make-lang.in (check-go): Remove.
1301 (lang_checks_parallelized): Add check-go.
1302 (check_go_parallelize): Set.
1304 2010-12-13 Ian Lance Taylor <iant@google.com>
1306 * gospec.c (lang_specific_driver): Add a -o option if not linking
1307 and there is no -o option already.
1309 2010-12-07 Ian Lance Taylor <iant@google.com>
1311 PR tree-optimization/46805
1312 PR tree-optimization/46833
1313 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1315 2010-12-06 Ian Lance Taylor <iant@google.com>
1319 * go-lang.c (go_char_p): Define type and vectors.
1320 (go_search_dirs): New static variable.
1321 (go_langhook_handle_option): Use version and version/machine
1323 (go_langhook_post_options): Add non-specific -L paths.
1324 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1325 DEFAULT_TARGET_MACHINE when compiling.
1326 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1327 (Import and Export): Don't mention -L for finding import files.
1329 2010-12-03 Ian Lance Taylor <iant@google.com>
1332 * go-backend.c: New file.
1333 * go-c.h (go_type_alignment): Declare.
1334 (go_field_alignment, go_trampoline_info): Declare.
1335 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1336 (go/go-backend.o): New target.
1337 (go/go-lang.o): Make dependencies match source file.
1338 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1339 (go/gogo-tree.o): Don't depend on $(TM_H).
1341 2010-12-03 Ian Lance Taylor <iant@google.com>
1343 * config-lang.in (build_by_default): Set to no.
1345 2010-12-02 Ian Lance Taylor <iant@google.com>
1347 Go frontend added to gcc repository.
1349 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1351 Copying and distribution of this file, with or without modification,
1352 are permitted in any medium without royalty provided the copyright
1353 notice and this notice are preserved.