hppa: Fix REG+D address support before reload
[official-gcc.git] / gcc / go / ChangeLog
blob4ad6d4b7ba317a7fe0e3028061d4e815919881b5
1 2024-01-04  David Malcolm  <dmalcolm@redhat.com>
3         * lang.opt.urls: New file, autogenerated by
4         regenerate-opt-urls.py.
6 2024-01-03  Jakub Jelinek  <jakub@redhat.com>
8         * gccgo.texi: Bump @copyrights-go year.
10 2023-07-05  Robin Dapp  <rdapp@ventanamicro.com>
11             Juzhe-Zhong  <juzhe.zhong@rivai.ai>
13         * go-lang.cc (go_langhook_type_for_mode): Ditto.
15 2023-06-26  Ian Lance Taylor  <iant@golang.org>
17         * lang.opt (fgo-importcfg): New option.
18         * go-c.h (struct go_create_gogo_args): Add importcfg field.
19         * go-lang.cc (go_importcfg): New static variable.
20         (go_langhook_init): Set args.importcfg.
21         (go_langhook_handle_option): Handle -fgo-importcfg.
22         * gccgo.texi (Invoking gccgo): Document -fgo-importcfg.
24 2023-06-22  Paul E. Murphy  <murphyp@linux.ibm.com>
26         * go-backend.cc [TARGET_AIX]: Rename and update usage to TARGET_AIX_OS.
27         * go-lang.cc: Likewise.
29 2023-03-24  Jakub Jelinek  <jakub@redhat.com>
31         PR middle-end/109258
32         * go-gcc.cc (Gcc_backend): Add new static data members builtin_pure
33         and builtin_nothrow.
34         (Gcc_backend::Gcc_backend): Pass builtin_pure | builtin_nothrow for
35         BUILT_IN_MEMCMP.
36         (Gcc_backend::define_builtin): Handle builtin_pure and builtin_nothrow
37         in flags.
39 2023-02-23  Arsen Arsenović  <arsen@aarsen.me>
41         * gccgo.texi: Reorder index entries around @items.
43 2023-01-17  Ian Lance Taylor  <iant@golang.org>
45         PR go/108426
46         * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_ctzl and
47         __builtin_clzl.  Patch by Andrew Pinski.
49 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
51         * gccgo.texi: Bump @copyrights-go year.
53 2022-11-14  Martin Liska  <mliska@suse.cz>
55         Revert:
56         2022-11-14  Martin Liska  <mliska@suse.cz>
58         * doc/c-interoperability.rst: New file.
59         * doc/c-type-interoperability.rst: New file.
60         * doc/compiler-directives.rst: New file.
61         * doc/conf.py: New file.
62         * doc/copyright.rst: New file.
63         * doc/function-names.rst: New file.
64         * doc/general-public-license-3.rst: New file.
65         * doc/gnu-free-documentation-license.rst: New file.
66         * doc/import-and-export.rst: New file.
67         * doc/index.rst: New file.
68         * doc/indices-and-tables.rst: New file.
69         * doc/introduction.rst: New file.
70         * doc/invoking-gccgo.rst: New file.
72 2022-11-14  Martin Liska  <mliska@suse.cz>
74         Revert:
75         2022-11-14  Martin Liska  <mliska@suse.cz>
77         * Make-lang.in: Support Sphinx based documentation.
79 2022-11-14  Martin Liska  <mliska@suse.cz>
81         Revert:
82         2022-11-14  Martin Liska  <mliska@suse.cz>
84         * gccgo.texi: Removed.
86 2022-11-14  Martin Liska  <mliska@suse.cz>
88         Revert:
89         2022-11-14  Martin Liska  <mliska@suse.cz>
91         * Make-lang.in: Support --with-sphinx-build.
93 2022-11-14  Martin Liska  <mliska@suse.cz>
95         Revert:
96         2022-11-14  Martin Liska  <mliska@suse.cz>
98         * Make-lang.in:
99         Support installation if sphinx-build is missing.
100         Support installation if sphinx-build is missing.
102 2022-11-14  Martin Liska  <mliska@suse.cz>
104         Revert:
105         2022-11-14  Martin Liska  <mliska@suse.cz>
107         * doc/c-interoperability.rst:
108         Add trailing newline.
109         * doc/c-type-interoperability.rst:
110         Add trailing newline.
111         * doc/compiler-directives.rst:
112         Add trailing newline.
113         * doc/copyright.rst:
114         Add trailing newline.
115         * doc/function-names.rst:
116         Add trailing newline.
117         * doc/general-public-license-3.rst:
118         Add trailing newline.
119         * doc/gnu-free-documentation-license.rst:
120         Add trailing newline.
121         * doc/import-and-export.rst:
122         Add trailing newline.
123         * doc/index.rst:
124         Add trailing newline.
125         * doc/indices-and-tables.rst:
126         Add trailing newline.
127         * doc/introduction.rst:
128         Add trailing newline.
129         * doc/invoking-gccgo.rst:
130         Add trailing newline.
132 2022-11-14  Martin Liska  <mliska@suse.cz>
134         Revert:
135         2022-11-14  Martin Liska  <mliska@suse.cz>
137         * doc/conf.py: Add newline at last line.
139 2022-11-10  Martin Liska  <mliska@suse.cz>
141         * doc/conf.py: Add newline at last line.
143 2022-11-10  Ian Lance Taylor  <iant@golang.org>
145         PR target/107581
146         * go-gcc.cc (Gcc_backend::Gcc_backend): Define
147         __atomic_fetch_add_{4,8}.
149 2022-11-09  Martin Liska  <mliska@suse.cz>
151         * doc/c-interoperability.rst:
152         Add trailing newline.
153         * doc/c-type-interoperability.rst:
154         Add trailing newline.
155         * doc/compiler-directives.rst:
156         Add trailing newline.
157         * doc/copyright.rst:
158         Add trailing newline.
159         * doc/function-names.rst:
160         Add trailing newline.
161         * doc/general-public-license-3.rst:
162         Add trailing newline.
163         * doc/gnu-free-documentation-license.rst:
164         Add trailing newline.
165         * doc/import-and-export.rst:
166         Add trailing newline.
167         * doc/index.rst:
168         Add trailing newline.
169         * doc/indices-and-tables.rst:
170         Add trailing newline.
171         * doc/introduction.rst:
172         Add trailing newline.
173         * doc/invoking-gccgo.rst:
174         Add trailing newline.
176 2022-11-09  Martin Liska  <mliska@suse.cz>
178         * Make-lang.in:
179         Support installation if sphinx-build is missing.
180         Support installation if sphinx-build is missing.
182 2022-11-09  Martin Liska  <mliska@suse.cz>
184         * Make-lang.in: Support --with-sphinx-build.
186 2022-11-09  Martin Liska  <mliska@suse.cz>
188         * gccgo.texi: Removed.
190 2022-11-09  Martin Liska  <mliska@suse.cz>
192         * Make-lang.in: Support Sphinx based documentation.
194 2022-11-09  Martin Liska  <mliska@suse.cz>
196         * doc/c-interoperability.rst: New file.
197         * doc/c-type-interoperability.rst: New file.
198         * doc/compiler-directives.rst: New file.
199         * doc/conf.py: New file.
200         * doc/copyright.rst: New file.
201         * doc/function-names.rst: New file.
202         * doc/general-public-license-3.rst: New file.
203         * doc/gnu-free-documentation-license.rst: New file.
204         * doc/import-and-export.rst: New file.
205         * doc/index.rst: New file.
206         * doc/indices-and-tables.rst: New file.
207         * doc/introduction.rst: New file.
208         * doc/invoking-gccgo.rst: New file.
210 2022-09-15  Richard Biener  <rguenther@suse.de>
212         * go-lang.cc (go_langhook_init): Do not initialize
213         void_list_node.
215 2022-09-02  Martin Liska  <mliska@suse.cz>
217         * go-lang.cc (go_langhook_pushdecl): Remove -gstabs option support, DBX-related
218         macros and DBX debugging info support.
219         * gospec.cc (lang_specific_driver): Likewise.
221 2022-07-16  Ian Lance Taylor  <iant@golang.org>
223         * go-gcc.cc (Gcc_backend::struct_field_expression): Handle a void
224         expression, as for f().x where f returns a zero-sized type.
226 2022-07-15  Ian Lance Taylor  <iant@golang.org>
228         * go-gcc.cc (Gcc_backend::call_expression): Handle a void
229         argument, as for f(g()) where g returns a zero-sized type.
231 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
233         * go-lang.cc (go_get_sarif_source_language): New.
234         (LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine.
236 2022-05-31  Jason Merrill  <jason@redhat.com>
238         * Make-lang.in (go.tags): Look at *.cc.
240 2022-02-13  Ian Lance Taylor  <iant@golang.org>
242         * gospec.cc: Revert 2022-02-09 change:
243         (RTLIB, RT_LIBRARY): Don't define.
244         (lang_specific_driver): Don't add -lrt if linking statically
245         on GNU/Linux.
247 2022-02-09  Ian Lance Taylor  <iant@golang.org>
249         * gospec.cc (RTLIB, RT_LIBRARY): Define.
250         (lang_specific_driver): Add -lrt if linking statically on
251         GNU/Linux.
253 2022-02-09  Ian Lance Taylor  <iant@golang.org>
255         * go-gcc.cc (Gcc_backend::Gcc_backend): Define builtins
256         __atomic_load_1 and __atomic_store_1.
258 2022-01-17  Martin Liska  <mliska@suse.cz>
260         * config-lang.in: Rename .c names to .cc.
261         * go-backend.cc: Likewise.
262         * go-lang.cc: Likewise.
263         * gospec.cc: Likewise.
264         * lang-specs.h: Likewise.
266 2022-01-17  Martin Liska  <mliska@suse.cz>
268         * go-backend.c: Moved to...
269         * go-backend.cc: ...here.
270         * go-lang.c: Moved to...
271         * go-lang.cc: ...here.
272         * gospec.c: Moved to...
273         * gospec.cc: ...here.
275 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
277         * gccgo.texi: Bump @copyrights-go year.
279 2021-12-28  Martin Liska  <mliska@suse.cz>
281         * gccgo.texi: Replace http:// with https.
283 2021-11-29  Eric Gallager  <egallager@gcc.gnu.org>
285         PR other/103021
286         * Make-lang.in: Use ETAGS variable in TAGS target.
288 2021-09-27  Martin Liska  <mliska@suse.cz>
290         * go-lang.c (go_langhook_init_options_struct): Set also
291         x_flag_default_complex_method.
293 2021-06-29  Ian Lance Taylor  <iant@golang.org>
295         * go-gcc.cc (Gcc_backend::static_chain_variable): Set
296         DECL_NAMELESS on the new decl.
297         (Gcc_backend::temporary_variable): Likewise.
298         (Gcc_backend::function): Set DECL_NAMELESS on the result decl.
300 2021-05-27  Ian Lance Taylor  <iant@golang.org>
302         * gccgo.texi (Function Names): Don't HTML quote ampersand.
304 2021-05-24  Ian Lance Taylor  <iant@golang.org>
306         PR go/100537
307         * go-gcc.cc (class Gcc_backend): Update methods that create
308         variables to take a flags parameter.
310 2021-01-28  Ian Lance Taylor  <iant@golang.org>
312         * gospec.c (lang_specific_driver): Add -g if no debugging options
313         were passed.
315 2021-01-15  Ian Lance Taylor  <iant@golang.org>
317         * Make-lang.in (GO_OBJS): Add go/embed.o.
319 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
321         * lang.opt (fgo-embedcfg=): Add full stop at the end of description.
323 2021-01-05  Ian Lance Taylor  <iant@golang.org>
325         * lang.opt (fgo-embedcfg): New option.
326         * go-c.h (struct go_create_gogo_args): Add embedcfg field.
327         * go-lang.c (go_embedcfg): New static variable.
328         (go_langhook_init): Set go_create_gogo_args embedcfg field.
329         (go_langhook_handle_option): Handle OPT_fgo_embedcfg_.
330         * gccgo.texi (Invoking gccgo): Document -fgo-embedcfg.
332 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
334         * gccgo.texi: Bump @copyrights-go year.
336 2020-12-22  Ian Lance Taylor  <iant@golang.org>
338         PR go/98402
339         * go-lang.c (go_langhook_init): Force MPFR exponent range to be
340         large enough to support Go constants.
342 2020-11-20  Jakub Jelinek  <jakub@redhat.com>
344         PR other/97911
345         * Make-lang.in (go.serial): Change from goal to a variable.
346         (.PHONY): Drop go.serial and go.prev.
347         (go1$(exeext)): Depend on $(go.serial) rather than go.serial.
349 2020-11-18  Jakub Jelinek  <jakub@redhat.com>
351         * Make-lang.in (go.serial): New goal.
352         (.PHONY): Add go.serial go.prev.
353         (go1$(exeext)): Depend on go.prev.  Call LINK_PROGRESS.
355 2020-11-11  Alan Modra  <amodra@gmail.com>
357         * go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to
358         avoid ambiguous overloaded call.
360 2020-11-06  Nathan Sidwell  <nathan@acm.org>
362         * go-gcc.cc (Gcc_backend::call_expression): Rename
363         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
365 2020-11-04  Ian Lance Taylor  <iant@golang.org>
367         * go-lang.c (go_langhook_post_options): Disable
368         -fipa-icf-functions if it was not explicitly enabled.
370 2020-09-14  Jakub Jelinek  <jakub@redhat.com>
372         * go-gcc.cc (Gcc_backend::function): Adjust
373         cl_optimization_save, cl_optimization_restore and
374         build_optimization_node callers.
376 2020-08-10  Clément Chigot  <chigot.c@gmail.com>
378         * go-c.h (struct go_create_gogo_args): Add need_eqtype field.
379         * go-lang.c (go_langhook_init): Set need_eqtype.
381 2020-04-15  Ian Lance Taylor  <iant@golang.org>
383         PR go/94607
384         * go-gcc.cc (class Gcc_backend): Define builtin_const,
385         builtin_noreturn, builtin_novops.
386         (Gcc_backend::define_builtin): Change const_p and noreturn_p
387         parameters to a single flags parameter.  Change all callers.
388         (Gcc_backend::Gcc_backend): Pass novops for prefetch.
390 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
392         Update copyright years.
394         * gccgo.texi: Bump @copyrights-go year.
396 2019-11-12  Martin Liska  <mliska@suse.cz>
398         * go-lang.c (go_langhook_post_options):
399         Use SET_OPTION_IF_UNSET.
401 2019-09-04  Ian Lance Taylor  <iant@golang.org>
403         PR tree-optimization/91663
404         * go-lang.c (go_langhook_post_options): Clear
405         flag_partial_inlining.
407 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
409         PR middle-end/91283
410         * go-lang.c (go_langhook_post_options): Set flag_excess_precision
411         instead of flag_excess_precision_cmdline.
413 2019-07-02  Cherry Zhang  <cherryyz@google.com>
415         * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_memset.
417 2019-06-21  Cherry Zhang  <cherryyz@google.com>
419         * go-gcc.cc (Gcc_backend::Gcc_backend): Define math/bits
420         builtins.
422 2019-05-30  Jim Wilson  <jimw@sifive.com>
424         * go-gcc.cc (Gcc_backend::Gcc_backend): Add BUILT_IN_ATOMIC_FETCH_AND_1
425         and BUILT_IN_ATOMIC_FETCH_OR_1.
427 2019-05-16  Cherry Zhang  <cherryyz@google.com>
429         * go-gcc.cc (Gcc_backend::Gcc_backend): Define atomic builtins.
431 2019-05-08  Cherry Zhang  <cherryyz@google.com>
433         * go-gcc.cc (Gcc_backend::Gcc_backend): Define memmove builtin.
435 2019-05-07  Cherry Zhang  <cherryyz@google.com>
437         * lang.opt (-fgo-debug-optimization): New option.
438         * go-c.h (struct go_create_gogo_args): Add debug_optimization
439         field.
440         * go-lang.c (go_langhook_init): Set debug_optimization field.
441         * gccgo.texi (Invoking gccgo): Document -fgo-debug-optimization.
443 2019-03-06  Ian Lance Taylor  <iant@golang.org>
445         PR go/89227
446         * go-gcc.cc (Gcc_backend::function): Set TREE_PUBLIC for an
447         only-inline function.
449 2019-02-15  Cherry Zhang  <cherryyz@google.com>
451         * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_dwarf_cfa
452         instead of __builtin_frame_address.
454 2019-02-14  Ian Lance Taylor  <iant@golang.org>
456         * go-backend.c (go_imported_unsafe): Update
457         optimization_default_node.
459 2019-02-13  Ian Lance Taylor  <iant@golang.org>
461         * go-gcc.cc: #include "opts.h".
462         (Gcc_backend::function): Compile thunks with -Os.
464 2019-02-05  Nikhil Benesch  <nikhil.benesch@gmail.com>
466         PR go/89019
467         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Mark
468         placeholder structs as requiring structural equality.
469         (Gcc_backend::set_placeholder_pointer_type): Propagate the
470         canonical type from the desired pointer type to the placeholder
471         pointer type.
473 2019-01-09  Ian Lance Taylor  <iant@golang.org>
475         PR go/86343
476         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Go back to
477         build_distinct_type_copy, but copy the fields so that they have
478         the right DECL_CONTEXT.
480 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
482         PR other/16615
484         * go-backend.c: Mechanically replace "can not" with "cannot".
485         * go-gcc.cc: Likewise.
487 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
489         Update copyright years.
491         * gccgo.texi: Bump @copyrights-go year.
493 2018-11-27  Ian Lance Taylor  <iant@golang.org>
495         * go-gcc.cc (Gcc_backend::function): Handle function_only_inline
496         flag.
498 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
500         * go-gcc-diagnostics.cc: Replace "source_location" with "location_t".
501         * go-gcc.cc: Likewise.
502         * go-linemap.cc: Likewise.
503         * go-location.h: Likewise.
504         * gofrontend/README: Likewise.
506 2018-10-31  Ian Lance Taylor  <iant@golang.org>
508         * go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
509         gimplify_function_tree.  Instead call allocate_struct_function if
510         necessary.
512 2018-10-29  Ian Lance Taylor  <iant@golang.org>
514         * go-gcc.cc (Gcc_backend::function): Change to use a single flags
515         parameter.
517 2018-10-29  Ian Lance Taylor  <iant@golang.org>
519         * go-linemap.cc (Gcc_linemap::location_file): New method.
521 2018-10-17  David Malcolm  <dmalcolm@redhat.com>
523         * Make-lang.in (selftest-go): New.
525 2018-09-20  Allan Sandfeld Jensen  <allan.jensen@qt.io>
527         * gospec.c (lang_specific_driver): Handle -r like -nostdlib.
529 2018-08-27  Martin Liska  <mliska@suse.cz>
531         * go-gcc.cc (Gcc_backend::call_expression): Use new function
532         fndecl_built_in_p and remove check for FUNCTION_DECL if
533         possible.
535 2018-07-20  Martin Sebor  <msebor@redhat.com>
537         PR middle-end/82063
538         * go-lang.c (go_langhook_handle_option): Change function argument
539         to HOST_WIDE_INT.
541 2018-06-28  Ian Lance Taylor  <iant@golang.org>
543         PR go/86343
544         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
545         build_variant_type_copy rather than build_distinct_type_copy.
547 2018-06-08  Cherry Zhang  <cherryyz@google.com>
549         * go-gcc.cc (class Gcc_backend): Remove
550         stack_allocation_expression method.
552 2018-02-03  Ian Lance Taylor  <iant@golang.org>
554         * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
555         using structural equality.
557 2018-02-02  Ian Lance Taylor  <iant@golang.org>
559         * go-gcc.cc (Gcc_backend::type_size): Return 0 for
560         void_type_node.
561         (Gcc_backend::convert_expression): Don't convert if the type of
562         expr_tree is void_type_node.
563         (Gcc_backend::array_index_expression): Don't index if the type of
564         the array expression is void_type_node.
565         (Gcc_backend::init_statement): Don't initialize if the type of the
566         initializer expression is void_type_node.
567         (Gcc_backend::assignment_statement): Don't assign if the type of
568         either the left or right hand side is void_type_node.
569         (Gcc_backend::temporary_variable): Don't initialize if the type of
570         the initializer expression is void_type_node.
572 2018-02-01  Cherry Zhang  <cherryyz@google.com>
574         * lang.opt (fgo-optimize): Remove RejectNegative.
575         * go-c.h (go_enable_optimize): Update declaration to take value
576         argument.
577         * go-lang.c (go_langhook_handle_option): Pass value to
578         go_enable_optimize.
579         * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
581 2018-01-30  Ian Lance Taylor  <iant@golang.org>
583         * go-gcc.cc (Gcc_backend::convert_tree): New private method.
584         (Gcc_backend::constructor_expression): Call it.
585         (Gcc_backend::assignment_statement): Likewise.
586         (Gcc_backend::temporary_variable): Likewise.
588 2018-01-09  Cherry Zhang  <cherryyz@google.com>
590         * go-gcc.cc (local_variable): Add decl_var parameter.
592 2018-01-09  Cherry Zhang  <cherryyz@google.com>
594         * lang.opt (fgo-debug-escape-hash): New option.
595         * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
596         field.
597         * go-lang.c (go_langhook_init): Set debug_escape_hash field.
598         * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
600 2018-01-05  Ian Lance Taylor  <iant@golang.org>
602         * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
603         math_function_type_long to take one argument.
605 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
606             Alan Hayward  <alan.hayward@arm.com>
607             David Sherwood  <david.sherwood@arm.com>
609         * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
611 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
612             Alan Hayward  <alan.hayward@arm.com>
613             David Sherwood  <david.sherwood@arm.com>
615         * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
617 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
619         Update copyright years.
621         * gccgo.texi: Bump @copyrights-go year.
623 2017-12-12  Tony Reix  <tony.reix@atos.net>
624             Ian Lance Taylor  <iant@golang.org>
626         * go-lang.c (TARGET_AIX): Define if not defined.
627         (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
629 2017-12-01  Ian Lance Taylor  <iant@golang.org>
631         * go-gcc.cc (Gcc_backend::Gcc_backend): Define
632         __builtin_unreachable.
633         (Gcc_backend::function): Add does_not_return parameter.
635 2017-12-01  Than McIntosh  <thanm@google.com>
637         * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
638         field.
639         * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
641 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
643         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
644         build2_loc instead of build3_loc.
646 2017-11-14  Than McIntosh  <thanm@google.com>
648         * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
650 2017-10-11  Tony Reix  <tony.reix@atos.net>
652         * go-system.h (__STDC_FORMAT_MACROS): Define before including any
653         system header files, as is done in ../system.h.
655 2017-10-05  Ian Lance Taylor  <iant@golang.org>
657         * Make-lang.in (GO_OBJS): Add go/names.o.
659 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
660             Alan Hayward  <alan.hayward@arm.com>
661             David Sherwood  <david.sherwood@arm.com>
663         * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
665 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
666             Alan Hayward  <alan.hayward@arm.com>
667             David Sherwood  <david.sherwood@arm.com>
669         * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
671 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
672             Alan Hayward  <alan.hayward@arm.com>
673             David Sherwood  <david.sherwood@arm.com>
675         * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
677 2017-08-07  Martin Liska  <mliska@suse.cz>
679         * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
680         and not __no_split_stack__.
682 2017-07-27    Tony Reix  <tony.reix@atos.net>
684         * go-backend.c (go_write_export_data): Use EXCLUDE section for
685         AIX.
687 2017-06-09  Ian Lance Taylor  <iant@golang.org>
689         * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
690         on, disable implicit -forder-blocks-and-partition.
692 2017-05-12  Than McIntosh  <thanm@google.com>
694         * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
696 2017-05-11  Ian Lance Taylor  <iant@google.com>
698         PR go/64238
699         * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
700         DECL_EXTERNAL, clear TREE_STATIC.
702 2017-05-10  Than McIntosh  <thanm@google.com>
704         * go-backend.c: Include "go-c.h".
705         * go-gcc.cc (Gcc_backend::write_export_data): New method.
707 2017-05-10  Ian Lance Taylor  <iant@google.com>
709         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
710         __builtin_prefetch.
711         * Make-lang.in (GO_OBJS): Add go/wb.o.
713 2017-03-28  Than McIntosh  <thanm@google.com>
715         PR go/80226
716         * go-gcc.cc (Gcc_backend::return_statement): Check for
717         void_type_node when checking result size.
719 2017-02-20  Ian Lance Taylor  <iant@golang.org>
721         PR go/79642
722         * lang.opt (-fgo-relative-import-path): Change space to tab.
724 2017-02-07  Richard Biener  <rguenther@suse.de>
726         PR tree-optimization/79256
727         PR middle-end/79278
728         * go-backend.c (go_field_alignment): Adjust.
730 2017-01-11  Than McIntosh  <thanm@google.com>
732         * go-gcc.cc (conditional_expression): Add Bfunction parameter.
734 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
736         Update copyright years.
738         * gccgo.texi: Bump @copyrights-go year.
740 2016-12-16  Than McIntosh  <thanm@google.com>
742         * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
743         parameter.
744         (Gcc_backend::init_statement): Likewise.
745         (Gcc_backend::assignment_statement): Likewise.
746         (Gcc_backend::if_statement): Likewise.
748 2016-12-06  Than McIntosh  <thanm@google.com>
750         * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
751         parameter.
753 2016-11-22  Than McIntosh  <thanm@google.com>
755         * go-gcc.cc (char_needs_encoding): Remove.
756         (needs_encoding, fetch_utf8_char, encode_id): Remove.
757         (Gcc_backend::global_variable): Add asm_name parameter.  Don't
758         compute asm_name here.
759         (Gcc_backend::implicit_variable): Likewise.
760         (Gcc_backend::implicit_variable_reference): Likewise.
761         (Gcc_backend::immutable_struct): Likewise.
762         (Gcc_backend::immutable_struct_reference): Likewise.
763         * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
765 2016-11-22  Ian Lance Taylor  <iant@google.com>
767         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
768         __builtin_frame_address.
770 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
772         * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
773         from result of GET_MODE_CLASS.  Minor formatting fixes.
775 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
777         * go-backend.c: Include memmodel.h.
779 2016-10-10  Than McIntosh  <thanm@google.com>
781         * go-gcc.h: New file.
782         * go-c.h (struct go_create_gogo_args): Add backend and linemap
783         fields.
784         * go-lang.c: Include "go-gcc.h".
785         (go_langhook_init): Set linemap and backend fields of args.
786         * go-gcc.cc: Include "go-gcc.h".
787         * go-linemap.cc: Include "go-gcc.h".
789 2016-10-10  Than McIntosh  <thanm@google.com>
791         * go-linemap.cc (Gcc_linemap::location_line): New method.
793 2016-10-10  Eric Botcazou  <ebotcazou@adacore.com>
795         * config-lang.in (lang_requires_boot_languages): Delete.
797 2016-10-06  Chris Manghane  <cmang@google.com>
799         * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
800         returned memory.
802 2016-09-27  Than McIntosh  <thanm@google.com>
804         * go-linemap.cc (Gcc_linemap::to_string): New method.
806 2016-09-23  Than McIntosh  <thanm@google.com>
808         * go-gcc-diagnostics.cc: New file.
809         * go-location.h (Location): Remove operator source_location.  Add
810         operator==.
811         * go-system.h: #include <sstream>.
812         * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
813         go/go-gcc-diagnostics.o.
814         (CFLAGS-go/go-gcc-diagnostics.o): New variable.
816 2016-09-23  Chris Manghane  <cmang@google.com>
818         PR go/77701
819         * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
820         to pass arguments in the correct order.
822 2016-09-22  Ian Lance Taylor  <iant@golang.org>
824         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
825         __builtin_frame_address.
827 2016-09-11  Ian Lance Taylor  <iant@golang.org>
829         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
830         ctz, ctzll, bswap32, bswap64.
832 2016-09-10  Ian Lance Taylor  <iant@golang.org>
834         * go-backend.c (go_trampoline_info): Remove.
835         * go-c.h (go_trampoline_info): Don't declare.
837 2016-09-09  Than McIntosh  <thanm@google.com>
839         * go-sha1.cc: New file.
840         * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
841         (CFLAGS-go/go-sha1.o): New variable.
843 2016-08-29  Ian Lance Taylor  <iant@google.com>
845         * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
846         * go-c.h (struct go_create_gogo_args): Define.
847         (go_create_gogo): Change declaration to take struct pointer.
848         * go-lang.c (go_c_header): New static variable.
849         (go_langhook_init): Update call to go_create_gogo.
850         * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
851         -fgo-compiling-runtime.
853 2016-08-09  Ian Lance Taylor  <iant@google.com>
855         * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
856         -fgo-debug-escae.
857         (Compiler Directives): New chapter.
858         (Function Names): Describe using //go:linkname.  Suggest using
859         -fgo-pkgpath rather than -fgo-prefix.
861 2016-08-08  Ian Lance Taylor  <iant@google.com>
863         PR go/72814
864         * go-gcc.cc (Gcc_backend::function_type): If the return type is
865         zero bytes, treat the function as returning void.
866         (return_statement): If the return type is zero bytes, don't
867         actually return any values.
869 2016-08-05  Ian Lance Taylor  <iant@google.com>
871         PR go/72812
872         * go-gcc.cc (char_needs_encoding): New static function.
873         (needs_encoding, fetch_utf8_char): New static functions.
874         (encode_id): New static function.
875         (Gcc_backend::global_variable): Set asm name if the name is not
876         simple ASCII.
877         (Gcc_backend::implicit_variable): Likewise.
878         (Gcc_backend::implicit_variable_reference): Likewise.
879         (Gcc_backend::immutable_struct): Likewise.
880         (Gcc_backend::immutable_struct_reference): Likewise.
881         (Gcc_backend::function): Likewise.
883 2016-08-02  Chris Manghane  <cmang@google.com>
885         * lang.opt: Add -fgo-debug-escape option.
886         * go-c.h (go_create_gogo): Add debug_escape_level parameter.
887         * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
888         go_create_gogo.
890 2016-05-06  Chris Manghane  <cmang@google.com>
892         * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
893         new escape.cc).
895 2016-04-29  Chris Manghane  <cmang@google.com>
897         * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
899 2016-04-18  Michael Matz  <matz@suse.de>
901         * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
903 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
905         * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
906         neighbour -> neighbor.
907         * gccgo.texi: Likewise.
909 2016-01-27  Ian Lance Taylor  <iant@google.com>
911         * go-lang.c (go_langhook_init_options_struct): Default to
912         -fkeep-gc-roots-live.
914 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
916         Update copyright years.
918         * gccgo.texi: Bump @copyrights-go year.
920 2015-12-21  Ian Lance Taylor  <iant@google.com>
922         * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class.  Add
923         t_ and orig_type_ fields.  Add new two parameter constructor.  Add
924         get_tree and get_decl methods.
925         (Gcc_backend::var_expression): Pass location to var get_tree.
926         (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR.  Use
927         two parameter constructor for Bvariable.
928         (Gcc_backend::global_variable_set_init): Don't remove
929         VIEW_CONVERT_EXPR.  Use var get_decl, not get_tree.
930         (Gcc_backend::write_global_definitions): Likewise.
931         (Gcc_backend::init_statement): Call var get_decl, not get_tree.
932         (Gcc_backend::block): Likewise.
933         (Gcc_backend::implicit_variable_set_init): Likewise.
934         (Gcc_backend::immutable_struct_set_init): Likewise.
935         (Gcc_backend::function_set_parameters): Likewise.
937 2015-12-21  Ian Lance Taylor  <iant@google.com>
939         * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
940         add a VIEW_CONVERT_EXPR to the tree.
941         (Gcc_backend::global_variable_set_init): Remove any
942         VIEW_CONVERT_EXPR.
943         (Gcc_backend::write_global_definitions): Likewise.
945 2015-11-30  Ian Lance Taylor  <iant@google.com>
947         PR go/68477
948         * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
949         TYPE_STRING_FLAG on a variant type.
951 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
953         * go-backend.c: Remove unused header files.
954         * go-gcc.cc: Likewise.
955         * go-lang.c: Likewise.
956         * gospec.c: Likewise.
958 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
960         * go-backend.c: Reorder #include's and remove duplicates.
961         * go-lang.c: Likewise.
963 2015-10-20  Alan Modra  <amodra@gmail.com>
965         PR go/66870
966         * gospec.c (saw_opt_m32): Rename to..
967         (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
968         Update uses.
969         (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
971 2015-10-01  Ian Lance Taylor  <iant@google.com>
973         PR go/66870
974         * gospec.c (lang_specific_driver): Only look for OPT_m32 if
975         TARGET_CAN_SPLIT_STACK_64BIT is defined.
977 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
979         PR target/66870
980         * gospec.c (lang_specific_driver): Set appropriate split stack
981         options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
983 2015-09-10  Chris Manghane  <cmang@google.com>
985         * go-gcc.cc (Gcc_backend::type_size): Return -1 for
986         unrepresentable size.
988 2015-08-24  Marek Polacek  <polacek@redhat.com>
990         PR tree-optimization/67284
991         * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
992         Set TREE_THIS_VOLATILE.
993         (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
994         Pass false to the rest of define_builtin calls.
996 2015-07-31  Andreas Schwab  <schwab@linux-m68k.org>
998         * go-lang.c (go_langhook_init_options_struct): Don't set
999         x_flag_split_stack.
1000         (go_langhook_post_options): Set it here instead.
1002 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
1004         * gofrontend/backend.h: Fix double word typos.
1005         * gofrontend/expressions.cc: Same.
1006         * gospec.c: Same.
1008 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
1010         * go-backend.c: Adjust includes.
1011         * go-gcc.cc: Likewise.
1012         * go-lang.c: Likewise.
1014 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1016         * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
1018 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1020         * go-backend.c: Do not include input.h, line-map.h or is-a.h.
1021         * go-gcc.cc: Likewise.
1022         * go-lang.c: Likewise.
1023         * go-system.h: Likewise.
1025 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
1027         * go-backend.c : Adjust include files.
1028         * go-gcc.cc : Likewise.
1029         * go-lang.c : Likewise.
1031 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
1033         * go-gcc.cc (write_global_definitions): Remove call to
1034         finalize_compilation_unit.
1035         Remove Go specific debug generation.
1036         * go-lang.c (go_langhook_parse_file): Call go_write_globals.
1037         (go_langhook_write_globals): Remove.
1038         Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
1040 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
1042         * go-backend.c: Adjust includes for restructured coretypes.h.
1043         * go-c.h: Likewise.
1044         * go-gcc.cc: Likewise.
1045         * go-lang.c: Likewise.
1047 2015-04-30  Chris Manghane  <cmang@google.com>
1049         * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
1050         method.
1052 2015-04-27  Jim Wilson  <jim.wilson@linaro.org>
1054         * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
1056 2015-04-17  Chris Manghane  <cmang@google.com>
1058         * Make-lang.in (GO_OBJS): Add go/escape.o.
1060 2015-02-02  Ian Lance Taylor  <iant@google.com>
1062         PR go/64836
1063         PR go/64838
1064         * go-gcc.cc (Gcc_backend::type_size): Change return type to
1065         int64_t.
1066         (Gcc_backend::type_alignment): Likewise.
1067         (Gcc_backend::type_field_alignment): Likewise.
1068         (Gcc_backend::type_field_offset): Likewise.
1069         (Gcc_backend::implicit_variable): Change alignment parameter type
1070         to int64_t.
1072 2015-01-23  Ian Lance Taylor  <iant@google.com>
1074         PR go/63565
1075         * gccgo.texi (Invoking gccgo): Mention that Go programs should not
1076         be stripped.
1078         * gccgo.texi (C Interoperability): Mention that people should use
1079         cgo.
1081 2015-01-23  Ian Lance Taylor  <iant@google.com>
1083         PR go/64595
1084         * go-lang.c (go_langhook_init_options_struct): Set default
1085         debug_info_level.
1086         (go_langhook_post_options): If debug_info_level is still the
1087         default, make sure write_symbols is set.
1088         * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
1090 2015-01-16  Richard Henderson  <rth@redhat.com>
1092         * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
1093         (Gcc_backend::static_chain_variable): New method.
1095 2015-01-09  Ian Lance Taylor  <iant@google.com>
1097         * config-lang.in (lang_dirs): Define.
1099 2015-01-09  Michael Collison  <michael.collison@linaro.org>
1101         * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
1102         input.h, alias.h, symtab.h, options.h, fold-const.h,
1103         wide-int.h, and inchash.h due to flattening of tree.h.
1104         * go-lang.c: Ditto.
1105         * go-backend.c: Ditto.
1107 2015-01-07  Chris Manghane  <cmang@google.com>
1109         PR go/61204
1110         * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
1111         zero-sized variable.
1113 2015-01-06  Chris Manghane  <cmang@google.com>
1115         * go-gcc.cc (Gcc_backend::constructor_expression): Don't
1116         initialize zero-sized fields, just evaluate the values for side
1117         effects.
1119 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
1121         Update copyright years.
1123         * gccgo.texi: Bump @copyrights-go year.
1125 2014-12-19  Chris Manghane  <cmang@google.com>
1127         * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
1128         construct arrays of zero-sized values.
1130 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
1132         * go-lang.c: Remove redundant enum from machine_mode.
1134 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
1136         * go-gcc.cc: Adjust include files.
1138 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
1140         * go-gcc.cc: Adjust include files.
1141         * go-lang.c: Ditto.
1143 2014-10-23  Ian Lance Taylor  <iant@google.com>
1145         * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
1146         mpc_t parameter instead of two mpfr_t parameters.
1148 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
1150         * Make-lang.in (check_go_parallelize): Change to just an upper bound
1151         number.
1153 2014-09-03  Chris Manghane  <cmang@google.com>
1155         * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
1156         parameter.  Add is_hidden parameter.
1157         (Gcc_backend::implicit_variable_set_init): New method.
1158         (Gcc_backend::implicit_variable_reference): New method.
1160 2014-08-08  Ian Lance Taylor  <iant@google.com>
1162         * go-gcc.cc (Gcc_backend::compound_statement): Don't return
1163         NULL_TREE.
1165 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
1167         * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
1168         symtab_get_node to symtab_node::get.
1170 2014-06-13  Ian Lance Taylor  <iant@google.com>
1172         PR go/61496
1173         * gospec.c (lang_specific_driver): On Solaris, when not using GNU
1174         ld, add -t option to avoid warning about common symbol changing
1175         size.
1177 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
1179         * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
1180         symtab_get_node(var_decl)->implicit_section.
1182 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
1184         * go-gcc.cc (global_variable_set_init): Use
1185         set_decl_section_name.
1187 2014-06-04  Ian Lance Taylor  <iant@google.com>
1189         * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
1190         alignment parameters.  Permit init parameter to be NULL.
1192 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
1194         * go-gcc.cc: Include builtins.h.
1196 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
1198         * go-lang.c (struct GTY): Don't use variable_size gty attribute.
1200 2014-05-06  Chris Manghane  <cmang@google.com>
1202         * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
1203         (Gcc_backend::boolean_constant_expression): New method.
1204         (Gcc_backend::zero_expression): Use this->make_expression rather
1205         than tree_to_expr.
1206         (Gcc_backend::var_expression): Likewise.
1207         (Gcc_backend::integer_constant_expression): Likewise.
1208         (Gcc_backend::float_constant_expression): Likewise.
1209         (Gcc_backend::complex_constant_expression): Likewise.
1210         (Gcc_backend::struct_field_expression): Likewise.
1211         (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
1212         (tree_to_function, tree_to_block): Remove functions.
1213         (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
1214         (block_to_tree, var_to_tree, function_to_tree): Remove functions.
1216 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1217             Mike Stump  <mikestump@comcast.net>
1218             Richard Sandiford  <rdsandiford@googlemail.com>
1220         * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
1222 2014-05-06  Chris Manghane  <cmang@google.com>
1224         * go-c.h (go_create_gogo): Update declaration to add
1225         check_divide_zero and check_divide_overflow parameters.
1226         * go-lang.c (go_langhook_init): Pass new arguments to
1227         go_create_gogo.
1229 2014-05-05  Chris Manghane  <cmang@google.com>
1231         * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
1232         gc_root_variable.  Add name and is_constant parameters.
1234 2014-05-05  Chris Manghane  <cmang@google.com>
1236         * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
1237         parameter.
1238         (Gcc_backend::temporary_variable): Check for erroneous function.
1240 2014-04-30  Chris Manghane  <cmang@google.com>
1242         * go-backend.c: #include "diagnostics.h".
1243         (saw_errors): New function.
1244         * go-c.h (saw_errors): Declare.
1245         * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
1247 2014-04-30  Chris Manghane  <cmang@google.com>
1249         * go-lang.c (go_langhook_type_for_size): Do it here, rather than
1250         calling into Go frontend.
1251         (go_langhook_type_for_mode): Likewise.
1252         * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
1254 2014-04-30  Chris Manghane  <cmang@google.com>
1256         * go-gcc.cc: #include "langhooks.h".
1257         (Gcc_backend::Gcc_backend): Add constructor.
1258         (Gcc_backend::lookup_function): New function.
1259         (Gcc_backend::define_builtin): New private function.
1260         (Gcc_backend::gcc_backend): Remove.
1261         (go_get_backend): Use new to create new Gcc_backend.
1263 2014-04-25  Chris Manghane  <cmang@google.com>
1265         * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
1266         (Gcc_backend::return_statement): Push and pop function.
1267         (Gcc_backend::label): Likewise.
1268         (Gcc_backend::function_defer_statement): Likewise.
1269         (Gcc_backend::switch_statement): Add function parameter.
1270         (Gcc_backend::block): Don't permit function to be NULL.
1271         (Gcc_backend::temporary_variable): Change go_assert to
1272         gcc_assert.
1273         (Gcc_backend::gc_root_variable): New function.
1274         (Gcc_backend::write_global_definitions): New function.
1276 2014-04-22  Chris Manghane  <cmang@google.com>
1278         * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
1279         call to create_tmp_var.  Require that function be non-NULL.
1281 2014-04-17  Chris Manghane  <cmang@google.com>
1283         * go-gcc.cc (Gcc_backend::named_constant_expression): New
1284         function.
1286 2014-04-14  Chris Manghane  <cmang@google.com>
1288         * go-gcc.cc: Include "convert.h".
1289         (Gcc_backend::string_constant_expression): New function.
1290         (Gcc_backend::real_part_expression): Likewise.
1291         (Gcc_backend::imag_part_expression): Likewise.
1292         (Gcc_backend::complex_expression): Likewise.
1293         (Gcc_backend::constructor_expression): Likewise.
1294         (Gcc_backend::array_constructor_expression): Likewise.
1295         (Gcc_backend::pointer_offset_expression): Likewise.
1296         (Gcc_backend::array_index_expression): Likewise.
1297         (Gcc_backend::call_expression): Likewise.
1298         (Gcc_backend::exception_handler_statement): Likewise.
1299         (Gcc_backend::function_defer_statement): Likewise.
1300         (Gcc_backend::function_set_parameters): Likewise.
1301         (Gcc_backend::function_set_body): Likewise.
1302         (Gcc_backend::convert_expression): Handle various type
1303         conversions.
1305 2014-03-03  Ian Lance Taylor  <iant@google.com>
1307         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
1308         DECL_WEAK.
1309         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
1310         DECL_WEAK.
1312 2014-01-24  Chris Manghane  <cmang@google.com>
1314         * go-gcc.cc (Gcc_backend::unary_expression): New function.
1316 2014-01-16  Chris Manghane  <cmang@google.com>
1318         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
1319         parameter.
1320         (operator_to_tree_code): New static function.
1321         (Gcc_backend::binary_expression): New function.
1323 2014-01-14  Chris Manghane  <cmang@google.com>
1325         * go-gcc.cc (Gcc_backend::compound_expression): New function.
1326         (Gcc_backend::conditional_expression): New function.
1328 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1330         Update copyright years
1332 2014-01-02  Tobias Burnus  <burnus@net-b.de>
1334         * gccgo.texi: Bump @copying's copyright year.
1336 2013-12-16  Chris Manghane  <cmang@google.com>
1338         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
1340 2013-12-11  Ian Lance Taylor  <iant@google.com>
1342         * go-lang.c (go_langhook_post_options): Disable sibling calls by
1343         default.
1345 2013-12-10  Ian Lance Taylor  <iant@google.com>
1347         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
1348         separately.
1350 2013-12-05  Ian Lance Taylor  <iant@google.com>
1352         Revert this change; no longer required.
1353         2013-11-06  Ian Lance Taylor  <iant@google.com>
1355         * go-lang.c (go_langhook_post_options): If
1356         -fisolate-erroneous-paths was turned on by an optimization option,
1357         turn it off.
1359 2013-11-23  Ian Lance Taylor  <iant@google.com>
1361         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
1362         parameter.
1364 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1366         * go-gcc.cc: Add required include files from gimple.h.
1367         * go-lang.c: Likewise.
1369 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1371         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
1372         tree_to_shwi throughout.
1374 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1376         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
1377         tree_fits_shwi_p throughout.
1379 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1381         * go-lang.c: Include only gimplify.h and gimple.h as needed.
1383 2013-11-14  Diego Novillo  <dnovillo@google.com>
1385         * go-backend.c: Include stor-layout.h.
1386         * go-gcc.cc: Include stringpool.h.
1387         Include stor-layout.h.
1388         Include varasm.h.
1389         * go-lang.c: Include stor-layout.h.
1391 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1393         * go-lang.c: Include gimplify.h.
1395 2013-11-06  Ian Lance Taylor  <iant@google.com>
1397         * go-lang.c (go_langhook_post_options): If
1398         -fisolate-erroneous-paths was turned on by an optimization option,
1399         turn it off.
1401 2013-10-14  Chris Manghane  <cmang@google.com>
1403         * go-gcc.cc (Gcc_backend::address_expression): New function.
1405 2013-10-11  Chris Manghane  <cmang@google.com>
1407         * go-gcc.cc (Gcc_backend::function_code_expression): New
1408         function.
1410 2013-10-10  Chris Manghane  <cmang@google.com>
1412         * go-gcc.cc (Gcc_backend::error_function): New function.
1413         (Gcc_backend::function): New function.
1414         (Gcc_backend::make_function): New function.
1415         (function_to_tree): New function.
1417 2013-10-04  Chris Manghane  <cmang@google.com>
1419         * go-gcc.cc (Gcc_backend::convert_expression): New function.
1421 2013-10-02  Chris Manghane  <cmang@google.com>
1423         * go-gcc.cc: Include "real.h" and "realmpfr.h".
1424         (Gcc_backend::integer_constant_expression): New function.
1425         (Gcc_backend::float_constant_expression): New function.
1426         (Gcc_backend::complex_constant_expression): New function.
1428 2013-09-30  Chris Manghane  <cmang@google.com>
1430         * go-gcc.cc (Gcc_backend::error_expression): New function.
1431         (Gcc_backend::var_expression): New function.
1432         (Gcc_backend::indirect_expression): New function.
1434 2013-09-25  Tom Tromey  <tromey@redhat.com>
1436         * Make-lang.in (gospec.o): Remove.
1437         (CFLAGS-go/gospec.o): New variable.
1438         (GCCGO_OBJS): Update to use go/gospec.o.
1439         (go_OBJS): Define.
1440         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
1441         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
1442         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
1443         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
1444         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
1445         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
1446         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
1447         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
1448         (go/unsafe.o): Remove.
1449         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
1450         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
1452 2013-09-25  Tom Tromey  <tromey@redhat.com>
1454         * Make-lang.in (gospec.o): Don't use subshell.
1456 2013-08-28  Ian Lance Taylor  <iant@google.com>
1458         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
1459         the struct is not hidden.
1460         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
1462 2013-08-06  Ian Lance Taylor  <iant@google.com>
1464         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
1465         compute_reloc_for_constant.
1467 2013-08-02  Ian Lance Taylor  <iant@google.com>
1469         * go-gcc.cc (immutable_struct_set_init): Always call
1470         resolve_unique_section.
1472 2013-07-24  Ian Lance Taylor  <iant@google.com>
1474         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
1475         fields, recreate those fields with the first one with a non-zero
1476         size.
1478 2013-07-23  Ian Lance Taylor  <iant@google.com>
1480         * go-backend.c: Don't #include "rtl.h".
1481         (go_imported_unsafe): Don't call init_varasm_once.
1482         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
1484 2013-07-23  Ian Lance Taylor  <iant@google.com>
1486         * go-lang.c: Don't #include "except.h".
1487         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
1489 2013-06-18  Ian Lance Taylor  <iant@google.com>
1491         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
1492         parameter.
1493         (Gcc_backend::immutable_struct_set_init): Likewise.
1495 2013-05-16  Jason Merrill  <jason@redhat.com>
1497         * Make-lang.in (go1$(exeext)): Use link mutex.
1499 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
1501         * gospec.c: pass -u pthread_create to linker when static linking.
1503 2012-12-21  Ian Lance Taylor  <iant@google.com>
1505         PR bootstrap/54659
1506         * go-system.h: Don't include <cstdio>.
1508 2012-12-18  Ian Lance Taylor  <iant@google.com>
1510         PR go/55201
1511         * gospec.c: Revert last patch.
1513 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
1515         PR go/55201
1516         * gospec.c (LIBATOMIC): Define.
1517         (LIBATOMIC_PROFILE): Define.
1518         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
1520 2012-11-29  Ian Lance Taylor  <iant@google.com>
1522         * go-gcc.cc: Include "output.h".
1523         (global_variable): Add is_unique_section parameter.
1524         (global_variable_set_init): Adjust unique section if necessary.
1525         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
1527 2012-11-17  Diego Novillo  <dnovillo@google.com>
1529         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1531         * go-lang.c: Use new vec API in vec.h.
1533 2012-11-16  Ian Lance Taylor  <iant@google.com>
1535         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
1536         (go1$(exeext)): Likewise.
1538 2012-10-30  Ian Lance Taylor  <iant@google.com>
1540         * lang.opt (-fgo-relative-import-path): New option.
1541         * go-lang.c (go_relative_import_path): New static variable.
1542         (go_langhook_init): Pass go_relative_import_path to
1543         go_create_gogo.
1544         (go_langhook_handle_option): Handle -fgo-relative-import-path.
1545         * go-c.h (go_create_gogo): Update declaration.
1546         * gccgo.texi (Invoking gccgo): Document
1547         -fgo-relative-import-path.
1549 2012-09-17  Ian Lance Taylor  <iant@google.com>
1551         * config-lang.in (target_libs): Add target-libbacktrace.
1553 2012-09-16  Ian Lance Taylor  <iant@google.com>
1555         * Make-lang.in (go/gogo.o): Depend on filenames.h.
1557 2012-08-14   Diego Novillo  <dnovillo@google.com>
1559         Merge from cxx-conversion branch.  Configury.
1561         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1562         * go-gcc.cc: Likewise.
1563         * go-system.h: Likewise.
1565 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
1567         * go-lang.c (lang_decl): Add variable_size GTY option.
1569 2012-05-09  Ian Lance Taylor  <iant@google.com>
1571         * lang.opt: Add -fgo-pkgpath.
1572         * go-lang.c (go_pkgpath): New static variable.
1573         (go_prefix): New static variable.
1574         (go_langhook_init): Pass go_pkgpath and go_prefix to
1575         go_create_gogo.
1576         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
1577         -fgo-prefix handling to just set go_prefix.
1578         * go-c.h (go_set_prefix): Don't declare.
1579         (go_create_gogo): Add pkgpath and prefix to declaration.
1580         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1581         to pkgpath.  Don't include the package name in the asm name.
1582         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
1583         docs for -fgo-prefix.
1585 2012-04-23  Ian Lance Taylor  <iant@google.com>
1587         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1589 2012-04-20  Ian Lance Taylor  <iant@google.com>
1591         * lang.opt: Add -fgo-check-divide-zero and
1592         -fgo-check-divide-overflow.
1593         * gccgo.texi (Invoking gccgo): Document new options.
1595 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1597         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1598         with NULL_TREE type instead of void_type_node.
1600 2012-03-09  Ian Lance Taylor  <iant@google.com>
1602         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1603         to the lhs type if necessary.
1605 2012-03-08  Ian Lance Taylor  <iant@google.com>
1607         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1608         zero-sized variable.
1609         (go_non_zero_struct): New global variable.
1610         (Gcc_backend::non_zero_size_type): New function.
1611         (Gcc_backend::global_variable): Don't build an assignment for a
1612         zero-sized value.
1613         * go-c.h (go_non_zero_struct): Declare.
1614         * config-lang.in (gtfiles): Add go-c.h.
1616 2012-02-29  Ian Lance Taylor  <iant@google.com>
1618         * go-gcc.cc (class Gcc_tree): Add set_tree method.
1619         (set_placeholder_pointer_type): When setting to a pointer to
1620         error, set to error_mark_node.
1622 2012-02-23  Richard Guenther  <rguenther@suse.de>
1624         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1625         build_distinct_type_copy.
1627 2012-02-17  Ian Lance Taylor  <iant@google.com>
1629         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1631 2012-02-17  Ian Lance Taylor  <iant@google.com>
1633         * gospec.c (lang_specific_driver): If linking, and no -o option
1634         was used, add one.
1636 2012-02-14  Ian Lance Taylor  <iant@google.com>
1638         PR go/48411
1639         * Make-lang.in (gccgo-cross$(exeext)): New target.
1640         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1641         gccgo$(exeext).
1642         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1643         gccgo-cross$(exeext) does not exist.
1645 2012-02-07  Ian Lance Taylor  <iant@google.com>
1647         * gccgo.texi (Function Names): Document //extern instead of
1648         __asm__.
1650 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
1652         PR target/52079
1653         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1654         return build_nonstandard_integer_type result if possible.
1656 2012-01-21  Ian Lance Taylor  <iant@google.com>
1658         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1659         (Gcc_backend::type_alignment): Likewise.
1660         (Gcc_backend::type_field_alignment): Likewise.
1661         (Gcc_backend::type_field_offset): Likewise.
1663 2012-01-20  Ian Lance Taylor  <iant@google.com>
1665         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1666         be empty.
1667         (Gcc_backend::set_placeholder_struct_type): Likewise.
1669 2012-01-17  Ian Lance Taylor  <iant@google.com>
1671         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1672         BASE.s rather than -o BASE.o.
1674 2012-01-11  Ian Lance Taylor  <iant@google.com>
1676         * go-lang.c (go_langhook_init): Initialize void_list_node before
1677         calling go_create_gogo.
1679 2012-01-10  Ian Lance Taylor  <iant@google.com>
1681         * go-gcc.cc (Gcc_backend::type_size): New function.
1682         (Gcc_backend::type_alignment): New function.
1683         (Gcc_backend::type_field_alignment): New function.
1684         (Gcc_backend::type_field_offset): New function.
1685         * go-backend.c (go_type_alignment): Remove.
1686         * go-c.h (go_type_alignment): Don't declare.
1688 2011-12-27  Ian Lance Taylor  <iant@google.com>
1690         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1691         build_distinct_type_copy rather than build_variant_type_copy.
1692         (Gcc_backend::set_placeholder_array_type): Likewise.
1693         (Gcc_backend::named_type): Add special handling for builtin
1694         basic types.
1696 2011-12-22  Ian Lance Taylor  <iant@google.com>
1698         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1699         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1700         (Gcc_backend::set_placeholder_struct_type): Likewise.
1701         (Gcc_backend::set_placeholder_array_type): Likewise.
1702         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1704 2011-12-13  Ian Lance Taylor  <iant@google.com>
1706         * go-backend.c: #include "simple-object.h" and "intl.h".
1707         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1708         (GO_EXPORT_SECTION_NAME): Likewise.
1709         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1710         (go_read_export_data): New function.
1711         * go-c.h (go_read_export_data): Declare.
1713 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
1714             Ian Lance Taylor  <iant@google.com>
1716         * go-location.h: New file.
1717         * go-linemap.cc: New file.
1718         * go-gcc.cc: Change all uses of source_location to Location.
1719         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1720         (GO_LINEMAP_H): New variable.
1721         (GO_LEX_H): Use $(GO_LINEMAP_H).
1722         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1723         (go/go-linemap.o): New target.
1725 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1727         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1729 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
1731         * lang.opt: Add fgo-optimize-.
1732         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1733         * go-c.h (go_enable_optimize): Declare.
1734         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1735         (GO_EXPORT_H): Define.
1736         (GO_IMPORT_H): Add $(GO_EXPORT_H).
1737         (GO_AST_DUMP_H): Define.
1738         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1739         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1740         (go/types.o): Likewise.
1741         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1742         (go/go-optimize.o): New target.
1744 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1746         * Make-lang.in (CFLAGS-go/go-lang.o): New.
1747         (go/go-lang.o): Remove explicit compilation rule.
1749 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1751         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1753 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
1755         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1756         (go/ast-dump.o): New target.
1757         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1758         (go/statements.o): Likewise.
1760 2011-07-06  Richard Guenther  <rguenther@suse.de>
1762         * go-lang.c (go_langhook_init):
1763         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1765 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1767         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1768         dependencies.
1769         * go-backend.c: Include common/common-target.h.
1770         (go_write_export_data): Use targetm_common.have_named_sections.
1771         * go-lang.c: Include common/common-target.h.
1772         (go_langhook_init_options_struct): Use
1773         targetm_common.supports_split_stack.
1775 2011-06-13  Ian Lance Taylor  <iant@google.com>
1777         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1779 2011-06-10  Ian Lance Taylor  <iant@google.com>
1781         * go-gcc.cc: Include "toplev.h".
1782         (Gcc_backend::immutable_struct): New function.
1783         (Gcc_backend::immutable_struct_set_init): New function.
1784         (Gcc_backend::immutable_struct_reference): New function.
1785         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1787 2011-06-09  Ian Lance Taylor  <iant@google.com>
1789         * go-gcc.cc (Gcc_backend::zero_expression): New function.
1791 2011-06-07  Richard Guenther  <rguenther@suse.de>
1793         * go-lang.c (go_langhook_init): Do not set
1794         size_type_node or call set_sizetype.
1796 2011-05-27  Ian Lance Taylor  <iant@google.com>
1798         * go-backend.c: Include "output.h".
1799         (go_write_export_data): New function.
1800         * go-c.h (go_write_export_data): Declare.
1801         * Make-lang.in (go/go-backend.o): Depend on output.h.
1802         (go/export.o): Depend on $(GO_C_H).  Do not depend on
1803         $(MACHMODE_H), output.h, or $(TARGET_H).
1805 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1807         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1808         (gccgo$(exeext)): Use libcommon-target.a.
1810 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1812         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1814 2011-05-13  Ian Lance Taylor  <iant@google.com>
1816         * go-gcc.cc (Gcc_backend::function_type): When building a struct
1817         for multiple results, check that all fields types have a size.
1818         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1820 2011-05-12  Ian Lance Taylor  <iant@google.com>
1822         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1823         parameter.
1824         (Gcc_backend::parameter_variable): Likewise.
1826 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1828         * go-lang.c (global_bindings_p): Return bool and simplify.
1830 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1832         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1834 2011-05-04  Ian Lance Taylor  <iant@google.com>
1836         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1837         (Gcc_backend::fill_in_struct): New function.
1838         (Gcc_backend::array_type): Implement.
1839         (Gcc_backend::fill_in_array): New function.
1840         (Gcc_backend::placeholder_pointer_type): New function.
1841         (Gcc_backend::set_placeholder_pointer_type): New function.
1842         (Gcc_backend::set_placeholder_function_type): New function.
1843         (Gcc_backend::placeholder_struct_type): New function.
1844         (Gcc_backend::set_placeholder_struct_type): New function.
1845         (Gcc_backend::placeholder_array_type): New function.
1846         (Gcc_backend::set_placeholder_array_type): New function.
1847         (Gcc_backend::named_type): New function.
1848         (Gcc_backend::circular_pointer_type): New function.
1849         (Gcc_backend::is_circular_pointer_type): New function.
1851 2011-04-26  Ian Lance Taylor  <iant@google.com>
1853         * go-gcc.cc (Gcc_backend::struct_type): Implement.
1855 2011-04-25  Ian Lance Taylor  <iant@google.com>
1857         * go-gcc.cc (Gcc_backend::error_type): Implement.
1858         (Gcc_backend::string_type): Remove.
1859         (Gcc_backend::function_type): Change signature and implement.
1860         (Gcc_backend::struct_type): Change signature.
1861         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1862         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1863         (Gcc_backend::pointer_type): Check for error.
1864         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1866 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
1868         * go-gcc.c (class Gcc_tree): Make get_tree const.
1869         (Gcc_backend::void_type): Implement.
1870         (Gcc_backend::bool_type): Implement.
1871         (Gcc_backend::integer_type): Implement.
1872         (Gcc_backend::float_type): Implement.
1873         (Gcc_backend::complex_type): New function.
1874         (Gcc_backend::pointer_type): New function.
1875         (Gcc_backend::make_type): New function.
1876         (type_to_tree): New function.
1878 2011-04-21  Ian Lance Taylor  <iant@google.com>
1880         * go-system.h (go_assert, go_unreachable): Define.
1882 2011-04-19  Ian Lance Taylor  <iant@google.com>
1884         * go-system.h: Include "intl.h".
1885         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1886         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1887         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1889 2011-04-19  Ian Lance Taylor  <iant@google.com>
1891         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1893 2011-04-19  Ian Lance Taylor  <iant@google.com>
1895         * go-gcc.cc (class Bblock): Define.
1896         (Gcc_backend::if_statement): Change then_block and else_block to
1897         Bblock*.
1898         (Gcc_backend::block): New function.
1899         (Gcc_backend::block_add_statements): New function.
1900         (Gcc_backend::block_statement): New function.
1901         (tree_to_block, block_to_tree): New functions.
1903 2011-04-18  Ian Lance Taylor  <iant@google.com>
1905         * go-gcc.cc: Include "go-c.h".
1906         (class Bvariable): Define.
1907         (Gcc_backend::init_statement): New function.
1908         (Gcc_backend::global_variable): New function.
1909         (Gcc_backend::global_variable_set_init): New function.
1910         (Gcc_backend::local_variable): New function.
1911         (Gcc_backend::parameter_variable): New function.
1912         (tree_to_type, var_to_tree): New functions.
1913         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1914         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1916 2011-04-15  Ian Lance Taylor  <iant@google.com>
1918         * go-gcc.cc (Gcc_backend::compound_statement): New function.
1919         (Gcc_backend::assignment_statement): Use error_statement.
1920         (Gcc_backend::return_statement): Likewise.
1921         (Gcc_backend::if_statement): Likewise.
1922         (Gcc_backend::switch_statement): Likewise.
1923         (Gcc_backend::statement_list): Likewise.
1925 2011-04-14  Ian Lance Taylor  <iant@google.com>
1927         * go-gcc.cc (Gcc_backend::error_statement): New function.
1929 2011-04-13  Ian Lance Taylor  <iant@google.com>
1931         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1933 2011-04-13  Ian Lance Taylor  <iant@google.com>
1935         * Make-lang.in (GO_OBJS): Add go/runtime.o.
1936         (GO_RUNTIME_H): New variable.
1937         (go/runtime.o): New target.
1938         (go/gogo.o): Depend on $(GO_RUNTIME_H).
1939         (go/statements.o): Likewise.
1941 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1943         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1944         calling TREE_CHAIN.
1946 2011-04-06  Ian Lance Taylor  <iant@google.com>
1948         * go-gcc.cc (if_statement): Use build3_loc.
1949         (Gcc_backend::switch_statement): New function.
1950         (Gcc_backend::statement_list): New function.
1952 2011-04-06  Ian Lance Taylor  <iant@google.com>
1954         * go-gcc.cc (Gcc_backend::if_statement): New function.
1955         (tree_to_stat): New function.
1956         (expr_to_tree): Renamed from expression_to_tree.
1957         (stat_to_tree): Renamed from statement_to_tree.
1959 2011-04-06  Ian Lance Taylor  <iant@google.com>
1961         * go-gcc.cc (Gcc_backend::expression_statement): New function.
1963 2011-04-04  Ian Lance Taylor  <iant@google.com>
1965         * go-gcc.c (class Blabel): Define.
1966         (Gcc_backend::make_expression): New function.
1967         (get_identifier_from_string): New function.
1968         (Gcc_backend::label): New function.
1969         (Gcc_backend::label_definition_statement): New function.
1970         (Gcc_backend::goto_statement): New function.
1971         (Gcc_backend::label_address): New function.
1972         (expression_to_tree): New function.
1973         * Make-lang.in (go/expressions.o): Depend on
1974         go/gofrontend/backend.h.
1975         (go/gogo.o): Likewise.
1977 2011-04-04  Ian Lance Taylor  <iant@google.com>
1979         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1980         (class Bfunction): Define.
1981         (Gcc_backend::assignment_statement): Rename from assignment.
1982         Check for errors.
1983         (Gcc_backend::return_statement): New function.
1984         (tree_to_function): New function.
1985         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1986         $(GIMPLE_H), and $(GO_GOGO_H).
1988 2011-04-03  Ian Lance Taylor  <iant@google.com>
1990         * go-gcc.cc: New file.
1991         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1992         (go/go-gcc.o): New target.
1993         (go/go.o): Depend on go/gofrontend/backend.h.
1994         (go/statements.o): Likewise.
1996 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1998         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
2000 2011-02-08  Ian Lance Taylor  <iant@google.com>
2002         * go-lang.c (go_langhook_init_options_struct): Set
2003         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
2005 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2007         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
2008         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
2010 2011-01-21  Ian Lance Taylor  <iant@google.com>
2012         * go-lang.c (go_langhook_init): Omit float_type_size when calling
2013         go_create_gogo.
2014         * go-c.h: Update declaration of go_create_gogo.
2016 2011-01-13  Ian Lance Taylor  <iant@google.com>
2018         * go-backend.c: Include "rtl.h" and "target.h".
2019         (go_imported_unsafe): New function.
2020         * go-c.h (go_imported_unsafe): Declare.
2021         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
2022         (go/gogo-tree.o): Remove dependency on $(RTL_H).
2023         (go/unsafe.o): Depend on $(GO_C_H).
2025 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
2027         PR go/47113
2028         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
2029         variable ‘field’ .
2031 2010-12-21  Ian Lance Taylor  <iant@google.com>
2033         * Make-lang.in (check-go): Remove.
2034         (lang_checks_parallelized): Add check-go.
2035         (check_go_parallelize): Set.
2037 2010-12-13  Ian Lance Taylor  <iant@google.com>
2039         * gospec.c (lang_specific_driver): Add a -o option if not linking
2040         and there is no -o option already.
2042 2010-12-07  Ian Lance Taylor  <iant@google.com>
2044         PR tree-optimization/46805
2045         PR tree-optimization/46833
2046         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
2048 2010-12-06  Ian Lance Taylor  <iant@google.com>
2050         PR other/46789
2051         PR bootstrap/46812
2052         * go-lang.c (go_char_p): Define type and vectors.
2053         (go_search_dirs): New static variable.
2054         (go_langhook_handle_option): Use version and version/machine
2055         directories for -L.
2056         (go_langhook_post_options): Add non-specific -L paths.
2057         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
2058         DEFAULT_TARGET_MACHINE when compiling.
2059         * gccgo.texi (Invoking gccgo): Only document -L for linking.
2060         (Import and Export): Don't mention -L for finding import files.
2062 2010-12-03  Ian Lance Taylor  <iant@google.com>
2064         PR bootstrap/46776
2065         * go-backend.c: New file.
2066         * go-c.h (go_type_alignment): Declare.
2067         (go_field_alignment, go_trampoline_info): Declare.
2068         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
2069         (go/go-backend.o): New target.
2070         (go/go-lang.o): Make dependencies match source file.
2071         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
2072         (go/gogo-tree.o): Don't depend on $(TM_H).
2074 2010-12-03  Ian Lance Taylor  <iant@google.com>
2076         * config-lang.in (build_by_default): Set to no.
2078 2010-12-02  Ian Lance Taylor  <iant@google.com>
2080         Go frontend added to gcc repository.
2082 Copyright (C) 2010-2024 Free Software Foundation, Inc.
2084 Copying and distribution of this file, with or without modification,
2085 are permitted in any medium without royalty provided the copyright
2086 notice and this notice are preserved.