compiler: introduce size threshold for nil checks
[official-gcc.git] / gcc / go / ChangeLog
blob26f823e0442d0522ba800cb6abc4da2dc8d333fb
1 2017-12-01  Than McIntosh  <thanm@google.com>
3         * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
4         field.
5         * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
7 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
9         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
10         build2_loc instead of build3_loc.
12 2017-11-14  Than McIntosh  <thanm@google.com>
14         * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
16 2017-10-11  Tony Reix  <tony.reix@atos.net>
18         * go-system.h (__STDC_FORMAT_MACROS): Define before including any
19         system header files, as is done in ../system.h.
21 2017-10-05  Ian Lance Taylor  <iant@golang.org>
23         * Make-lang.in (GO_OBJS): Add go/names.o.
25 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
26             Alan Hayward  <alan.hayward@arm.com>
27             David Sherwood  <david.sherwood@arm.com>
29         * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
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_int_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_float_mode.
43 2017-08-07  Martin Liska  <mliska@suse.cz>
45         * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
46         and not __no_split_stack__.
48 2017-07-27    Tony Reix  <tony.reix@atos.net>
50         * go-backend.c (go_write_export_data): Use EXCLUDE section for
51         AIX.
53 2017-06-09  Ian Lance Taylor  <iant@golang.org>
55         * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
56         on, disable implicit -forder-blocks-and-partition.
58 2017-05-12  Than McIntosh  <thanm@google.com>
60         * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
62 2017-05-11  Ian Lance Taylor  <iant@google.com>
64         PR go/64238
65         * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
66         DECL_EXTERNAL, clear TREE_STATIC.
68 2017-05-10  Than McIntosh  <thanm@google.com>
70         * go-backend.c: Include "go-c.h".
71         * go-gcc.cc (Gcc_backend::write_export_data): New method.
73 2017-05-10  Ian Lance Taylor  <iant@google.com>
75         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
76         __builtin_prefetch.
77         * Make-lang.in (GO_OBJS): Add go/wb.o.
79 2017-03-28  Than McIntosh  <thanm@google.com>
81         PR go/80226
82         * go-gcc.cc (Gcc_backend::return_statement): Check for
83         void_type_node when checking result size.
85 2017-02-20  Ian Lance Taylor  <iant@golang.org>
87         PR go/79642
88         * lang.opt (-fgo-relative-import-path): Change space to tab.
90 2017-02-07  Richard Biener  <rguenther@suse.de>
92         PR tree-optimization/79256
93         PR middle-end/79278
94         * go-backend.c (go_field_alignment): Adjust.
96 2017-01-11  Than McIntosh  <thanm@google.com>
98         * go-gcc.cc (conditional_expression): Add Bfunction parameter.
100 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
102         Update copyright years.
104         * gccgo.texi: Bump @copyrights-go year.
106 2016-12-16  Than McIntosh  <thanm@google.com>
108         * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
109         parameter.
110         (Gcc_backend::init_statement): Likewise.
111         (Gcc_backend::assignment_statement): Likewise.
112         (Gcc_backend::if_statement): Likewise.
114 2016-12-06  Than McIntosh  <thanm@google.com>
116         * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
117         parameter.
119 2016-11-22  Than McIntosh  <thanm@google.com>
121         * go-gcc.cc (char_needs_encoding): Remove.
122         (needs_encoding, fetch_utf8_char, encode_id): Remove.
123         (Gcc_backend::global_variable): Add asm_name parameter.  Don't
124         compute asm_name here.
125         (Gcc_backend::implicit_variable): Likewise.
126         (Gcc_backend::implicit_variable_reference): Likewise.
127         (Gcc_backend::immutable_struct): Likewise.
128         (Gcc_backend::immutable_struct_reference): Likewise.
129         * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
131 2016-11-22  Ian Lance Taylor  <iant@google.com>
133         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
134         __builtin_frame_address.
136 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
138         * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
139         from result of GET_MODE_CLASS.  Minor formatting fixes.
141 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
143         * go-backend.c: Include memmodel.h.
145 2016-10-10  Than McIntosh  <thanm@google.com>
147         * go-gcc.h: New file.
148         * go-c.h (struct go_create_gogo_args): Add backend and linemap
149         fields.
150         * go-lang.c: Include "go-gcc.h".
151         (go_langhook_init): Set linemap and backend fields of args.
152         * go-gcc.cc: Include "go-gcc.h".
153         * go-linemap.cc: Include "go-gcc.h".
155 2016-10-10  Than McIntosh  <thanm@google.com>
157         * go-linemap.cc (Gcc_linemap::location_line): New method.
159 2016-10-10  Eric Botcazou  <ebotcazou@adacore.com>
161         * config-lang.in (lang_requires_boot_languages): Delete.
163 2016-10-06  Chris Manghane  <cmang@google.com>
165         * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
166         returned memory.
168 2016-09-27  Than McIntosh  <thanm@google.com>
170         * go-linemap.cc (Gcc_linemap::to_string): New method.
172 2016-09-23  Than McIntosh  <thanm@google.com>
174         * go-gcc-diagnostics.cc: New file.
175         * go-location.h (Location): Remove operator source_location.  Add
176         operator==.
177         * go-system.h: #include <sstream>.
178         * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
179         go/go-gcc-diagnostics.o.
180         (CFLAGS-go/go-gcc-diagnostics.o): New variable.
182 2016-09-23  Chris Manghane  <cmang@google.com>
184         PR go/77701
185         * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
186         to pass arguments in the correct order.
188 2016-09-22  Ian Lance Taylor  <iant@golang.org>
190         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
191         __builtin_frame_address.
193 2016-09-11  Ian Lance Taylor  <iant@golang.org>
195         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
196         ctz, ctzll, bswap32, bswap64.
198 2016-09-10  Ian Lance Taylor  <iant@golang.org>
200         * go-backend.c (go_trampoline_info): Remove.
201         * go-c.h (go_trampoline_info): Don't declare.
203 2016-09-09  Than McIntosh  <thanm@google.com>
205         * go-sha1.cc: New file.
206         * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
207         (CFLAGS-go/go-sha1.o): New variable.
209 2016-08-29  Ian Lance Taylor  <iant@google.com>
211         * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
212         * go-c.h (struct go_create_gogo_args): Define.
213         (go_create_gogo): Change declaration to take struct pointer.
214         * go-lang.c (go_c_header): New static variable.
215         (go_langhook_init): Update call to go_create_gogo.
216         * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
217         -fgo-compiling-runtime.
219 2016-08-09  Ian Lance Taylor  <iant@google.com>
221         * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
222         -fgo-debug-escae.
223         (Compiler Directives): New chapter.
224         (Function Names): Describe using //go:linkname.  Suggest using
225         -fgo-pkgpath rather than -fgo-prefix.
227 2016-08-08  Ian Lance Taylor  <iant@google.com>
229         PR go/72814
230         * go-gcc.cc (Gcc_backend::function_type): If the return type is
231         zero bytes, treat the function as returning void.
232         (return_statement): If the return type is zero bytes, don't
233         actually return any values.
235 2016-08-05  Ian Lance Taylor  <iant@google.com>
237         PR go/72812
238         * go-gcc.cc (char_needs_encoding): New static function.
239         (needs_encoding, fetch_utf8_char): New static functions.
240         (encode_id): New static function.
241         (Gcc_backend::global_variable): Set asm name if the name is not
242         simple ASCII.
243         (Gcc_backend::implicit_variable): Likewise.
244         (Gcc_backend::implicit_variable_reference): Likewise.
245         (Gcc_backend::immutable_struct): Likewise.
246         (Gcc_backend::immutable_struct_reference): Likewise.
247         (Gcc_backend::function): Likewise.
249 2016-08-02  Chris Manghane  <cmang@google.com>
251         * lang.opt: Add -fgo-debug-escape option.
252         * go-c.h (go_create_gogo): Add debug_escape_level parameter.
253         * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
254         go_create_gogo.
256 2016-05-06  Chris Manghane  <cmang@google.com>
258         * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
259         new escape.cc).
261 2016-04-29  Chris Manghane  <cmang@google.com>
263         * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
265 2016-04-18  Michael Matz  <matz@suse.de>
267         * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
269 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
271         * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
272         neighbour -> neighbor.
273         * gccgo.texi: Likewise.
275 2016-01-27  Ian Lance Taylor  <iant@google.com>
277         * go-lang.c (go_langhook_init_options_struct): Default to
278         -fkeep-gc-roots-live.
280 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
282         Update copyright years.
284         * gccgo.texi: Bump @copyrights-go year.
286 2015-12-21  Ian Lance Taylor  <iant@google.com>
288         * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class.  Add
289         t_ and orig_type_ fields.  Add new two parameter constructor.  Add
290         get_tree and get_decl methods.
291         (Gcc_backend::var_expression): Pass location to var get_tree.
292         (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR.  Use
293         two parameter constructor for Bvariable.
294         (Gcc_backend::global_variable_set_init): Don't remove
295         VIEW_CONVERT_EXPR.  Use var get_decl, not get_tree.
296         (Gcc_backend::write_global_definitions): Likewise.
297         (Gcc_backend::init_statement): Call var get_decl, not get_tree.
298         (Gcc_backend::block): Likewise.
299         (Gcc_backend::implicit_variable_set_init): Likewise.
300         (Gcc_backend::immutable_struct_set_init): Likewise.
301         (Gcc_backend::function_set_parameters): Likewise.
303 2015-12-21  Ian Lance Taylor  <iant@google.com>
305         * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
306         add a VIEW_CONVERT_EXPR to the tree.
307         (Gcc_backend::global_variable_set_init): Remove any
308         VIEW_CONVERT_EXPR.
309         (Gcc_backend::write_global_definitions): Likewise.
311 2015-11-30  Ian Lance Taylor  <iant@google.com>
313         PR go/68477
314         * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
315         TYPE_STRING_FLAG on a variant type.
317 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
319         * go-backend.c: Remove unused header files.
320         * go-gcc.cc: Likewise.
321         * go-lang.c: Likewise.
322         * gospec.c: Likewise.
324 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
326         * go-backend.c: Reorder #include's and remove duplicates.
327         * go-lang.c: Likewise.
329 2015-10-20  Alan Modra  <amodra@gmail.com>
331         PR go/66870
332         * gospec.c (saw_opt_m32): Rename to..
333         (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
334         Update uses.
335         (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
337 2015-10-01  Ian Lance Taylor  <iant@google.com>
339         PR go/66870
340         * gospec.c (lang_specific_driver): Only look for OPT_m32 if
341         TARGET_CAN_SPLIT_STACK_64BIT is defined.
343 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
345         PR target/66870
346         * gospec.c (lang_specific_driver): Set appropriate split stack
347         options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
349 2015-09-10  Chris Manghane  <cmang@google.com>
351         * go-gcc.cc (Gcc_backend::type_size): Return -1 for
352         unrepresentable size.
354 2015-08-24  Marek Polacek  <polacek@redhat.com>
356         PR tree-optimization/67284
357         * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
358         Set TREE_THIS_VOLATILE.
359         (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
360         Pass false to the rest of define_builtin calls.
362 2015-07-31  Andreas Schwab  <schwab@linux-m68k.org>
364         * go-lang.c (go_langhook_init_options_struct): Don't set
365         x_flag_split_stack.
366         (go_langhook_post_options): Set it here instead.
368 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
370         * gofrontend/backend.h: Fix double word typos.
371         * gofrontend/expressions.cc: Same.
372         * gospec.c: Same.
374 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
376         * go-backend.c: Adjust includes.
377         * go-gcc.cc: Likewise.
378         * go-lang.c: Likewise.
380 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
382         * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
384 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
386         * go-backend.c: Do not include input.h, line-map.h or is-a.h.
387         * go-gcc.cc: Likewise.
388         * go-lang.c: Likewise.
389         * go-system.h: Likewise.
391 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
393         * go-backend.c : Adjust include files.
394         * go-gcc.cc : Likewise.
395         * go-lang.c : Likewise.
397 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
399         * go-gcc.cc (write_global_definitions): Remove call to
400         finalize_compilation_unit.
401         Remove Go specific debug generation.
402         * go-lang.c (go_langhook_parse_file): Call go_write_globals.
403         (go_langhook_write_globals): Remove.
404         Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
406 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
408         * go-backend.c: Adjust includes for restructured coretypes.h.
409         * go-c.h: Likewise.
410         * go-gcc.cc: Likewise.
411         * go-lang.c: Likewise.
413 2015-04-30  Chris Manghane  <cmang@google.com>
415         * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
416         method.
418 2015-04-27  Jim Wilson  <jim.wilson@linaro.org>
420         * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
422 2015-04-17  Chris Manghane  <cmang@google.com>
424         * Make-lang.in (GO_OBJS): Add go/escape.o.
426 2015-02-02  Ian Lance Taylor  <iant@google.com>
428         PR go/64836
429         PR go/64838
430         * go-gcc.cc (Gcc_backend::type_size): Change return type to
431         int64_t.
432         (Gcc_backend::type_alignment): Likewise.
433         (Gcc_backend::type_field_alignment): Likewise.
434         (Gcc_backend::type_field_offset): Likewise.
435         (Gcc_backend::implicit_variable): Change alignment parameter type
436         to int64_t.
438 2015-01-23  Ian Lance Taylor  <iant@google.com>
440         PR go/63565
441         * gccgo.texi (Invoking gccgo): Mention that Go programs should not
442         be stripped.
444         * gccgo.texi (C Interoperability): Mention that people should use
445         cgo.
447 2015-01-23  Ian Lance Taylor  <iant@google.com>
449         PR go/64595
450         * go-lang.c (go_langhook_init_options_struct): Set default
451         debug_info_level.
452         (go_langhook_post_options): If debug_info_level is still the
453         default, make sure write_symbols is set.
454         * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
456 2015-01-16  Richard Henderson  <rth@redhat.com>
458         * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
459         (Gcc_backend::static_chain_variable): New method.
461 2015-01-09  Ian Lance Taylor  <iant@google.com>
463         * config-lang.in (lang_dirs): Define.
465 2015-01-09  Michael Collison  <michael.collison@linaro.org>
467         * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
468         input.h, alias.h, symtab.h, options.h, fold-const.h,
469         wide-int.h, and inchash.h due to flattening of tree.h.
470         * go-lang.c: Ditto.
471         * go-backend.c: Ditto.
473 2015-01-07  Chris Manghane  <cmang@google.com>
475         PR go/61204
476         * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
477         zero-sized variable.
479 2015-01-06  Chris Manghane  <cmang@google.com>
481         * go-gcc.cc (Gcc_backend::constructor_expression): Don't
482         initialize zero-sized fields, just evaluate the values for side
483         effects.
485 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
487         Update copyright years.
489         * gccgo.texi: Bump @copyrights-go year.
491 2014-12-19  Chris Manghane  <cmang@google.com>
493         * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
494         construct arrays of zero-sized values.
496 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
498         * go-lang.c: Remove redundant enum from machine_mode.
500 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
502         * go-gcc.cc: Adjust include files.
504 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
506         * go-gcc.cc: Adjust include files.
507         * go-lang.c: Ditto.
509 2014-10-23  Ian Lance Taylor  <iant@google.com>
511         * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
512         mpc_t parameter instead of two mpfr_t parameters.
514 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
516         * Make-lang.in (check_go_parallelize): Change to just an upper bound
517         number.
519 2014-09-03  Chris Manghane  <cmang@google.com>
521         * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
522         parameter.  Add is_hidden parameter.
523         (Gcc_backend::implicit_variable_set_init): New method.
524         (Gcc_backend::implicit_variable_reference): New method.
526 2014-08-08  Ian Lance Taylor  <iant@google.com>
528         * go-gcc.cc (Gcc_backend::compound_statement): Don't return
529         NULL_TREE.
531 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
533         * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
534         symtab_get_node to symtab_node::get.
536 2014-06-13  Ian Lance Taylor  <iant@google.com>
538         PR go/61496
539         * gospec.c (lang_specific_driver): On Solaris, when not using GNU
540         ld, add -t option to avoid warning about common symbol changing
541         size.
543 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
545         * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
546         symtab_get_node(var_decl)->implicit_section.
548 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
550         * go-gcc.cc (global_variable_set_init): Use
551         set_decl_section_name.
553 2014-06-04  Ian Lance Taylor  <iant@google.com>
555         * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
556         alignment parameters.  Permit init parameter to be NULL.
558 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
560         * go-gcc.cc: Include builtins.h.
562 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
564         * go-lang.c (struct GTY): Don't use variable_size gty attribute.
566 2014-05-06  Chris Manghane  <cmang@google.com>
568         * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
569         (Gcc_backend::boolean_constant_expression): New method.
570         (Gcc_backend::zero_expression): Use this->make_expression rather
571         than tree_to_expr.
572         (Gcc_backend::var_expression): Likewise.
573         (Gcc_backend::integer_constant_expression): Likewise.
574         (Gcc_backend::float_constant_expression): Likewise.
575         (Gcc_backend::complex_constant_expression): Likewise.
576         (Gcc_backend::struct_field_expression): Likewise.
577         (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
578         (tree_to_function, tree_to_block): Remove functions.
579         (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
580         (block_to_tree, var_to_tree, function_to_tree): Remove functions.
582 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
583             Mike Stump  <mikestump@comcast.net>
584             Richard Sandiford  <rdsandiford@googlemail.com>
586         * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
588 2014-05-06  Chris Manghane  <cmang@google.com>
590         * go-c.h (go_create_gogo): Update declaration to add
591         check_divide_zero and check_divide_overflow parameters.
592         * go-lang.c (go_langhook_init): Pass new arguments to
593         go_create_gogo.
595 2014-05-05  Chris Manghane  <cmang@google.com>
597         * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
598         gc_root_variable.  Add name and is_constant parameters.
600 2014-05-05  Chris Manghane  <cmang@google.com>
602         * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
603         parameter.
604         (Gcc_backend::temporary_variable): Check for erroneous function.
606 2014-04-30  Chris Manghane  <cmang@google.com>
608         * go-backend.c: #include "diagnostics.h".
609         (saw_errors): New function.
610         * go-c.h (saw_errors): Declare.
611         * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
613 2014-04-30  Chris Manghane  <cmang@google.com>
615         * go-lang.c (go_langhook_type_for_size): Do it here, rather than
616         calling into Go frontend.
617         (go_langhook_type_for_mode): Likewise.
618         * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
620 2014-04-30  Chris Manghane  <cmang@google.com>
622         * go-gcc.cc: #include "langhooks.h".
623         (Gcc_backend::Gcc_backend): Add constructor.
624         (Gcc_backend::lookup_function): New function.
625         (Gcc_backend::define_builtin): New private function.
626         (Gcc_backend::gcc_backend): Remove.
627         (go_get_backend): Use new to create new Gcc_backend.
629 2014-04-25  Chris Manghane  <cmang@google.com>
631         * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
632         (Gcc_backend::return_statement): Push and pop function.
633         (Gcc_backend::label): Likewise.
634         (Gcc_backend::function_defer_statement): Likewise.
635         (Gcc_backend::switch_statement): Add function parameter.
636         (Gcc_backend::block): Don't permit function to be NULL.
637         (Gcc_backend::temporary_variable): Change go_assert to
638         gcc_assert.
639         (Gcc_backend::gc_root_variable): New function.
640         (Gcc_backend::write_global_definitions): New function.
642 2014-04-22  Chris Manghane  <cmang@google.com>
644         * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
645         call to create_tmp_var.  Require that function be non-NULL.
647 2014-04-17  Chris Manghane  <cmang@google.com>
649         * go-gcc.cc (Gcc_backend::named_constant_expression): New
650         function.
652 2014-04-14  Chris Manghane  <cmang@google.com>
654         * go-gcc.cc: Include "convert.h".
655         (Gcc_backend::string_constant_expression): New function.
656         (Gcc_backend::real_part_expression): Likewise.
657         (Gcc_backend::imag_part_expression): Likewise.
658         (Gcc_backend::complex_expression): Likewise.
659         (Gcc_backend::constructor_expression): Likewise.
660         (Gcc_backend::array_constructor_expression): Likewise.
661         (Gcc_backend::pointer_offset_expression): Likewise.
662         (Gcc_backend::array_index_expression): Likewise.
663         (Gcc_backend::call_expression): Likewise.
664         (Gcc_backend::exception_handler_statement): Likewise.
665         (Gcc_backend::function_defer_statement): Likewise.
666         (Gcc_backend::function_set_parameters): Likewise.
667         (Gcc_backend::function_set_body): Likewise.
668         (Gcc_backend::convert_expression): Handle various type
669         conversions.
671 2014-03-03  Ian Lance Taylor  <iant@google.com>
673         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
674         DECL_WEAK.
675         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
676         DECL_WEAK.
678 2014-01-24  Chris Manghane  <cmang@google.com>
680         * go-gcc.cc (Gcc_backend::unary_expression): New function.
682 2014-01-16  Chris Manghane  <cmang@google.com>
684         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
685         parameter.
686         (operator_to_tree_code): New static function.
687         (Gcc_backend::binary_expression): New function.
689 2014-01-14  Chris Manghane  <cmang@google.com>
691         * go-gcc.cc (Gcc_backend::compound_expression): New function.
692         (Gcc_backend::conditional_expression): New function.
694 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
696         Update copyright years
698 2014-01-02  Tobias Burnus  <burnus@net-b.de>
700         * gccgo.texi: Bump @copying's copyright year.
702 2013-12-16  Chris Manghane  <cmang@google.com>
704         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
706 2013-12-11  Ian Lance Taylor  <iant@google.com>
708         * go-lang.c (go_langhook_post_options): Disable sibling calls by
709         default.
711 2013-12-10  Ian Lance Taylor  <iant@google.com>
713         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
714         separately.
716 2013-12-05  Ian Lance Taylor  <iant@google.com>
718         Revert this change; no longer required.
719         2013-11-06  Ian Lance Taylor  <iant@google.com>
721         * go-lang.c (go_langhook_post_options): If
722         -fisolate-erroneous-paths was turned on by an optimization option,
723         turn it off.
725 2013-11-23  Ian Lance Taylor  <iant@google.com>
727         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
728         parameter.
730 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
732         * go-gcc.cc: Add required include files from gimple.h.
733         * go-lang.c: Likewise
735 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
737         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
738         tree_to_shwi throughout.
740 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
742         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
743         tree_fits_shwi_p throughout.
745 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
747         * go-lang.c: Include only gimplify.h and gimple.h as needed.
749 2013-11-14  Diego Novillo  <dnovillo@google.com>
751         * go-backend.c: Include stor-layout.h.
752         * go-gcc.cc: Include stringpool.h.
753         Include stor-layout.h.
754         Include varasm.h.
755         * go-lang.c: Include stor-layout.h.
757 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
759         * go-lang.c: Include gimplify.h.
761 2013-11-06  Ian Lance Taylor  <iant@google.com>
763         * go-lang.c (go_langhook_post_options): If
764         -fisolate-erroneous-paths was turned on by an optimization option,
765         turn it off.
767 2013-10-14  Chris Manghane  <cmang@google.com>
769         * go-gcc.cc (Gcc_backend::address_expression): New function.
771 2013-10-11  Chris Manghane  <cmang@google.com>
773         * go-gcc.cc (Gcc_backend::function_code_expression): New
774         function.
776 2013-10-10  Chris Manghane  <cmang@google.com>
778         * go-gcc.cc (Gcc_backend::error_function): New function.
779         (Gcc_backend::function): New function.
780         (Gcc_backend::make_function): New function.
781         (function_to_tree): New function.
783 2013-10-04  Chris Manghane  <cmang@google.com>
785         * go-gcc.cc (Gcc_backend::convert_expression): New function.
787 2013-10-02  Chris Manghane  <cmang@google.com>
789         * go-gcc.cc: Include "real.h" and "realmpfr.h".
790         (Gcc_backend::integer_constant_expression): New function.
791         (Gcc_backend::float_constant_expression): New function.
792         (Gcc_backend::complex_constant_expression): New function.
794 2013-09-30  Chris Manghane  <cmang@google.com>
796         * go-gcc.cc (Gcc_backend::error_expression): New function.
797         (Gcc_backend::var_expression): New function.
798         (Gcc_backend::indirect_expression): New function.
800 2013-09-25  Tom Tromey  <tromey@redhat.com>
802         * Make-lang.in (gospec.o): Remove.
803         (CFLAGS-go/gospec.o): New variable.
804         (GCCGO_OBJS): Update to use go/gospec.o.
805         (go_OBJS): Define.
806         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
807         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
808         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
809         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
810         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
811         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
812         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
813         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
814         (go/unsafe.o): Remove.
815         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
816         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
818 2013-09-25  Tom Tromey  <tromey@redhat.com>
820         * Make-lang.in (gospec.o): Don't use subshell.
822 2013-08-28  Ian Lance Taylor  <iant@google.com>
824         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
825         the struct is not hidden.
826         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
828 2013-08-06  Ian Lance Taylor  <iant@google.com>
830         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
831         compute_reloc_for_constant.
833 2013-08-02  Ian Lance Taylor  <iant@google.com>
835         * go-gcc.cc (immutable_struct_set_init): Always call
836         resolve_unique_section.
838 2013-07-24  Ian Lance Taylor  <iant@google.com>
840         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
841         fields, recreate those fields with the first one with a non-zero
842         size.
844 2013-07-23  Ian Lance Taylor  <iant@google.com>
846         * go-backend.c: Don't #include "rtl.h".
847         (go_imported_unsafe): Don't call init_varasm_once.
848         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
850 2013-07-23  Ian Lance Taylor  <iant@google.com>
852         * go-lang.c: Don't #include "except.h".
853         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
855 2013-06-18  Ian Lance Taylor  <iant@google.com>
857         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
858         parameter.
859         (Gcc_backend::immutable_struct_set_init): Likewise.
861 2013-05-16  Jason Merrill  <jason@redhat.com>
863         * Make-lang.in (go1$(exeext)): Use link mutex.
865 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
867         * gospec.c: pass -u pthread_create to linker when static linking.
869 2012-12-21  Ian Lance Taylor  <iant@google.com>
871         PR bootstrap/54659
872         * go-system.h: Don't include <cstdio>.
874 2012-12-18  Ian Lance Taylor  <iant@google.com>
876         PR go/55201
877         * gospec.c: Revert last patch.
879 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
881         PR go/55201
882         * gospec.c (LIBATOMIC): Define.
883         (LIBATOMIC_PROFILE): Define.
884         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
886 2012-11-29  Ian Lance Taylor  <iant@google.com>
888         * go-gcc.cc: Include "output.h".
889         (global_variable): Add is_unique_section parameter.
890         (global_variable_set_init): Adjust unique section if necessary.
891         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
893 2012-11-17  Diego Novillo  <dnovillo@google.com>
895         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
897         * go-lang.c: Use new vec API in vec.h.
899 2012-11-16  Ian Lance Taylor  <iant@google.com>
901         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
902         (go1$(exeext)): Likewise.
904 2012-10-30  Ian Lance Taylor  <iant@google.com>
906         * lang.opt (-fgo-relative-import-path): New option.
907         * go-lang.c (go_relative_import_path): New static variable.
908         (go_langhook_init): Pass go_relative_import_path to
909         go_create_gogo.
910         (go_langhook_handle_option): Handle -fgo-relative-import-path.
911         * go-c.h (go_create_gogo): Update declaration.
912         * gccgo.texi (Invoking gccgo): Document
913         -fgo-relative-import-path.
915 2012-09-17  Ian Lance Taylor  <iant@google.com>
917         * config-lang.in (target_libs): Add target-libbacktrace.
919 2012-09-16  Ian Lance Taylor  <iant@google.com>
921         * Make-lang.in (go/gogo.o): Depend on filenames.h.
923 2012-08-14   Diego Novillo  <dnovillo@google.com>
925         Merge from cxx-conversion branch.  Configury.
927         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
928         * go-gcc.cc: Likewise.
929         * go-system.h: Likewise.
931 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
933         * go-lang.c (lang_decl): Add variable_size GTY option.
935 2012-05-09  Ian Lance Taylor  <iant@google.com>
937         * lang.opt: Add -fgo-pkgpath.
938         * go-lang.c (go_pkgpath): New static variable.
939         (go_prefix): New static variable.
940         (go_langhook_init): Pass go_pkgpath and go_prefix to
941         go_create_gogo.
942         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
943         -fgo-prefix handling to just set go_prefix.
944         * go-c.h (go_set_prefix): Don't declare.
945         (go_create_gogo): Add pkgpath and prefix to declaration.
946         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
947         to pkgpath.  Don't include the package name in the asm name.
948         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
949         docs for -fgo-prefix.
951 2012-04-23  Ian Lance Taylor  <iant@google.com>
953         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
955 2012-04-20  Ian Lance Taylor  <iant@google.com>
957         * lang.opt: Add -fgo-check-divide-zero and
958         -fgo-check-divide-overflow.
959         * gccgo.texi (Invoking gccgo): Document new options.
961 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
963         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
964         with NULL_TREE type instead of void_type_node.
966 2012-03-09  Ian Lance Taylor  <iant@google.com>
968         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
969         to the lhs type if necessary.
971 2012-03-08  Ian Lance Taylor  <iant@google.com>
973         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
974         zero-sized variable.
975         (go_non_zero_struct): New global variable.
976         (Gcc_backend::non_zero_size_type): New function.
977         (Gcc_backend::global_variable): Don't build an assignment for a
978         zero-sized value.
979         * go-c.h (go_non_zero_struct): Declare.
980         * config-lang.in (gtfiles): Add go-c.h.
982 2012-02-29  Ian Lance Taylor  <iant@google.com>
984         * go-gcc.cc (class Gcc_tree): Add set_tree method.
985         (set_placeholder_pointer_type): When setting to a pointer to
986         error, set to error_mark_node.
988 2012-02-23  Richard Guenther  <rguenther@suse.de>
990         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
991         build_distinct_type_copy.
993 2012-02-17  Ian Lance Taylor  <iant@google.com>
995         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
997 2012-02-17  Ian Lance Taylor  <iant@google.com>
999         * gospec.c (lang_specific_driver): If linking, and no -o option
1000         was used, add one.
1002 2012-02-14  Ian Lance Taylor  <iant@google.com>
1004         PR go/48411
1005         * Make-lang.in (gccgo-cross$(exeext)): New target.
1006         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1007         gccgo$(exeext).
1008         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1009         gccgo-cross$(exeext) does not exist.
1011 2012-02-07  Ian Lance Taylor  <iant@google.com>
1013         * gccgo.texi (Function Names): Document //extern instead of
1014         __asm__.
1016 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
1018         PR target/52079
1019         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1020         return build_nonstandard_integer_type result if possible.
1022 2012-01-21  Ian Lance Taylor  <iant@google.com>
1024         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1025         (Gcc_backend::type_alignment): Likewise.
1026         (Gcc_backend::type_field_alignment): Likewise.
1027         (Gcc_backend::type_field_offset): Likewise.
1029 2012-01-20  Ian Lance Taylor  <iant@google.com>
1031         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1032         be empty.
1033         (Gcc_backend::set_placeholder_struct_type): Likewise.
1035 2012-01-17  Ian Lance Taylor  <iant@google.com>
1037         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1038         BASE.s rather than -o BASE.o.
1040 2012-01-11  Ian Lance Taylor  <iant@google.com>
1042         * go-lang.c (go_langhook_init): Initialize void_list_node before
1043         calling go_create_gogo.
1045 2012-01-10  Ian Lance Taylor  <iant@google.com>
1047         * go-gcc.cc (Gcc_backend::type_size): New function.
1048         (Gcc_backend::type_alignment): New function.
1049         (Gcc_backend::type_field_alignment): New function.
1050         (Gcc_backend::type_field_offset): New function.
1051         * go-backend.c (go_type_alignment): Remove.
1052         * go-c.h (go_type_alignment): Don't declare.
1054 2011-12-27  Ian Lance Taylor  <iant@google.com>
1056         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1057         build_distinct_type_copy rather than build_variant_type_copy.
1058         (Gcc_backend::set_placeholder_array_type): Likewise.
1059         (Gcc_backend::named_type): Add special handling for builtin
1060         basic types.
1062 2011-12-22  Ian Lance Taylor  <iant@google.com>
1064         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1065         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1066         (Gcc_backend::set_placeholder_struct_type): Likewise.
1067         (Gcc_backend::set_placeholder_array_type): Likewise.
1068         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1070 2011-12-13  Ian Lance Taylor  <iant@google.com>
1072         * go-backend.c: #include "simple-object.h" and "intl.h".
1073         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1074         (GO_EXPORT_SECTION_NAME): Likewise.
1075         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1076         (go_read_export_data): New function.
1077         * go-c.h (go_read_export_data): Declare.
1079 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
1080             Ian Lance Taylor  <iant@google.com>
1082         * go-location.h: New file.
1083         * go-linemap.cc: New file.
1084         * go-gcc.cc: Change all uses of source_location to Location.
1085         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1086         (GO_LINEMAP_H): New variable.
1087         (GO_LEX_H): Use $(GO_LINEMAP_H).
1088         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1089         (go/go-linemap.o): New target.
1091 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1093         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1095 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
1097         * lang.opt: Add fgo-optimize-.
1098         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1099         * go-c.h (go_enable_optimize): Declare.
1100         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1101         (GO_EXPORT_H): Define.
1102         (GO_IMPORT_H): Add $(GO_EXPORT_H).
1103         (GO_AST_DUMP_H): Define.
1104         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1105         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1106         (go/types.o): Likewise.
1107         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1108         (go/go-optimize.o): New target.
1110 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1112         * Make-lang.in (CFLAGS-go/go-lang.o): New.
1113         (go/go-lang.o): Remove explicit compilation rule.
1115 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1117         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1119 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
1121         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1122         (go/ast-dump.o): New target.
1123         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1124         (go/statements.o): Likewise.
1126 2011-07-06  Richard Guenther  <rguenther@suse.de>
1128         * go-lang.c (go_langhook_init):
1129         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1131 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1133         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1134         dependencies.
1135         * go-backend.c: Include common/common-target.h.
1136         (go_write_export_data): Use targetm_common.have_named_sections.
1137         * go-lang.c: Include common/common-target.h.
1138         (go_langhook_init_options_struct): Use
1139         targetm_common.supports_split_stack.
1141 2011-06-13  Ian Lance Taylor  <iant@google.com>
1143         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1145 2011-06-10  Ian Lance Taylor  <iant@google.com>
1147         * go-gcc.cc: Include "toplev.h".
1148         (Gcc_backend::immutable_struct): New function.
1149         (Gcc_backend::immutable_struct_set_init): New function.
1150         (Gcc_backend::immutable_struct_reference): New function.
1151         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1153 2011-06-09  Ian Lance Taylor  <iant@google.com>
1155         * go-gcc.cc (Gcc_backend::zero_expression): New function.
1157 2011-06-07  Richard Guenther  <rguenther@suse.de>
1159         * go-lang.c (go_langhook_init): Do not set
1160         size_type_node or call set_sizetype.
1162 2011-05-27  Ian Lance Taylor  <iant@google.com>
1164         * go-backend.c: Include "output.h".
1165         (go_write_export_data): New function.
1166         * go-c.h (go_write_export_data): Declare.
1167         * Make-lang.in (go/go-backend.o): Depend on output.h.
1168         (go/export.o): Depend on $(GO_C_H).  Do not depend on
1169         $(MACHMODE_H), output.h, or $(TARGET_H).
1171 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1173         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1174         (gccgo$(exeext)): Use libcommon-target.a.
1176 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1178         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1180 2011-05-13  Ian Lance Taylor  <iant@google.com>
1182         * go-gcc.cc (Gcc_backend::function_type): When building a struct
1183         for multiple results, check that all fields types have a size.
1184         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1186 2011-05-12  Ian Lance Taylor  <iant@google.com>
1188         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1189         parameter.
1190         (Gcc_backend::parameter_variable): Likewise.
1192 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1194         * go-lang.c (global_bindings_p): Return bool and simplify.
1196 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1198         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1200 2011-05-04  Ian Lance Taylor  <iant@google.com>
1202         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1203         (Gcc_backend::fill_in_struct): New function.
1204         (Gcc_backend::array_type): Implement.
1205         (Gcc_backend::fill_in_array): New function.
1206         (Gcc_backend::placeholder_pointer_type): New function.
1207         (Gcc_backend::set_placeholder_pointer_type): New function.
1208         (Gcc_backend::set_placeholder_function_type): New function.
1209         (Gcc_backend::placeholder_struct_type): New function.
1210         (Gcc_backend::set_placeholder_struct_type): New function.
1211         (Gcc_backend::placeholder_array_type): New function.
1212         (Gcc_backend::set_placeholder_array_type): New function.
1213         (Gcc_backend::named_type): New function.
1214         (Gcc_backend::circular_pointer_type): New function.
1215         (Gcc_backend::is_circular_pointer_type): New function.
1217 2011-04-26  Ian Lance Taylor  <iant@google.com>
1219         * go-gcc.cc (Gcc_backend::struct_type): Implement.
1221 2011-04-25  Ian Lance Taylor  <iant@google.com>
1223         * go-gcc.cc (Gcc_backend::error_type): Implement.
1224         (Gcc_backend::string_type): Remove.
1225         (Gcc_backend::function_type): Change signature and implement.
1226         (Gcc_backend::struct_type): Change signature.
1227         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1228         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1229         (Gcc_backend::pointer_type): Check for error.
1230         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1232 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
1234         * go-gcc.c (class Gcc_tree): Make get_tree const.
1235         (Gcc_backend::void_type): Implement.
1236         (Gcc_backend::bool_type): Implement.
1237         (Gcc_backend::integer_type): Implement.
1238         (Gcc_backend::float_type): Implement.
1239         (Gcc_backend::complex_type): New function.
1240         (Gcc_backend::pointer_type): New function.
1241         (Gcc_backend::make_type): New function.
1242         (type_to_tree): New function.
1244 2011-04-21  Ian Lance Taylor  <iant@google.com>
1246         * go-system.h (go_assert, go_unreachable): Define.
1248 2011-04-19  Ian Lance Taylor  <iant@google.com>
1250         * go-system.h: Include "intl.h".
1251         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1252         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1253         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1255 2011-04-19  Ian Lance Taylor  <iant@google.com>
1257         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1259 2011-04-19  Ian Lance Taylor  <iant@google.com>
1261         * go-gcc.cc (class Bblock): Define.
1262         (Gcc_backend::if_statement): Change then_block and else_block to
1263         Bblock*.
1264         (Gcc_backend::block): New function.
1265         (Gcc_backend::block_add_statements): New function.
1266         (Gcc_backend::block_statement): New function.
1267         (tree_to_block, block_to_tree): New functions.
1269 2011-04-18  Ian Lance Taylor  <iant@google.com>
1271         * go-gcc.cc: Include "go-c.h".
1272         (class Bvariable): Define.
1273         (Gcc_backend::init_statement): New function.
1274         (Gcc_backend::global_variable): New function.
1275         (Gcc_backend::global_variable_set_init): New function.
1276         (Gcc_backend::local_variable): New function.
1277         (Gcc_backend::parameter_variable): New function.
1278         (tree_to_type, var_to_tree): New functions.
1279         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1280         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1282 2011-04-15  Ian Lance Taylor  <iant@google.com>
1284         * go-gcc.cc (Gcc_backend::compound_statement): New function.
1285         (Gcc_backend::assignment_statement): Use error_statement.
1286         (Gcc_backend::return_statement): Likewise.
1287         (Gcc_backend::if_statement): Likewise.
1288         (Gcc_backend::switch_statement): Likewise.
1289         (Gcc_backend::statement_list): Likewise.
1291 2011-04-14  Ian Lance Taylor  <iant@google.com>
1293         * go-gcc.cc (Gcc_backend::error_statement): New function.
1295 2011-04-13  Ian Lance Taylor  <iant@google.com>
1297         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1299 2011-04-13  Ian Lance Taylor  <iant@google.com>
1301         * Make-lang.in (GO_OBJS): Add go/runtime.o.
1302         (GO_RUNTIME_H): New variable.
1303         (go/runtime.o): New target.
1304         (go/gogo.o): Depend on $(GO_RUNTIME_H).
1305         (go/statements.o): Likewise.
1307 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1309         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1310         calling TREE_CHAIN.
1312 2011-04-06  Ian Lance Taylor  <iant@google.com>
1314         * go-gcc.cc (if_statement): Use build3_loc.
1315         (Gcc_backend::switch_statement): New function.
1316         (Gcc_backend::statement_list): New function.
1318 2011-04-06  Ian Lance Taylor  <iant@google.com>
1320         * go-gcc.cc (Gcc_backend::if_statement): New function.
1321         (tree_to_stat): New function.
1322         (expr_to_tree): Renamed from expression_to_tree.
1323         (stat_to_tree): Renamed from statement_to_tree.
1325 2011-04-06  Ian Lance Taylor  <iant@google.com>
1327         * go-gcc.cc (Gcc_backend::expression_statement): New function.
1329 2011-04-04  Ian Lance Taylor  <iant@google.com>
1331         * go-gcc.c (class Blabel): Define.
1332         (Gcc_backend::make_expression): New function.
1333         (get_identifier_from_string): New function.
1334         (Gcc_backend::label): New function.
1335         (Gcc_backend::label_definition_statement): New function.
1336         (Gcc_backend::goto_statement): New function.
1337         (Gcc_backend::label_address): New function.
1338         (expression_to_tree): New function.
1339         * Make-lang.in (go/expressions.o): Depend on
1340         go/gofrontend/backend.h.
1341         (go/gogo.o): Likewise.
1343 2011-04-04  Ian Lance Taylor  <iant@google.com>
1345         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1346         (class Bfunction): Define.
1347         (Gcc_backend::assignment_statement): Rename from assignment.
1348         Check for errors.
1349         (Gcc_backend::return_statement): New function.
1350         (tree_to_function): New function.
1351         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1352         $(GIMPLE_H), and $(GO_GOGO_H).
1354 2011-04-03  Ian Lance Taylor  <iant@google.com>
1356         * go-gcc.cc: New file.
1357         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1358         (go/go-gcc.o): New target.
1359         (go/go.o): Depend on go/gofrontend/backend.h.
1360         (go/statements.o): Likewise.
1362 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1364         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1366 2011-02-08  Ian Lance Taylor  <iant@google.com>
1368         * go-lang.c (go_langhook_init_options_struct): Set
1369         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
1371 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1373         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1374         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1376 2011-01-21  Ian Lance Taylor  <iant@google.com>
1378         * go-lang.c (go_langhook_init): Omit float_type_size when calling
1379         go_create_gogo.
1380         * go-c.h: Update declaration of go_create_gogo.
1382 2011-01-13  Ian Lance Taylor  <iant@google.com>
1384         * go-backend.c: Include "rtl.h" and "target.h".
1385         (go_imported_unsafe): New function.
1386         * go-c.h (go_imported_unsafe): Declare.
1387         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1388         (go/gogo-tree.o): Remove dependency on $(RTL_H).
1389         (go/unsafe.o): Depend on $(GO_C_H).
1391 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
1393         PR go/47113
1394         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1395         variable ‘field’ .
1397 2010-12-21  Ian Lance Taylor  <iant@google.com>
1399         * Make-lang.in (check-go): Remove.
1400         (lang_checks_parallelized): Add check-go.
1401         (check_go_parallelize): Set.
1403 2010-12-13  Ian Lance Taylor  <iant@google.com>
1405         * gospec.c (lang_specific_driver): Add a -o option if not linking
1406         and there is no -o option already.
1408 2010-12-07  Ian Lance Taylor  <iant@google.com>
1410         PR tree-optimization/46805
1411         PR tree-optimization/46833
1412         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1414 2010-12-06  Ian Lance Taylor  <iant@google.com>
1416         PR other/46789
1417         PR bootstrap/46812
1418         * go-lang.c (go_char_p): Define type and vectors.
1419         (go_search_dirs): New static variable.
1420         (go_langhook_handle_option): Use version and version/machine
1421         directories for -L.
1422         (go_langhook_post_options): Add non-specific -L paths.
1423         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1424         DEFAULT_TARGET_MACHINE when compiling.
1425         * gccgo.texi (Invoking gccgo): Only document -L for linking.
1426         (Import and Export): Don't mention -L for finding import files.
1428 2010-12-03  Ian Lance Taylor  <iant@google.com>
1430         PR bootstrap/46776
1431         * go-backend.c: New file.
1432         * go-c.h (go_type_alignment): Declare.
1433         (go_field_alignment, go_trampoline_info): Declare.
1434         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1435         (go/go-backend.o): New target.
1436         (go/go-lang.o): Make dependencies match source file.
1437         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1438         (go/gogo-tree.o): Don't depend on $(TM_H).
1440 2010-12-03  Ian Lance Taylor  <iant@google.com>
1442         * config-lang.in (build_by_default): Set to no.
1444 2010-12-02  Ian Lance Taylor  <iant@google.com>
1446         Go frontend added to gcc repository.
1448 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1450 Copying and distribution of this file, with or without modification,
1451 are permitted in any medium without royalty provided the copyright
1452 notice and this notice are preserved.