debug/dwarf: support 64-bit DWARF in byte order check
[official-gcc.git] / gcc / go / ChangeLog
blob1c0ef93291464419d7d832a4f63457d6fae15877
1 2017-10-11  Tony Reix  <tony.reix@atos.net>
3         * go-system.h (__STDC_FORMAT_MACROS): Define before including any
4         system header files, as is done in ../system.h.
6 2017-10-05  Ian Lance Taylor  <iant@golang.org>
8         * Make-lang.in (GO_OBJS): Add go/names.o.
10 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
11             Alan Hayward  <alan.hayward@arm.com>
12             David Sherwood  <david.sherwood@arm.com>
14         * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
16 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
17             Alan Hayward  <alan.hayward@arm.com>
18             David Sherwood  <david.sherwood@arm.com>
20         * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
22 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
23             Alan Hayward  <alan.hayward@arm.com>
24             David Sherwood  <david.sherwood@arm.com>
26         * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
28 2017-08-07  Martin Liska  <mliska@suse.cz>
30         * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
31         and not __no_split_stack__.
33 2017-07-27    Tony Reix  <tony.reix@atos.net>
35         * go-backend.c (go_write_export_data): Use EXCLUDE section for
36         AIX.
38 2017-06-09  Ian Lance Taylor  <iant@golang.org>
40         * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
41         on, disable implicit -forder-blocks-and-partition.
43 2017-05-12  Than McIntosh  <thanm@google.com>
45         * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
47 2017-05-11  Ian Lance Taylor  <iant@google.com>
49         PR go/64238
50         * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
51         DECL_EXTERNAL, clear TREE_STATIC.
53 2017-05-10  Than McIntosh  <thanm@google.com>
55         * go-backend.c: Include "go-c.h".
56         * go-gcc.cc (Gcc_backend::write_export_data): New method.
58 2017-05-10  Ian Lance Taylor  <iant@google.com>
60         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
61         __builtin_prefetch.
62         * Make-lang.in (GO_OBJS): Add go/wb.o.
64 2017-03-28  Than McIntosh  <thanm@google.com>
66         PR go/80226
67         * go-gcc.cc (Gcc_backend::return_statement): Check for
68         void_type_node when checking result size.
70 2017-02-20  Ian Lance Taylor  <iant@golang.org>
72         PR go/79642
73         * lang.opt (-fgo-relative-import-path): Change space to tab.
75 2017-02-07  Richard Biener  <rguenther@suse.de>
77         PR tree-optimization/79256
78         PR middle-end/79278
79         * go-backend.c (go_field_alignment): Adjust.
81 2017-01-11  Than McIntosh  <thanm@google.com>
83         * go-gcc.cc (conditional_expression): Add Bfunction parameter.
85 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
87         Update copyright years.
89         * gccgo.texi: Bump @copyrights-go year.
91 2016-12-16  Than McIntosh  <thanm@google.com>
93         * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
94         parameter.
95         (Gcc_backend::init_statement): Likewise.
96         (Gcc_backend::assignment_statement): Likewise.
97         (Gcc_backend::if_statement): Likewise.
99 2016-12-06  Than McIntosh  <thanm@google.com>
101         * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
102         parameter.
104 2016-11-22  Than McIntosh  <thanm@google.com>
106         * go-gcc.cc (char_needs_encoding): Remove.
107         (needs_encoding, fetch_utf8_char, encode_id): Remove.
108         (Gcc_backend::global_variable): Add asm_name parameter.  Don't
109         compute asm_name here.
110         (Gcc_backend::implicit_variable): Likewise.
111         (Gcc_backend::implicit_variable_reference): Likewise.
112         (Gcc_backend::immutable_struct): Likewise.
113         (Gcc_backend::immutable_struct_reference): Likewise.
114         * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
116 2016-11-22  Ian Lance Taylor  <iant@google.com>
118         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
119         __builtin_frame_address.
121 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
123         * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
124         from result of GET_MODE_CLASS.  Minor formatting fixes.
126 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
128         * go-backend.c: Include memmodel.h.
130 2016-10-10  Than McIntosh  <thanm@google.com>
132         * go-gcc.h: New file.
133         * go-c.h (struct go_create_gogo_args): Add backend and linemap
134         fields.
135         * go-lang.c: Include "go-gcc.h".
136         (go_langhook_init): Set linemap and backend fields of args.
137         * go-gcc.cc: Include "go-gcc.h".
138         * go-linemap.cc: Include "go-gcc.h".
140 2016-10-10  Than McIntosh  <thanm@google.com>
142         * go-linemap.cc (Gcc_linemap::location_line): New method.
144 2016-10-10  Eric Botcazou  <ebotcazou@adacore.com>
146         * config-lang.in (lang_requires_boot_languages): Delete.
148 2016-10-06  Chris Manghane  <cmang@google.com>
150         * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
151         returned memory.
153 2016-09-27  Than McIntosh  <thanm@google.com>
155         * go-linemap.cc (Gcc_linemap::to_string): New method.
157 2016-09-23  Than McIntosh  <thanm@google.com>
159         * go-gcc-diagnostics.cc: New file.
160         * go-location.h (Location): Remove operator source_location.  Add
161         operator==.
162         * go-system.h: #include <sstream>.
163         * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
164         go/go-gcc-diagnostics.o.
165         (CFLAGS-go/go-gcc-diagnostics.o): New variable.
167 2016-09-23  Chris Manghane  <cmang@google.com>
169         PR go/77701
170         * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
171         to pass arguments in the correct order.
173 2016-09-22  Ian Lance Taylor  <iant@golang.org>
175         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
176         __builtin_frame_address.
178 2016-09-11  Ian Lance Taylor  <iant@golang.org>
180         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
181         ctz, ctzll, bswap32, bswap64.
183 2016-09-10  Ian Lance Taylor  <iant@golang.org>
185         * go-backend.c (go_trampoline_info): Remove.
186         * go-c.h (go_trampoline_info): Don't declare.
188 2016-09-09  Than McIntosh  <thanm@google.com>
190         * go-sha1.cc: New file.
191         * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
192         (CFLAGS-go/go-sha1.o): New variable.
194 2016-08-29  Ian Lance Taylor  <iant@google.com>
196         * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
197         * go-c.h (struct go_create_gogo_args): Define.
198         (go_create_gogo): Change declaration to take struct pointer.
199         * go-lang.c (go_c_header): New static variable.
200         (go_langhook_init): Update call to go_create_gogo.
201         * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
202         -fgo-compiling-runtime.
204 2016-08-09  Ian Lance Taylor  <iant@google.com>
206         * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
207         -fgo-debug-escae.
208         (Compiler Directives): New chapter.
209         (Function Names): Describe using //go:linkname.  Suggest using
210         -fgo-pkgpath rather than -fgo-prefix.
212 2016-08-08  Ian Lance Taylor  <iant@google.com>
214         PR go/72814
215         * go-gcc.cc (Gcc_backend::function_type): If the return type is
216         zero bytes, treat the function as returning void.
217         (return_statement): If the return type is zero bytes, don't
218         actually return any values.
220 2016-08-05  Ian Lance Taylor  <iant@google.com>
222         PR go/72812
223         * go-gcc.cc (char_needs_encoding): New static function.
224         (needs_encoding, fetch_utf8_char): New static functions.
225         (encode_id): New static function.
226         (Gcc_backend::global_variable): Set asm name if the name is not
227         simple ASCII.
228         (Gcc_backend::implicit_variable): Likewise.
229         (Gcc_backend::implicit_variable_reference): Likewise.
230         (Gcc_backend::immutable_struct): Likewise.
231         (Gcc_backend::immutable_struct_reference): Likewise.
232         (Gcc_backend::function): Likewise.
234 2016-08-02  Chris Manghane  <cmang@google.com>
236         * lang.opt: Add -fgo-debug-escape option.
237         * go-c.h (go_create_gogo): Add debug_escape_level parameter.
238         * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
239         go_create_gogo.
241 2016-05-06  Chris Manghane  <cmang@google.com>
243         * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
244         new escape.cc).
246 2016-04-29  Chris Manghane  <cmang@google.com>
248         * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
250 2016-04-18  Michael Matz  <matz@suse.de>
252         * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
254 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
256         * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
257         neighbour -> neighbor.
258         * gccgo.texi: Likewise.
260 2016-01-27  Ian Lance Taylor  <iant@google.com>
262         * go-lang.c (go_langhook_init_options_struct): Default to
263         -fkeep-gc-roots-live.
265 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
267         Update copyright years.
269         * gccgo.texi: Bump @copyrights-go year.
271 2015-12-21  Ian Lance Taylor  <iant@google.com>
273         * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class.  Add
274         t_ and orig_type_ fields.  Add new two parameter constructor.  Add
275         get_tree and get_decl methods.
276         (Gcc_backend::var_expression): Pass location to var get_tree.
277         (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR.  Use
278         two parameter constructor for Bvariable.
279         (Gcc_backend::global_variable_set_init): Don't remove
280         VIEW_CONVERT_EXPR.  Use var get_decl, not get_tree.
281         (Gcc_backend::write_global_definitions): Likewise.
282         (Gcc_backend::init_statement): Call var get_decl, not get_tree.
283         (Gcc_backend::block): Likewise.
284         (Gcc_backend::implicit_variable_set_init): Likewise.
285         (Gcc_backend::immutable_struct_set_init): Likewise.
286         (Gcc_backend::function_set_parameters): Likewise.
288 2015-12-21  Ian Lance Taylor  <iant@google.com>
290         * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
291         add a VIEW_CONVERT_EXPR to the tree.
292         (Gcc_backend::global_variable_set_init): Remove any
293         VIEW_CONVERT_EXPR.
294         (Gcc_backend::write_global_definitions): Likewise.
296 2015-11-30  Ian Lance Taylor  <iant@google.com>
298         PR go/68477
299         * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
300         TYPE_STRING_FLAG on a variant type.
302 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
304         * go-backend.c: Remove unused header files.
305         * go-gcc.cc: Likewise.
306         * go-lang.c: Likewise.
307         * gospec.c: Likewise.
309 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
311         * go-backend.c: Reorder #include's and remove duplicates.
312         * go-lang.c: Likewise.
314 2015-10-20  Alan Modra  <amodra@gmail.com>
316         PR go/66870
317         * gospec.c (saw_opt_m32): Rename to..
318         (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
319         Update uses.
320         (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
322 2015-10-01  Ian Lance Taylor  <iant@google.com>
324         PR go/66870
325         * gospec.c (lang_specific_driver): Only look for OPT_m32 if
326         TARGET_CAN_SPLIT_STACK_64BIT is defined.
328 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
330         PR target/66870
331         * gospec.c (lang_specific_driver): Set appropriate split stack
332         options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
334 2015-09-10  Chris Manghane  <cmang@google.com>
336         * go-gcc.cc (Gcc_backend::type_size): Return -1 for
337         unrepresentable size.
339 2015-08-24  Marek Polacek  <polacek@redhat.com>
341         PR tree-optimization/67284
342         * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
343         Set TREE_THIS_VOLATILE.
344         (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
345         Pass false to the rest of define_builtin calls.
347 2015-07-31  Andreas Schwab  <schwab@linux-m68k.org>
349         * go-lang.c (go_langhook_init_options_struct): Don't set
350         x_flag_split_stack.
351         (go_langhook_post_options): Set it here instead.
353 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
355         * gofrontend/backend.h: Fix double word typos.
356         * gofrontend/expressions.cc: Same.
357         * gospec.c: Same.
359 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
361         * go-backend.c: Adjust includes.
362         * go-gcc.cc: Likewise.
363         * go-lang.c: Likewise.
365 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
367         * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
369 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
371         * go-backend.c: Do not include input.h, line-map.h or is-a.h.
372         * go-gcc.cc: Likewise.
373         * go-lang.c: Likewise.
374         * go-system.h: Likewise.
376 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
378         * go-backend.c : Adjust include files.
379         * go-gcc.cc : Likewise.
380         * go-lang.c : Likewise.
382 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
384         * go-gcc.cc (write_global_definitions): Remove call to
385         finalize_compilation_unit.
386         Remove Go specific debug generation.
387         * go-lang.c (go_langhook_parse_file): Call go_write_globals.
388         (go_langhook_write_globals): Remove.
389         Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
391 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
393         * go-backend.c: Adjust includes for restructured coretypes.h.
394         * go-c.h: Likewise.
395         * go-gcc.cc: Likewise.
396         * go-lang.c: Likewise.
398 2015-04-30  Chris Manghane  <cmang@google.com>
400         * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
401         method.
403 2015-04-27  Jim Wilson  <jim.wilson@linaro.org>
405         * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
407 2015-04-17  Chris Manghane  <cmang@google.com>
409         * Make-lang.in (GO_OBJS): Add go/escape.o.
411 2015-02-02  Ian Lance Taylor  <iant@google.com>
413         PR go/64836
414         PR go/64838
415         * go-gcc.cc (Gcc_backend::type_size): Change return type to
416         int64_t.
417         (Gcc_backend::type_alignment): Likewise.
418         (Gcc_backend::type_field_alignment): Likewise.
419         (Gcc_backend::type_field_offset): Likewise.
420         (Gcc_backend::implicit_variable): Change alignment parameter type
421         to int64_t.
423 2015-01-23  Ian Lance Taylor  <iant@google.com>
425         PR go/63565
426         * gccgo.texi (Invoking gccgo): Mention that Go programs should not
427         be stripped.
429         * gccgo.texi (C Interoperability): Mention that people should use
430         cgo.
432 2015-01-23  Ian Lance Taylor  <iant@google.com>
434         PR go/64595
435         * go-lang.c (go_langhook_init_options_struct): Set default
436         debug_info_level.
437         (go_langhook_post_options): If debug_info_level is still the
438         default, make sure write_symbols is set.
439         * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
441 2015-01-16  Richard Henderson  <rth@redhat.com>
443         * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
444         (Gcc_backend::static_chain_variable): New method.
446 2015-01-09  Ian Lance Taylor  <iant@google.com>
448         * config-lang.in (lang_dirs): Define.
450 2015-01-09  Michael Collison  <michael.collison@linaro.org>
452         * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
453         input.h, alias.h, symtab.h, options.h, fold-const.h,
454         wide-int.h, and inchash.h due to flattening of tree.h.
455         * go-lang.c: Ditto.
456         * go-backend.c: Ditto.
458 2015-01-07  Chris Manghane  <cmang@google.com>
460         PR go/61204
461         * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
462         zero-sized variable.
464 2015-01-06  Chris Manghane  <cmang@google.com>
466         * go-gcc.cc (Gcc_backend::constructor_expression): Don't
467         initialize zero-sized fields, just evaluate the values for side
468         effects.
470 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
472         Update copyright years.
474         * gccgo.texi: Bump @copyrights-go year.
476 2014-12-19  Chris Manghane  <cmang@google.com>
478         * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
479         construct arrays of zero-sized values.
481 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
483         * go-lang.c: Remove redundant enum from machine_mode.
485 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
487         * go-gcc.cc: Adjust include files.
489 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
491         * go-gcc.cc: Adjust include files.
492         * go-lang.c: Ditto.
494 2014-10-23  Ian Lance Taylor  <iant@google.com>
496         * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
497         mpc_t parameter instead of two mpfr_t parameters.
499 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
501         * Make-lang.in (check_go_parallelize): Change to just an upper bound
502         number.
504 2014-09-03  Chris Manghane  <cmang@google.com>
506         * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
507         parameter.  Add is_hidden parameter.
508         (Gcc_backend::implicit_variable_set_init): New method.
509         (Gcc_backend::implicit_variable_reference): New method.
511 2014-08-08  Ian Lance Taylor  <iant@google.com>
513         * go-gcc.cc (Gcc_backend::compound_statement): Don't return
514         NULL_TREE.
516 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
518         * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
519         symtab_get_node to symtab_node::get.
521 2014-06-13  Ian Lance Taylor  <iant@google.com>
523         PR go/61496
524         * gospec.c (lang_specific_driver): On Solaris, when not using GNU
525         ld, add -t option to avoid warning about common symbol changing
526         size.
528 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
530         * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
531         symtab_get_node(var_decl)->implicit_section.
533 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
535         * go-gcc.cc (global_variable_set_init): Use
536         set_decl_section_name.
538 2014-06-04  Ian Lance Taylor  <iant@google.com>
540         * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
541         alignment parameters.  Permit init parameter to be NULL.
543 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
545         * go-gcc.cc: Include builtins.h.
547 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
549         * go-lang.c (struct GTY): Don't use variable_size gty attribute.
551 2014-05-06  Chris Manghane  <cmang@google.com>
553         * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
554         (Gcc_backend::boolean_constant_expression): New method.
555         (Gcc_backend::zero_expression): Use this->make_expression rather
556         than tree_to_expr.
557         (Gcc_backend::var_expression): Likewise.
558         (Gcc_backend::integer_constant_expression): Likewise.
559         (Gcc_backend::float_constant_expression): Likewise.
560         (Gcc_backend::complex_constant_expression): Likewise.
561         (Gcc_backend::struct_field_expression): Likewise.
562         (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
563         (tree_to_function, tree_to_block): Remove functions.
564         (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
565         (block_to_tree, var_to_tree, function_to_tree): Remove functions.
567 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
568             Mike Stump  <mikestump@comcast.net>
569             Richard Sandiford  <rdsandiford@googlemail.com>
571         * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
573 2014-05-06  Chris Manghane  <cmang@google.com>
575         * go-c.h (go_create_gogo): Update declaration to add
576         check_divide_zero and check_divide_overflow parameters.
577         * go-lang.c (go_langhook_init): Pass new arguments to
578         go_create_gogo.
580 2014-05-05  Chris Manghane  <cmang@google.com>
582         * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
583         gc_root_variable.  Add name and is_constant parameters.
585 2014-05-05  Chris Manghane  <cmang@google.com>
587         * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
588         parameter.
589         (Gcc_backend::temporary_variable): Check for erroneous function.
591 2014-04-30  Chris Manghane  <cmang@google.com>
593         * go-backend.c: #include "diagnostics.h".
594         (saw_errors): New function.
595         * go-c.h (saw_errors): Declare.
596         * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
598 2014-04-30  Chris Manghane  <cmang@google.com>
600         * go-lang.c (go_langhook_type_for_size): Do it here, rather than
601         calling into Go frontend.
602         (go_langhook_type_for_mode): Likewise.
603         * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
605 2014-04-30  Chris Manghane  <cmang@google.com>
607         * go-gcc.cc: #include "langhooks.h".
608         (Gcc_backend::Gcc_backend): Add constructor.
609         (Gcc_backend::lookup_function): New function.
610         (Gcc_backend::define_builtin): New private function.
611         (Gcc_backend::gcc_backend): Remove.
612         (go_get_backend): Use new to create new Gcc_backend.
614 2014-04-25  Chris Manghane  <cmang@google.com>
616         * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
617         (Gcc_backend::return_statement): Push and pop function.
618         (Gcc_backend::label): Likewise.
619         (Gcc_backend::function_defer_statement): Likewise.
620         (Gcc_backend::switch_statement): Add function parameter.
621         (Gcc_backend::block): Don't permit function to be NULL.
622         (Gcc_backend::temporary_variable): Change go_assert to
623         gcc_assert.
624         (Gcc_backend::gc_root_variable): New function.
625         (Gcc_backend::write_global_definitions): New function.
627 2014-04-22  Chris Manghane  <cmang@google.com>
629         * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
630         call to create_tmp_var.  Require that function be non-NULL.
632 2014-04-17  Chris Manghane  <cmang@google.com>
634         * go-gcc.cc (Gcc_backend::named_constant_expression): New
635         function.
637 2014-04-14  Chris Manghane  <cmang@google.com>
639         * go-gcc.cc: Include "convert.h".
640         (Gcc_backend::string_constant_expression): New function.
641         (Gcc_backend::real_part_expression): Likewise.
642         (Gcc_backend::imag_part_expression): Likewise.
643         (Gcc_backend::complex_expression): Likewise.
644         (Gcc_backend::constructor_expression): Likewise.
645         (Gcc_backend::array_constructor_expression): Likewise.
646         (Gcc_backend::pointer_offset_expression): Likewise.
647         (Gcc_backend::array_index_expression): Likewise.
648         (Gcc_backend::call_expression): Likewise.
649         (Gcc_backend::exception_handler_statement): Likewise.
650         (Gcc_backend::function_defer_statement): Likewise.
651         (Gcc_backend::function_set_parameters): Likewise.
652         (Gcc_backend::function_set_body): Likewise.
653         (Gcc_backend::convert_expression): Handle various type
654         conversions.
656 2014-03-03  Ian Lance Taylor  <iant@google.com>
658         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
659         DECL_WEAK.
660         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
661         DECL_WEAK.
663 2014-01-24  Chris Manghane  <cmang@google.com>
665         * go-gcc.cc (Gcc_backend::unary_expression): New function.
667 2014-01-16  Chris Manghane  <cmang@google.com>
669         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
670         parameter.
671         (operator_to_tree_code): New static function.
672         (Gcc_backend::binary_expression): New function.
674 2014-01-14  Chris Manghane  <cmang@google.com>
676         * go-gcc.cc (Gcc_backend::compound_expression): New function.
677         (Gcc_backend::conditional_expression): New function.
679 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
681         Update copyright years
683 2014-01-02  Tobias Burnus  <burnus@net-b.de>
685         * gccgo.texi: Bump @copying's copyright year.
687 2013-12-16  Chris Manghane  <cmang@google.com>
689         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
691 2013-12-11  Ian Lance Taylor  <iant@google.com>
693         * go-lang.c (go_langhook_post_options): Disable sibling calls by
694         default.
696 2013-12-10  Ian Lance Taylor  <iant@google.com>
698         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
699         separately.
701 2013-12-05  Ian Lance Taylor  <iant@google.com>
703         Revert this change; no longer required.
704         2013-11-06  Ian Lance Taylor  <iant@google.com>
706         * go-lang.c (go_langhook_post_options): If
707         -fisolate-erroneous-paths was turned on by an optimization option,
708         turn it off.
710 2013-11-23  Ian Lance Taylor  <iant@google.com>
712         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
713         parameter.
715 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
717         * go-gcc.cc: Add required include files from gimple.h.
718         * go-lang.c: Likewise
720 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
722         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
723         tree_to_shwi throughout.
725 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
727         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
728         tree_fits_shwi_p throughout.
730 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
732         * go-lang.c: Include only gimplify.h and gimple.h as needed.
734 2013-11-14  Diego Novillo  <dnovillo@google.com>
736         * go-backend.c: Include stor-layout.h.
737         * go-gcc.cc: Include stringpool.h.
738         Include stor-layout.h.
739         Include varasm.h.
740         * go-lang.c: Include stor-layout.h.
742 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
744         * go-lang.c: Include gimplify.h.
746 2013-11-06  Ian Lance Taylor  <iant@google.com>
748         * go-lang.c (go_langhook_post_options): If
749         -fisolate-erroneous-paths was turned on by an optimization option,
750         turn it off.
752 2013-10-14  Chris Manghane  <cmang@google.com>
754         * go-gcc.cc (Gcc_backend::address_expression): New function.
756 2013-10-11  Chris Manghane  <cmang@google.com>
758         * go-gcc.cc (Gcc_backend::function_code_expression): New
759         function.
761 2013-10-10  Chris Manghane  <cmang@google.com>
763         * go-gcc.cc (Gcc_backend::error_function): New function.
764         (Gcc_backend::function): New function.
765         (Gcc_backend::make_function): New function.
766         (function_to_tree): New function.
768 2013-10-04  Chris Manghane  <cmang@google.com>
770         * go-gcc.cc (Gcc_backend::convert_expression): New function.
772 2013-10-02  Chris Manghane  <cmang@google.com>
774         * go-gcc.cc: Include "real.h" and "realmpfr.h".
775         (Gcc_backend::integer_constant_expression): New function.
776         (Gcc_backend::float_constant_expression): New function.
777         (Gcc_backend::complex_constant_expression): New function.
779 2013-09-30  Chris Manghane  <cmang@google.com>
781         * go-gcc.cc (Gcc_backend::error_expression): New function.
782         (Gcc_backend::var_expression): New function.
783         (Gcc_backend::indirect_expression): New function.
785 2013-09-25  Tom Tromey  <tromey@redhat.com>
787         * Make-lang.in (gospec.o): Remove.
788         (CFLAGS-go/gospec.o): New variable.
789         (GCCGO_OBJS): Update to use go/gospec.o.
790         (go_OBJS): Define.
791         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
792         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
793         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
794         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
795         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
796         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
797         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
798         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
799         (go/unsafe.o): Remove.
800         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
801         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
803 2013-09-25  Tom Tromey  <tromey@redhat.com>
805         * Make-lang.in (gospec.o): Don't use subshell.
807 2013-08-28  Ian Lance Taylor  <iant@google.com>
809         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
810         the struct is not hidden.
811         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
813 2013-08-06  Ian Lance Taylor  <iant@google.com>
815         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
816         compute_reloc_for_constant.
818 2013-08-02  Ian Lance Taylor  <iant@google.com>
820         * go-gcc.cc (immutable_struct_set_init): Always call
821         resolve_unique_section.
823 2013-07-24  Ian Lance Taylor  <iant@google.com>
825         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
826         fields, recreate those fields with the first one with a non-zero
827         size.
829 2013-07-23  Ian Lance Taylor  <iant@google.com>
831         * go-backend.c: Don't #include "rtl.h".
832         (go_imported_unsafe): Don't call init_varasm_once.
833         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
835 2013-07-23  Ian Lance Taylor  <iant@google.com>
837         * go-lang.c: Don't #include "except.h".
838         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
840 2013-06-18  Ian Lance Taylor  <iant@google.com>
842         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
843         parameter.
844         (Gcc_backend::immutable_struct_set_init): Likewise.
846 2013-05-16  Jason Merrill  <jason@redhat.com>
848         * Make-lang.in (go1$(exeext)): Use link mutex.
850 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
852         * gospec.c: pass -u pthread_create to linker when static linking.
854 2012-12-21  Ian Lance Taylor  <iant@google.com>
856         PR bootstrap/54659
857         * go-system.h: Don't include <cstdio>.
859 2012-12-18  Ian Lance Taylor  <iant@google.com>
861         PR go/55201
862         * gospec.c: Revert last patch.
864 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
866         PR go/55201
867         * gospec.c (LIBATOMIC): Define.
868         (LIBATOMIC_PROFILE): Define.
869         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
871 2012-11-29  Ian Lance Taylor  <iant@google.com>
873         * go-gcc.cc: Include "output.h".
874         (global_variable): Add is_unique_section parameter.
875         (global_variable_set_init): Adjust unique section if necessary.
876         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
878 2012-11-17  Diego Novillo  <dnovillo@google.com>
880         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
882         * go-lang.c: Use new vec API in vec.h.
884 2012-11-16  Ian Lance Taylor  <iant@google.com>
886         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
887         (go1$(exeext)): Likewise.
889 2012-10-30  Ian Lance Taylor  <iant@google.com>
891         * lang.opt (-fgo-relative-import-path): New option.
892         * go-lang.c (go_relative_import_path): New static variable.
893         (go_langhook_init): Pass go_relative_import_path to
894         go_create_gogo.
895         (go_langhook_handle_option): Handle -fgo-relative-import-path.
896         * go-c.h (go_create_gogo): Update declaration.
897         * gccgo.texi (Invoking gccgo): Document
898         -fgo-relative-import-path.
900 2012-09-17  Ian Lance Taylor  <iant@google.com>
902         * config-lang.in (target_libs): Add target-libbacktrace.
904 2012-09-16  Ian Lance Taylor  <iant@google.com>
906         * Make-lang.in (go/gogo.o): Depend on filenames.h.
908 2012-08-14   Diego Novillo  <dnovillo@google.com>
910         Merge from cxx-conversion branch.  Configury.
912         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
913         * go-gcc.cc: Likewise.
914         * go-system.h: Likewise.
916 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
918         * go-lang.c (lang_decl): Add variable_size GTY option.
920 2012-05-09  Ian Lance Taylor  <iant@google.com>
922         * lang.opt: Add -fgo-pkgpath.
923         * go-lang.c (go_pkgpath): New static variable.
924         (go_prefix): New static variable.
925         (go_langhook_init): Pass go_pkgpath and go_prefix to
926         go_create_gogo.
927         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
928         -fgo-prefix handling to just set go_prefix.
929         * go-c.h (go_set_prefix): Don't declare.
930         (go_create_gogo): Add pkgpath and prefix to declaration.
931         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
932         to pkgpath.  Don't include the package name in the asm name.
933         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
934         docs for -fgo-prefix.
936 2012-04-23  Ian Lance Taylor  <iant@google.com>
938         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
940 2012-04-20  Ian Lance Taylor  <iant@google.com>
942         * lang.opt: Add -fgo-check-divide-zero and
943         -fgo-check-divide-overflow.
944         * gccgo.texi (Invoking gccgo): Document new options.
946 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
948         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
949         with NULL_TREE type instead of void_type_node.
951 2012-03-09  Ian Lance Taylor  <iant@google.com>
953         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
954         to the lhs type if necessary.
956 2012-03-08  Ian Lance Taylor  <iant@google.com>
958         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
959         zero-sized variable.
960         (go_non_zero_struct): New global variable.
961         (Gcc_backend::non_zero_size_type): New function.
962         (Gcc_backend::global_variable): Don't build an assignment for a
963         zero-sized value.
964         * go-c.h (go_non_zero_struct): Declare.
965         * config-lang.in (gtfiles): Add go-c.h.
967 2012-02-29  Ian Lance Taylor  <iant@google.com>
969         * go-gcc.cc (class Gcc_tree): Add set_tree method.
970         (set_placeholder_pointer_type): When setting to a pointer to
971         error, set to error_mark_node.
973 2012-02-23  Richard Guenther  <rguenther@suse.de>
975         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
976         build_distinct_type_copy.
978 2012-02-17  Ian Lance Taylor  <iant@google.com>
980         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
982 2012-02-17  Ian Lance Taylor  <iant@google.com>
984         * gospec.c (lang_specific_driver): If linking, and no -o option
985         was used, add one.
987 2012-02-14  Ian Lance Taylor  <iant@google.com>
989         PR go/48411
990         * Make-lang.in (gccgo-cross$(exeext)): New target.
991         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
992         gccgo$(exeext).
993         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
994         gccgo-cross$(exeext) does not exist.
996 2012-02-07  Ian Lance Taylor  <iant@google.com>
998         * gccgo.texi (Function Names): Document //extern instead of
999         __asm__.
1001 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
1003         PR target/52079
1004         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1005         return build_nonstandard_integer_type result if possible.
1007 2012-01-21  Ian Lance Taylor  <iant@google.com>
1009         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1010         (Gcc_backend::type_alignment): Likewise.
1011         (Gcc_backend::type_field_alignment): Likewise.
1012         (Gcc_backend::type_field_offset): Likewise.
1014 2012-01-20  Ian Lance Taylor  <iant@google.com>
1016         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1017         be empty.
1018         (Gcc_backend::set_placeholder_struct_type): Likewise.
1020 2012-01-17  Ian Lance Taylor  <iant@google.com>
1022         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1023         BASE.s rather than -o BASE.o.
1025 2012-01-11  Ian Lance Taylor  <iant@google.com>
1027         * go-lang.c (go_langhook_init): Initialize void_list_node before
1028         calling go_create_gogo.
1030 2012-01-10  Ian Lance Taylor  <iant@google.com>
1032         * go-gcc.cc (Gcc_backend::type_size): New function.
1033         (Gcc_backend::type_alignment): New function.
1034         (Gcc_backend::type_field_alignment): New function.
1035         (Gcc_backend::type_field_offset): New function.
1036         * go-backend.c (go_type_alignment): Remove.
1037         * go-c.h (go_type_alignment): Don't declare.
1039 2011-12-27  Ian Lance Taylor  <iant@google.com>
1041         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1042         build_distinct_type_copy rather than build_variant_type_copy.
1043         (Gcc_backend::set_placeholder_array_type): Likewise.
1044         (Gcc_backend::named_type): Add special handling for builtin
1045         basic types.
1047 2011-12-22  Ian Lance Taylor  <iant@google.com>
1049         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1050         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1051         (Gcc_backend::set_placeholder_struct_type): Likewise.
1052         (Gcc_backend::set_placeholder_array_type): Likewise.
1053         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1055 2011-12-13  Ian Lance Taylor  <iant@google.com>
1057         * go-backend.c: #include "simple-object.h" and "intl.h".
1058         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1059         (GO_EXPORT_SECTION_NAME): Likewise.
1060         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1061         (go_read_export_data): New function.
1062         * go-c.h (go_read_export_data): Declare.
1064 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
1065             Ian Lance Taylor  <iant@google.com>
1067         * go-location.h: New file.
1068         * go-linemap.cc: New file.
1069         * go-gcc.cc: Change all uses of source_location to Location.
1070         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1071         (GO_LINEMAP_H): New variable.
1072         (GO_LEX_H): Use $(GO_LINEMAP_H).
1073         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1074         (go/go-linemap.o): New target.
1076 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1078         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1080 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
1082         * lang.opt: Add fgo-optimize-.
1083         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1084         * go-c.h (go_enable_optimize): Declare.
1085         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1086         (GO_EXPORT_H): Define.
1087         (GO_IMPORT_H): Add $(GO_EXPORT_H).
1088         (GO_AST_DUMP_H): Define.
1089         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1090         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1091         (go/types.o): Likewise.
1092         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1093         (go/go-optimize.o): New target.
1095 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1097         * Make-lang.in (CFLAGS-go/go-lang.o): New.
1098         (go/go-lang.o): Remove explicit compilation rule.
1100 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1102         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1104 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
1106         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1107         (go/ast-dump.o): New target.
1108         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1109         (go/statements.o): Likewise.
1111 2011-07-06  Richard Guenther  <rguenther@suse.de>
1113         * go-lang.c (go_langhook_init):
1114         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1116 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1118         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1119         dependencies.
1120         * go-backend.c: Include common/common-target.h.
1121         (go_write_export_data): Use targetm_common.have_named_sections.
1122         * go-lang.c: Include common/common-target.h.
1123         (go_langhook_init_options_struct): Use
1124         targetm_common.supports_split_stack.
1126 2011-06-13  Ian Lance Taylor  <iant@google.com>
1128         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1130 2011-06-10  Ian Lance Taylor  <iant@google.com>
1132         * go-gcc.cc: Include "toplev.h".
1133         (Gcc_backend::immutable_struct): New function.
1134         (Gcc_backend::immutable_struct_set_init): New function.
1135         (Gcc_backend::immutable_struct_reference): New function.
1136         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1138 2011-06-09  Ian Lance Taylor  <iant@google.com>
1140         * go-gcc.cc (Gcc_backend::zero_expression): New function.
1142 2011-06-07  Richard Guenther  <rguenther@suse.de>
1144         * go-lang.c (go_langhook_init): Do not set
1145         size_type_node or call set_sizetype.
1147 2011-05-27  Ian Lance Taylor  <iant@google.com>
1149         * go-backend.c: Include "output.h".
1150         (go_write_export_data): New function.
1151         * go-c.h (go_write_export_data): Declare.
1152         * Make-lang.in (go/go-backend.o): Depend on output.h.
1153         (go/export.o): Depend on $(GO_C_H).  Do not depend on
1154         $(MACHMODE_H), output.h, or $(TARGET_H).
1156 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1158         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1159         (gccgo$(exeext)): Use libcommon-target.a.
1161 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1163         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1165 2011-05-13  Ian Lance Taylor  <iant@google.com>
1167         * go-gcc.cc (Gcc_backend::function_type): When building a struct
1168         for multiple results, check that all fields types have a size.
1169         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1171 2011-05-12  Ian Lance Taylor  <iant@google.com>
1173         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1174         parameter.
1175         (Gcc_backend::parameter_variable): Likewise.
1177 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1179         * go-lang.c (global_bindings_p): Return bool and simplify.
1181 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1183         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1185 2011-05-04  Ian Lance Taylor  <iant@google.com>
1187         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1188         (Gcc_backend::fill_in_struct): New function.
1189         (Gcc_backend::array_type): Implement.
1190         (Gcc_backend::fill_in_array): New function.
1191         (Gcc_backend::placeholder_pointer_type): New function.
1192         (Gcc_backend::set_placeholder_pointer_type): New function.
1193         (Gcc_backend::set_placeholder_function_type): New function.
1194         (Gcc_backend::placeholder_struct_type): New function.
1195         (Gcc_backend::set_placeholder_struct_type): New function.
1196         (Gcc_backend::placeholder_array_type): New function.
1197         (Gcc_backend::set_placeholder_array_type): New function.
1198         (Gcc_backend::named_type): New function.
1199         (Gcc_backend::circular_pointer_type): New function.
1200         (Gcc_backend::is_circular_pointer_type): New function.
1202 2011-04-26  Ian Lance Taylor  <iant@google.com>
1204         * go-gcc.cc (Gcc_backend::struct_type): Implement.
1206 2011-04-25  Ian Lance Taylor  <iant@google.com>
1208         * go-gcc.cc (Gcc_backend::error_type): Implement.
1209         (Gcc_backend::string_type): Remove.
1210         (Gcc_backend::function_type): Change signature and implement.
1211         (Gcc_backend::struct_type): Change signature.
1212         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1213         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1214         (Gcc_backend::pointer_type): Check for error.
1215         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1217 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
1219         * go-gcc.c (class Gcc_tree): Make get_tree const.
1220         (Gcc_backend::void_type): Implement.
1221         (Gcc_backend::bool_type): Implement.
1222         (Gcc_backend::integer_type): Implement.
1223         (Gcc_backend::float_type): Implement.
1224         (Gcc_backend::complex_type): New function.
1225         (Gcc_backend::pointer_type): New function.
1226         (Gcc_backend::make_type): New function.
1227         (type_to_tree): New function.
1229 2011-04-21  Ian Lance Taylor  <iant@google.com>
1231         * go-system.h (go_assert, go_unreachable): Define.
1233 2011-04-19  Ian Lance Taylor  <iant@google.com>
1235         * go-system.h: Include "intl.h".
1236         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1237         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1238         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1240 2011-04-19  Ian Lance Taylor  <iant@google.com>
1242         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1244 2011-04-19  Ian Lance Taylor  <iant@google.com>
1246         * go-gcc.cc (class Bblock): Define.
1247         (Gcc_backend::if_statement): Change then_block and else_block to
1248         Bblock*.
1249         (Gcc_backend::block): New function.
1250         (Gcc_backend::block_add_statements): New function.
1251         (Gcc_backend::block_statement): New function.
1252         (tree_to_block, block_to_tree): New functions.
1254 2011-04-18  Ian Lance Taylor  <iant@google.com>
1256         * go-gcc.cc: Include "go-c.h".
1257         (class Bvariable): Define.
1258         (Gcc_backend::init_statement): New function.
1259         (Gcc_backend::global_variable): New function.
1260         (Gcc_backend::global_variable_set_init): New function.
1261         (Gcc_backend::local_variable): New function.
1262         (Gcc_backend::parameter_variable): New function.
1263         (tree_to_type, var_to_tree): New functions.
1264         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1265         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1267 2011-04-15  Ian Lance Taylor  <iant@google.com>
1269         * go-gcc.cc (Gcc_backend::compound_statement): New function.
1270         (Gcc_backend::assignment_statement): Use error_statement.
1271         (Gcc_backend::return_statement): Likewise.
1272         (Gcc_backend::if_statement): Likewise.
1273         (Gcc_backend::switch_statement): Likewise.
1274         (Gcc_backend::statement_list): Likewise.
1276 2011-04-14  Ian Lance Taylor  <iant@google.com>
1278         * go-gcc.cc (Gcc_backend::error_statement): New function.
1280 2011-04-13  Ian Lance Taylor  <iant@google.com>
1282         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1284 2011-04-13  Ian Lance Taylor  <iant@google.com>
1286         * Make-lang.in (GO_OBJS): Add go/runtime.o.
1287         (GO_RUNTIME_H): New variable.
1288         (go/runtime.o): New target.
1289         (go/gogo.o): Depend on $(GO_RUNTIME_H).
1290         (go/statements.o): Likewise.
1292 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1294         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1295         calling TREE_CHAIN.
1297 2011-04-06  Ian Lance Taylor  <iant@google.com>
1299         * go-gcc.cc (if_statement): Use build3_loc.
1300         (Gcc_backend::switch_statement): New function.
1301         (Gcc_backend::statement_list): New function.
1303 2011-04-06  Ian Lance Taylor  <iant@google.com>
1305         * go-gcc.cc (Gcc_backend::if_statement): New function.
1306         (tree_to_stat): New function.
1307         (expr_to_tree): Renamed from expression_to_tree.
1308         (stat_to_tree): Renamed from statement_to_tree.
1310 2011-04-06  Ian Lance Taylor  <iant@google.com>
1312         * go-gcc.cc (Gcc_backend::expression_statement): New function.
1314 2011-04-04  Ian Lance Taylor  <iant@google.com>
1316         * go-gcc.c (class Blabel): Define.
1317         (Gcc_backend::make_expression): New function.
1318         (get_identifier_from_string): New function.
1319         (Gcc_backend::label): New function.
1320         (Gcc_backend::label_definition_statement): New function.
1321         (Gcc_backend::goto_statement): New function.
1322         (Gcc_backend::label_address): New function.
1323         (expression_to_tree): New function.
1324         * Make-lang.in (go/expressions.o): Depend on
1325         go/gofrontend/backend.h.
1326         (go/gogo.o): Likewise.
1328 2011-04-04  Ian Lance Taylor  <iant@google.com>
1330         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1331         (class Bfunction): Define.
1332         (Gcc_backend::assignment_statement): Rename from assignment.
1333         Check for errors.
1334         (Gcc_backend::return_statement): New function.
1335         (tree_to_function): New function.
1336         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1337         $(GIMPLE_H), and $(GO_GOGO_H).
1339 2011-04-03  Ian Lance Taylor  <iant@google.com>
1341         * go-gcc.cc: New file.
1342         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1343         (go/go-gcc.o): New target.
1344         (go/go.o): Depend on go/gofrontend/backend.h.
1345         (go/statements.o): Likewise.
1347 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1349         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1351 2011-02-08  Ian Lance Taylor  <iant@google.com>
1353         * go-lang.c (go_langhook_init_options_struct): Set
1354         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
1356 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1358         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1359         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1361 2011-01-21  Ian Lance Taylor  <iant@google.com>
1363         * go-lang.c (go_langhook_init): Omit float_type_size when calling
1364         go_create_gogo.
1365         * go-c.h: Update declaration of go_create_gogo.
1367 2011-01-13  Ian Lance Taylor  <iant@google.com>
1369         * go-backend.c: Include "rtl.h" and "target.h".
1370         (go_imported_unsafe): New function.
1371         * go-c.h (go_imported_unsafe): Declare.
1372         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1373         (go/gogo-tree.o): Remove dependency on $(RTL_H).
1374         (go/unsafe.o): Depend on $(GO_C_H).
1376 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
1378         PR go/47113
1379         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1380         variable ‘field’ .
1382 2010-12-21  Ian Lance Taylor  <iant@google.com>
1384         * Make-lang.in (check-go): Remove.
1385         (lang_checks_parallelized): Add check-go.
1386         (check_go_parallelize): Set.
1388 2010-12-13  Ian Lance Taylor  <iant@google.com>
1390         * gospec.c (lang_specific_driver): Add a -o option if not linking
1391         and there is no -o option already.
1393 2010-12-07  Ian Lance Taylor  <iant@google.com>
1395         PR tree-optimization/46805
1396         PR tree-optimization/46833
1397         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1399 2010-12-06  Ian Lance Taylor  <iant@google.com>
1401         PR other/46789
1402         PR bootstrap/46812
1403         * go-lang.c (go_char_p): Define type and vectors.
1404         (go_search_dirs): New static variable.
1405         (go_langhook_handle_option): Use version and version/machine
1406         directories for -L.
1407         (go_langhook_post_options): Add non-specific -L paths.
1408         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1409         DEFAULT_TARGET_MACHINE when compiling.
1410         * gccgo.texi (Invoking gccgo): Only document -L for linking.
1411         (Import and Export): Don't mention -L for finding import files.
1413 2010-12-03  Ian Lance Taylor  <iant@google.com>
1415         PR bootstrap/46776
1416         * go-backend.c: New file.
1417         * go-c.h (go_type_alignment): Declare.
1418         (go_field_alignment, go_trampoline_info): Declare.
1419         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1420         (go/go-backend.o): New target.
1421         (go/go-lang.o): Make dependencies match source file.
1422         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1423         (go/gogo-tree.o): Don't depend on $(TM_H).
1425 2010-12-03  Ian Lance Taylor  <iant@google.com>
1427         * config-lang.in (build_by_default): Set to no.
1429 2010-12-02  Ian Lance Taylor  <iant@google.com>
1431         Go frontend added to gcc repository.
1433 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1435 Copying and distribution of this file, with or without modification,
1436 are permitted in any medium without royalty provided the copyright
1437 notice and this notice are preserved.