2017-12-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
[official-gcc.git] / gcc / go / ChangeLog
bloba829159119f2b2e15d7a7b96c3982bf11bf7caf5
1 2017-12-12  Tony Reix  <tony.reix@atos.net>
2             Ian Lance Taylor  <iant@golang.org>
4         * go-lang.c (TARGET_AIX): Define if not defined.
5         (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
7 2017-12-01  Ian Lance Taylor  <iant@golang.org>
9         * go-gcc.cc (Gcc_backend::Gcc_backend): Define
10         __builtin_unreachable.
11         (Gcc_backend::function): Add does_not_return parameter.
13 2017-12-01  Than McIntosh  <thanm@google.com>
15         * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
16         field.
17         * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
19 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
21         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
22         build2_loc instead of build3_loc.
24 2017-11-14  Than McIntosh  <thanm@google.com>
26         * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
28 2017-10-11  Tony Reix  <tony.reix@atos.net>
30         * go-system.h (__STDC_FORMAT_MACROS): Define before including any
31         system header files, as is done in ../system.h.
33 2017-10-05  Ian Lance Taylor  <iant@golang.org>
35         * Make-lang.in (GO_OBJS): Add go/names.o.
37 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
38             Alan Hayward  <alan.hayward@arm.com>
39             David Sherwood  <david.sherwood@arm.com>
41         * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
43 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
44             Alan Hayward  <alan.hayward@arm.com>
45             David Sherwood  <david.sherwood@arm.com>
47         * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
49 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
50             Alan Hayward  <alan.hayward@arm.com>
51             David Sherwood  <david.sherwood@arm.com>
53         * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
55 2017-08-07  Martin Liska  <mliska@suse.cz>
57         * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
58         and not __no_split_stack__.
60 2017-07-27    Tony Reix  <tony.reix@atos.net>
62         * go-backend.c (go_write_export_data): Use EXCLUDE section for
63         AIX.
65 2017-06-09  Ian Lance Taylor  <iant@golang.org>
67         * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
68         on, disable implicit -forder-blocks-and-partition.
70 2017-05-12  Than McIntosh  <thanm@google.com>
72         * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
74 2017-05-11  Ian Lance Taylor  <iant@google.com>
76         PR go/64238
77         * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
78         DECL_EXTERNAL, clear TREE_STATIC.
80 2017-05-10  Than McIntosh  <thanm@google.com>
82         * go-backend.c: Include "go-c.h".
83         * go-gcc.cc (Gcc_backend::write_export_data): New method.
85 2017-05-10  Ian Lance Taylor  <iant@google.com>
87         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
88         __builtin_prefetch.
89         * Make-lang.in (GO_OBJS): Add go/wb.o.
91 2017-03-28  Than McIntosh  <thanm@google.com>
93         PR go/80226
94         * go-gcc.cc (Gcc_backend::return_statement): Check for
95         void_type_node when checking result size.
97 2017-02-20  Ian Lance Taylor  <iant@golang.org>
99         PR go/79642
100         * lang.opt (-fgo-relative-import-path): Change space to tab.
102 2017-02-07  Richard Biener  <rguenther@suse.de>
104         PR tree-optimization/79256
105         PR middle-end/79278
106         * go-backend.c (go_field_alignment): Adjust.
108 2017-01-11  Than McIntosh  <thanm@google.com>
110         * go-gcc.cc (conditional_expression): Add Bfunction parameter.
112 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
114         Update copyright years.
116         * gccgo.texi: Bump @copyrights-go year.
118 2016-12-16  Than McIntosh  <thanm@google.com>
120         * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
121         parameter.
122         (Gcc_backend::init_statement): Likewise.
123         (Gcc_backend::assignment_statement): Likewise.
124         (Gcc_backend::if_statement): Likewise.
126 2016-12-06  Than McIntosh  <thanm@google.com>
128         * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
129         parameter.
131 2016-11-22  Than McIntosh  <thanm@google.com>
133         * go-gcc.cc (char_needs_encoding): Remove.
134         (needs_encoding, fetch_utf8_char, encode_id): Remove.
135         (Gcc_backend::global_variable): Add asm_name parameter.  Don't
136         compute asm_name here.
137         (Gcc_backend::implicit_variable): Likewise.
138         (Gcc_backend::implicit_variable_reference): Likewise.
139         (Gcc_backend::immutable_struct): Likewise.
140         (Gcc_backend::immutable_struct_reference): Likewise.
141         * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
143 2016-11-22  Ian Lance Taylor  <iant@google.com>
145         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
146         __builtin_frame_address.
148 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
150         * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
151         from result of GET_MODE_CLASS.  Minor formatting fixes.
153 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
155         * go-backend.c: Include memmodel.h.
157 2016-10-10  Than McIntosh  <thanm@google.com>
159         * go-gcc.h: New file.
160         * go-c.h (struct go_create_gogo_args): Add backend and linemap
161         fields.
162         * go-lang.c: Include "go-gcc.h".
163         (go_langhook_init): Set linemap and backend fields of args.
164         * go-gcc.cc: Include "go-gcc.h".
165         * go-linemap.cc: Include "go-gcc.h".
167 2016-10-10  Than McIntosh  <thanm@google.com>
169         * go-linemap.cc (Gcc_linemap::location_line): New method.
171 2016-10-10  Eric Botcazou  <ebotcazou@adacore.com>
173         * config-lang.in (lang_requires_boot_languages): Delete.
175 2016-10-06  Chris Manghane  <cmang@google.com>
177         * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
178         returned memory.
180 2016-09-27  Than McIntosh  <thanm@google.com>
182         * go-linemap.cc (Gcc_linemap::to_string): New method.
184 2016-09-23  Than McIntosh  <thanm@google.com>
186         * go-gcc-diagnostics.cc: New file.
187         * go-location.h (Location): Remove operator source_location.  Add
188         operator==.
189         * go-system.h: #include <sstream>.
190         * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
191         go/go-gcc-diagnostics.o.
192         (CFLAGS-go/go-gcc-diagnostics.o): New variable.
194 2016-09-23  Chris Manghane  <cmang@google.com>
196         PR go/77701
197         * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
198         to pass arguments in the correct order.
200 2016-09-22  Ian Lance Taylor  <iant@golang.org>
202         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
203         __builtin_frame_address.
205 2016-09-11  Ian Lance Taylor  <iant@golang.org>
207         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
208         ctz, ctzll, bswap32, bswap64.
210 2016-09-10  Ian Lance Taylor  <iant@golang.org>
212         * go-backend.c (go_trampoline_info): Remove.
213         * go-c.h (go_trampoline_info): Don't declare.
215 2016-09-09  Than McIntosh  <thanm@google.com>
217         * go-sha1.cc: New file.
218         * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
219         (CFLAGS-go/go-sha1.o): New variable.
221 2016-08-29  Ian Lance Taylor  <iant@google.com>
223         * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
224         * go-c.h (struct go_create_gogo_args): Define.
225         (go_create_gogo): Change declaration to take struct pointer.
226         * go-lang.c (go_c_header): New static variable.
227         (go_langhook_init): Update call to go_create_gogo.
228         * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
229         -fgo-compiling-runtime.
231 2016-08-09  Ian Lance Taylor  <iant@google.com>
233         * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
234         -fgo-debug-escae.
235         (Compiler Directives): New chapter.
236         (Function Names): Describe using //go:linkname.  Suggest using
237         -fgo-pkgpath rather than -fgo-prefix.
239 2016-08-08  Ian Lance Taylor  <iant@google.com>
241         PR go/72814
242         * go-gcc.cc (Gcc_backend::function_type): If the return type is
243         zero bytes, treat the function as returning void.
244         (return_statement): If the return type is zero bytes, don't
245         actually return any values.
247 2016-08-05  Ian Lance Taylor  <iant@google.com>
249         PR go/72812
250         * go-gcc.cc (char_needs_encoding): New static function.
251         (needs_encoding, fetch_utf8_char): New static functions.
252         (encode_id): New static function.
253         (Gcc_backend::global_variable): Set asm name if the name is not
254         simple ASCII.
255         (Gcc_backend::implicit_variable): Likewise.
256         (Gcc_backend::implicit_variable_reference): Likewise.
257         (Gcc_backend::immutable_struct): Likewise.
258         (Gcc_backend::immutable_struct_reference): Likewise.
259         (Gcc_backend::function): Likewise.
261 2016-08-02  Chris Manghane  <cmang@google.com>
263         * lang.opt: Add -fgo-debug-escape option.
264         * go-c.h (go_create_gogo): Add debug_escape_level parameter.
265         * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
266         go_create_gogo.
268 2016-05-06  Chris Manghane  <cmang@google.com>
270         * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
271         new escape.cc).
273 2016-04-29  Chris Manghane  <cmang@google.com>
275         * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
277 2016-04-18  Michael Matz  <matz@suse.de>
279         * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
281 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
283         * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
284         neighbour -> neighbor.
285         * gccgo.texi: Likewise.
287 2016-01-27  Ian Lance Taylor  <iant@google.com>
289         * go-lang.c (go_langhook_init_options_struct): Default to
290         -fkeep-gc-roots-live.
292 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
294         Update copyright years.
296         * gccgo.texi: Bump @copyrights-go year.
298 2015-12-21  Ian Lance Taylor  <iant@google.com>
300         * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class.  Add
301         t_ and orig_type_ fields.  Add new two parameter constructor.  Add
302         get_tree and get_decl methods.
303         (Gcc_backend::var_expression): Pass location to var get_tree.
304         (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR.  Use
305         two parameter constructor for Bvariable.
306         (Gcc_backend::global_variable_set_init): Don't remove
307         VIEW_CONVERT_EXPR.  Use var get_decl, not get_tree.
308         (Gcc_backend::write_global_definitions): Likewise.
309         (Gcc_backend::init_statement): Call var get_decl, not get_tree.
310         (Gcc_backend::block): Likewise.
311         (Gcc_backend::implicit_variable_set_init): Likewise.
312         (Gcc_backend::immutable_struct_set_init): Likewise.
313         (Gcc_backend::function_set_parameters): Likewise.
315 2015-12-21  Ian Lance Taylor  <iant@google.com>
317         * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
318         add a VIEW_CONVERT_EXPR to the tree.
319         (Gcc_backend::global_variable_set_init): Remove any
320         VIEW_CONVERT_EXPR.
321         (Gcc_backend::write_global_definitions): Likewise.
323 2015-11-30  Ian Lance Taylor  <iant@google.com>
325         PR go/68477
326         * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
327         TYPE_STRING_FLAG on a variant type.
329 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
331         * go-backend.c: Remove unused header files.
332         * go-gcc.cc: Likewise.
333         * go-lang.c: Likewise.
334         * gospec.c: Likewise.
336 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
338         * go-backend.c: Reorder #include's and remove duplicates.
339         * go-lang.c: Likewise.
341 2015-10-20  Alan Modra  <amodra@gmail.com>
343         PR go/66870
344         * gospec.c (saw_opt_m32): Rename to..
345         (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
346         Update uses.
347         (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
349 2015-10-01  Ian Lance Taylor  <iant@google.com>
351         PR go/66870
352         * gospec.c (lang_specific_driver): Only look for OPT_m32 if
353         TARGET_CAN_SPLIT_STACK_64BIT is defined.
355 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
357         PR target/66870
358         * gospec.c (lang_specific_driver): Set appropriate split stack
359         options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
361 2015-09-10  Chris Manghane  <cmang@google.com>
363         * go-gcc.cc (Gcc_backend::type_size): Return -1 for
364         unrepresentable size.
366 2015-08-24  Marek Polacek  <polacek@redhat.com>
368         PR tree-optimization/67284
369         * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
370         Set TREE_THIS_VOLATILE.
371         (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
372         Pass false to the rest of define_builtin calls.
374 2015-07-31  Andreas Schwab  <schwab@linux-m68k.org>
376         * go-lang.c (go_langhook_init_options_struct): Don't set
377         x_flag_split_stack.
378         (go_langhook_post_options): Set it here instead.
380 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
382         * gofrontend/backend.h: Fix double word typos.
383         * gofrontend/expressions.cc: Same.
384         * gospec.c: Same.
386 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
388         * go-backend.c: Adjust includes.
389         * go-gcc.cc: Likewise.
390         * go-lang.c: Likewise.
392 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
394         * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
396 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
398         * go-backend.c: Do not include input.h, line-map.h or is-a.h.
399         * go-gcc.cc: Likewise.
400         * go-lang.c: Likewise.
401         * go-system.h: Likewise.
403 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
405         * go-backend.c : Adjust include files.
406         * go-gcc.cc : Likewise.
407         * go-lang.c : Likewise.
409 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
411         * go-gcc.cc (write_global_definitions): Remove call to
412         finalize_compilation_unit.
413         Remove Go specific debug generation.
414         * go-lang.c (go_langhook_parse_file): Call go_write_globals.
415         (go_langhook_write_globals): Remove.
416         Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
418 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
420         * go-backend.c: Adjust includes for restructured coretypes.h.
421         * go-c.h: Likewise.
422         * go-gcc.cc: Likewise.
423         * go-lang.c: Likewise.
425 2015-04-30  Chris Manghane  <cmang@google.com>
427         * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
428         method.
430 2015-04-27  Jim Wilson  <jim.wilson@linaro.org>
432         * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
434 2015-04-17  Chris Manghane  <cmang@google.com>
436         * Make-lang.in (GO_OBJS): Add go/escape.o.
438 2015-02-02  Ian Lance Taylor  <iant@google.com>
440         PR go/64836
441         PR go/64838
442         * go-gcc.cc (Gcc_backend::type_size): Change return type to
443         int64_t.
444         (Gcc_backend::type_alignment): Likewise.
445         (Gcc_backend::type_field_alignment): Likewise.
446         (Gcc_backend::type_field_offset): Likewise.
447         (Gcc_backend::implicit_variable): Change alignment parameter type
448         to int64_t.
450 2015-01-23  Ian Lance Taylor  <iant@google.com>
452         PR go/63565
453         * gccgo.texi (Invoking gccgo): Mention that Go programs should not
454         be stripped.
456         * gccgo.texi (C Interoperability): Mention that people should use
457         cgo.
459 2015-01-23  Ian Lance Taylor  <iant@google.com>
461         PR go/64595
462         * go-lang.c (go_langhook_init_options_struct): Set default
463         debug_info_level.
464         (go_langhook_post_options): If debug_info_level is still the
465         default, make sure write_symbols is set.
466         * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
468 2015-01-16  Richard Henderson  <rth@redhat.com>
470         * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
471         (Gcc_backend::static_chain_variable): New method.
473 2015-01-09  Ian Lance Taylor  <iant@google.com>
475         * config-lang.in (lang_dirs): Define.
477 2015-01-09  Michael Collison  <michael.collison@linaro.org>
479         * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
480         input.h, alias.h, symtab.h, options.h, fold-const.h,
481         wide-int.h, and inchash.h due to flattening of tree.h.
482         * go-lang.c: Ditto.
483         * go-backend.c: Ditto.
485 2015-01-07  Chris Manghane  <cmang@google.com>
487         PR go/61204
488         * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
489         zero-sized variable.
491 2015-01-06  Chris Manghane  <cmang@google.com>
493         * go-gcc.cc (Gcc_backend::constructor_expression): Don't
494         initialize zero-sized fields, just evaluate the values for side
495         effects.
497 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
499         Update copyright years.
501         * gccgo.texi: Bump @copyrights-go year.
503 2014-12-19  Chris Manghane  <cmang@google.com>
505         * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
506         construct arrays of zero-sized values.
508 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
510         * go-lang.c: Remove redundant enum from machine_mode.
512 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
514         * go-gcc.cc: Adjust include files.
516 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
518         * go-gcc.cc: Adjust include files.
519         * go-lang.c: Ditto.
521 2014-10-23  Ian Lance Taylor  <iant@google.com>
523         * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
524         mpc_t parameter instead of two mpfr_t parameters.
526 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
528         * Make-lang.in (check_go_parallelize): Change to just an upper bound
529         number.
531 2014-09-03  Chris Manghane  <cmang@google.com>
533         * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
534         parameter.  Add is_hidden parameter.
535         (Gcc_backend::implicit_variable_set_init): New method.
536         (Gcc_backend::implicit_variable_reference): New method.
538 2014-08-08  Ian Lance Taylor  <iant@google.com>
540         * go-gcc.cc (Gcc_backend::compound_statement): Don't return
541         NULL_TREE.
543 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
545         * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
546         symtab_get_node to symtab_node::get.
548 2014-06-13  Ian Lance Taylor  <iant@google.com>
550         PR go/61496
551         * gospec.c (lang_specific_driver): On Solaris, when not using GNU
552         ld, add -t option to avoid warning about common symbol changing
553         size.
555 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
557         * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
558         symtab_get_node(var_decl)->implicit_section.
560 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
562         * go-gcc.cc (global_variable_set_init): Use
563         set_decl_section_name.
565 2014-06-04  Ian Lance Taylor  <iant@google.com>
567         * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
568         alignment parameters.  Permit init parameter to be NULL.
570 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
572         * go-gcc.cc: Include builtins.h.
574 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
576         * go-lang.c (struct GTY): Don't use variable_size gty attribute.
578 2014-05-06  Chris Manghane  <cmang@google.com>
580         * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
581         (Gcc_backend::boolean_constant_expression): New method.
582         (Gcc_backend::zero_expression): Use this->make_expression rather
583         than tree_to_expr.
584         (Gcc_backend::var_expression): Likewise.
585         (Gcc_backend::integer_constant_expression): Likewise.
586         (Gcc_backend::float_constant_expression): Likewise.
587         (Gcc_backend::complex_constant_expression): Likewise.
588         (Gcc_backend::struct_field_expression): Likewise.
589         (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
590         (tree_to_function, tree_to_block): Remove functions.
591         (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
592         (block_to_tree, var_to_tree, function_to_tree): Remove functions.
594 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
595             Mike Stump  <mikestump@comcast.net>
596             Richard Sandiford  <rdsandiford@googlemail.com>
598         * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
600 2014-05-06  Chris Manghane  <cmang@google.com>
602         * go-c.h (go_create_gogo): Update declaration to add
603         check_divide_zero and check_divide_overflow parameters.
604         * go-lang.c (go_langhook_init): Pass new arguments to
605         go_create_gogo.
607 2014-05-05  Chris Manghane  <cmang@google.com>
609         * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
610         gc_root_variable.  Add name and is_constant parameters.
612 2014-05-05  Chris Manghane  <cmang@google.com>
614         * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
615         parameter.
616         (Gcc_backend::temporary_variable): Check for erroneous function.
618 2014-04-30  Chris Manghane  <cmang@google.com>
620         * go-backend.c: #include "diagnostics.h".
621         (saw_errors): New function.
622         * go-c.h (saw_errors): Declare.
623         * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
625 2014-04-30  Chris Manghane  <cmang@google.com>
627         * go-lang.c (go_langhook_type_for_size): Do it here, rather than
628         calling into Go frontend.
629         (go_langhook_type_for_mode): Likewise.
630         * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
632 2014-04-30  Chris Manghane  <cmang@google.com>
634         * go-gcc.cc: #include "langhooks.h".
635         (Gcc_backend::Gcc_backend): Add constructor.
636         (Gcc_backend::lookup_function): New function.
637         (Gcc_backend::define_builtin): New private function.
638         (Gcc_backend::gcc_backend): Remove.
639         (go_get_backend): Use new to create new Gcc_backend.
641 2014-04-25  Chris Manghane  <cmang@google.com>
643         * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
644         (Gcc_backend::return_statement): Push and pop function.
645         (Gcc_backend::label): Likewise.
646         (Gcc_backend::function_defer_statement): Likewise.
647         (Gcc_backend::switch_statement): Add function parameter.
648         (Gcc_backend::block): Don't permit function to be NULL.
649         (Gcc_backend::temporary_variable): Change go_assert to
650         gcc_assert.
651         (Gcc_backend::gc_root_variable): New function.
652         (Gcc_backend::write_global_definitions): New function.
654 2014-04-22  Chris Manghane  <cmang@google.com>
656         * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
657         call to create_tmp_var.  Require that function be non-NULL.
659 2014-04-17  Chris Manghane  <cmang@google.com>
661         * go-gcc.cc (Gcc_backend::named_constant_expression): New
662         function.
664 2014-04-14  Chris Manghane  <cmang@google.com>
666         * go-gcc.cc: Include "convert.h".
667         (Gcc_backend::string_constant_expression): New function.
668         (Gcc_backend::real_part_expression): Likewise.
669         (Gcc_backend::imag_part_expression): Likewise.
670         (Gcc_backend::complex_expression): Likewise.
671         (Gcc_backend::constructor_expression): Likewise.
672         (Gcc_backend::array_constructor_expression): Likewise.
673         (Gcc_backend::pointer_offset_expression): Likewise.
674         (Gcc_backend::array_index_expression): Likewise.
675         (Gcc_backend::call_expression): Likewise.
676         (Gcc_backend::exception_handler_statement): Likewise.
677         (Gcc_backend::function_defer_statement): Likewise.
678         (Gcc_backend::function_set_parameters): Likewise.
679         (Gcc_backend::function_set_body): Likewise.
680         (Gcc_backend::convert_expression): Handle various type
681         conversions.
683 2014-03-03  Ian Lance Taylor  <iant@google.com>
685         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
686         DECL_WEAK.
687         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
688         DECL_WEAK.
690 2014-01-24  Chris Manghane  <cmang@google.com>
692         * go-gcc.cc (Gcc_backend::unary_expression): New function.
694 2014-01-16  Chris Manghane  <cmang@google.com>
696         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
697         parameter.
698         (operator_to_tree_code): New static function.
699         (Gcc_backend::binary_expression): New function.
701 2014-01-14  Chris Manghane  <cmang@google.com>
703         * go-gcc.cc (Gcc_backend::compound_expression): New function.
704         (Gcc_backend::conditional_expression): New function.
706 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
708         Update copyright years
710 2014-01-02  Tobias Burnus  <burnus@net-b.de>
712         * gccgo.texi: Bump @copying's copyright year.
714 2013-12-16  Chris Manghane  <cmang@google.com>
716         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
718 2013-12-11  Ian Lance Taylor  <iant@google.com>
720         * go-lang.c (go_langhook_post_options): Disable sibling calls by
721         default.
723 2013-12-10  Ian Lance Taylor  <iant@google.com>
725         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
726         separately.
728 2013-12-05  Ian Lance Taylor  <iant@google.com>
730         Revert this change; no longer required.
731         2013-11-06  Ian Lance Taylor  <iant@google.com>
733         * go-lang.c (go_langhook_post_options): If
734         -fisolate-erroneous-paths was turned on by an optimization option,
735         turn it off.
737 2013-11-23  Ian Lance Taylor  <iant@google.com>
739         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
740         parameter.
742 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
744         * go-gcc.cc: Add required include files from gimple.h.
745         * go-lang.c: Likewise
747 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
749         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
750         tree_to_shwi throughout.
752 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
754         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
755         tree_fits_shwi_p throughout.
757 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
759         * go-lang.c: Include only gimplify.h and gimple.h as needed.
761 2013-11-14  Diego Novillo  <dnovillo@google.com>
763         * go-backend.c: Include stor-layout.h.
764         * go-gcc.cc: Include stringpool.h.
765         Include stor-layout.h.
766         Include varasm.h.
767         * go-lang.c: Include stor-layout.h.
769 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
771         * go-lang.c: Include gimplify.h.
773 2013-11-06  Ian Lance Taylor  <iant@google.com>
775         * go-lang.c (go_langhook_post_options): If
776         -fisolate-erroneous-paths was turned on by an optimization option,
777         turn it off.
779 2013-10-14  Chris Manghane  <cmang@google.com>
781         * go-gcc.cc (Gcc_backend::address_expression): New function.
783 2013-10-11  Chris Manghane  <cmang@google.com>
785         * go-gcc.cc (Gcc_backend::function_code_expression): New
786         function.
788 2013-10-10  Chris Manghane  <cmang@google.com>
790         * go-gcc.cc (Gcc_backend::error_function): New function.
791         (Gcc_backend::function): New function.
792         (Gcc_backend::make_function): New function.
793         (function_to_tree): New function.
795 2013-10-04  Chris Manghane  <cmang@google.com>
797         * go-gcc.cc (Gcc_backend::convert_expression): New function.
799 2013-10-02  Chris Manghane  <cmang@google.com>
801         * go-gcc.cc: Include "real.h" and "realmpfr.h".
802         (Gcc_backend::integer_constant_expression): New function.
803         (Gcc_backend::float_constant_expression): New function.
804         (Gcc_backend::complex_constant_expression): New function.
806 2013-09-30  Chris Manghane  <cmang@google.com>
808         * go-gcc.cc (Gcc_backend::error_expression): New function.
809         (Gcc_backend::var_expression): New function.
810         (Gcc_backend::indirect_expression): New function.
812 2013-09-25  Tom Tromey  <tromey@redhat.com>
814         * Make-lang.in (gospec.o): Remove.
815         (CFLAGS-go/gospec.o): New variable.
816         (GCCGO_OBJS): Update to use go/gospec.o.
817         (go_OBJS): Define.
818         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
819         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
820         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
821         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
822         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
823         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
824         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
825         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
826         (go/unsafe.o): Remove.
827         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
828         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
830 2013-09-25  Tom Tromey  <tromey@redhat.com>
832         * Make-lang.in (gospec.o): Don't use subshell.
834 2013-08-28  Ian Lance Taylor  <iant@google.com>
836         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
837         the struct is not hidden.
838         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
840 2013-08-06  Ian Lance Taylor  <iant@google.com>
842         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
843         compute_reloc_for_constant.
845 2013-08-02  Ian Lance Taylor  <iant@google.com>
847         * go-gcc.cc (immutable_struct_set_init): Always call
848         resolve_unique_section.
850 2013-07-24  Ian Lance Taylor  <iant@google.com>
852         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
853         fields, recreate those fields with the first one with a non-zero
854         size.
856 2013-07-23  Ian Lance Taylor  <iant@google.com>
858         * go-backend.c: Don't #include "rtl.h".
859         (go_imported_unsafe): Don't call init_varasm_once.
860         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
862 2013-07-23  Ian Lance Taylor  <iant@google.com>
864         * go-lang.c: Don't #include "except.h".
865         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
867 2013-06-18  Ian Lance Taylor  <iant@google.com>
869         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
870         parameter.
871         (Gcc_backend::immutable_struct_set_init): Likewise.
873 2013-05-16  Jason Merrill  <jason@redhat.com>
875         * Make-lang.in (go1$(exeext)): Use link mutex.
877 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
879         * gospec.c: pass -u pthread_create to linker when static linking.
881 2012-12-21  Ian Lance Taylor  <iant@google.com>
883         PR bootstrap/54659
884         * go-system.h: Don't include <cstdio>.
886 2012-12-18  Ian Lance Taylor  <iant@google.com>
888         PR go/55201
889         * gospec.c: Revert last patch.
891 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
893         PR go/55201
894         * gospec.c (LIBATOMIC): Define.
895         (LIBATOMIC_PROFILE): Define.
896         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
898 2012-11-29  Ian Lance Taylor  <iant@google.com>
900         * go-gcc.cc: Include "output.h".
901         (global_variable): Add is_unique_section parameter.
902         (global_variable_set_init): Adjust unique section if necessary.
903         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
905 2012-11-17  Diego Novillo  <dnovillo@google.com>
907         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
909         * go-lang.c: Use new vec API in vec.h.
911 2012-11-16  Ian Lance Taylor  <iant@google.com>
913         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
914         (go1$(exeext)): Likewise.
916 2012-10-30  Ian Lance Taylor  <iant@google.com>
918         * lang.opt (-fgo-relative-import-path): New option.
919         * go-lang.c (go_relative_import_path): New static variable.
920         (go_langhook_init): Pass go_relative_import_path to
921         go_create_gogo.
922         (go_langhook_handle_option): Handle -fgo-relative-import-path.
923         * go-c.h (go_create_gogo): Update declaration.
924         * gccgo.texi (Invoking gccgo): Document
925         -fgo-relative-import-path.
927 2012-09-17  Ian Lance Taylor  <iant@google.com>
929         * config-lang.in (target_libs): Add target-libbacktrace.
931 2012-09-16  Ian Lance Taylor  <iant@google.com>
933         * Make-lang.in (go/gogo.o): Depend on filenames.h.
935 2012-08-14   Diego Novillo  <dnovillo@google.com>
937         Merge from cxx-conversion branch.  Configury.
939         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
940         * go-gcc.cc: Likewise.
941         * go-system.h: Likewise.
943 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
945         * go-lang.c (lang_decl): Add variable_size GTY option.
947 2012-05-09  Ian Lance Taylor  <iant@google.com>
949         * lang.opt: Add -fgo-pkgpath.
950         * go-lang.c (go_pkgpath): New static variable.
951         (go_prefix): New static variable.
952         (go_langhook_init): Pass go_pkgpath and go_prefix to
953         go_create_gogo.
954         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
955         -fgo-prefix handling to just set go_prefix.
956         * go-c.h (go_set_prefix): Don't declare.
957         (go_create_gogo): Add pkgpath and prefix to declaration.
958         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
959         to pkgpath.  Don't include the package name in the asm name.
960         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
961         docs for -fgo-prefix.
963 2012-04-23  Ian Lance Taylor  <iant@google.com>
965         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
967 2012-04-20  Ian Lance Taylor  <iant@google.com>
969         * lang.opt: Add -fgo-check-divide-zero and
970         -fgo-check-divide-overflow.
971         * gccgo.texi (Invoking gccgo): Document new options.
973 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
975         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
976         with NULL_TREE type instead of void_type_node.
978 2012-03-09  Ian Lance Taylor  <iant@google.com>
980         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
981         to the lhs type if necessary.
983 2012-03-08  Ian Lance Taylor  <iant@google.com>
985         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
986         zero-sized variable.
987         (go_non_zero_struct): New global variable.
988         (Gcc_backend::non_zero_size_type): New function.
989         (Gcc_backend::global_variable): Don't build an assignment for a
990         zero-sized value.
991         * go-c.h (go_non_zero_struct): Declare.
992         * config-lang.in (gtfiles): Add go-c.h.
994 2012-02-29  Ian Lance Taylor  <iant@google.com>
996         * go-gcc.cc (class Gcc_tree): Add set_tree method.
997         (set_placeholder_pointer_type): When setting to a pointer to
998         error, set to error_mark_node.
1000 2012-02-23  Richard Guenther  <rguenther@suse.de>
1002         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1003         build_distinct_type_copy.
1005 2012-02-17  Ian Lance Taylor  <iant@google.com>
1007         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1009 2012-02-17  Ian Lance Taylor  <iant@google.com>
1011         * gospec.c (lang_specific_driver): If linking, and no -o option
1012         was used, add one.
1014 2012-02-14  Ian Lance Taylor  <iant@google.com>
1016         PR go/48411
1017         * Make-lang.in (gccgo-cross$(exeext)): New target.
1018         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1019         gccgo$(exeext).
1020         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1021         gccgo-cross$(exeext) does not exist.
1023 2012-02-07  Ian Lance Taylor  <iant@google.com>
1025         * gccgo.texi (Function Names): Document //extern instead of
1026         __asm__.
1028 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
1030         PR target/52079
1031         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1032         return build_nonstandard_integer_type result if possible.
1034 2012-01-21  Ian Lance Taylor  <iant@google.com>
1036         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1037         (Gcc_backend::type_alignment): Likewise.
1038         (Gcc_backend::type_field_alignment): Likewise.
1039         (Gcc_backend::type_field_offset): Likewise.
1041 2012-01-20  Ian Lance Taylor  <iant@google.com>
1043         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1044         be empty.
1045         (Gcc_backend::set_placeholder_struct_type): Likewise.
1047 2012-01-17  Ian Lance Taylor  <iant@google.com>
1049         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1050         BASE.s rather than -o BASE.o.
1052 2012-01-11  Ian Lance Taylor  <iant@google.com>
1054         * go-lang.c (go_langhook_init): Initialize void_list_node before
1055         calling go_create_gogo.
1057 2012-01-10  Ian Lance Taylor  <iant@google.com>
1059         * go-gcc.cc (Gcc_backend::type_size): New function.
1060         (Gcc_backend::type_alignment): New function.
1061         (Gcc_backend::type_field_alignment): New function.
1062         (Gcc_backend::type_field_offset): New function.
1063         * go-backend.c (go_type_alignment): Remove.
1064         * go-c.h (go_type_alignment): Don't declare.
1066 2011-12-27  Ian Lance Taylor  <iant@google.com>
1068         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1069         build_distinct_type_copy rather than build_variant_type_copy.
1070         (Gcc_backend::set_placeholder_array_type): Likewise.
1071         (Gcc_backend::named_type): Add special handling for builtin
1072         basic types.
1074 2011-12-22  Ian Lance Taylor  <iant@google.com>
1076         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1077         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1078         (Gcc_backend::set_placeholder_struct_type): Likewise.
1079         (Gcc_backend::set_placeholder_array_type): Likewise.
1080         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1082 2011-12-13  Ian Lance Taylor  <iant@google.com>
1084         * go-backend.c: #include "simple-object.h" and "intl.h".
1085         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1086         (GO_EXPORT_SECTION_NAME): Likewise.
1087         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1088         (go_read_export_data): New function.
1089         * go-c.h (go_read_export_data): Declare.
1091 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
1092             Ian Lance Taylor  <iant@google.com>
1094         * go-location.h: New file.
1095         * go-linemap.cc: New file.
1096         * go-gcc.cc: Change all uses of source_location to Location.
1097         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1098         (GO_LINEMAP_H): New variable.
1099         (GO_LEX_H): Use $(GO_LINEMAP_H).
1100         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1101         (go/go-linemap.o): New target.
1103 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1105         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1107 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
1109         * lang.opt: Add fgo-optimize-.
1110         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1111         * go-c.h (go_enable_optimize): Declare.
1112         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1113         (GO_EXPORT_H): Define.
1114         (GO_IMPORT_H): Add $(GO_EXPORT_H).
1115         (GO_AST_DUMP_H): Define.
1116         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1117         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1118         (go/types.o): Likewise.
1119         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1120         (go/go-optimize.o): New target.
1122 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1124         * Make-lang.in (CFLAGS-go/go-lang.o): New.
1125         (go/go-lang.o): Remove explicit compilation rule.
1127 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1129         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1131 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
1133         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1134         (go/ast-dump.o): New target.
1135         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1136         (go/statements.o): Likewise.
1138 2011-07-06  Richard Guenther  <rguenther@suse.de>
1140         * go-lang.c (go_langhook_init):
1141         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1143 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1145         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1146         dependencies.
1147         * go-backend.c: Include common/common-target.h.
1148         (go_write_export_data): Use targetm_common.have_named_sections.
1149         * go-lang.c: Include common/common-target.h.
1150         (go_langhook_init_options_struct): Use
1151         targetm_common.supports_split_stack.
1153 2011-06-13  Ian Lance Taylor  <iant@google.com>
1155         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1157 2011-06-10  Ian Lance Taylor  <iant@google.com>
1159         * go-gcc.cc: Include "toplev.h".
1160         (Gcc_backend::immutable_struct): New function.
1161         (Gcc_backend::immutable_struct_set_init): New function.
1162         (Gcc_backend::immutable_struct_reference): New function.
1163         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1165 2011-06-09  Ian Lance Taylor  <iant@google.com>
1167         * go-gcc.cc (Gcc_backend::zero_expression): New function.
1169 2011-06-07  Richard Guenther  <rguenther@suse.de>
1171         * go-lang.c (go_langhook_init): Do not set
1172         size_type_node or call set_sizetype.
1174 2011-05-27  Ian Lance Taylor  <iant@google.com>
1176         * go-backend.c: Include "output.h".
1177         (go_write_export_data): New function.
1178         * go-c.h (go_write_export_data): Declare.
1179         * Make-lang.in (go/go-backend.o): Depend on output.h.
1180         (go/export.o): Depend on $(GO_C_H).  Do not depend on
1181         $(MACHMODE_H), output.h, or $(TARGET_H).
1183 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1185         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1186         (gccgo$(exeext)): Use libcommon-target.a.
1188 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1190         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1192 2011-05-13  Ian Lance Taylor  <iant@google.com>
1194         * go-gcc.cc (Gcc_backend::function_type): When building a struct
1195         for multiple results, check that all fields types have a size.
1196         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1198 2011-05-12  Ian Lance Taylor  <iant@google.com>
1200         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1201         parameter.
1202         (Gcc_backend::parameter_variable): Likewise.
1204 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1206         * go-lang.c (global_bindings_p): Return bool and simplify.
1208 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1210         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1212 2011-05-04  Ian Lance Taylor  <iant@google.com>
1214         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1215         (Gcc_backend::fill_in_struct): New function.
1216         (Gcc_backend::array_type): Implement.
1217         (Gcc_backend::fill_in_array): New function.
1218         (Gcc_backend::placeholder_pointer_type): New function.
1219         (Gcc_backend::set_placeholder_pointer_type): New function.
1220         (Gcc_backend::set_placeholder_function_type): New function.
1221         (Gcc_backend::placeholder_struct_type): New function.
1222         (Gcc_backend::set_placeholder_struct_type): New function.
1223         (Gcc_backend::placeholder_array_type): New function.
1224         (Gcc_backend::set_placeholder_array_type): New function.
1225         (Gcc_backend::named_type): New function.
1226         (Gcc_backend::circular_pointer_type): New function.
1227         (Gcc_backend::is_circular_pointer_type): New function.
1229 2011-04-26  Ian Lance Taylor  <iant@google.com>
1231         * go-gcc.cc (Gcc_backend::struct_type): Implement.
1233 2011-04-25  Ian Lance Taylor  <iant@google.com>
1235         * go-gcc.cc (Gcc_backend::error_type): Implement.
1236         (Gcc_backend::string_type): Remove.
1237         (Gcc_backend::function_type): Change signature and implement.
1238         (Gcc_backend::struct_type): Change signature.
1239         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1240         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1241         (Gcc_backend::pointer_type): Check for error.
1242         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1244 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
1246         * go-gcc.c (class Gcc_tree): Make get_tree const.
1247         (Gcc_backend::void_type): Implement.
1248         (Gcc_backend::bool_type): Implement.
1249         (Gcc_backend::integer_type): Implement.
1250         (Gcc_backend::float_type): Implement.
1251         (Gcc_backend::complex_type): New function.
1252         (Gcc_backend::pointer_type): New function.
1253         (Gcc_backend::make_type): New function.
1254         (type_to_tree): New function.
1256 2011-04-21  Ian Lance Taylor  <iant@google.com>
1258         * go-system.h (go_assert, go_unreachable): Define.
1260 2011-04-19  Ian Lance Taylor  <iant@google.com>
1262         * go-system.h: Include "intl.h".
1263         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1264         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1265         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1267 2011-04-19  Ian Lance Taylor  <iant@google.com>
1269         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1271 2011-04-19  Ian Lance Taylor  <iant@google.com>
1273         * go-gcc.cc (class Bblock): Define.
1274         (Gcc_backend::if_statement): Change then_block and else_block to
1275         Bblock*.
1276         (Gcc_backend::block): New function.
1277         (Gcc_backend::block_add_statements): New function.
1278         (Gcc_backend::block_statement): New function.
1279         (tree_to_block, block_to_tree): New functions.
1281 2011-04-18  Ian Lance Taylor  <iant@google.com>
1283         * go-gcc.cc: Include "go-c.h".
1284         (class Bvariable): Define.
1285         (Gcc_backend::init_statement): New function.
1286         (Gcc_backend::global_variable): New function.
1287         (Gcc_backend::global_variable_set_init): New function.
1288         (Gcc_backend::local_variable): New function.
1289         (Gcc_backend::parameter_variable): New function.
1290         (tree_to_type, var_to_tree): New functions.
1291         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1292         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1294 2011-04-15  Ian Lance Taylor  <iant@google.com>
1296         * go-gcc.cc (Gcc_backend::compound_statement): New function.
1297         (Gcc_backend::assignment_statement): Use error_statement.
1298         (Gcc_backend::return_statement): Likewise.
1299         (Gcc_backend::if_statement): Likewise.
1300         (Gcc_backend::switch_statement): Likewise.
1301         (Gcc_backend::statement_list): Likewise.
1303 2011-04-14  Ian Lance Taylor  <iant@google.com>
1305         * go-gcc.cc (Gcc_backend::error_statement): New function.
1307 2011-04-13  Ian Lance Taylor  <iant@google.com>
1309         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1311 2011-04-13  Ian Lance Taylor  <iant@google.com>
1313         * Make-lang.in (GO_OBJS): Add go/runtime.o.
1314         (GO_RUNTIME_H): New variable.
1315         (go/runtime.o): New target.
1316         (go/gogo.o): Depend on $(GO_RUNTIME_H).
1317         (go/statements.o): Likewise.
1319 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1321         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1322         calling TREE_CHAIN.
1324 2011-04-06  Ian Lance Taylor  <iant@google.com>
1326         * go-gcc.cc (if_statement): Use build3_loc.
1327         (Gcc_backend::switch_statement): New function.
1328         (Gcc_backend::statement_list): New function.
1330 2011-04-06  Ian Lance Taylor  <iant@google.com>
1332         * go-gcc.cc (Gcc_backend::if_statement): New function.
1333         (tree_to_stat): New function.
1334         (expr_to_tree): Renamed from expression_to_tree.
1335         (stat_to_tree): Renamed from statement_to_tree.
1337 2011-04-06  Ian Lance Taylor  <iant@google.com>
1339         * go-gcc.cc (Gcc_backend::expression_statement): New function.
1341 2011-04-04  Ian Lance Taylor  <iant@google.com>
1343         * go-gcc.c (class Blabel): Define.
1344         (Gcc_backend::make_expression): New function.
1345         (get_identifier_from_string): New function.
1346         (Gcc_backend::label): New function.
1347         (Gcc_backend::label_definition_statement): New function.
1348         (Gcc_backend::goto_statement): New function.
1349         (Gcc_backend::label_address): New function.
1350         (expression_to_tree): New function.
1351         * Make-lang.in (go/expressions.o): Depend on
1352         go/gofrontend/backend.h.
1353         (go/gogo.o): Likewise.
1355 2011-04-04  Ian Lance Taylor  <iant@google.com>
1357         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1358         (class Bfunction): Define.
1359         (Gcc_backend::assignment_statement): Rename from assignment.
1360         Check for errors.
1361         (Gcc_backend::return_statement): New function.
1362         (tree_to_function): New function.
1363         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1364         $(GIMPLE_H), and $(GO_GOGO_H).
1366 2011-04-03  Ian Lance Taylor  <iant@google.com>
1368         * go-gcc.cc: New file.
1369         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1370         (go/go-gcc.o): New target.
1371         (go/go.o): Depend on go/gofrontend/backend.h.
1372         (go/statements.o): Likewise.
1374 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1376         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1378 2011-02-08  Ian Lance Taylor  <iant@google.com>
1380         * go-lang.c (go_langhook_init_options_struct): Set
1381         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
1383 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1385         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1386         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1388 2011-01-21  Ian Lance Taylor  <iant@google.com>
1390         * go-lang.c (go_langhook_init): Omit float_type_size when calling
1391         go_create_gogo.
1392         * go-c.h: Update declaration of go_create_gogo.
1394 2011-01-13  Ian Lance Taylor  <iant@google.com>
1396         * go-backend.c: Include "rtl.h" and "target.h".
1397         (go_imported_unsafe): New function.
1398         * go-c.h (go_imported_unsafe): Declare.
1399         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1400         (go/gogo-tree.o): Remove dependency on $(RTL_H).
1401         (go/unsafe.o): Depend on $(GO_C_H).
1403 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
1405         PR go/47113
1406         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1407         variable ‘field’ .
1409 2010-12-21  Ian Lance Taylor  <iant@google.com>
1411         * Make-lang.in (check-go): Remove.
1412         (lang_checks_parallelized): Add check-go.
1413         (check_go_parallelize): Set.
1415 2010-12-13  Ian Lance Taylor  <iant@google.com>
1417         * gospec.c (lang_specific_driver): Add a -o option if not linking
1418         and there is no -o option already.
1420 2010-12-07  Ian Lance Taylor  <iant@google.com>
1422         PR tree-optimization/46805
1423         PR tree-optimization/46833
1424         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1426 2010-12-06  Ian Lance Taylor  <iant@google.com>
1428         PR other/46789
1429         PR bootstrap/46812
1430         * go-lang.c (go_char_p): Define type and vectors.
1431         (go_search_dirs): New static variable.
1432         (go_langhook_handle_option): Use version and version/machine
1433         directories for -L.
1434         (go_langhook_post_options): Add non-specific -L paths.
1435         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1436         DEFAULT_TARGET_MACHINE when compiling.
1437         * gccgo.texi (Invoking gccgo): Only document -L for linking.
1438         (Import and Export): Don't mention -L for finding import files.
1440 2010-12-03  Ian Lance Taylor  <iant@google.com>
1442         PR bootstrap/46776
1443         * go-backend.c: New file.
1444         * go-c.h (go_type_alignment): Declare.
1445         (go_field_alignment, go_trampoline_info): Declare.
1446         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1447         (go/go-backend.o): New target.
1448         (go/go-lang.o): Make dependencies match source file.
1449         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1450         (go/gogo-tree.o): Don't depend on $(TM_H).
1452 2010-12-03  Ian Lance Taylor  <iant@google.com>
1454         * config-lang.in (build_by_default): Set to no.
1456 2010-12-02  Ian Lance Taylor  <iant@google.com>
1458         Go frontend added to gcc repository.
1460 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1462 Copying and distribution of this file, with or without modification,
1463 are permitted in any medium without royalty provided the copyright
1464 notice and this notice are preserved.