Improve fstack_protector effective target
[official-gcc.git] / gcc / go / ChangeLog
blob03100610d71937385570d9463fb5510b94c46e1b
1 2017-12-01  Ian Lance Taylor  <iant@golang.org>
3         * go-gcc.cc (Gcc_backend::Gcc_backend): Define
4         __builtin_unreachable.
5         (Gcc_backend::function): Add does_not_return parameter.
7 2017-12-01  Than McIntosh  <thanm@google.com>
9         * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
10         field.
11         * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
13 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
15         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
16         build2_loc instead of build3_loc.
18 2017-11-14  Than McIntosh  <thanm@google.com>
20         * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
22 2017-10-11  Tony Reix  <tony.reix@atos.net>
24         * go-system.h (__STDC_FORMAT_MACROS): Define before including any
25         system header files, as is done in ../system.h.
27 2017-10-05  Ian Lance Taylor  <iant@golang.org>
29         * Make-lang.in (GO_OBJS): Add go/names.o.
31 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
32             Alan Hayward  <alan.hayward@arm.com>
33             David Sherwood  <david.sherwood@arm.com>
35         * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
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_int_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_float_mode.
49 2017-08-07  Martin Liska  <mliska@suse.cz>
51         * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
52         and not __no_split_stack__.
54 2017-07-27    Tony Reix  <tony.reix@atos.net>
56         * go-backend.c (go_write_export_data): Use EXCLUDE section for
57         AIX.
59 2017-06-09  Ian Lance Taylor  <iant@golang.org>
61         * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
62         on, disable implicit -forder-blocks-and-partition.
64 2017-05-12  Than McIntosh  <thanm@google.com>
66         * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
68 2017-05-11  Ian Lance Taylor  <iant@google.com>
70         PR go/64238
71         * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
72         DECL_EXTERNAL, clear TREE_STATIC.
74 2017-05-10  Than McIntosh  <thanm@google.com>
76         * go-backend.c: Include "go-c.h".
77         * go-gcc.cc (Gcc_backend::write_export_data): New method.
79 2017-05-10  Ian Lance Taylor  <iant@google.com>
81         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
82         __builtin_prefetch.
83         * Make-lang.in (GO_OBJS): Add go/wb.o.
85 2017-03-28  Than McIntosh  <thanm@google.com>
87         PR go/80226
88         * go-gcc.cc (Gcc_backend::return_statement): Check for
89         void_type_node when checking result size.
91 2017-02-20  Ian Lance Taylor  <iant@golang.org>
93         PR go/79642
94         * lang.opt (-fgo-relative-import-path): Change space to tab.
96 2017-02-07  Richard Biener  <rguenther@suse.de>
98         PR tree-optimization/79256
99         PR middle-end/79278
100         * go-backend.c (go_field_alignment): Adjust.
102 2017-01-11  Than McIntosh  <thanm@google.com>
104         * go-gcc.cc (conditional_expression): Add Bfunction parameter.
106 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
108         Update copyright years.
110         * gccgo.texi: Bump @copyrights-go year.
112 2016-12-16  Than McIntosh  <thanm@google.com>
114         * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
115         parameter.
116         (Gcc_backend::init_statement): Likewise.
117         (Gcc_backend::assignment_statement): Likewise.
118         (Gcc_backend::if_statement): Likewise.
120 2016-12-06  Than McIntosh  <thanm@google.com>
122         * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
123         parameter.
125 2016-11-22  Than McIntosh  <thanm@google.com>
127         * go-gcc.cc (char_needs_encoding): Remove.
128         (needs_encoding, fetch_utf8_char, encode_id): Remove.
129         (Gcc_backend::global_variable): Add asm_name parameter.  Don't
130         compute asm_name here.
131         (Gcc_backend::implicit_variable): Likewise.
132         (Gcc_backend::implicit_variable_reference): Likewise.
133         (Gcc_backend::immutable_struct): Likewise.
134         (Gcc_backend::immutable_struct_reference): Likewise.
135         * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
137 2016-11-22  Ian Lance Taylor  <iant@google.com>
139         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
140         __builtin_frame_address.
142 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
144         * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
145         from result of GET_MODE_CLASS.  Minor formatting fixes.
147 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
149         * go-backend.c: Include memmodel.h.
151 2016-10-10  Than McIntosh  <thanm@google.com>
153         * go-gcc.h: New file.
154         * go-c.h (struct go_create_gogo_args): Add backend and linemap
155         fields.
156         * go-lang.c: Include "go-gcc.h".
157         (go_langhook_init): Set linemap and backend fields of args.
158         * go-gcc.cc: Include "go-gcc.h".
159         * go-linemap.cc: Include "go-gcc.h".
161 2016-10-10  Than McIntosh  <thanm@google.com>
163         * go-linemap.cc (Gcc_linemap::location_line): New method.
165 2016-10-10  Eric Botcazou  <ebotcazou@adacore.com>
167         * config-lang.in (lang_requires_boot_languages): Delete.
169 2016-10-06  Chris Manghane  <cmang@google.com>
171         * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
172         returned memory.
174 2016-09-27  Than McIntosh  <thanm@google.com>
176         * go-linemap.cc (Gcc_linemap::to_string): New method.
178 2016-09-23  Than McIntosh  <thanm@google.com>
180         * go-gcc-diagnostics.cc: New file.
181         * go-location.h (Location): Remove operator source_location.  Add
182         operator==.
183         * go-system.h: #include <sstream>.
184         * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
185         go/go-gcc-diagnostics.o.
186         (CFLAGS-go/go-gcc-diagnostics.o): New variable.
188 2016-09-23  Chris Manghane  <cmang@google.com>
190         PR go/77701
191         * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
192         to pass arguments in the correct order.
194 2016-09-22  Ian Lance Taylor  <iant@golang.org>
196         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
197         __builtin_frame_address.
199 2016-09-11  Ian Lance Taylor  <iant@golang.org>
201         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
202         ctz, ctzll, bswap32, bswap64.
204 2016-09-10  Ian Lance Taylor  <iant@golang.org>
206         * go-backend.c (go_trampoline_info): Remove.
207         * go-c.h (go_trampoline_info): Don't declare.
209 2016-09-09  Than McIntosh  <thanm@google.com>
211         * go-sha1.cc: New file.
212         * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
213         (CFLAGS-go/go-sha1.o): New variable.
215 2016-08-29  Ian Lance Taylor  <iant@google.com>
217         * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
218         * go-c.h (struct go_create_gogo_args): Define.
219         (go_create_gogo): Change declaration to take struct pointer.
220         * go-lang.c (go_c_header): New static variable.
221         (go_langhook_init): Update call to go_create_gogo.
222         * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
223         -fgo-compiling-runtime.
225 2016-08-09  Ian Lance Taylor  <iant@google.com>
227         * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
228         -fgo-debug-escae.
229         (Compiler Directives): New chapter.
230         (Function Names): Describe using //go:linkname.  Suggest using
231         -fgo-pkgpath rather than -fgo-prefix.
233 2016-08-08  Ian Lance Taylor  <iant@google.com>
235         PR go/72814
236         * go-gcc.cc (Gcc_backend::function_type): If the return type is
237         zero bytes, treat the function as returning void.
238         (return_statement): If the return type is zero bytes, don't
239         actually return any values.
241 2016-08-05  Ian Lance Taylor  <iant@google.com>
243         PR go/72812
244         * go-gcc.cc (char_needs_encoding): New static function.
245         (needs_encoding, fetch_utf8_char): New static functions.
246         (encode_id): New static function.
247         (Gcc_backend::global_variable): Set asm name if the name is not
248         simple ASCII.
249         (Gcc_backend::implicit_variable): Likewise.
250         (Gcc_backend::implicit_variable_reference): Likewise.
251         (Gcc_backend::immutable_struct): Likewise.
252         (Gcc_backend::immutable_struct_reference): Likewise.
253         (Gcc_backend::function): Likewise.
255 2016-08-02  Chris Manghane  <cmang@google.com>
257         * lang.opt: Add -fgo-debug-escape option.
258         * go-c.h (go_create_gogo): Add debug_escape_level parameter.
259         * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
260         go_create_gogo.
262 2016-05-06  Chris Manghane  <cmang@google.com>
264         * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
265         new escape.cc).
267 2016-04-29  Chris Manghane  <cmang@google.com>
269         * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
271 2016-04-18  Michael Matz  <matz@suse.de>
273         * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
275 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
277         * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
278         neighbour -> neighbor.
279         * gccgo.texi: Likewise.
281 2016-01-27  Ian Lance Taylor  <iant@google.com>
283         * go-lang.c (go_langhook_init_options_struct): Default to
284         -fkeep-gc-roots-live.
286 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
288         Update copyright years.
290         * gccgo.texi: Bump @copyrights-go year.
292 2015-12-21  Ian Lance Taylor  <iant@google.com>
294         * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class.  Add
295         t_ and orig_type_ fields.  Add new two parameter constructor.  Add
296         get_tree and get_decl methods.
297         (Gcc_backend::var_expression): Pass location to var get_tree.
298         (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR.  Use
299         two parameter constructor for Bvariable.
300         (Gcc_backend::global_variable_set_init): Don't remove
301         VIEW_CONVERT_EXPR.  Use var get_decl, not get_tree.
302         (Gcc_backend::write_global_definitions): Likewise.
303         (Gcc_backend::init_statement): Call var get_decl, not get_tree.
304         (Gcc_backend::block): Likewise.
305         (Gcc_backend::implicit_variable_set_init): Likewise.
306         (Gcc_backend::immutable_struct_set_init): Likewise.
307         (Gcc_backend::function_set_parameters): Likewise.
309 2015-12-21  Ian Lance Taylor  <iant@google.com>
311         * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
312         add a VIEW_CONVERT_EXPR to the tree.
313         (Gcc_backend::global_variable_set_init): Remove any
314         VIEW_CONVERT_EXPR.
315         (Gcc_backend::write_global_definitions): Likewise.
317 2015-11-30  Ian Lance Taylor  <iant@google.com>
319         PR go/68477
320         * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
321         TYPE_STRING_FLAG on a variant type.
323 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
325         * go-backend.c: Remove unused header files.
326         * go-gcc.cc: Likewise.
327         * go-lang.c: Likewise.
328         * gospec.c: Likewise.
330 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
332         * go-backend.c: Reorder #include's and remove duplicates.
333         * go-lang.c: Likewise.
335 2015-10-20  Alan Modra  <amodra@gmail.com>
337         PR go/66870
338         * gospec.c (saw_opt_m32): Rename to..
339         (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
340         Update uses.
341         (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
343 2015-10-01  Ian Lance Taylor  <iant@google.com>
345         PR go/66870
346         * gospec.c (lang_specific_driver): Only look for OPT_m32 if
347         TARGET_CAN_SPLIT_STACK_64BIT is defined.
349 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
351         PR target/66870
352         * gospec.c (lang_specific_driver): Set appropriate split stack
353         options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
355 2015-09-10  Chris Manghane  <cmang@google.com>
357         * go-gcc.cc (Gcc_backend::type_size): Return -1 for
358         unrepresentable size.
360 2015-08-24  Marek Polacek  <polacek@redhat.com>
362         PR tree-optimization/67284
363         * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
364         Set TREE_THIS_VOLATILE.
365         (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
366         Pass false to the rest of define_builtin calls.
368 2015-07-31  Andreas Schwab  <schwab@linux-m68k.org>
370         * go-lang.c (go_langhook_init_options_struct): Don't set
371         x_flag_split_stack.
372         (go_langhook_post_options): Set it here instead.
374 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
376         * gofrontend/backend.h: Fix double word typos.
377         * gofrontend/expressions.cc: Same.
378         * gospec.c: Same.
380 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
382         * go-backend.c: Adjust includes.
383         * go-gcc.cc: Likewise.
384         * go-lang.c: Likewise.
386 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
388         * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
390 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
392         * go-backend.c: Do not include input.h, line-map.h or is-a.h.
393         * go-gcc.cc: Likewise.
394         * go-lang.c: Likewise.
395         * go-system.h: Likewise.
397 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
399         * go-backend.c : Adjust include files.
400         * go-gcc.cc : Likewise.
401         * go-lang.c : Likewise.
403 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
405         * go-gcc.cc (write_global_definitions): Remove call to
406         finalize_compilation_unit.
407         Remove Go specific debug generation.
408         * go-lang.c (go_langhook_parse_file): Call go_write_globals.
409         (go_langhook_write_globals): Remove.
410         Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
412 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
414         * go-backend.c: Adjust includes for restructured coretypes.h.
415         * go-c.h: Likewise.
416         * go-gcc.cc: Likewise.
417         * go-lang.c: Likewise.
419 2015-04-30  Chris Manghane  <cmang@google.com>
421         * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
422         method.
424 2015-04-27  Jim Wilson  <jim.wilson@linaro.org>
426         * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
428 2015-04-17  Chris Manghane  <cmang@google.com>
430         * Make-lang.in (GO_OBJS): Add go/escape.o.
432 2015-02-02  Ian Lance Taylor  <iant@google.com>
434         PR go/64836
435         PR go/64838
436         * go-gcc.cc (Gcc_backend::type_size): Change return type to
437         int64_t.
438         (Gcc_backend::type_alignment): Likewise.
439         (Gcc_backend::type_field_alignment): Likewise.
440         (Gcc_backend::type_field_offset): Likewise.
441         (Gcc_backend::implicit_variable): Change alignment parameter type
442         to int64_t.
444 2015-01-23  Ian Lance Taylor  <iant@google.com>
446         PR go/63565
447         * gccgo.texi (Invoking gccgo): Mention that Go programs should not
448         be stripped.
450         * gccgo.texi (C Interoperability): Mention that people should use
451         cgo.
453 2015-01-23  Ian Lance Taylor  <iant@google.com>
455         PR go/64595
456         * go-lang.c (go_langhook_init_options_struct): Set default
457         debug_info_level.
458         (go_langhook_post_options): If debug_info_level is still the
459         default, make sure write_symbols is set.
460         * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
462 2015-01-16  Richard Henderson  <rth@redhat.com>
464         * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
465         (Gcc_backend::static_chain_variable): New method.
467 2015-01-09  Ian Lance Taylor  <iant@google.com>
469         * config-lang.in (lang_dirs): Define.
471 2015-01-09  Michael Collison  <michael.collison@linaro.org>
473         * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
474         input.h, alias.h, symtab.h, options.h, fold-const.h,
475         wide-int.h, and inchash.h due to flattening of tree.h.
476         * go-lang.c: Ditto.
477         * go-backend.c: Ditto.
479 2015-01-07  Chris Manghane  <cmang@google.com>
481         PR go/61204
482         * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
483         zero-sized variable.
485 2015-01-06  Chris Manghane  <cmang@google.com>
487         * go-gcc.cc (Gcc_backend::constructor_expression): Don't
488         initialize zero-sized fields, just evaluate the values for side
489         effects.
491 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
493         Update copyright years.
495         * gccgo.texi: Bump @copyrights-go year.
497 2014-12-19  Chris Manghane  <cmang@google.com>
499         * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
500         construct arrays of zero-sized values.
502 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
504         * go-lang.c: Remove redundant enum from machine_mode.
506 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
508         * go-gcc.cc: Adjust include files.
510 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
512         * go-gcc.cc: Adjust include files.
513         * go-lang.c: Ditto.
515 2014-10-23  Ian Lance Taylor  <iant@google.com>
517         * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
518         mpc_t parameter instead of two mpfr_t parameters.
520 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
522         * Make-lang.in (check_go_parallelize): Change to just an upper bound
523         number.
525 2014-09-03  Chris Manghane  <cmang@google.com>
527         * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
528         parameter.  Add is_hidden parameter.
529         (Gcc_backend::implicit_variable_set_init): New method.
530         (Gcc_backend::implicit_variable_reference): New method.
532 2014-08-08  Ian Lance Taylor  <iant@google.com>
534         * go-gcc.cc (Gcc_backend::compound_statement): Don't return
535         NULL_TREE.
537 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
539         * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
540         symtab_get_node to symtab_node::get.
542 2014-06-13  Ian Lance Taylor  <iant@google.com>
544         PR go/61496
545         * gospec.c (lang_specific_driver): On Solaris, when not using GNU
546         ld, add -t option to avoid warning about common symbol changing
547         size.
549 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
551         * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
552         symtab_get_node(var_decl)->implicit_section.
554 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
556         * go-gcc.cc (global_variable_set_init): Use
557         set_decl_section_name.
559 2014-06-04  Ian Lance Taylor  <iant@google.com>
561         * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
562         alignment parameters.  Permit init parameter to be NULL.
564 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
566         * go-gcc.cc: Include builtins.h.
568 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
570         * go-lang.c (struct GTY): Don't use variable_size gty attribute.
572 2014-05-06  Chris Manghane  <cmang@google.com>
574         * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
575         (Gcc_backend::boolean_constant_expression): New method.
576         (Gcc_backend::zero_expression): Use this->make_expression rather
577         than tree_to_expr.
578         (Gcc_backend::var_expression): Likewise.
579         (Gcc_backend::integer_constant_expression): Likewise.
580         (Gcc_backend::float_constant_expression): Likewise.
581         (Gcc_backend::complex_constant_expression): Likewise.
582         (Gcc_backend::struct_field_expression): Likewise.
583         (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
584         (tree_to_function, tree_to_block): Remove functions.
585         (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
586         (block_to_tree, var_to_tree, function_to_tree): Remove functions.
588 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
589             Mike Stump  <mikestump@comcast.net>
590             Richard Sandiford  <rdsandiford@googlemail.com>
592         * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
594 2014-05-06  Chris Manghane  <cmang@google.com>
596         * go-c.h (go_create_gogo): Update declaration to add
597         check_divide_zero and check_divide_overflow parameters.
598         * go-lang.c (go_langhook_init): Pass new arguments to
599         go_create_gogo.
601 2014-05-05  Chris Manghane  <cmang@google.com>
603         * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
604         gc_root_variable.  Add name and is_constant parameters.
606 2014-05-05  Chris Manghane  <cmang@google.com>
608         * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
609         parameter.
610         (Gcc_backend::temporary_variable): Check for erroneous function.
612 2014-04-30  Chris Manghane  <cmang@google.com>
614         * go-backend.c: #include "diagnostics.h".
615         (saw_errors): New function.
616         * go-c.h (saw_errors): Declare.
617         * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
619 2014-04-30  Chris Manghane  <cmang@google.com>
621         * go-lang.c (go_langhook_type_for_size): Do it here, rather than
622         calling into Go frontend.
623         (go_langhook_type_for_mode): Likewise.
624         * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
626 2014-04-30  Chris Manghane  <cmang@google.com>
628         * go-gcc.cc: #include "langhooks.h".
629         (Gcc_backend::Gcc_backend): Add constructor.
630         (Gcc_backend::lookup_function): New function.
631         (Gcc_backend::define_builtin): New private function.
632         (Gcc_backend::gcc_backend): Remove.
633         (go_get_backend): Use new to create new Gcc_backend.
635 2014-04-25  Chris Manghane  <cmang@google.com>
637         * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
638         (Gcc_backend::return_statement): Push and pop function.
639         (Gcc_backend::label): Likewise.
640         (Gcc_backend::function_defer_statement): Likewise.
641         (Gcc_backend::switch_statement): Add function parameter.
642         (Gcc_backend::block): Don't permit function to be NULL.
643         (Gcc_backend::temporary_variable): Change go_assert to
644         gcc_assert.
645         (Gcc_backend::gc_root_variable): New function.
646         (Gcc_backend::write_global_definitions): New function.
648 2014-04-22  Chris Manghane  <cmang@google.com>
650         * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
651         call to create_tmp_var.  Require that function be non-NULL.
653 2014-04-17  Chris Manghane  <cmang@google.com>
655         * go-gcc.cc (Gcc_backend::named_constant_expression): New
656         function.
658 2014-04-14  Chris Manghane  <cmang@google.com>
660         * go-gcc.cc: Include "convert.h".
661         (Gcc_backend::string_constant_expression): New function.
662         (Gcc_backend::real_part_expression): Likewise.
663         (Gcc_backend::imag_part_expression): Likewise.
664         (Gcc_backend::complex_expression): Likewise.
665         (Gcc_backend::constructor_expression): Likewise.
666         (Gcc_backend::array_constructor_expression): Likewise.
667         (Gcc_backend::pointer_offset_expression): Likewise.
668         (Gcc_backend::array_index_expression): Likewise.
669         (Gcc_backend::call_expression): Likewise.
670         (Gcc_backend::exception_handler_statement): Likewise.
671         (Gcc_backend::function_defer_statement): Likewise.
672         (Gcc_backend::function_set_parameters): Likewise.
673         (Gcc_backend::function_set_body): Likewise.
674         (Gcc_backend::convert_expression): Handle various type
675         conversions.
677 2014-03-03  Ian Lance Taylor  <iant@google.com>
679         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
680         DECL_WEAK.
681         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
682         DECL_WEAK.
684 2014-01-24  Chris Manghane  <cmang@google.com>
686         * go-gcc.cc (Gcc_backend::unary_expression): New function.
688 2014-01-16  Chris Manghane  <cmang@google.com>
690         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
691         parameter.
692         (operator_to_tree_code): New static function.
693         (Gcc_backend::binary_expression): New function.
695 2014-01-14  Chris Manghane  <cmang@google.com>
697         * go-gcc.cc (Gcc_backend::compound_expression): New function.
698         (Gcc_backend::conditional_expression): New function.
700 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
702         Update copyright years
704 2014-01-02  Tobias Burnus  <burnus@net-b.de>
706         * gccgo.texi: Bump @copying's copyright year.
708 2013-12-16  Chris Manghane  <cmang@google.com>
710         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
712 2013-12-11  Ian Lance Taylor  <iant@google.com>
714         * go-lang.c (go_langhook_post_options): Disable sibling calls by
715         default.
717 2013-12-10  Ian Lance Taylor  <iant@google.com>
719         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
720         separately.
722 2013-12-05  Ian Lance Taylor  <iant@google.com>
724         Revert this change; no longer required.
725         2013-11-06  Ian Lance Taylor  <iant@google.com>
727         * go-lang.c (go_langhook_post_options): If
728         -fisolate-erroneous-paths was turned on by an optimization option,
729         turn it off.
731 2013-11-23  Ian Lance Taylor  <iant@google.com>
733         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
734         parameter.
736 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
738         * go-gcc.cc: Add required include files from gimple.h.
739         * go-lang.c: Likewise
741 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
743         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
744         tree_to_shwi throughout.
746 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
748         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
749         tree_fits_shwi_p throughout.
751 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
753         * go-lang.c: Include only gimplify.h and gimple.h as needed.
755 2013-11-14  Diego Novillo  <dnovillo@google.com>
757         * go-backend.c: Include stor-layout.h.
758         * go-gcc.cc: Include stringpool.h.
759         Include stor-layout.h.
760         Include varasm.h.
761         * go-lang.c: Include stor-layout.h.
763 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
765         * go-lang.c: Include gimplify.h.
767 2013-11-06  Ian Lance Taylor  <iant@google.com>
769         * go-lang.c (go_langhook_post_options): If
770         -fisolate-erroneous-paths was turned on by an optimization option,
771         turn it off.
773 2013-10-14  Chris Manghane  <cmang@google.com>
775         * go-gcc.cc (Gcc_backend::address_expression): New function.
777 2013-10-11  Chris Manghane  <cmang@google.com>
779         * go-gcc.cc (Gcc_backend::function_code_expression): New
780         function.
782 2013-10-10  Chris Manghane  <cmang@google.com>
784         * go-gcc.cc (Gcc_backend::error_function): New function.
785         (Gcc_backend::function): New function.
786         (Gcc_backend::make_function): New function.
787         (function_to_tree): New function.
789 2013-10-04  Chris Manghane  <cmang@google.com>
791         * go-gcc.cc (Gcc_backend::convert_expression): New function.
793 2013-10-02  Chris Manghane  <cmang@google.com>
795         * go-gcc.cc: Include "real.h" and "realmpfr.h".
796         (Gcc_backend::integer_constant_expression): New function.
797         (Gcc_backend::float_constant_expression): New function.
798         (Gcc_backend::complex_constant_expression): New function.
800 2013-09-30  Chris Manghane  <cmang@google.com>
802         * go-gcc.cc (Gcc_backend::error_expression): New function.
803         (Gcc_backend::var_expression): New function.
804         (Gcc_backend::indirect_expression): New function.
806 2013-09-25  Tom Tromey  <tromey@redhat.com>
808         * Make-lang.in (gospec.o): Remove.
809         (CFLAGS-go/gospec.o): New variable.
810         (GCCGO_OBJS): Update to use go/gospec.o.
811         (go_OBJS): Define.
812         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
813         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
814         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
815         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
816         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
817         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
818         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
819         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
820         (go/unsafe.o): Remove.
821         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
822         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
824 2013-09-25  Tom Tromey  <tromey@redhat.com>
826         * Make-lang.in (gospec.o): Don't use subshell.
828 2013-08-28  Ian Lance Taylor  <iant@google.com>
830         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
831         the struct is not hidden.
832         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
834 2013-08-06  Ian Lance Taylor  <iant@google.com>
836         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
837         compute_reloc_for_constant.
839 2013-08-02  Ian Lance Taylor  <iant@google.com>
841         * go-gcc.cc (immutable_struct_set_init): Always call
842         resolve_unique_section.
844 2013-07-24  Ian Lance Taylor  <iant@google.com>
846         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
847         fields, recreate those fields with the first one with a non-zero
848         size.
850 2013-07-23  Ian Lance Taylor  <iant@google.com>
852         * go-backend.c: Don't #include "rtl.h".
853         (go_imported_unsafe): Don't call init_varasm_once.
854         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
856 2013-07-23  Ian Lance Taylor  <iant@google.com>
858         * go-lang.c: Don't #include "except.h".
859         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
861 2013-06-18  Ian Lance Taylor  <iant@google.com>
863         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
864         parameter.
865         (Gcc_backend::immutable_struct_set_init): Likewise.
867 2013-05-16  Jason Merrill  <jason@redhat.com>
869         * Make-lang.in (go1$(exeext)): Use link mutex.
871 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
873         * gospec.c: pass -u pthread_create to linker when static linking.
875 2012-12-21  Ian Lance Taylor  <iant@google.com>
877         PR bootstrap/54659
878         * go-system.h: Don't include <cstdio>.
880 2012-12-18  Ian Lance Taylor  <iant@google.com>
882         PR go/55201
883         * gospec.c: Revert last patch.
885 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
887         PR go/55201
888         * gospec.c (LIBATOMIC): Define.
889         (LIBATOMIC_PROFILE): Define.
890         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
892 2012-11-29  Ian Lance Taylor  <iant@google.com>
894         * go-gcc.cc: Include "output.h".
895         (global_variable): Add is_unique_section parameter.
896         (global_variable_set_init): Adjust unique section if necessary.
897         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
899 2012-11-17  Diego Novillo  <dnovillo@google.com>
901         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
903         * go-lang.c: Use new vec API in vec.h.
905 2012-11-16  Ian Lance Taylor  <iant@google.com>
907         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
908         (go1$(exeext)): Likewise.
910 2012-10-30  Ian Lance Taylor  <iant@google.com>
912         * lang.opt (-fgo-relative-import-path): New option.
913         * go-lang.c (go_relative_import_path): New static variable.
914         (go_langhook_init): Pass go_relative_import_path to
915         go_create_gogo.
916         (go_langhook_handle_option): Handle -fgo-relative-import-path.
917         * go-c.h (go_create_gogo): Update declaration.
918         * gccgo.texi (Invoking gccgo): Document
919         -fgo-relative-import-path.
921 2012-09-17  Ian Lance Taylor  <iant@google.com>
923         * config-lang.in (target_libs): Add target-libbacktrace.
925 2012-09-16  Ian Lance Taylor  <iant@google.com>
927         * Make-lang.in (go/gogo.o): Depend on filenames.h.
929 2012-08-14   Diego Novillo  <dnovillo@google.com>
931         Merge from cxx-conversion branch.  Configury.
933         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
934         * go-gcc.cc: Likewise.
935         * go-system.h: Likewise.
937 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
939         * go-lang.c (lang_decl): Add variable_size GTY option.
941 2012-05-09  Ian Lance Taylor  <iant@google.com>
943         * lang.opt: Add -fgo-pkgpath.
944         * go-lang.c (go_pkgpath): New static variable.
945         (go_prefix): New static variable.
946         (go_langhook_init): Pass go_pkgpath and go_prefix to
947         go_create_gogo.
948         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
949         -fgo-prefix handling to just set go_prefix.
950         * go-c.h (go_set_prefix): Don't declare.
951         (go_create_gogo): Add pkgpath and prefix to declaration.
952         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
953         to pkgpath.  Don't include the package name in the asm name.
954         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
955         docs for -fgo-prefix.
957 2012-04-23  Ian Lance Taylor  <iant@google.com>
959         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
961 2012-04-20  Ian Lance Taylor  <iant@google.com>
963         * lang.opt: Add -fgo-check-divide-zero and
964         -fgo-check-divide-overflow.
965         * gccgo.texi (Invoking gccgo): Document new options.
967 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
969         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
970         with NULL_TREE type instead of void_type_node.
972 2012-03-09  Ian Lance Taylor  <iant@google.com>
974         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
975         to the lhs type if necessary.
977 2012-03-08  Ian Lance Taylor  <iant@google.com>
979         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
980         zero-sized variable.
981         (go_non_zero_struct): New global variable.
982         (Gcc_backend::non_zero_size_type): New function.
983         (Gcc_backend::global_variable): Don't build an assignment for a
984         zero-sized value.
985         * go-c.h (go_non_zero_struct): Declare.
986         * config-lang.in (gtfiles): Add go-c.h.
988 2012-02-29  Ian Lance Taylor  <iant@google.com>
990         * go-gcc.cc (class Gcc_tree): Add set_tree method.
991         (set_placeholder_pointer_type): When setting to a pointer to
992         error, set to error_mark_node.
994 2012-02-23  Richard Guenther  <rguenther@suse.de>
996         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
997         build_distinct_type_copy.
999 2012-02-17  Ian Lance Taylor  <iant@google.com>
1001         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1003 2012-02-17  Ian Lance Taylor  <iant@google.com>
1005         * gospec.c (lang_specific_driver): If linking, and no -o option
1006         was used, add one.
1008 2012-02-14  Ian Lance Taylor  <iant@google.com>
1010         PR go/48411
1011         * Make-lang.in (gccgo-cross$(exeext)): New target.
1012         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1013         gccgo$(exeext).
1014         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1015         gccgo-cross$(exeext) does not exist.
1017 2012-02-07  Ian Lance Taylor  <iant@google.com>
1019         * gccgo.texi (Function Names): Document //extern instead of
1020         __asm__.
1022 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
1024         PR target/52079
1025         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1026         return build_nonstandard_integer_type result if possible.
1028 2012-01-21  Ian Lance Taylor  <iant@google.com>
1030         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1031         (Gcc_backend::type_alignment): Likewise.
1032         (Gcc_backend::type_field_alignment): Likewise.
1033         (Gcc_backend::type_field_offset): Likewise.
1035 2012-01-20  Ian Lance Taylor  <iant@google.com>
1037         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1038         be empty.
1039         (Gcc_backend::set_placeholder_struct_type): Likewise.
1041 2012-01-17  Ian Lance Taylor  <iant@google.com>
1043         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1044         BASE.s rather than -o BASE.o.
1046 2012-01-11  Ian Lance Taylor  <iant@google.com>
1048         * go-lang.c (go_langhook_init): Initialize void_list_node before
1049         calling go_create_gogo.
1051 2012-01-10  Ian Lance Taylor  <iant@google.com>
1053         * go-gcc.cc (Gcc_backend::type_size): New function.
1054         (Gcc_backend::type_alignment): New function.
1055         (Gcc_backend::type_field_alignment): New function.
1056         (Gcc_backend::type_field_offset): New function.
1057         * go-backend.c (go_type_alignment): Remove.
1058         * go-c.h (go_type_alignment): Don't declare.
1060 2011-12-27  Ian Lance Taylor  <iant@google.com>
1062         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1063         build_distinct_type_copy rather than build_variant_type_copy.
1064         (Gcc_backend::set_placeholder_array_type): Likewise.
1065         (Gcc_backend::named_type): Add special handling for builtin
1066         basic types.
1068 2011-12-22  Ian Lance Taylor  <iant@google.com>
1070         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1071         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1072         (Gcc_backend::set_placeholder_struct_type): Likewise.
1073         (Gcc_backend::set_placeholder_array_type): Likewise.
1074         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1076 2011-12-13  Ian Lance Taylor  <iant@google.com>
1078         * go-backend.c: #include "simple-object.h" and "intl.h".
1079         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1080         (GO_EXPORT_SECTION_NAME): Likewise.
1081         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1082         (go_read_export_data): New function.
1083         * go-c.h (go_read_export_data): Declare.
1085 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
1086             Ian Lance Taylor  <iant@google.com>
1088         * go-location.h: New file.
1089         * go-linemap.cc: New file.
1090         * go-gcc.cc: Change all uses of source_location to Location.
1091         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1092         (GO_LINEMAP_H): New variable.
1093         (GO_LEX_H): Use $(GO_LINEMAP_H).
1094         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1095         (go/go-linemap.o): New target.
1097 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1099         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1101 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
1103         * lang.opt: Add fgo-optimize-.
1104         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1105         * go-c.h (go_enable_optimize): Declare.
1106         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1107         (GO_EXPORT_H): Define.
1108         (GO_IMPORT_H): Add $(GO_EXPORT_H).
1109         (GO_AST_DUMP_H): Define.
1110         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1111         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1112         (go/types.o): Likewise.
1113         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1114         (go/go-optimize.o): New target.
1116 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1118         * Make-lang.in (CFLAGS-go/go-lang.o): New.
1119         (go/go-lang.o): Remove explicit compilation rule.
1121 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1123         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1125 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
1127         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1128         (go/ast-dump.o): New target.
1129         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1130         (go/statements.o): Likewise.
1132 2011-07-06  Richard Guenther  <rguenther@suse.de>
1134         * go-lang.c (go_langhook_init):
1135         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1137 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1139         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1140         dependencies.
1141         * go-backend.c: Include common/common-target.h.
1142         (go_write_export_data): Use targetm_common.have_named_sections.
1143         * go-lang.c: Include common/common-target.h.
1144         (go_langhook_init_options_struct): Use
1145         targetm_common.supports_split_stack.
1147 2011-06-13  Ian Lance Taylor  <iant@google.com>
1149         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1151 2011-06-10  Ian Lance Taylor  <iant@google.com>
1153         * go-gcc.cc: Include "toplev.h".
1154         (Gcc_backend::immutable_struct): New function.
1155         (Gcc_backend::immutable_struct_set_init): New function.
1156         (Gcc_backend::immutable_struct_reference): New function.
1157         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1159 2011-06-09  Ian Lance Taylor  <iant@google.com>
1161         * go-gcc.cc (Gcc_backend::zero_expression): New function.
1163 2011-06-07  Richard Guenther  <rguenther@suse.de>
1165         * go-lang.c (go_langhook_init): Do not set
1166         size_type_node or call set_sizetype.
1168 2011-05-27  Ian Lance Taylor  <iant@google.com>
1170         * go-backend.c: Include "output.h".
1171         (go_write_export_data): New function.
1172         * go-c.h (go_write_export_data): Declare.
1173         * Make-lang.in (go/go-backend.o): Depend on output.h.
1174         (go/export.o): Depend on $(GO_C_H).  Do not depend on
1175         $(MACHMODE_H), output.h, or $(TARGET_H).
1177 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1179         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1180         (gccgo$(exeext)): Use libcommon-target.a.
1182 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1184         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1186 2011-05-13  Ian Lance Taylor  <iant@google.com>
1188         * go-gcc.cc (Gcc_backend::function_type): When building a struct
1189         for multiple results, check that all fields types have a size.
1190         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1192 2011-05-12  Ian Lance Taylor  <iant@google.com>
1194         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1195         parameter.
1196         (Gcc_backend::parameter_variable): Likewise.
1198 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1200         * go-lang.c (global_bindings_p): Return bool and simplify.
1202 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1204         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1206 2011-05-04  Ian Lance Taylor  <iant@google.com>
1208         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1209         (Gcc_backend::fill_in_struct): New function.
1210         (Gcc_backend::array_type): Implement.
1211         (Gcc_backend::fill_in_array): New function.
1212         (Gcc_backend::placeholder_pointer_type): New function.
1213         (Gcc_backend::set_placeholder_pointer_type): New function.
1214         (Gcc_backend::set_placeholder_function_type): New function.
1215         (Gcc_backend::placeholder_struct_type): New function.
1216         (Gcc_backend::set_placeholder_struct_type): New function.
1217         (Gcc_backend::placeholder_array_type): New function.
1218         (Gcc_backend::set_placeholder_array_type): New function.
1219         (Gcc_backend::named_type): New function.
1220         (Gcc_backend::circular_pointer_type): New function.
1221         (Gcc_backend::is_circular_pointer_type): New function.
1223 2011-04-26  Ian Lance Taylor  <iant@google.com>
1225         * go-gcc.cc (Gcc_backend::struct_type): Implement.
1227 2011-04-25  Ian Lance Taylor  <iant@google.com>
1229         * go-gcc.cc (Gcc_backend::error_type): Implement.
1230         (Gcc_backend::string_type): Remove.
1231         (Gcc_backend::function_type): Change signature and implement.
1232         (Gcc_backend::struct_type): Change signature.
1233         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1234         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1235         (Gcc_backend::pointer_type): Check for error.
1236         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1238 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
1240         * go-gcc.c (class Gcc_tree): Make get_tree const.
1241         (Gcc_backend::void_type): Implement.
1242         (Gcc_backend::bool_type): Implement.
1243         (Gcc_backend::integer_type): Implement.
1244         (Gcc_backend::float_type): Implement.
1245         (Gcc_backend::complex_type): New function.
1246         (Gcc_backend::pointer_type): New function.
1247         (Gcc_backend::make_type): New function.
1248         (type_to_tree): New function.
1250 2011-04-21  Ian Lance Taylor  <iant@google.com>
1252         * go-system.h (go_assert, go_unreachable): Define.
1254 2011-04-19  Ian Lance Taylor  <iant@google.com>
1256         * go-system.h: Include "intl.h".
1257         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1258         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1259         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1261 2011-04-19  Ian Lance Taylor  <iant@google.com>
1263         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1265 2011-04-19  Ian Lance Taylor  <iant@google.com>
1267         * go-gcc.cc (class Bblock): Define.
1268         (Gcc_backend::if_statement): Change then_block and else_block to
1269         Bblock*.
1270         (Gcc_backend::block): New function.
1271         (Gcc_backend::block_add_statements): New function.
1272         (Gcc_backend::block_statement): New function.
1273         (tree_to_block, block_to_tree): New functions.
1275 2011-04-18  Ian Lance Taylor  <iant@google.com>
1277         * go-gcc.cc: Include "go-c.h".
1278         (class Bvariable): Define.
1279         (Gcc_backend::init_statement): New function.
1280         (Gcc_backend::global_variable): New function.
1281         (Gcc_backend::global_variable_set_init): New function.
1282         (Gcc_backend::local_variable): New function.
1283         (Gcc_backend::parameter_variable): New function.
1284         (tree_to_type, var_to_tree): New functions.
1285         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1286         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1288 2011-04-15  Ian Lance Taylor  <iant@google.com>
1290         * go-gcc.cc (Gcc_backend::compound_statement): New function.
1291         (Gcc_backend::assignment_statement): Use error_statement.
1292         (Gcc_backend::return_statement): Likewise.
1293         (Gcc_backend::if_statement): Likewise.
1294         (Gcc_backend::switch_statement): Likewise.
1295         (Gcc_backend::statement_list): Likewise.
1297 2011-04-14  Ian Lance Taylor  <iant@google.com>
1299         * go-gcc.cc (Gcc_backend::error_statement): New function.
1301 2011-04-13  Ian Lance Taylor  <iant@google.com>
1303         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1305 2011-04-13  Ian Lance Taylor  <iant@google.com>
1307         * Make-lang.in (GO_OBJS): Add go/runtime.o.
1308         (GO_RUNTIME_H): New variable.
1309         (go/runtime.o): New target.
1310         (go/gogo.o): Depend on $(GO_RUNTIME_H).
1311         (go/statements.o): Likewise.
1313 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1315         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1316         calling TREE_CHAIN.
1318 2011-04-06  Ian Lance Taylor  <iant@google.com>
1320         * go-gcc.cc (if_statement): Use build3_loc.
1321         (Gcc_backend::switch_statement): New function.
1322         (Gcc_backend::statement_list): New function.
1324 2011-04-06  Ian Lance Taylor  <iant@google.com>
1326         * go-gcc.cc (Gcc_backend::if_statement): New function.
1327         (tree_to_stat): New function.
1328         (expr_to_tree): Renamed from expression_to_tree.
1329         (stat_to_tree): Renamed from statement_to_tree.
1331 2011-04-06  Ian Lance Taylor  <iant@google.com>
1333         * go-gcc.cc (Gcc_backend::expression_statement): New function.
1335 2011-04-04  Ian Lance Taylor  <iant@google.com>
1337         * go-gcc.c (class Blabel): Define.
1338         (Gcc_backend::make_expression): New function.
1339         (get_identifier_from_string): New function.
1340         (Gcc_backend::label): New function.
1341         (Gcc_backend::label_definition_statement): New function.
1342         (Gcc_backend::goto_statement): New function.
1343         (Gcc_backend::label_address): New function.
1344         (expression_to_tree): New function.
1345         * Make-lang.in (go/expressions.o): Depend on
1346         go/gofrontend/backend.h.
1347         (go/gogo.o): Likewise.
1349 2011-04-04  Ian Lance Taylor  <iant@google.com>
1351         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1352         (class Bfunction): Define.
1353         (Gcc_backend::assignment_statement): Rename from assignment.
1354         Check for errors.
1355         (Gcc_backend::return_statement): New function.
1356         (tree_to_function): New function.
1357         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1358         $(GIMPLE_H), and $(GO_GOGO_H).
1360 2011-04-03  Ian Lance Taylor  <iant@google.com>
1362         * go-gcc.cc: New file.
1363         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1364         (go/go-gcc.o): New target.
1365         (go/go.o): Depend on go/gofrontend/backend.h.
1366         (go/statements.o): Likewise.
1368 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1370         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1372 2011-02-08  Ian Lance Taylor  <iant@google.com>
1374         * go-lang.c (go_langhook_init_options_struct): Set
1375         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
1377 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1379         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1380         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1382 2011-01-21  Ian Lance Taylor  <iant@google.com>
1384         * go-lang.c (go_langhook_init): Omit float_type_size when calling
1385         go_create_gogo.
1386         * go-c.h: Update declaration of go_create_gogo.
1388 2011-01-13  Ian Lance Taylor  <iant@google.com>
1390         * go-backend.c: Include "rtl.h" and "target.h".
1391         (go_imported_unsafe): New function.
1392         * go-c.h (go_imported_unsafe): Declare.
1393         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1394         (go/gogo-tree.o): Remove dependency on $(RTL_H).
1395         (go/unsafe.o): Depend on $(GO_C_H).
1397 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
1399         PR go/47113
1400         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1401         variable ‘field’ .
1403 2010-12-21  Ian Lance Taylor  <iant@google.com>
1405         * Make-lang.in (check-go): Remove.
1406         (lang_checks_parallelized): Add check-go.
1407         (check_go_parallelize): Set.
1409 2010-12-13  Ian Lance Taylor  <iant@google.com>
1411         * gospec.c (lang_specific_driver): Add a -o option if not linking
1412         and there is no -o option already.
1414 2010-12-07  Ian Lance Taylor  <iant@google.com>
1416         PR tree-optimization/46805
1417         PR tree-optimization/46833
1418         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1420 2010-12-06  Ian Lance Taylor  <iant@google.com>
1422         PR other/46789
1423         PR bootstrap/46812
1424         * go-lang.c (go_char_p): Define type and vectors.
1425         (go_search_dirs): New static variable.
1426         (go_langhook_handle_option): Use version and version/machine
1427         directories for -L.
1428         (go_langhook_post_options): Add non-specific -L paths.
1429         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1430         DEFAULT_TARGET_MACHINE when compiling.
1431         * gccgo.texi (Invoking gccgo): Only document -L for linking.
1432         (Import and Export): Don't mention -L for finding import files.
1434 2010-12-03  Ian Lance Taylor  <iant@google.com>
1436         PR bootstrap/46776
1437         * go-backend.c: New file.
1438         * go-c.h (go_type_alignment): Declare.
1439         (go_field_alignment, go_trampoline_info): Declare.
1440         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1441         (go/go-backend.o): New target.
1442         (go/go-lang.o): Make dependencies match source file.
1443         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1444         (go/gogo-tree.o): Don't depend on $(TM_H).
1446 2010-12-03  Ian Lance Taylor  <iant@google.com>
1448         * config-lang.in (build_by_default): Set to no.
1450 2010-12-02  Ian Lance Taylor  <iant@google.com>
1452         Go frontend added to gcc repository.
1454 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1456 Copying and distribution of this file, with or without modification,
1457 are permitted in any medium without royalty provided the copyright
1458 notice and this notice are preserved.