[PR c++/84492] stmt expr ending with overload
[official-gcc.git] / gcc / go / ChangeLog
blobb63a969e377cabebe5e0c0466ef0a3847b9d3a8f
1 2018-02-03  Ian Lance Taylor  <iant@golang.org>
3         * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
4         using structural equality.
6 2018-02-02  Ian Lance Taylor  <iant@golang.org>
8         * go-gcc.cc (Gcc_backend::type_size): Return 0 for
9         void_type_node.
10         (Gcc_backend::convert_expression): Don't convert if the type of
11         expr_tree is void_type_node.
12         (Gcc_backend::array_index_expression): Don't index if the type of
13         the array expression is void_type_node.
14         (Gcc_backend::init_statement): Don't initialize if the type of the
15         initializer expression is void_type_node.
16         (Gcc_backend::assignment_statement): Don't assign if the type of
17         either the left or right hand side is void_type_node.
18         (Gcc_backend::temporary_variable): Don't initialize if the type of
19         the initializer expression is void_type_node.
21 2018-02-01  Cherry Zhang  <cherryyz@google.com>
23         * lang.opt (fgo-optimize): Remove RejectNegative.
24         * go-c.h (go_enable_optimize): Update declaration to take value
25         argument.
26         * go-lang.c (go_langhook_handle_option): Pass value to
27         go_enable_optimize.
28         * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
30 2018-01-30  Ian Lance Taylor  <iant@golang.org>
32         * go-gcc.cc (Gcc_backend::convert_tree): New private method.
33         (Gcc_backend::constructor_expression): Call it.
34         (Gcc_backend::assignment_statement): Likewise.
35         (Gcc_backend::temporary_variable): Likewise.
37 2018-01-09  Cherry Zhang  <cherryyz@google.com>
39         * go-gcc.cc (local_variable): Add decl_var parameter.
41 2018-01-09  Cherry Zhang  <cherryyz@google.com>
43         * lang.opt (fgo-debug-escape-hash): New option.
44         * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
45         field.
46         * go-lang.c (go_langhook_init): Set debug_escape_hash field.
47         * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
49 2018-01-05  Ian Lance Taylor  <iant@golang.org>
51         * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
52         math_function_type_long to take one argument.
54 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
55             Alan Hayward  <alan.hayward@arm.com>
56             David Sherwood  <david.sherwood@arm.com>
58         * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
60 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
61             Alan Hayward  <alan.hayward@arm.com>
62             David Sherwood  <david.sherwood@arm.com>
64         * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
66 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
68         Update copyright years.
70         * gccgo.texi: Bump @copyrights-go year.
72 2017-12-12  Tony Reix  <tony.reix@atos.net>
73             Ian Lance Taylor  <iant@golang.org>
75         * go-lang.c (TARGET_AIX): Define if not defined.
76         (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
78 2017-12-01  Ian Lance Taylor  <iant@golang.org>
80         * go-gcc.cc (Gcc_backend::Gcc_backend): Define
81         __builtin_unreachable.
82         (Gcc_backend::function): Add does_not_return parameter.
84 2017-12-01  Than McIntosh  <thanm@google.com>
86         * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
87         field.
88         * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
90 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
92         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
93         build2_loc instead of build3_loc.
95 2017-11-14  Than McIntosh  <thanm@google.com>
97         * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
99 2017-10-11  Tony Reix  <tony.reix@atos.net>
101         * go-system.h (__STDC_FORMAT_MACROS): Define before including any
102         system header files, as is done in ../system.h.
104 2017-10-05  Ian Lance Taylor  <iant@golang.org>
106         * Make-lang.in (GO_OBJS): Add go/names.o.
108 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
109             Alan Hayward  <alan.hayward@arm.com>
110             David Sherwood  <david.sherwood@arm.com>
112         * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
114 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
115             Alan Hayward  <alan.hayward@arm.com>
116             David Sherwood  <david.sherwood@arm.com>
118         * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
120 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
121             Alan Hayward  <alan.hayward@arm.com>
122             David Sherwood  <david.sherwood@arm.com>
124         * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
126 2017-08-07  Martin Liska  <mliska@suse.cz>
128         * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
129         and not __no_split_stack__.
131 2017-07-27    Tony Reix  <tony.reix@atos.net>
133         * go-backend.c (go_write_export_data): Use EXCLUDE section for
134         AIX.
136 2017-06-09  Ian Lance Taylor  <iant@golang.org>
138         * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
139         on, disable implicit -forder-blocks-and-partition.
141 2017-05-12  Than McIntosh  <thanm@google.com>
143         * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
145 2017-05-11  Ian Lance Taylor  <iant@google.com>
147         PR go/64238
148         * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
149         DECL_EXTERNAL, clear TREE_STATIC.
151 2017-05-10  Than McIntosh  <thanm@google.com>
153         * go-backend.c: Include "go-c.h".
154         * go-gcc.cc (Gcc_backend::write_export_data): New method.
156 2017-05-10  Ian Lance Taylor  <iant@google.com>
158         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
159         __builtin_prefetch.
160         * Make-lang.in (GO_OBJS): Add go/wb.o.
162 2017-03-28  Than McIntosh  <thanm@google.com>
164         PR go/80226
165         * go-gcc.cc (Gcc_backend::return_statement): Check for
166         void_type_node when checking result size.
168 2017-02-20  Ian Lance Taylor  <iant@golang.org>
170         PR go/79642
171         * lang.opt (-fgo-relative-import-path): Change space to tab.
173 2017-02-07  Richard Biener  <rguenther@suse.de>
175         PR tree-optimization/79256
176         PR middle-end/79278
177         * go-backend.c (go_field_alignment): Adjust.
179 2017-01-11  Than McIntosh  <thanm@google.com>
181         * go-gcc.cc (conditional_expression): Add Bfunction parameter.
183 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
185         Update copyright years.
187         * gccgo.texi: Bump @copyrights-go year.
189 2016-12-16  Than McIntosh  <thanm@google.com>
191         * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
192         parameter.
193         (Gcc_backend::init_statement): Likewise.
194         (Gcc_backend::assignment_statement): Likewise.
195         (Gcc_backend::if_statement): Likewise.
197 2016-12-06  Than McIntosh  <thanm@google.com>
199         * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
200         parameter.
202 2016-11-22  Than McIntosh  <thanm@google.com>
204         * go-gcc.cc (char_needs_encoding): Remove.
205         (needs_encoding, fetch_utf8_char, encode_id): Remove.
206         (Gcc_backend::global_variable): Add asm_name parameter.  Don't
207         compute asm_name here.
208         (Gcc_backend::implicit_variable): Likewise.
209         (Gcc_backend::implicit_variable_reference): Likewise.
210         (Gcc_backend::immutable_struct): Likewise.
211         (Gcc_backend::immutable_struct_reference): Likewise.
212         * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
214 2016-11-22  Ian Lance Taylor  <iant@google.com>
216         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
217         __builtin_frame_address.
219 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
221         * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
222         from result of GET_MODE_CLASS.  Minor formatting fixes.
224 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
226         * go-backend.c: Include memmodel.h.
228 2016-10-10  Than McIntosh  <thanm@google.com>
230         * go-gcc.h: New file.
231         * go-c.h (struct go_create_gogo_args): Add backend and linemap
232         fields.
233         * go-lang.c: Include "go-gcc.h".
234         (go_langhook_init): Set linemap and backend fields of args.
235         * go-gcc.cc: Include "go-gcc.h".
236         * go-linemap.cc: Include "go-gcc.h".
238 2016-10-10  Than McIntosh  <thanm@google.com>
240         * go-linemap.cc (Gcc_linemap::location_line): New method.
242 2016-10-10  Eric Botcazou  <ebotcazou@adacore.com>
244         * config-lang.in (lang_requires_boot_languages): Delete.
246 2016-10-06  Chris Manghane  <cmang@google.com>
248         * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
249         returned memory.
251 2016-09-27  Than McIntosh  <thanm@google.com>
253         * go-linemap.cc (Gcc_linemap::to_string): New method.
255 2016-09-23  Than McIntosh  <thanm@google.com>
257         * go-gcc-diagnostics.cc: New file.
258         * go-location.h (Location): Remove operator source_location.  Add
259         operator==.
260         * go-system.h: #include <sstream>.
261         * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
262         go/go-gcc-diagnostics.o.
263         (CFLAGS-go/go-gcc-diagnostics.o): New variable.
265 2016-09-23  Chris Manghane  <cmang@google.com>
267         PR go/77701
268         * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
269         to pass arguments in the correct order.
271 2016-09-22  Ian Lance Taylor  <iant@golang.org>
273         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
274         __builtin_frame_address.
276 2016-09-11  Ian Lance Taylor  <iant@golang.org>
278         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
279         ctz, ctzll, bswap32, bswap64.
281 2016-09-10  Ian Lance Taylor  <iant@golang.org>
283         * go-backend.c (go_trampoline_info): Remove.
284         * go-c.h (go_trampoline_info): Don't declare.
286 2016-09-09  Than McIntosh  <thanm@google.com>
288         * go-sha1.cc: New file.
289         * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
290         (CFLAGS-go/go-sha1.o): New variable.
292 2016-08-29  Ian Lance Taylor  <iant@google.com>
294         * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
295         * go-c.h (struct go_create_gogo_args): Define.
296         (go_create_gogo): Change declaration to take struct pointer.
297         * go-lang.c (go_c_header): New static variable.
298         (go_langhook_init): Update call to go_create_gogo.
299         * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
300         -fgo-compiling-runtime.
302 2016-08-09  Ian Lance Taylor  <iant@google.com>
304         * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
305         -fgo-debug-escae.
306         (Compiler Directives): New chapter.
307         (Function Names): Describe using //go:linkname.  Suggest using
308         -fgo-pkgpath rather than -fgo-prefix.
310 2016-08-08  Ian Lance Taylor  <iant@google.com>
312         PR go/72814
313         * go-gcc.cc (Gcc_backend::function_type): If the return type is
314         zero bytes, treat the function as returning void.
315         (return_statement): If the return type is zero bytes, don't
316         actually return any values.
318 2016-08-05  Ian Lance Taylor  <iant@google.com>
320         PR go/72812
321         * go-gcc.cc (char_needs_encoding): New static function.
322         (needs_encoding, fetch_utf8_char): New static functions.
323         (encode_id): New static function.
324         (Gcc_backend::global_variable): Set asm name if the name is not
325         simple ASCII.
326         (Gcc_backend::implicit_variable): Likewise.
327         (Gcc_backend::implicit_variable_reference): Likewise.
328         (Gcc_backend::immutable_struct): Likewise.
329         (Gcc_backend::immutable_struct_reference): Likewise.
330         (Gcc_backend::function): Likewise.
332 2016-08-02  Chris Manghane  <cmang@google.com>
334         * lang.opt: Add -fgo-debug-escape option.
335         * go-c.h (go_create_gogo): Add debug_escape_level parameter.
336         * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
337         go_create_gogo.
339 2016-05-06  Chris Manghane  <cmang@google.com>
341         * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
342         new escape.cc).
344 2016-04-29  Chris Manghane  <cmang@google.com>
346         * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
348 2016-04-18  Michael Matz  <matz@suse.de>
350         * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
352 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
354         * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
355         neighbour -> neighbor.
356         * gccgo.texi: Likewise.
358 2016-01-27  Ian Lance Taylor  <iant@google.com>
360         * go-lang.c (go_langhook_init_options_struct): Default to
361         -fkeep-gc-roots-live.
363 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
365         Update copyright years.
367         * gccgo.texi: Bump @copyrights-go year.
369 2015-12-21  Ian Lance Taylor  <iant@google.com>
371         * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class.  Add
372         t_ and orig_type_ fields.  Add new two parameter constructor.  Add
373         get_tree and get_decl methods.
374         (Gcc_backend::var_expression): Pass location to var get_tree.
375         (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR.  Use
376         two parameter constructor for Bvariable.
377         (Gcc_backend::global_variable_set_init): Don't remove
378         VIEW_CONVERT_EXPR.  Use var get_decl, not get_tree.
379         (Gcc_backend::write_global_definitions): Likewise.
380         (Gcc_backend::init_statement): Call var get_decl, not get_tree.
381         (Gcc_backend::block): Likewise.
382         (Gcc_backend::implicit_variable_set_init): Likewise.
383         (Gcc_backend::immutable_struct_set_init): Likewise.
384         (Gcc_backend::function_set_parameters): Likewise.
386 2015-12-21  Ian Lance Taylor  <iant@google.com>
388         * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
389         add a VIEW_CONVERT_EXPR to the tree.
390         (Gcc_backend::global_variable_set_init): Remove any
391         VIEW_CONVERT_EXPR.
392         (Gcc_backend::write_global_definitions): Likewise.
394 2015-11-30  Ian Lance Taylor  <iant@google.com>
396         PR go/68477
397         * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
398         TYPE_STRING_FLAG on a variant type.
400 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
402         * go-backend.c: Remove unused header files.
403         * go-gcc.cc: Likewise.
404         * go-lang.c: Likewise.
405         * gospec.c: Likewise.
407 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
409         * go-backend.c: Reorder #include's and remove duplicates.
410         * go-lang.c: Likewise.
412 2015-10-20  Alan Modra  <amodra@gmail.com>
414         PR go/66870
415         * gospec.c (saw_opt_m32): Rename to..
416         (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
417         Update uses.
418         (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
420 2015-10-01  Ian Lance Taylor  <iant@google.com>
422         PR go/66870
423         * gospec.c (lang_specific_driver): Only look for OPT_m32 if
424         TARGET_CAN_SPLIT_STACK_64BIT is defined.
426 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
428         PR target/66870
429         * gospec.c (lang_specific_driver): Set appropriate split stack
430         options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
432 2015-09-10  Chris Manghane  <cmang@google.com>
434         * go-gcc.cc (Gcc_backend::type_size): Return -1 for
435         unrepresentable size.
437 2015-08-24  Marek Polacek  <polacek@redhat.com>
439         PR tree-optimization/67284
440         * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
441         Set TREE_THIS_VOLATILE.
442         (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
443         Pass false to the rest of define_builtin calls.
445 2015-07-31  Andreas Schwab  <schwab@linux-m68k.org>
447         * go-lang.c (go_langhook_init_options_struct): Don't set
448         x_flag_split_stack.
449         (go_langhook_post_options): Set it here instead.
451 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
453         * gofrontend/backend.h: Fix double word typos.
454         * gofrontend/expressions.cc: Same.
455         * gospec.c: Same.
457 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
459         * go-backend.c: Adjust includes.
460         * go-gcc.cc: Likewise.
461         * go-lang.c: Likewise.
463 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
465         * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
467 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
469         * go-backend.c: Do not include input.h, line-map.h or is-a.h.
470         * go-gcc.cc: Likewise.
471         * go-lang.c: Likewise.
472         * go-system.h: Likewise.
474 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
476         * go-backend.c : Adjust include files.
477         * go-gcc.cc : Likewise.
478         * go-lang.c : Likewise.
480 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
482         * go-gcc.cc (write_global_definitions): Remove call to
483         finalize_compilation_unit.
484         Remove Go specific debug generation.
485         * go-lang.c (go_langhook_parse_file): Call go_write_globals.
486         (go_langhook_write_globals): Remove.
487         Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
489 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
491         * go-backend.c: Adjust includes for restructured coretypes.h.
492         * go-c.h: Likewise.
493         * go-gcc.cc: Likewise.
494         * go-lang.c: Likewise.
496 2015-04-30  Chris Manghane  <cmang@google.com>
498         * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
499         method.
501 2015-04-27  Jim Wilson  <jim.wilson@linaro.org>
503         * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
505 2015-04-17  Chris Manghane  <cmang@google.com>
507         * Make-lang.in (GO_OBJS): Add go/escape.o.
509 2015-02-02  Ian Lance Taylor  <iant@google.com>
511         PR go/64836
512         PR go/64838
513         * go-gcc.cc (Gcc_backend::type_size): Change return type to
514         int64_t.
515         (Gcc_backend::type_alignment): Likewise.
516         (Gcc_backend::type_field_alignment): Likewise.
517         (Gcc_backend::type_field_offset): Likewise.
518         (Gcc_backend::implicit_variable): Change alignment parameter type
519         to int64_t.
521 2015-01-23  Ian Lance Taylor  <iant@google.com>
523         PR go/63565
524         * gccgo.texi (Invoking gccgo): Mention that Go programs should not
525         be stripped.
527         * gccgo.texi (C Interoperability): Mention that people should use
528         cgo.
530 2015-01-23  Ian Lance Taylor  <iant@google.com>
532         PR go/64595
533         * go-lang.c (go_langhook_init_options_struct): Set default
534         debug_info_level.
535         (go_langhook_post_options): If debug_info_level is still the
536         default, make sure write_symbols is set.
537         * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
539 2015-01-16  Richard Henderson  <rth@redhat.com>
541         * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
542         (Gcc_backend::static_chain_variable): New method.
544 2015-01-09  Ian Lance Taylor  <iant@google.com>
546         * config-lang.in (lang_dirs): Define.
548 2015-01-09  Michael Collison  <michael.collison@linaro.org>
550         * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
551         input.h, alias.h, symtab.h, options.h, fold-const.h,
552         wide-int.h, and inchash.h due to flattening of tree.h.
553         * go-lang.c: Ditto.
554         * go-backend.c: Ditto.
556 2015-01-07  Chris Manghane  <cmang@google.com>
558         PR go/61204
559         * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
560         zero-sized variable.
562 2015-01-06  Chris Manghane  <cmang@google.com>
564         * go-gcc.cc (Gcc_backend::constructor_expression): Don't
565         initialize zero-sized fields, just evaluate the values for side
566         effects.
568 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
570         Update copyright years.
572         * gccgo.texi: Bump @copyrights-go year.
574 2014-12-19  Chris Manghane  <cmang@google.com>
576         * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
577         construct arrays of zero-sized values.
579 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
581         * go-lang.c: Remove redundant enum from machine_mode.
583 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
585         * go-gcc.cc: Adjust include files.
587 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
589         * go-gcc.cc: Adjust include files.
590         * go-lang.c: Ditto.
592 2014-10-23  Ian Lance Taylor  <iant@google.com>
594         * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
595         mpc_t parameter instead of two mpfr_t parameters.
597 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
599         * Make-lang.in (check_go_parallelize): Change to just an upper bound
600         number.
602 2014-09-03  Chris Manghane  <cmang@google.com>
604         * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
605         parameter.  Add is_hidden parameter.
606         (Gcc_backend::implicit_variable_set_init): New method.
607         (Gcc_backend::implicit_variable_reference): New method.
609 2014-08-08  Ian Lance Taylor  <iant@google.com>
611         * go-gcc.cc (Gcc_backend::compound_statement): Don't return
612         NULL_TREE.
614 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
616         * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
617         symtab_get_node to symtab_node::get.
619 2014-06-13  Ian Lance Taylor  <iant@google.com>
621         PR go/61496
622         * gospec.c (lang_specific_driver): On Solaris, when not using GNU
623         ld, add -t option to avoid warning about common symbol changing
624         size.
626 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
628         * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
629         symtab_get_node(var_decl)->implicit_section.
631 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
633         * go-gcc.cc (global_variable_set_init): Use
634         set_decl_section_name.
636 2014-06-04  Ian Lance Taylor  <iant@google.com>
638         * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
639         alignment parameters.  Permit init parameter to be NULL.
641 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
643         * go-gcc.cc: Include builtins.h.
645 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
647         * go-lang.c (struct GTY): Don't use variable_size gty attribute.
649 2014-05-06  Chris Manghane  <cmang@google.com>
651         * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
652         (Gcc_backend::boolean_constant_expression): New method.
653         (Gcc_backend::zero_expression): Use this->make_expression rather
654         than tree_to_expr.
655         (Gcc_backend::var_expression): Likewise.
656         (Gcc_backend::integer_constant_expression): Likewise.
657         (Gcc_backend::float_constant_expression): Likewise.
658         (Gcc_backend::complex_constant_expression): Likewise.
659         (Gcc_backend::struct_field_expression): Likewise.
660         (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
661         (tree_to_function, tree_to_block): Remove functions.
662         (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
663         (block_to_tree, var_to_tree, function_to_tree): Remove functions.
665 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
666             Mike Stump  <mikestump@comcast.net>
667             Richard Sandiford  <rdsandiford@googlemail.com>
669         * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
671 2014-05-06  Chris Manghane  <cmang@google.com>
673         * go-c.h (go_create_gogo): Update declaration to add
674         check_divide_zero and check_divide_overflow parameters.
675         * go-lang.c (go_langhook_init): Pass new arguments to
676         go_create_gogo.
678 2014-05-05  Chris Manghane  <cmang@google.com>
680         * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
681         gc_root_variable.  Add name and is_constant parameters.
683 2014-05-05  Chris Manghane  <cmang@google.com>
685         * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
686         parameter.
687         (Gcc_backend::temporary_variable): Check for erroneous function.
689 2014-04-30  Chris Manghane  <cmang@google.com>
691         * go-backend.c: #include "diagnostics.h".
692         (saw_errors): New function.
693         * go-c.h (saw_errors): Declare.
694         * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
696 2014-04-30  Chris Manghane  <cmang@google.com>
698         * go-lang.c (go_langhook_type_for_size): Do it here, rather than
699         calling into Go frontend.
700         (go_langhook_type_for_mode): Likewise.
701         * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
703 2014-04-30  Chris Manghane  <cmang@google.com>
705         * go-gcc.cc: #include "langhooks.h".
706         (Gcc_backend::Gcc_backend): Add constructor.
707         (Gcc_backend::lookup_function): New function.
708         (Gcc_backend::define_builtin): New private function.
709         (Gcc_backend::gcc_backend): Remove.
710         (go_get_backend): Use new to create new Gcc_backend.
712 2014-04-25  Chris Manghane  <cmang@google.com>
714         * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
715         (Gcc_backend::return_statement): Push and pop function.
716         (Gcc_backend::label): Likewise.
717         (Gcc_backend::function_defer_statement): Likewise.
718         (Gcc_backend::switch_statement): Add function parameter.
719         (Gcc_backend::block): Don't permit function to be NULL.
720         (Gcc_backend::temporary_variable): Change go_assert to
721         gcc_assert.
722         (Gcc_backend::gc_root_variable): New function.
723         (Gcc_backend::write_global_definitions): New function.
725 2014-04-22  Chris Manghane  <cmang@google.com>
727         * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
728         call to create_tmp_var.  Require that function be non-NULL.
730 2014-04-17  Chris Manghane  <cmang@google.com>
732         * go-gcc.cc (Gcc_backend::named_constant_expression): New
733         function.
735 2014-04-14  Chris Manghane  <cmang@google.com>
737         * go-gcc.cc: Include "convert.h".
738         (Gcc_backend::string_constant_expression): New function.
739         (Gcc_backend::real_part_expression): Likewise.
740         (Gcc_backend::imag_part_expression): Likewise.
741         (Gcc_backend::complex_expression): Likewise.
742         (Gcc_backend::constructor_expression): Likewise.
743         (Gcc_backend::array_constructor_expression): Likewise.
744         (Gcc_backend::pointer_offset_expression): Likewise.
745         (Gcc_backend::array_index_expression): Likewise.
746         (Gcc_backend::call_expression): Likewise.
747         (Gcc_backend::exception_handler_statement): Likewise.
748         (Gcc_backend::function_defer_statement): Likewise.
749         (Gcc_backend::function_set_parameters): Likewise.
750         (Gcc_backend::function_set_body): Likewise.
751         (Gcc_backend::convert_expression): Handle various type
752         conversions.
754 2014-03-03  Ian Lance Taylor  <iant@google.com>
756         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
757         DECL_WEAK.
758         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
759         DECL_WEAK.
761 2014-01-24  Chris Manghane  <cmang@google.com>
763         * go-gcc.cc (Gcc_backend::unary_expression): New function.
765 2014-01-16  Chris Manghane  <cmang@google.com>
767         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
768         parameter.
769         (operator_to_tree_code): New static function.
770         (Gcc_backend::binary_expression): New function.
772 2014-01-14  Chris Manghane  <cmang@google.com>
774         * go-gcc.cc (Gcc_backend::compound_expression): New function.
775         (Gcc_backend::conditional_expression): New function.
777 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
779         Update copyright years
781 2014-01-02  Tobias Burnus  <burnus@net-b.de>
783         * gccgo.texi: Bump @copying's copyright year.
785 2013-12-16  Chris Manghane  <cmang@google.com>
787         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
789 2013-12-11  Ian Lance Taylor  <iant@google.com>
791         * go-lang.c (go_langhook_post_options): Disable sibling calls by
792         default.
794 2013-12-10  Ian Lance Taylor  <iant@google.com>
796         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
797         separately.
799 2013-12-05  Ian Lance Taylor  <iant@google.com>
801         Revert this change; no longer required.
802         2013-11-06  Ian Lance Taylor  <iant@google.com>
804         * go-lang.c (go_langhook_post_options): If
805         -fisolate-erroneous-paths was turned on by an optimization option,
806         turn it off.
808 2013-11-23  Ian Lance Taylor  <iant@google.com>
810         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
811         parameter.
813 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
815         * go-gcc.cc: Add required include files from gimple.h.
816         * go-lang.c: Likewise
818 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
820         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
821         tree_to_shwi throughout.
823 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
825         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
826         tree_fits_shwi_p throughout.
828 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
830         * go-lang.c: Include only gimplify.h and gimple.h as needed.
832 2013-11-14  Diego Novillo  <dnovillo@google.com>
834         * go-backend.c: Include stor-layout.h.
835         * go-gcc.cc: Include stringpool.h.
836         Include stor-layout.h.
837         Include varasm.h.
838         * go-lang.c: Include stor-layout.h.
840 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
842         * go-lang.c: Include gimplify.h.
844 2013-11-06  Ian Lance Taylor  <iant@google.com>
846         * go-lang.c (go_langhook_post_options): If
847         -fisolate-erroneous-paths was turned on by an optimization option,
848         turn it off.
850 2013-10-14  Chris Manghane  <cmang@google.com>
852         * go-gcc.cc (Gcc_backend::address_expression): New function.
854 2013-10-11  Chris Manghane  <cmang@google.com>
856         * go-gcc.cc (Gcc_backend::function_code_expression): New
857         function.
859 2013-10-10  Chris Manghane  <cmang@google.com>
861         * go-gcc.cc (Gcc_backend::error_function): New function.
862         (Gcc_backend::function): New function.
863         (Gcc_backend::make_function): New function.
864         (function_to_tree): New function.
866 2013-10-04  Chris Manghane  <cmang@google.com>
868         * go-gcc.cc (Gcc_backend::convert_expression): New function.
870 2013-10-02  Chris Manghane  <cmang@google.com>
872         * go-gcc.cc: Include "real.h" and "realmpfr.h".
873         (Gcc_backend::integer_constant_expression): New function.
874         (Gcc_backend::float_constant_expression): New function.
875         (Gcc_backend::complex_constant_expression): New function.
877 2013-09-30  Chris Manghane  <cmang@google.com>
879         * go-gcc.cc (Gcc_backend::error_expression): New function.
880         (Gcc_backend::var_expression): New function.
881         (Gcc_backend::indirect_expression): New function.
883 2013-09-25  Tom Tromey  <tromey@redhat.com>
885         * Make-lang.in (gospec.o): Remove.
886         (CFLAGS-go/gospec.o): New variable.
887         (GCCGO_OBJS): Update to use go/gospec.o.
888         (go_OBJS): Define.
889         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
890         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
891         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
892         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
893         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
894         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
895         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
896         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
897         (go/unsafe.o): Remove.
898         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
899         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
901 2013-09-25  Tom Tromey  <tromey@redhat.com>
903         * Make-lang.in (gospec.o): Don't use subshell.
905 2013-08-28  Ian Lance Taylor  <iant@google.com>
907         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
908         the struct is not hidden.
909         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
911 2013-08-06  Ian Lance Taylor  <iant@google.com>
913         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
914         compute_reloc_for_constant.
916 2013-08-02  Ian Lance Taylor  <iant@google.com>
918         * go-gcc.cc (immutable_struct_set_init): Always call
919         resolve_unique_section.
921 2013-07-24  Ian Lance Taylor  <iant@google.com>
923         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
924         fields, recreate those fields with the first one with a non-zero
925         size.
927 2013-07-23  Ian Lance Taylor  <iant@google.com>
929         * go-backend.c: Don't #include "rtl.h".
930         (go_imported_unsafe): Don't call init_varasm_once.
931         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
933 2013-07-23  Ian Lance Taylor  <iant@google.com>
935         * go-lang.c: Don't #include "except.h".
936         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
938 2013-06-18  Ian Lance Taylor  <iant@google.com>
940         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
941         parameter.
942         (Gcc_backend::immutable_struct_set_init): Likewise.
944 2013-05-16  Jason Merrill  <jason@redhat.com>
946         * Make-lang.in (go1$(exeext)): Use link mutex.
948 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
950         * gospec.c: pass -u pthread_create to linker when static linking.
952 2012-12-21  Ian Lance Taylor  <iant@google.com>
954         PR bootstrap/54659
955         * go-system.h: Don't include <cstdio>.
957 2012-12-18  Ian Lance Taylor  <iant@google.com>
959         PR go/55201
960         * gospec.c: Revert last patch.
962 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
964         PR go/55201
965         * gospec.c (LIBATOMIC): Define.
966         (LIBATOMIC_PROFILE): Define.
967         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
969 2012-11-29  Ian Lance Taylor  <iant@google.com>
971         * go-gcc.cc: Include "output.h".
972         (global_variable): Add is_unique_section parameter.
973         (global_variable_set_init): Adjust unique section if necessary.
974         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
976 2012-11-17  Diego Novillo  <dnovillo@google.com>
978         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
980         * go-lang.c: Use new vec API in vec.h.
982 2012-11-16  Ian Lance Taylor  <iant@google.com>
984         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
985         (go1$(exeext)): Likewise.
987 2012-10-30  Ian Lance Taylor  <iant@google.com>
989         * lang.opt (-fgo-relative-import-path): New option.
990         * go-lang.c (go_relative_import_path): New static variable.
991         (go_langhook_init): Pass go_relative_import_path to
992         go_create_gogo.
993         (go_langhook_handle_option): Handle -fgo-relative-import-path.
994         * go-c.h (go_create_gogo): Update declaration.
995         * gccgo.texi (Invoking gccgo): Document
996         -fgo-relative-import-path.
998 2012-09-17  Ian Lance Taylor  <iant@google.com>
1000         * config-lang.in (target_libs): Add target-libbacktrace.
1002 2012-09-16  Ian Lance Taylor  <iant@google.com>
1004         * Make-lang.in (go/gogo.o): Depend on filenames.h.
1006 2012-08-14   Diego Novillo  <dnovillo@google.com>
1008         Merge from cxx-conversion branch.  Configury.
1010         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1011         * go-gcc.cc: Likewise.
1012         * go-system.h: Likewise.
1014 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
1016         * go-lang.c (lang_decl): Add variable_size GTY option.
1018 2012-05-09  Ian Lance Taylor  <iant@google.com>
1020         * lang.opt: Add -fgo-pkgpath.
1021         * go-lang.c (go_pkgpath): New static variable.
1022         (go_prefix): New static variable.
1023         (go_langhook_init): Pass go_pkgpath and go_prefix to
1024         go_create_gogo.
1025         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
1026         -fgo-prefix handling to just set go_prefix.
1027         * go-c.h (go_set_prefix): Don't declare.
1028         (go_create_gogo): Add pkgpath and prefix to declaration.
1029         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1030         to pkgpath.  Don't include the package name in the asm name.
1031         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
1032         docs for -fgo-prefix.
1034 2012-04-23  Ian Lance Taylor  <iant@google.com>
1036         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1038 2012-04-20  Ian Lance Taylor  <iant@google.com>
1040         * lang.opt: Add -fgo-check-divide-zero and
1041         -fgo-check-divide-overflow.
1042         * gccgo.texi (Invoking gccgo): Document new options.
1044 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1046         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1047         with NULL_TREE type instead of void_type_node.
1049 2012-03-09  Ian Lance Taylor  <iant@google.com>
1051         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1052         to the lhs type if necessary.
1054 2012-03-08  Ian Lance Taylor  <iant@google.com>
1056         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1057         zero-sized variable.
1058         (go_non_zero_struct): New global variable.
1059         (Gcc_backend::non_zero_size_type): New function.
1060         (Gcc_backend::global_variable): Don't build an assignment for a
1061         zero-sized value.
1062         * go-c.h (go_non_zero_struct): Declare.
1063         * config-lang.in (gtfiles): Add go-c.h.
1065 2012-02-29  Ian Lance Taylor  <iant@google.com>
1067         * go-gcc.cc (class Gcc_tree): Add set_tree method.
1068         (set_placeholder_pointer_type): When setting to a pointer to
1069         error, set to error_mark_node.
1071 2012-02-23  Richard Guenther  <rguenther@suse.de>
1073         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1074         build_distinct_type_copy.
1076 2012-02-17  Ian Lance Taylor  <iant@google.com>
1078         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1080 2012-02-17  Ian Lance Taylor  <iant@google.com>
1082         * gospec.c (lang_specific_driver): If linking, and no -o option
1083         was used, add one.
1085 2012-02-14  Ian Lance Taylor  <iant@google.com>
1087         PR go/48411
1088         * Make-lang.in (gccgo-cross$(exeext)): New target.
1089         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1090         gccgo$(exeext).
1091         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1092         gccgo-cross$(exeext) does not exist.
1094 2012-02-07  Ian Lance Taylor  <iant@google.com>
1096         * gccgo.texi (Function Names): Document //extern instead of
1097         __asm__.
1099 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
1101         PR target/52079
1102         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1103         return build_nonstandard_integer_type result if possible.
1105 2012-01-21  Ian Lance Taylor  <iant@google.com>
1107         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1108         (Gcc_backend::type_alignment): Likewise.
1109         (Gcc_backend::type_field_alignment): Likewise.
1110         (Gcc_backend::type_field_offset): Likewise.
1112 2012-01-20  Ian Lance Taylor  <iant@google.com>
1114         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1115         be empty.
1116         (Gcc_backend::set_placeholder_struct_type): Likewise.
1118 2012-01-17  Ian Lance Taylor  <iant@google.com>
1120         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1121         BASE.s rather than -o BASE.o.
1123 2012-01-11  Ian Lance Taylor  <iant@google.com>
1125         * go-lang.c (go_langhook_init): Initialize void_list_node before
1126         calling go_create_gogo.
1128 2012-01-10  Ian Lance Taylor  <iant@google.com>
1130         * go-gcc.cc (Gcc_backend::type_size): New function.
1131         (Gcc_backend::type_alignment): New function.
1132         (Gcc_backend::type_field_alignment): New function.
1133         (Gcc_backend::type_field_offset): New function.
1134         * go-backend.c (go_type_alignment): Remove.
1135         * go-c.h (go_type_alignment): Don't declare.
1137 2011-12-27  Ian Lance Taylor  <iant@google.com>
1139         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1140         build_distinct_type_copy rather than build_variant_type_copy.
1141         (Gcc_backend::set_placeholder_array_type): Likewise.
1142         (Gcc_backend::named_type): Add special handling for builtin
1143         basic types.
1145 2011-12-22  Ian Lance Taylor  <iant@google.com>
1147         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1148         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1149         (Gcc_backend::set_placeholder_struct_type): Likewise.
1150         (Gcc_backend::set_placeholder_array_type): Likewise.
1151         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1153 2011-12-13  Ian Lance Taylor  <iant@google.com>
1155         * go-backend.c: #include "simple-object.h" and "intl.h".
1156         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1157         (GO_EXPORT_SECTION_NAME): Likewise.
1158         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1159         (go_read_export_data): New function.
1160         * go-c.h (go_read_export_data): Declare.
1162 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
1163             Ian Lance Taylor  <iant@google.com>
1165         * go-location.h: New file.
1166         * go-linemap.cc: New file.
1167         * go-gcc.cc: Change all uses of source_location to Location.
1168         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1169         (GO_LINEMAP_H): New variable.
1170         (GO_LEX_H): Use $(GO_LINEMAP_H).
1171         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1172         (go/go-linemap.o): New target.
1174 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1176         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1178 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
1180         * lang.opt: Add fgo-optimize-.
1181         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1182         * go-c.h (go_enable_optimize): Declare.
1183         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1184         (GO_EXPORT_H): Define.
1185         (GO_IMPORT_H): Add $(GO_EXPORT_H).
1186         (GO_AST_DUMP_H): Define.
1187         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1188         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1189         (go/types.o): Likewise.
1190         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1191         (go/go-optimize.o): New target.
1193 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1195         * Make-lang.in (CFLAGS-go/go-lang.o): New.
1196         (go/go-lang.o): Remove explicit compilation rule.
1198 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1200         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1202 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
1204         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1205         (go/ast-dump.o): New target.
1206         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1207         (go/statements.o): Likewise.
1209 2011-07-06  Richard Guenther  <rguenther@suse.de>
1211         * go-lang.c (go_langhook_init):
1212         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1214 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1216         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1217         dependencies.
1218         * go-backend.c: Include common/common-target.h.
1219         (go_write_export_data): Use targetm_common.have_named_sections.
1220         * go-lang.c: Include common/common-target.h.
1221         (go_langhook_init_options_struct): Use
1222         targetm_common.supports_split_stack.
1224 2011-06-13  Ian Lance Taylor  <iant@google.com>
1226         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1228 2011-06-10  Ian Lance Taylor  <iant@google.com>
1230         * go-gcc.cc: Include "toplev.h".
1231         (Gcc_backend::immutable_struct): New function.
1232         (Gcc_backend::immutable_struct_set_init): New function.
1233         (Gcc_backend::immutable_struct_reference): New function.
1234         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1236 2011-06-09  Ian Lance Taylor  <iant@google.com>
1238         * go-gcc.cc (Gcc_backend::zero_expression): New function.
1240 2011-06-07  Richard Guenther  <rguenther@suse.de>
1242         * go-lang.c (go_langhook_init): Do not set
1243         size_type_node or call set_sizetype.
1245 2011-05-27  Ian Lance Taylor  <iant@google.com>
1247         * go-backend.c: Include "output.h".
1248         (go_write_export_data): New function.
1249         * go-c.h (go_write_export_data): Declare.
1250         * Make-lang.in (go/go-backend.o): Depend on output.h.
1251         (go/export.o): Depend on $(GO_C_H).  Do not depend on
1252         $(MACHMODE_H), output.h, or $(TARGET_H).
1254 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1256         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1257         (gccgo$(exeext)): Use libcommon-target.a.
1259 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1261         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1263 2011-05-13  Ian Lance Taylor  <iant@google.com>
1265         * go-gcc.cc (Gcc_backend::function_type): When building a struct
1266         for multiple results, check that all fields types have a size.
1267         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1269 2011-05-12  Ian Lance Taylor  <iant@google.com>
1271         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1272         parameter.
1273         (Gcc_backend::parameter_variable): Likewise.
1275 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1277         * go-lang.c (global_bindings_p): Return bool and simplify.
1279 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1281         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1283 2011-05-04  Ian Lance Taylor  <iant@google.com>
1285         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1286         (Gcc_backend::fill_in_struct): New function.
1287         (Gcc_backend::array_type): Implement.
1288         (Gcc_backend::fill_in_array): New function.
1289         (Gcc_backend::placeholder_pointer_type): New function.
1290         (Gcc_backend::set_placeholder_pointer_type): New function.
1291         (Gcc_backend::set_placeholder_function_type): New function.
1292         (Gcc_backend::placeholder_struct_type): New function.
1293         (Gcc_backend::set_placeholder_struct_type): New function.
1294         (Gcc_backend::placeholder_array_type): New function.
1295         (Gcc_backend::set_placeholder_array_type): New function.
1296         (Gcc_backend::named_type): New function.
1297         (Gcc_backend::circular_pointer_type): New function.
1298         (Gcc_backend::is_circular_pointer_type): New function.
1300 2011-04-26  Ian Lance Taylor  <iant@google.com>
1302         * go-gcc.cc (Gcc_backend::struct_type): Implement.
1304 2011-04-25  Ian Lance Taylor  <iant@google.com>
1306         * go-gcc.cc (Gcc_backend::error_type): Implement.
1307         (Gcc_backend::string_type): Remove.
1308         (Gcc_backend::function_type): Change signature and implement.
1309         (Gcc_backend::struct_type): Change signature.
1310         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1311         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1312         (Gcc_backend::pointer_type): Check for error.
1313         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1315 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
1317         * go-gcc.c (class Gcc_tree): Make get_tree const.
1318         (Gcc_backend::void_type): Implement.
1319         (Gcc_backend::bool_type): Implement.
1320         (Gcc_backend::integer_type): Implement.
1321         (Gcc_backend::float_type): Implement.
1322         (Gcc_backend::complex_type): New function.
1323         (Gcc_backend::pointer_type): New function.
1324         (Gcc_backend::make_type): New function.
1325         (type_to_tree): New function.
1327 2011-04-21  Ian Lance Taylor  <iant@google.com>
1329         * go-system.h (go_assert, go_unreachable): Define.
1331 2011-04-19  Ian Lance Taylor  <iant@google.com>
1333         * go-system.h: Include "intl.h".
1334         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1335         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1336         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1338 2011-04-19  Ian Lance Taylor  <iant@google.com>
1340         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1342 2011-04-19  Ian Lance Taylor  <iant@google.com>
1344         * go-gcc.cc (class Bblock): Define.
1345         (Gcc_backend::if_statement): Change then_block and else_block to
1346         Bblock*.
1347         (Gcc_backend::block): New function.
1348         (Gcc_backend::block_add_statements): New function.
1349         (Gcc_backend::block_statement): New function.
1350         (tree_to_block, block_to_tree): New functions.
1352 2011-04-18  Ian Lance Taylor  <iant@google.com>
1354         * go-gcc.cc: Include "go-c.h".
1355         (class Bvariable): Define.
1356         (Gcc_backend::init_statement): New function.
1357         (Gcc_backend::global_variable): New function.
1358         (Gcc_backend::global_variable_set_init): New function.
1359         (Gcc_backend::local_variable): New function.
1360         (Gcc_backend::parameter_variable): New function.
1361         (tree_to_type, var_to_tree): New functions.
1362         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1363         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1365 2011-04-15  Ian Lance Taylor  <iant@google.com>
1367         * go-gcc.cc (Gcc_backend::compound_statement): New function.
1368         (Gcc_backend::assignment_statement): Use error_statement.
1369         (Gcc_backend::return_statement): Likewise.
1370         (Gcc_backend::if_statement): Likewise.
1371         (Gcc_backend::switch_statement): Likewise.
1372         (Gcc_backend::statement_list): Likewise.
1374 2011-04-14  Ian Lance Taylor  <iant@google.com>
1376         * go-gcc.cc (Gcc_backend::error_statement): New function.
1378 2011-04-13  Ian Lance Taylor  <iant@google.com>
1380         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1382 2011-04-13  Ian Lance Taylor  <iant@google.com>
1384         * Make-lang.in (GO_OBJS): Add go/runtime.o.
1385         (GO_RUNTIME_H): New variable.
1386         (go/runtime.o): New target.
1387         (go/gogo.o): Depend on $(GO_RUNTIME_H).
1388         (go/statements.o): Likewise.
1390 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1392         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1393         calling TREE_CHAIN.
1395 2011-04-06  Ian Lance Taylor  <iant@google.com>
1397         * go-gcc.cc (if_statement): Use build3_loc.
1398         (Gcc_backend::switch_statement): New function.
1399         (Gcc_backend::statement_list): New function.
1401 2011-04-06  Ian Lance Taylor  <iant@google.com>
1403         * go-gcc.cc (Gcc_backend::if_statement): New function.
1404         (tree_to_stat): New function.
1405         (expr_to_tree): Renamed from expression_to_tree.
1406         (stat_to_tree): Renamed from statement_to_tree.
1408 2011-04-06  Ian Lance Taylor  <iant@google.com>
1410         * go-gcc.cc (Gcc_backend::expression_statement): New function.
1412 2011-04-04  Ian Lance Taylor  <iant@google.com>
1414         * go-gcc.c (class Blabel): Define.
1415         (Gcc_backend::make_expression): New function.
1416         (get_identifier_from_string): New function.
1417         (Gcc_backend::label): New function.
1418         (Gcc_backend::label_definition_statement): New function.
1419         (Gcc_backend::goto_statement): New function.
1420         (Gcc_backend::label_address): New function.
1421         (expression_to_tree): New function.
1422         * Make-lang.in (go/expressions.o): Depend on
1423         go/gofrontend/backend.h.
1424         (go/gogo.o): Likewise.
1426 2011-04-04  Ian Lance Taylor  <iant@google.com>
1428         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1429         (class Bfunction): Define.
1430         (Gcc_backend::assignment_statement): Rename from assignment.
1431         Check for errors.
1432         (Gcc_backend::return_statement): New function.
1433         (tree_to_function): New function.
1434         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1435         $(GIMPLE_H), and $(GO_GOGO_H).
1437 2011-04-03  Ian Lance Taylor  <iant@google.com>
1439         * go-gcc.cc: New file.
1440         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1441         (go/go-gcc.o): New target.
1442         (go/go.o): Depend on go/gofrontend/backend.h.
1443         (go/statements.o): Likewise.
1445 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1447         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1449 2011-02-08  Ian Lance Taylor  <iant@google.com>
1451         * go-lang.c (go_langhook_init_options_struct): Set
1452         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
1454 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1456         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1457         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1459 2011-01-21  Ian Lance Taylor  <iant@google.com>
1461         * go-lang.c (go_langhook_init): Omit float_type_size when calling
1462         go_create_gogo.
1463         * go-c.h: Update declaration of go_create_gogo.
1465 2011-01-13  Ian Lance Taylor  <iant@google.com>
1467         * go-backend.c: Include "rtl.h" and "target.h".
1468         (go_imported_unsafe): New function.
1469         * go-c.h (go_imported_unsafe): Declare.
1470         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1471         (go/gogo-tree.o): Remove dependency on $(RTL_H).
1472         (go/unsafe.o): Depend on $(GO_C_H).
1474 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
1476         PR go/47113
1477         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1478         variable ‘field’ .
1480 2010-12-21  Ian Lance Taylor  <iant@google.com>
1482         * Make-lang.in (check-go): Remove.
1483         (lang_checks_parallelized): Add check-go.
1484         (check_go_parallelize): Set.
1486 2010-12-13  Ian Lance Taylor  <iant@google.com>
1488         * gospec.c (lang_specific_driver): Add a -o option if not linking
1489         and there is no -o option already.
1491 2010-12-07  Ian Lance Taylor  <iant@google.com>
1493         PR tree-optimization/46805
1494         PR tree-optimization/46833
1495         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1497 2010-12-06  Ian Lance Taylor  <iant@google.com>
1499         PR other/46789
1500         PR bootstrap/46812
1501         * go-lang.c (go_char_p): Define type and vectors.
1502         (go_search_dirs): New static variable.
1503         (go_langhook_handle_option): Use version and version/machine
1504         directories for -L.
1505         (go_langhook_post_options): Add non-specific -L paths.
1506         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1507         DEFAULT_TARGET_MACHINE when compiling.
1508         * gccgo.texi (Invoking gccgo): Only document -L for linking.
1509         (Import and Export): Don't mention -L for finding import files.
1511 2010-12-03  Ian Lance Taylor  <iant@google.com>
1513         PR bootstrap/46776
1514         * go-backend.c: New file.
1515         * go-c.h (go_type_alignment): Declare.
1516         (go_field_alignment, go_trampoline_info): Declare.
1517         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1518         (go/go-backend.o): New target.
1519         (go/go-lang.o): Make dependencies match source file.
1520         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1521         (go/gogo-tree.o): Don't depend on $(TM_H).
1523 2010-12-03  Ian Lance Taylor  <iant@google.com>
1525         * config-lang.in (build_by_default): Set to no.
1527 2010-12-02  Ian Lance Taylor  <iant@google.com>
1529         Go frontend added to gcc repository.
1531 Copyright (C) 2010-2018 Free Software Foundation, Inc.
1533 Copying and distribution of this file, with or without modification,
1534 are permitted in any medium without royalty provided the copyright
1535 notice and this notice are preserved.