* tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
[official-gcc.git] / gcc / go / ChangeLog
blob55d78efd9472e96d8243cb85751d16c919a91bdd
1 2017-03-28  Than McIntosh  <thanm@google.com>
3         PR go/80226
4         * go-gcc.cc (Gcc_backend::return_statement): Check for
5         void_type_node when checking result size.
7 2017-02-20  Ian Lance Taylor  <iant@golang.org>
9         PR go/79642
10         * lang.opt (-fgo-relative-import-path): Change space to tab.
12 2017-02-07  Richard Biener  <rguenther@suse.de>
14         PR tree-optimization/79256
15         PR middle-end/79278
16         * go-backend.c (go_field_alignment): Adjust.
18 2017-01-11  Than McIntosh  <thanm@google.com>
20         * go-gcc.cc (conditional_expression): Add Bfunction parameter.
22 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
24         Update copyright years.
26         * gccgo.texi: Bump @copyrights-go year.
28 2016-12-16  Than McIntosh  <thanm@google.com>
30         * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
31         parameter.
32         (Gcc_backend::init_statement): Likewise.
33         (Gcc_backend::assignment_statement): Likewise.
34         (Gcc_backend::if_statement): Likewise.
36 2016-12-06  Than McIntosh  <thanm@google.com>
38         * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
39         parameter.
41 2016-11-22  Than McIntosh  <thanm@google.com>
43         * go-gcc.cc (char_needs_encoding): Remove.
44         (needs_encoding, fetch_utf8_char, encode_id): Remove.
45         (Gcc_backend::global_variable): Add asm_name parameter.  Don't
46         compute asm_name here.
47         (Gcc_backend::implicit_variable): Likewise.
48         (Gcc_backend::implicit_variable_reference): Likewise.
49         (Gcc_backend::immutable_struct): Likewise.
50         (Gcc_backend::immutable_struct_reference): Likewise.
51         * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
53 2016-11-22  Ian Lance Taylor  <iant@google.com>
55         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
56         __builtin_frame_address.
58 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
60         * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
61         from result of GET_MODE_CLASS.  Minor formatting fixes.
63 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
65         * go-backend.c: Include memmodel.h.
67 2016-10-10  Than McIntosh  <thanm@google.com>
69         * go-gcc.h: New file.
70         * go-c.h (struct go_create_gogo_args): Add backend and linemap
71         fields.
72         * go-lang.c: Include "go-gcc.h".
73         (go_langhook_init): Set linemap and backend fields of args.
74         * go-gcc.cc: Include "go-gcc.h".
75         * go-linemap.cc: Include "go-gcc.h".
77 2016-10-10  Than McIntosh  <thanm@google.com>
79         * go-linemap.cc (Gcc_linemap::location_line): New method.
81 2016-10-10  Eric Botcazou  <ebotcazou@adacore.com>
83         * config-lang.in (lang_requires_boot_languages): Delete.
85 2016-10-06  Chris Manghane  <cmang@google.com>
87         * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
88         returned memory.
90 2016-09-27  Than McIntosh  <thanm@google.com>
92         * go-linemap.cc (Gcc_linemap::to_string): New method.
94 2016-09-23  Than McIntosh  <thanm@google.com>
96         * go-gcc-diagnostics.cc: New file.
97         * go-location.h (Location): Remove operator source_location.  Add
98         operator==.
99         * go-system.h: #include <sstream>.
100         * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
101         go/go-gcc-diagnostics.o.
102         (CFLAGS-go/go-gcc-diagnostics.o): New variable.
104 2016-09-23  Chris Manghane  <cmang@google.com>
106         PR go/77701
107         * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
108         to pass arguments in the correct order.
110 2016-09-22  Ian Lance Taylor  <iant@golang.org>
112         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
113         __builtin_frame_address.
115 2016-09-11  Ian Lance Taylor  <iant@golang.org>
117         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
118         ctz, ctzll, bswap32, bswap64.
120 2016-09-10  Ian Lance Taylor  <iant@golang.org>
122         * go-backend.c (go_trampoline_info): Remove.
123         * go-c.h (go_trampoline_info): Don't declare.
125 2016-09-09  Than McIntosh  <thanm@google.com>
127         * go-sha1.cc: New file.
128         * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
129         (CFLAGS-go/go-sha1.o): New variable.
131 2016-08-29  Ian Lance Taylor  <iant@google.com>
133         * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
134         * go-c.h (struct go_create_gogo_args): Define.
135         (go_create_gogo): Change declaration to take struct pointer.
136         * go-lang.c (go_c_header): New static variable.
137         (go_langhook_init): Update call to go_create_gogo.
138         * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
139         -fgo-compiling-runtime.
141 2016-08-09  Ian Lance Taylor  <iant@google.com>
143         * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
144         -fgo-debug-escae.
145         (Compiler Directives): New chapter.
146         (Function Names): Describe using //go:linkname.  Suggest using
147         -fgo-pkgpath rather than -fgo-prefix.
149 2016-08-08  Ian Lance Taylor  <iant@google.com>
151         PR go/72814
152         * go-gcc.cc (Gcc_backend::function_type): If the return type is
153         zero bytes, treat the function as returning void.
154         (return_statement): If the return type is zero bytes, don't
155         actually return any values.
157 2016-08-05  Ian Lance Taylor  <iant@google.com>
159         PR go/72812
160         * go-gcc.cc (char_needs_encoding): New static function.
161         (needs_encoding, fetch_utf8_char): New static functions.
162         (encode_id): New static function.
163         (Gcc_backend::global_variable): Set asm name if the name is not
164         simple ASCII.
165         (Gcc_backend::implicit_variable): Likewise.
166         (Gcc_backend::implicit_variable_reference): Likewise.
167         (Gcc_backend::immutable_struct): Likewise.
168         (Gcc_backend::immutable_struct_reference): Likewise.
169         (Gcc_backend::function): Likewise.
171 2016-08-02  Chris Manghane  <cmang@google.com>
173         * lang.opt: Add -fgo-debug-escape option.
174         * go-c.h (go_create_gogo): Add debug_escape_level parameter.
175         * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
176         go_create_gogo.
178 2016-05-06  Chris Manghane  <cmang@google.com>
180         * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
181         new escape.cc).
183 2016-04-29  Chris Manghane  <cmang@google.com>
185         * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
187 2016-04-18  Michael Matz  <matz@suse.de>
189         * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
191 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
193         * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
194         neighbour -> neighbor.
195         * gccgo.texi: Likewise.
197 2016-01-27  Ian Lance Taylor  <iant@google.com>
199         * go-lang.c (go_langhook_init_options_struct): Default to
200         -fkeep-gc-roots-live.
202 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
204         Update copyright years.
206         * gccgo.texi: Bump @copyrights-go year.
208 2015-12-21  Ian Lance Taylor  <iant@google.com>
210         * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class.  Add
211         t_ and orig_type_ fields.  Add new two parameter constructor.  Add
212         get_tree and get_decl methods.
213         (Gcc_backend::var_expression): Pass location to var get_tree.
214         (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR.  Use
215         two parameter constructor for Bvariable.
216         (Gcc_backend::global_variable_set_init): Don't remove
217         VIEW_CONVERT_EXPR.  Use var get_decl, not get_tree.
218         (Gcc_backend::write_global_definitions): Likewise.
219         (Gcc_backend::init_statement): Call var get_decl, not get_tree.
220         (Gcc_backend::block): Likewise.
221         (Gcc_backend::implicit_variable_set_init): Likewise.
222         (Gcc_backend::immutable_struct_set_init): Likewise.
223         (Gcc_backend::function_set_parameters): Likewise.
225 2015-12-21  Ian Lance Taylor  <iant@google.com>
227         * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
228         add a VIEW_CONVERT_EXPR to the tree.
229         (Gcc_backend::global_variable_set_init): Remove any
230         VIEW_CONVERT_EXPR.
231         (Gcc_backend::write_global_definitions): Likewise.
233 2015-11-30  Ian Lance Taylor  <iant@google.com>
235         PR go/68477
236         * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
237         TYPE_STRING_FLAG on a variant type.
239 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
241         * go-backend.c: Remove unused header files.
242         * go-gcc.cc: Likewise.
243         * go-lang.c: Likewise.
244         * gospec.c: Likewise.
246 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
248         * go-backend.c: Reorder #include's and remove duplicates.
249         * go-lang.c: Likewise.
251 2015-10-20  Alan Modra  <amodra@gmail.com>
253         PR go/66870
254         * gospec.c (saw_opt_m32): Rename to..
255         (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
256         Update uses.
257         (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
259 2015-10-01  Ian Lance Taylor  <iant@google.com>
261         PR go/66870
262         * gospec.c (lang_specific_driver): Only look for OPT_m32 if
263         TARGET_CAN_SPLIT_STACK_64BIT is defined.
265 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
267         PR target/66870
268         * gospec.c (lang_specific_driver): Set appropriate split stack
269         options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
271 2015-09-10  Chris Manghane  <cmang@google.com>
273         * go-gcc.cc (Gcc_backend::type_size): Return -1 for
274         unrepresentable size.
276 2015-08-24  Marek Polacek  <polacek@redhat.com>
278         PR tree-optimization/67284
279         * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
280         Set TREE_THIS_VOLATILE.
281         (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
282         Pass false to the rest of define_builtin calls.
284 2015-07-31  Andreas Schwab  <schwab@linux-m68k.org>
286         * go-lang.c (go_langhook_init_options_struct): Don't set
287         x_flag_split_stack.
288         (go_langhook_post_options): Set it here instead.
290 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
292         * gofrontend/backend.h: Fix double word typos.
293         * gofrontend/expressions.cc: Same.
294         * gospec.c: Same.
296 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
298         * go-backend.c: Adjust includes.
299         * go-gcc.cc: Likewise.
300         * go-lang.c: Likewise.
302 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
304         * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
306 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
308         * go-backend.c: Do not include input.h, line-map.h or is-a.h.
309         * go-gcc.cc: Likewise.
310         * go-lang.c: Likewise.
311         * go-system.h: Likewise.
313 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
315         * go-backend.c : Adjust include files.
316         * go-gcc.cc : Likewise.
317         * go-lang.c : Likewise.
319 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
321         * go-gcc.cc (write_global_definitions): Remove call to
322         finalize_compilation_unit.
323         Remove Go specific debug generation.
324         * go-lang.c (go_langhook_parse_file): Call go_write_globals.
325         (go_langhook_write_globals): Remove.
326         Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
328 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
330         * go-backend.c: Adjust includes for restructured coretypes.h.
331         * go-c.h: Likewise.
332         * go-gcc.cc: Likewise.
333         * go-lang.c: Likewise.
335 2015-04-30  Chris Manghane  <cmang@google.com>
337         * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
338         method.
340 2015-04-27  Jim Wilson  <jim.wilson@linaro.org>
342         * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
344 2015-04-17  Chris Manghane  <cmang@google.com>
346         * Make-lang.in (GO_OBJS): Add go/escape.o.
348 2015-02-02  Ian Lance Taylor  <iant@google.com>
350         PR go/64836
351         PR go/64838
352         * go-gcc.cc (Gcc_backend::type_size): Change return type to
353         int64_t.
354         (Gcc_backend::type_alignment): Likewise.
355         (Gcc_backend::type_field_alignment): Likewise.
356         (Gcc_backend::type_field_offset): Likewise.
357         (Gcc_backend::implicit_variable): Change alignment parameter type
358         to int64_t.
360 2015-01-23  Ian Lance Taylor  <iant@google.com>
362         PR go/63565
363         * gccgo.texi (Invoking gccgo): Mention that Go programs should not
364         be stripped.
366         * gccgo.texi (C Interoperability): Mention that people should use
367         cgo.
369 2015-01-23  Ian Lance Taylor  <iant@google.com>
371         PR go/64595
372         * go-lang.c (go_langhook_init_options_struct): Set default
373         debug_info_level.
374         (go_langhook_post_options): If debug_info_level is still the
375         default, make sure write_symbols is set.
376         * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
378 2015-01-16  Richard Henderson  <rth@redhat.com>
380         * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
381         (Gcc_backend::static_chain_variable): New method.
383 2015-01-09  Ian Lance Taylor  <iant@google.com>
385         * config-lang.in (lang_dirs): Define.
387 2015-01-09  Michael Collison  <michael.collison@linaro.org>
389         * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
390         input.h, alias.h, symtab.h, options.h, fold-const.h,
391         wide-int.h, and inchash.h due to flattening of tree.h.
392         * go-lang.c: Ditto.
393         * go-backend.c: Ditto.
395 2015-01-07  Chris Manghane  <cmang@google.com>
397         PR go/61204
398         * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
399         zero-sized variable.
401 2015-01-06  Chris Manghane  <cmang@google.com>
403         * go-gcc.cc (Gcc_backend::constructor_expression): Don't
404         initialize zero-sized fields, just evaluate the values for side
405         effects.
407 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
409         Update copyright years.
411         * gccgo.texi: Bump @copyrights-go year.
413 2014-12-19  Chris Manghane  <cmang@google.com>
415         * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
416         construct arrays of zero-sized values.
418 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
420         * go-lang.c: Remove redundant enum from machine_mode.
422 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
424         * go-gcc.cc: Adjust include files.
426 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
428         * go-gcc.cc: Adjust include files.
429         * go-lang.c: Ditto.
431 2014-10-23  Ian Lance Taylor  <iant@google.com>
433         * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
434         mpc_t parameter instead of two mpfr_t parameters.
436 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
438         * Make-lang.in (check_go_parallelize): Change to just an upper bound
439         number.
441 2014-09-03  Chris Manghane  <cmang@google.com>
443         * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
444         parameter.  Add is_hidden parameter.
445         (Gcc_backend::implicit_variable_set_init): New method.
446         (Gcc_backend::implicit_variable_reference): New method.
448 2014-08-08  Ian Lance Taylor  <iant@google.com>
450         * go-gcc.cc (Gcc_backend::compound_statement): Don't return
451         NULL_TREE.
453 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
455         * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
456         symtab_get_node to symtab_node::get.
458 2014-06-13  Ian Lance Taylor  <iant@google.com>
460         PR go/61496
461         * gospec.c (lang_specific_driver): On Solaris, when not using GNU
462         ld, add -t option to avoid warning about common symbol changing
463         size.
465 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
467         * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
468         symtab_get_node(var_decl)->implicit_section.
470 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
472         * go-gcc.cc (global_variable_set_init): Use
473         set_decl_section_name.
475 2014-06-04  Ian Lance Taylor  <iant@google.com>
477         * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
478         alignment parameters.  Permit init parameter to be NULL.
480 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
482         * go-gcc.cc: Include builtins.h.
484 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
486         * go-lang.c (struct GTY): Don't use variable_size gty attribute.
488 2014-05-06  Chris Manghane  <cmang@google.com>
490         * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
491         (Gcc_backend::boolean_constant_expression): New method.
492         (Gcc_backend::zero_expression): Use this->make_expression rather
493         than tree_to_expr.
494         (Gcc_backend::var_expression): Likewise.
495         (Gcc_backend::integer_constant_expression): Likewise.
496         (Gcc_backend::float_constant_expression): Likewise.
497         (Gcc_backend::complex_constant_expression): Likewise.
498         (Gcc_backend::struct_field_expression): Likewise.
499         (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
500         (tree_to_function, tree_to_block): Remove functions.
501         (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
502         (block_to_tree, var_to_tree, function_to_tree): Remove functions.
504 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
505             Mike Stump  <mikestump@comcast.net>
506             Richard Sandiford  <rdsandiford@googlemail.com>
508         * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
510 2014-05-06  Chris Manghane  <cmang@google.com>
512         * go-c.h (go_create_gogo): Update declaration to add
513         check_divide_zero and check_divide_overflow parameters.
514         * go-lang.c (go_langhook_init): Pass new arguments to
515         go_create_gogo.
517 2014-05-05  Chris Manghane  <cmang@google.com>
519         * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
520         gc_root_variable.  Add name and is_constant parameters.
522 2014-05-05  Chris Manghane  <cmang@google.com>
524         * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
525         parameter.
526         (Gcc_backend::temporary_variable): Check for erroneous function.
528 2014-04-30  Chris Manghane  <cmang@google.com>
530         * go-backend.c: #include "diagnostics.h".
531         (saw_errors): New function.
532         * go-c.h (saw_errors): Declare.
533         * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
535 2014-04-30  Chris Manghane  <cmang@google.com>
537         * go-lang.c (go_langhook_type_for_size): Do it here, rather than
538         calling into Go frontend.
539         (go_langhook_type_for_mode): Likewise.
540         * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
542 2014-04-30  Chris Manghane  <cmang@google.com>
544         * go-gcc.cc: #include "langhooks.h".
545         (Gcc_backend::Gcc_backend): Add constructor.
546         (Gcc_backend::lookup_function): New function.
547         (Gcc_backend::define_builtin): New private function.
548         (Gcc_backend::gcc_backend): Remove.
549         (go_get_backend): Use new to create new Gcc_backend.
551 2014-04-25  Chris Manghane  <cmang@google.com>
553         * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
554         (Gcc_backend::return_statement): Push and pop function.
555         (Gcc_backend::label): Likewise.
556         (Gcc_backend::function_defer_statement): Likewise.
557         (Gcc_backend::switch_statement): Add function parameter.
558         (Gcc_backend::block): Don't permit function to be NULL.
559         (Gcc_backend::temporary_variable): Change go_assert to
560         gcc_assert.
561         (Gcc_backend::gc_root_variable): New function.
562         (Gcc_backend::write_global_definitions): New function.
564 2014-04-22  Chris Manghane  <cmang@google.com>
566         * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
567         call to create_tmp_var.  Require that function be non-NULL.
569 2014-04-17  Chris Manghane  <cmang@google.com>
571         * go-gcc.cc (Gcc_backend::named_constant_expression): New
572         function.
574 2014-04-14  Chris Manghane  <cmang@google.com>
576         * go-gcc.cc: Include "convert.h".
577         (Gcc_backend::string_constant_expression): New function.
578         (Gcc_backend::real_part_expression): Likewise.
579         (Gcc_backend::imag_part_expression): Likewise.
580         (Gcc_backend::complex_expression): Likewise.
581         (Gcc_backend::constructor_expression): Likewise.
582         (Gcc_backend::array_constructor_expression): Likewise.
583         (Gcc_backend::pointer_offset_expression): Likewise.
584         (Gcc_backend::array_index_expression): Likewise.
585         (Gcc_backend::call_expression): Likewise.
586         (Gcc_backend::exception_handler_statement): Likewise.
587         (Gcc_backend::function_defer_statement): Likewise.
588         (Gcc_backend::function_set_parameters): Likewise.
589         (Gcc_backend::function_set_body): Likewise.
590         (Gcc_backend::convert_expression): Handle various type
591         conversions.
593 2014-03-03  Ian Lance Taylor  <iant@google.com>
595         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
596         DECL_WEAK.
597         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
598         DECL_WEAK.
600 2014-01-24  Chris Manghane  <cmang@google.com>
602         * go-gcc.cc (Gcc_backend::unary_expression): New function.
604 2014-01-16  Chris Manghane  <cmang@google.com>
606         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
607         parameter.
608         (operator_to_tree_code): New static function.
609         (Gcc_backend::binary_expression): New function.
611 2014-01-14  Chris Manghane  <cmang@google.com>
613         * go-gcc.cc (Gcc_backend::compound_expression): New function.
614         (Gcc_backend::conditional_expression): New function.
616 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
618         Update copyright years
620 2014-01-02  Tobias Burnus  <burnus@net-b.de>
622         * gccgo.texi: Bump @copying's copyright year.
624 2013-12-16  Chris Manghane  <cmang@google.com>
626         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
628 2013-12-11  Ian Lance Taylor  <iant@google.com>
630         * go-lang.c (go_langhook_post_options): Disable sibling calls by
631         default.
633 2013-12-10  Ian Lance Taylor  <iant@google.com>
635         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
636         separately.
638 2013-12-05  Ian Lance Taylor  <iant@google.com>
640         Revert this change; no longer required.
641         2013-11-06  Ian Lance Taylor  <iant@google.com>
643         * go-lang.c (go_langhook_post_options): If
644         -fisolate-erroneous-paths was turned on by an optimization option,
645         turn it off.
647 2013-11-23  Ian Lance Taylor  <iant@google.com>
649         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
650         parameter.
652 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
654         * go-gcc.cc: Add required include files from gimple.h.
655         * go-lang.c: Likewise
657 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
659         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
660         tree_to_shwi throughout.
662 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
664         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
665         tree_fits_shwi_p throughout.
667 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
669         * go-lang.c: Include only gimplify.h and gimple.h as needed.
671 2013-11-14  Diego Novillo  <dnovillo@google.com>
673         * go-backend.c: Include stor-layout.h.
674         * go-gcc.cc: Include stringpool.h.
675         Include stor-layout.h.
676         Include varasm.h.
677         * go-lang.c: Include stor-layout.h.
679 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
681         * go-lang.c: Include gimplify.h.
683 2013-11-06  Ian Lance Taylor  <iant@google.com>
685         * go-lang.c (go_langhook_post_options): If
686         -fisolate-erroneous-paths was turned on by an optimization option,
687         turn it off.
689 2013-10-14  Chris Manghane  <cmang@google.com>
691         * go-gcc.cc (Gcc_backend::address_expression): New function.
693 2013-10-11  Chris Manghane  <cmang@google.com>
695         * go-gcc.cc (Gcc_backend::function_code_expression): New
696         function.
698 2013-10-10  Chris Manghane  <cmang@google.com>
700         * go-gcc.cc (Gcc_backend::error_function): New function.
701         (Gcc_backend::function): New function.
702         (Gcc_backend::make_function): New function.
703         (function_to_tree): New function.
705 2013-10-04  Chris Manghane  <cmang@google.com>
707         * go-gcc.cc (Gcc_backend::convert_expression): New function.
709 2013-10-02  Chris Manghane  <cmang@google.com>
711         * go-gcc.cc: Include "real.h" and "realmpfr.h".
712         (Gcc_backend::integer_constant_expression): New function.
713         (Gcc_backend::float_constant_expression): New function.
714         (Gcc_backend::complex_constant_expression): New function.
716 2013-09-30  Chris Manghane  <cmang@google.com>
718         * go-gcc.cc (Gcc_backend::error_expression): New function.
719         (Gcc_backend::var_expression): New function.
720         (Gcc_backend::indirect_expression): New function.
722 2013-09-25  Tom Tromey  <tromey@redhat.com>
724         * Make-lang.in (gospec.o): Remove.
725         (CFLAGS-go/gospec.o): New variable.
726         (GCCGO_OBJS): Update to use go/gospec.o.
727         (go_OBJS): Define.
728         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
729         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
730         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
731         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
732         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
733         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
734         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
735         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
736         (go/unsafe.o): Remove.
737         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
738         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
740 2013-09-25  Tom Tromey  <tromey@redhat.com>
742         * Make-lang.in (gospec.o): Don't use subshell.
744 2013-08-28  Ian Lance Taylor  <iant@google.com>
746         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
747         the struct is not hidden.
748         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
750 2013-08-06  Ian Lance Taylor  <iant@google.com>
752         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
753         compute_reloc_for_constant.
755 2013-08-02  Ian Lance Taylor  <iant@google.com>
757         * go-gcc.cc (immutable_struct_set_init): Always call
758         resolve_unique_section.
760 2013-07-24  Ian Lance Taylor  <iant@google.com>
762         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
763         fields, recreate those fields with the first one with a non-zero
764         size.
766 2013-07-23  Ian Lance Taylor  <iant@google.com>
768         * go-backend.c: Don't #include "rtl.h".
769         (go_imported_unsafe): Don't call init_varasm_once.
770         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
772 2013-07-23  Ian Lance Taylor  <iant@google.com>
774         * go-lang.c: Don't #include "except.h".
775         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
777 2013-06-18  Ian Lance Taylor  <iant@google.com>
779         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
780         parameter.
781         (Gcc_backend::immutable_struct_set_init): Likewise.
783 2013-05-16  Jason Merrill  <jason@redhat.com>
785         * Make-lang.in (go1$(exeext)): Use link mutex.
787 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
789         * gospec.c: pass -u pthread_create to linker when static linking.
791 2012-12-21  Ian Lance Taylor  <iant@google.com>
793         PR bootstrap/54659
794         * go-system.h: Don't include <cstdio>.
796 2012-12-18  Ian Lance Taylor  <iant@google.com>
798         PR go/55201
799         * gospec.c: Revert last patch.
801 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
803         PR go/55201
804         * gospec.c (LIBATOMIC): Define.
805         (LIBATOMIC_PROFILE): Define.
806         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
808 2012-11-29  Ian Lance Taylor  <iant@google.com>
810         * go-gcc.cc: Include "output.h".
811         (global_variable): Add is_unique_section parameter.
812         (global_variable_set_init): Adjust unique section if necessary.
813         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
815 2012-11-17  Diego Novillo  <dnovillo@google.com>
817         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
819         * go-lang.c: Use new vec API in vec.h.
821 2012-11-16  Ian Lance Taylor  <iant@google.com>
823         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
824         (go1$(exeext)): Likewise.
826 2012-10-30  Ian Lance Taylor  <iant@google.com>
828         * lang.opt (-fgo-relative-import-path): New option.
829         * go-lang.c (go_relative_import_path): New static variable.
830         (go_langhook_init): Pass go_relative_import_path to
831         go_create_gogo.
832         (go_langhook_handle_option): Handle -fgo-relative-import-path.
833         * go-c.h (go_create_gogo): Update declaration.
834         * gccgo.texi (Invoking gccgo): Document
835         -fgo-relative-import-path.
837 2012-09-17  Ian Lance Taylor  <iant@google.com>
839         * config-lang.in (target_libs): Add target-libbacktrace.
841 2012-09-16  Ian Lance Taylor  <iant@google.com>
843         * Make-lang.in (go/gogo.o): Depend on filenames.h.
845 2012-08-14   Diego Novillo  <dnovillo@google.com>
847         Merge from cxx-conversion branch.  Configury.
849         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
850         * go-gcc.cc: Likewise.
851         * go-system.h: Likewise.
853 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
855         * go-lang.c (lang_decl): Add variable_size GTY option.
857 2012-05-09  Ian Lance Taylor  <iant@google.com>
859         * lang.opt: Add -fgo-pkgpath.
860         * go-lang.c (go_pkgpath): New static variable.
861         (go_prefix): New static variable.
862         (go_langhook_init): Pass go_pkgpath and go_prefix to
863         go_create_gogo.
864         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
865         -fgo-prefix handling to just set go_prefix.
866         * go-c.h (go_set_prefix): Don't declare.
867         (go_create_gogo): Add pkgpath and prefix to declaration.
868         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
869         to pkgpath.  Don't include the package name in the asm name.
870         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
871         docs for -fgo-prefix.
873 2012-04-23  Ian Lance Taylor  <iant@google.com>
875         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
877 2012-04-20  Ian Lance Taylor  <iant@google.com>
879         * lang.opt: Add -fgo-check-divide-zero and
880         -fgo-check-divide-overflow.
881         * gccgo.texi (Invoking gccgo): Document new options.
883 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
885         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
886         with NULL_TREE type instead of void_type_node.
888 2012-03-09  Ian Lance Taylor  <iant@google.com>
890         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
891         to the lhs type if necessary.
893 2012-03-08  Ian Lance Taylor  <iant@google.com>
895         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
896         zero-sized variable.
897         (go_non_zero_struct): New global variable.
898         (Gcc_backend::non_zero_size_type): New function.
899         (Gcc_backend::global_variable): Don't build an assignment for a
900         zero-sized value.
901         * go-c.h (go_non_zero_struct): Declare.
902         * config-lang.in (gtfiles): Add go-c.h.
904 2012-02-29  Ian Lance Taylor  <iant@google.com>
906         * go-gcc.cc (class Gcc_tree): Add set_tree method.
907         (set_placeholder_pointer_type): When setting to a pointer to
908         error, set to error_mark_node.
910 2012-02-23  Richard Guenther  <rguenther@suse.de>
912         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
913         build_distinct_type_copy.
915 2012-02-17  Ian Lance Taylor  <iant@google.com>
917         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
919 2012-02-17  Ian Lance Taylor  <iant@google.com>
921         * gospec.c (lang_specific_driver): If linking, and no -o option
922         was used, add one.
924 2012-02-14  Ian Lance Taylor  <iant@google.com>
926         PR go/48411
927         * Make-lang.in (gccgo-cross$(exeext)): New target.
928         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
929         gccgo$(exeext).
930         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
931         gccgo-cross$(exeext) does not exist.
933 2012-02-07  Ian Lance Taylor  <iant@google.com>
935         * gccgo.texi (Function Names): Document //extern instead of
936         __asm__.
938 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
940         PR target/52079
941         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
942         return build_nonstandard_integer_type result if possible.
944 2012-01-21  Ian Lance Taylor  <iant@google.com>
946         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
947         (Gcc_backend::type_alignment): Likewise.
948         (Gcc_backend::type_field_alignment): Likewise.
949         (Gcc_backend::type_field_offset): Likewise.
951 2012-01-20  Ian Lance Taylor  <iant@google.com>
953         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
954         be empty.
955         (Gcc_backend::set_placeholder_struct_type): Likewise.
957 2012-01-17  Ian Lance Taylor  <iant@google.com>
959         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
960         BASE.s rather than -o BASE.o.
962 2012-01-11  Ian Lance Taylor  <iant@google.com>
964         * go-lang.c (go_langhook_init): Initialize void_list_node before
965         calling go_create_gogo.
967 2012-01-10  Ian Lance Taylor  <iant@google.com>
969         * go-gcc.cc (Gcc_backend::type_size): New function.
970         (Gcc_backend::type_alignment): New function.
971         (Gcc_backend::type_field_alignment): New function.
972         (Gcc_backend::type_field_offset): New function.
973         * go-backend.c (go_type_alignment): Remove.
974         * go-c.h (go_type_alignment): Don't declare.
976 2011-12-27  Ian Lance Taylor  <iant@google.com>
978         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
979         build_distinct_type_copy rather than build_variant_type_copy.
980         (Gcc_backend::set_placeholder_array_type): Likewise.
981         (Gcc_backend::named_type): Add special handling for builtin
982         basic types.
984 2011-12-22  Ian Lance Taylor  <iant@google.com>
986         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
987         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
988         (Gcc_backend::set_placeholder_struct_type): Likewise.
989         (Gcc_backend::set_placeholder_array_type): Likewise.
990         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
992 2011-12-13  Ian Lance Taylor  <iant@google.com>
994         * go-backend.c: #include "simple-object.h" and "intl.h".
995         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
996         (GO_EXPORT_SECTION_NAME): Likewise.
997         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
998         (go_read_export_data): New function.
999         * go-c.h (go_read_export_data): Declare.
1001 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
1002             Ian Lance Taylor  <iant@google.com>
1004         * go-location.h: New file.
1005         * go-linemap.cc: New file.
1006         * go-gcc.cc: Change all uses of source_location to Location.
1007         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1008         (GO_LINEMAP_H): New variable.
1009         (GO_LEX_H): Use $(GO_LINEMAP_H).
1010         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1011         (go/go-linemap.o): New target.
1013 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1015         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1017 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
1019         * lang.opt: Add fgo-optimize-.
1020         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1021         * go-c.h (go_enable_optimize): Declare.
1022         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1023         (GO_EXPORT_H): Define.
1024         (GO_IMPORT_H): Add $(GO_EXPORT_H).
1025         (GO_AST_DUMP_H): Define.
1026         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1027         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1028         (go/types.o): Likewise.
1029         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1030         (go/go-optimize.o): New target.
1032 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1034         * Make-lang.in (CFLAGS-go/go-lang.o): New.
1035         (go/go-lang.o): Remove explicit compilation rule.
1037 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1039         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1041 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
1043         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1044         (go/ast-dump.o): New target.
1045         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1046         (go/statements.o): Likewise.
1048 2011-07-06  Richard Guenther  <rguenther@suse.de>
1050         * go-lang.c (go_langhook_init):
1051         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1053 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1055         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1056         dependencies.
1057         * go-backend.c: Include common/common-target.h.
1058         (go_write_export_data): Use targetm_common.have_named_sections.
1059         * go-lang.c: Include common/common-target.h.
1060         (go_langhook_init_options_struct): Use
1061         targetm_common.supports_split_stack.
1063 2011-06-13  Ian Lance Taylor  <iant@google.com>
1065         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1067 2011-06-10  Ian Lance Taylor  <iant@google.com>
1069         * go-gcc.cc: Include "toplev.h".
1070         (Gcc_backend::immutable_struct): New function.
1071         (Gcc_backend::immutable_struct_set_init): New function.
1072         (Gcc_backend::immutable_struct_reference): New function.
1073         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1075 2011-06-09  Ian Lance Taylor  <iant@google.com>
1077         * go-gcc.cc (Gcc_backend::zero_expression): New function.
1079 2011-06-07  Richard Guenther  <rguenther@suse.de>
1081         * go-lang.c (go_langhook_init): Do not set
1082         size_type_node or call set_sizetype.
1084 2011-05-27  Ian Lance Taylor  <iant@google.com>
1086         * go-backend.c: Include "output.h".
1087         (go_write_export_data): New function.
1088         * go-c.h (go_write_export_data): Declare.
1089         * Make-lang.in (go/go-backend.o): Depend on output.h.
1090         (go/export.o): Depend on $(GO_C_H).  Do not depend on
1091         $(MACHMODE_H), output.h, or $(TARGET_H).
1093 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1095         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1096         (gccgo$(exeext)): Use libcommon-target.a.
1098 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1100         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1102 2011-05-13  Ian Lance Taylor  <iant@google.com>
1104         * go-gcc.cc (Gcc_backend::function_type): When building a struct
1105         for multiple results, check that all fields types have a size.
1106         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1108 2011-05-12  Ian Lance Taylor  <iant@google.com>
1110         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1111         parameter.
1112         (Gcc_backend::parameter_variable): Likewise.
1114 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1116         * go-lang.c (global_bindings_p): Return bool and simplify.
1118 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1120         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1122 2011-05-04  Ian Lance Taylor  <iant@google.com>
1124         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1125         (Gcc_backend::fill_in_struct): New function.
1126         (Gcc_backend::array_type): Implement.
1127         (Gcc_backend::fill_in_array): New function.
1128         (Gcc_backend::placeholder_pointer_type): New function.
1129         (Gcc_backend::set_placeholder_pointer_type): New function.
1130         (Gcc_backend::set_placeholder_function_type): New function.
1131         (Gcc_backend::placeholder_struct_type): New function.
1132         (Gcc_backend::set_placeholder_struct_type): New function.
1133         (Gcc_backend::placeholder_array_type): New function.
1134         (Gcc_backend::set_placeholder_array_type): New function.
1135         (Gcc_backend::named_type): New function.
1136         (Gcc_backend::circular_pointer_type): New function.
1137         (Gcc_backend::is_circular_pointer_type): New function.
1139 2011-04-26  Ian Lance Taylor  <iant@google.com>
1141         * go-gcc.cc (Gcc_backend::struct_type): Implement.
1143 2011-04-25  Ian Lance Taylor  <iant@google.com>
1145         * go-gcc.cc (Gcc_backend::error_type): Implement.
1146         (Gcc_backend::string_type): Remove.
1147         (Gcc_backend::function_type): Change signature and implement.
1148         (Gcc_backend::struct_type): Change signature.
1149         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1150         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1151         (Gcc_backend::pointer_type): Check for error.
1152         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1154 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
1156         * go-gcc.c (class Gcc_tree): Make get_tree const.
1157         (Gcc_backend::void_type): Implement.
1158         (Gcc_backend::bool_type): Implement.
1159         (Gcc_backend::integer_type): Implement.
1160         (Gcc_backend::float_type): Implement.
1161         (Gcc_backend::complex_type): New function.
1162         (Gcc_backend::pointer_type): New function.
1163         (Gcc_backend::make_type): New function.
1164         (type_to_tree): New function.
1166 2011-04-21  Ian Lance Taylor  <iant@google.com>
1168         * go-system.h (go_assert, go_unreachable): Define.
1170 2011-04-19  Ian Lance Taylor  <iant@google.com>
1172         * go-system.h: Include "intl.h".
1173         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1174         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1175         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1177 2011-04-19  Ian Lance Taylor  <iant@google.com>
1179         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1181 2011-04-19  Ian Lance Taylor  <iant@google.com>
1183         * go-gcc.cc (class Bblock): Define.
1184         (Gcc_backend::if_statement): Change then_block and else_block to
1185         Bblock*.
1186         (Gcc_backend::block): New function.
1187         (Gcc_backend::block_add_statements): New function.
1188         (Gcc_backend::block_statement): New function.
1189         (tree_to_block, block_to_tree): New functions.
1191 2011-04-18  Ian Lance Taylor  <iant@google.com>
1193         * go-gcc.cc: Include "go-c.h".
1194         (class Bvariable): Define.
1195         (Gcc_backend::init_statement): New function.
1196         (Gcc_backend::global_variable): New function.
1197         (Gcc_backend::global_variable_set_init): New function.
1198         (Gcc_backend::local_variable): New function.
1199         (Gcc_backend::parameter_variable): New function.
1200         (tree_to_type, var_to_tree): New functions.
1201         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1202         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1204 2011-04-15  Ian Lance Taylor  <iant@google.com>
1206         * go-gcc.cc (Gcc_backend::compound_statement): New function.
1207         (Gcc_backend::assignment_statement): Use error_statement.
1208         (Gcc_backend::return_statement): Likewise.
1209         (Gcc_backend::if_statement): Likewise.
1210         (Gcc_backend::switch_statement): Likewise.
1211         (Gcc_backend::statement_list): Likewise.
1213 2011-04-14  Ian Lance Taylor  <iant@google.com>
1215         * go-gcc.cc (Gcc_backend::error_statement): New function.
1217 2011-04-13  Ian Lance Taylor  <iant@google.com>
1219         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1221 2011-04-13  Ian Lance Taylor  <iant@google.com>
1223         * Make-lang.in (GO_OBJS): Add go/runtime.o.
1224         (GO_RUNTIME_H): New variable.
1225         (go/runtime.o): New target.
1226         (go/gogo.o): Depend on $(GO_RUNTIME_H).
1227         (go/statements.o): Likewise.
1229 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1231         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1232         calling TREE_CHAIN.
1234 2011-04-06  Ian Lance Taylor  <iant@google.com>
1236         * go-gcc.cc (if_statement): Use build3_loc.
1237         (Gcc_backend::switch_statement): New function.
1238         (Gcc_backend::statement_list): New function.
1240 2011-04-06  Ian Lance Taylor  <iant@google.com>
1242         * go-gcc.cc (Gcc_backend::if_statement): New function.
1243         (tree_to_stat): New function.
1244         (expr_to_tree): Renamed from expression_to_tree.
1245         (stat_to_tree): Renamed from statement_to_tree.
1247 2011-04-06  Ian Lance Taylor  <iant@google.com>
1249         * go-gcc.cc (Gcc_backend::expression_statement): New function.
1251 2011-04-04  Ian Lance Taylor  <iant@google.com>
1253         * go-gcc.c (class Blabel): Define.
1254         (Gcc_backend::make_expression): New function.
1255         (get_identifier_from_string): New function.
1256         (Gcc_backend::label): New function.
1257         (Gcc_backend::label_definition_statement): New function.
1258         (Gcc_backend::goto_statement): New function.
1259         (Gcc_backend::label_address): New function.
1260         (expression_to_tree): New function.
1261         * Make-lang.in (go/expressions.o): Depend on
1262         go/gofrontend/backend.h.
1263         (go/gogo.o): Likewise.
1265 2011-04-04  Ian Lance Taylor  <iant@google.com>
1267         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1268         (class Bfunction): Define.
1269         (Gcc_backend::assignment_statement): Rename from assignment.
1270         Check for errors.
1271         (Gcc_backend::return_statement): New function.
1272         (tree_to_function): New function.
1273         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1274         $(GIMPLE_H), and $(GO_GOGO_H).
1276 2011-04-03  Ian Lance Taylor  <iant@google.com>
1278         * go-gcc.cc: New file.
1279         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1280         (go/go-gcc.o): New target.
1281         (go/go.o): Depend on go/gofrontend/backend.h.
1282         (go/statements.o): Likewise.
1284 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1286         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1288 2011-02-08  Ian Lance Taylor  <iant@google.com>
1290         * go-lang.c (go_langhook_init_options_struct): Set
1291         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
1293 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1295         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1296         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1298 2011-01-21  Ian Lance Taylor  <iant@google.com>
1300         * go-lang.c (go_langhook_init): Omit float_type_size when calling
1301         go_create_gogo.
1302         * go-c.h: Update declaration of go_create_gogo.
1304 2011-01-13  Ian Lance Taylor  <iant@google.com>
1306         * go-backend.c: Include "rtl.h" and "target.h".
1307         (go_imported_unsafe): New function.
1308         * go-c.h (go_imported_unsafe): Declare.
1309         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1310         (go/gogo-tree.o): Remove dependency on $(RTL_H).
1311         (go/unsafe.o): Depend on $(GO_C_H).
1313 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
1315         PR go/47113
1316         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1317         variable ‘field’ .
1319 2010-12-21  Ian Lance Taylor  <iant@google.com>
1321         * Make-lang.in (check-go): Remove.
1322         (lang_checks_parallelized): Add check-go.
1323         (check_go_parallelize): Set.
1325 2010-12-13  Ian Lance Taylor  <iant@google.com>
1327         * gospec.c (lang_specific_driver): Add a -o option if not linking
1328         and there is no -o option already.
1330 2010-12-07  Ian Lance Taylor  <iant@google.com>
1332         PR tree-optimization/46805
1333         PR tree-optimization/46833
1334         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1336 2010-12-06  Ian Lance Taylor  <iant@google.com>
1338         PR other/46789
1339         PR bootstrap/46812
1340         * go-lang.c (go_char_p): Define type and vectors.
1341         (go_search_dirs): New static variable.
1342         (go_langhook_handle_option): Use version and version/machine
1343         directories for -L.
1344         (go_langhook_post_options): Add non-specific -L paths.
1345         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1346         DEFAULT_TARGET_MACHINE when compiling.
1347         * gccgo.texi (Invoking gccgo): Only document -L for linking.
1348         (Import and Export): Don't mention -L for finding import files.
1350 2010-12-03  Ian Lance Taylor  <iant@google.com>
1352         PR bootstrap/46776
1353         * go-backend.c: New file.
1354         * go-c.h (go_type_alignment): Declare.
1355         (go_field_alignment, go_trampoline_info): Declare.
1356         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1357         (go/go-backend.o): New target.
1358         (go/go-lang.o): Make dependencies match source file.
1359         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1360         (go/gogo-tree.o): Don't depend on $(TM_H).
1362 2010-12-03  Ian Lance Taylor  <iant@google.com>
1364         * config-lang.in (build_by_default): Set to no.
1366 2010-12-02  Ian Lance Taylor  <iant@google.com>
1368         Go frontend added to gcc repository.
1370 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1372 Copying and distribution of this file, with or without modification,
1373 are permitted in any medium without royalty provided the copyright
1374 notice and this notice are preserved.