1 2024-05-21 Release Manager
5 2023-07-27 Release Manager
9 2023-06-28 Paul E. Murphy <murphyp@linux.ibm.com>
11 Backported from master:
12 2023-06-22 Paul E. Murphy <murphyp@linux.ibm.com>
14 * go-backend.cc [TARGET_AIX]: Rename and update usage to TARGET_AIX_OS.
15 * go-lang.cc: Likewise.
17 2023-04-26 Release Manager
19 * GCC 13.1.0 released.
21 2023-03-24 Jakub Jelinek <jakub@redhat.com>
24 * go-gcc.cc (Gcc_backend): Add new static data members builtin_pure
26 (Gcc_backend::Gcc_backend): Pass builtin_pure | builtin_nothrow for
28 (Gcc_backend::define_builtin): Handle builtin_pure and builtin_nothrow
31 2023-02-23 Arsen Arsenović <arsen@aarsen.me>
33 * gccgo.texi: Reorder index entries around @items.
35 2023-01-17 Ian Lance Taylor <iant@golang.org>
38 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_ctzl and
39 __builtin_clzl. Patch by Andrew Pinski.
41 2023-01-02 Jakub Jelinek <jakub@redhat.com>
43 * gccgo.texi: Bump @copyrights-go year.
45 2022-11-14 Martin Liska <mliska@suse.cz>
48 2022-11-14 Martin Liska <mliska@suse.cz>
50 * doc/c-interoperability.rst: New file.
51 * doc/c-type-interoperability.rst: New file.
52 * doc/compiler-directives.rst: New file.
53 * doc/conf.py: New file.
54 * doc/copyright.rst: New file.
55 * doc/function-names.rst: New file.
56 * doc/general-public-license-3.rst: New file.
57 * doc/gnu-free-documentation-license.rst: New file.
58 * doc/import-and-export.rst: New file.
59 * doc/index.rst: New file.
60 * doc/indices-and-tables.rst: New file.
61 * doc/introduction.rst: New file.
62 * doc/invoking-gccgo.rst: New file.
64 2022-11-14 Martin Liska <mliska@suse.cz>
67 2022-11-14 Martin Liska <mliska@suse.cz>
69 * Make-lang.in: Support Sphinx based documentation.
71 2022-11-14 Martin Liska <mliska@suse.cz>
74 2022-11-14 Martin Liska <mliska@suse.cz>
76 * gccgo.texi: Removed.
78 2022-11-14 Martin Liska <mliska@suse.cz>
81 2022-11-14 Martin Liska <mliska@suse.cz>
83 * Make-lang.in: Support --with-sphinx-build.
85 2022-11-14 Martin Liska <mliska@suse.cz>
88 2022-11-14 Martin Liska <mliska@suse.cz>
91 Support installation if sphinx-build is missing.
92 Support installation if sphinx-build is missing.
94 2022-11-14 Martin Liska <mliska@suse.cz>
97 2022-11-14 Martin Liska <mliska@suse.cz>
99 * doc/c-interoperability.rst:
100 Add trailing newline.
101 * doc/c-type-interoperability.rst:
102 Add trailing newline.
103 * doc/compiler-directives.rst:
104 Add trailing newline.
106 Add trailing newline.
107 * doc/function-names.rst:
108 Add trailing newline.
109 * doc/general-public-license-3.rst:
110 Add trailing newline.
111 * doc/gnu-free-documentation-license.rst:
112 Add trailing newline.
113 * doc/import-and-export.rst:
114 Add trailing newline.
116 Add trailing newline.
117 * doc/indices-and-tables.rst:
118 Add trailing newline.
119 * doc/introduction.rst:
120 Add trailing newline.
121 * doc/invoking-gccgo.rst:
122 Add trailing newline.
124 2022-11-14 Martin Liska <mliska@suse.cz>
127 2022-11-14 Martin Liska <mliska@suse.cz>
129 * doc/conf.py: Add newline at last line.
131 2022-11-10 Martin Liska <mliska@suse.cz>
133 * doc/conf.py: Add newline at last line.
135 2022-11-10 Ian Lance Taylor <iant@golang.org>
138 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
139 __atomic_fetch_add_{4,8}.
141 2022-11-09 Martin Liska <mliska@suse.cz>
143 * doc/c-interoperability.rst:
144 Add trailing newline.
145 * doc/c-type-interoperability.rst:
146 Add trailing newline.
147 * doc/compiler-directives.rst:
148 Add trailing newline.
150 Add trailing newline.
151 * doc/function-names.rst:
152 Add trailing newline.
153 * doc/general-public-license-3.rst:
154 Add trailing newline.
155 * doc/gnu-free-documentation-license.rst:
156 Add trailing newline.
157 * doc/import-and-export.rst:
158 Add trailing newline.
160 Add trailing newline.
161 * doc/indices-and-tables.rst:
162 Add trailing newline.
163 * doc/introduction.rst:
164 Add trailing newline.
165 * doc/invoking-gccgo.rst:
166 Add trailing newline.
168 2022-11-09 Martin Liska <mliska@suse.cz>
171 Support installation if sphinx-build is missing.
172 Support installation if sphinx-build is missing.
174 2022-11-09 Martin Liska <mliska@suse.cz>
176 * Make-lang.in: Support --with-sphinx-build.
178 2022-11-09 Martin Liska <mliska@suse.cz>
180 * gccgo.texi: Removed.
182 2022-11-09 Martin Liska <mliska@suse.cz>
184 * Make-lang.in: Support Sphinx based documentation.
186 2022-11-09 Martin Liska <mliska@suse.cz>
188 * doc/c-interoperability.rst: New file.
189 * doc/c-type-interoperability.rst: New file.
190 * doc/compiler-directives.rst: New file.
191 * doc/conf.py: New file.
192 * doc/copyright.rst: New file.
193 * doc/function-names.rst: New file.
194 * doc/general-public-license-3.rst: New file.
195 * doc/gnu-free-documentation-license.rst: New file.
196 * doc/import-and-export.rst: New file.
197 * doc/index.rst: New file.
198 * doc/indices-and-tables.rst: New file.
199 * doc/introduction.rst: New file.
200 * doc/invoking-gccgo.rst: New file.
202 2022-09-15 Richard Biener <rguenther@suse.de>
204 * go-lang.cc (go_langhook_init): Do not initialize
207 2022-09-02 Martin Liska <mliska@suse.cz>
209 * go-lang.cc (go_langhook_pushdecl): Remove -gstabs option support, DBX-related
210 macros and DBX debugging info support.
211 * gospec.cc (lang_specific_driver): Likewise.
213 2022-07-16 Ian Lance Taylor <iant@golang.org>
215 * go-gcc.cc (Gcc_backend::struct_field_expression): Handle a void
216 expression, as for f().x where f returns a zero-sized type.
218 2022-07-15 Ian Lance Taylor <iant@golang.org>
220 * go-gcc.cc (Gcc_backend::call_expression): Handle a void
221 argument, as for f(g()) where g returns a zero-sized type.
223 2022-06-02 David Malcolm <dmalcolm@redhat.com>
225 * go-lang.cc (go_get_sarif_source_language): New.
226 (LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine.
228 2022-05-31 Jason Merrill <jason@redhat.com>
230 * Make-lang.in (go.tags): Look at *.cc.
232 2022-02-13 Ian Lance Taylor <iant@golang.org>
234 * gospec.cc: Revert 2022-02-09 change:
235 (RTLIB, RT_LIBRARY): Don't define.
236 (lang_specific_driver): Don't add -lrt if linking statically
239 2022-02-09 Ian Lance Taylor <iant@golang.org>
241 * gospec.cc (RTLIB, RT_LIBRARY): Define.
242 (lang_specific_driver): Add -lrt if linking statically on
245 2022-02-09 Ian Lance Taylor <iant@golang.org>
247 * go-gcc.cc (Gcc_backend::Gcc_backend): Define builtins
248 __atomic_load_1 and __atomic_store_1.
250 2022-01-17 Martin Liska <mliska@suse.cz>
252 * config-lang.in: Rename .c names to .cc.
253 * go-backend.cc: Likewise.
254 * go-lang.cc: Likewise.
255 * gospec.cc: Likewise.
256 * lang-specs.h: Likewise.
258 2022-01-17 Martin Liska <mliska@suse.cz>
260 * go-backend.c: Moved to...
261 * go-backend.cc: ...here.
262 * go-lang.c: Moved to...
263 * go-lang.cc: ...here.
264 * gospec.c: Moved to...
265 * gospec.cc: ...here.
267 2022-01-03 Jakub Jelinek <jakub@redhat.com>
269 * gccgo.texi: Bump @copyrights-go year.
271 2021-12-28 Martin Liska <mliska@suse.cz>
273 * gccgo.texi: Replace http:// with https.
275 2021-11-29 Eric Gallager <egallager@gcc.gnu.org>
278 * Make-lang.in: Use ETAGS variable in TAGS target.
280 2021-09-27 Martin Liska <mliska@suse.cz>
282 * go-lang.c (go_langhook_init_options_struct): Set also
283 x_flag_default_complex_method.
285 2021-06-29 Ian Lance Taylor <iant@golang.org>
287 * go-gcc.cc (Gcc_backend::static_chain_variable): Set
288 DECL_NAMELESS on the new decl.
289 (Gcc_backend::temporary_variable): Likewise.
290 (Gcc_backend::function): Set DECL_NAMELESS on the result decl.
292 2021-05-27 Ian Lance Taylor <iant@golang.org>
294 * gccgo.texi (Function Names): Don't HTML quote ampersand.
296 2021-05-24 Ian Lance Taylor <iant@golang.org>
299 * go-gcc.cc (class Gcc_backend): Update methods that create
300 variables to take a flags parameter.
302 2021-01-28 Ian Lance Taylor <iant@golang.org>
304 * gospec.c (lang_specific_driver): Add -g if no debugging options
307 2021-01-15 Ian Lance Taylor <iant@golang.org>
309 * Make-lang.in (GO_OBJS): Add go/embed.o.
311 2021-01-05 Jakub Jelinek <jakub@redhat.com>
313 * lang.opt (fgo-embedcfg=): Add full stop at the end of description.
315 2021-01-05 Ian Lance Taylor <iant@golang.org>
317 * lang.opt (fgo-embedcfg): New option.
318 * go-c.h (struct go_create_gogo_args): Add embedcfg field.
319 * go-lang.c (go_embedcfg): New static variable.
320 (go_langhook_init): Set go_create_gogo_args embedcfg field.
321 (go_langhook_handle_option): Handle OPT_fgo_embedcfg_.
322 * gccgo.texi (Invoking gccgo): Document -fgo-embedcfg.
324 2021-01-01 Jakub Jelinek <jakub@redhat.com>
326 * gccgo.texi: Bump @copyrights-go year.
328 2020-12-22 Ian Lance Taylor <iant@golang.org>
331 * go-lang.c (go_langhook_init): Force MPFR exponent range to be
332 large enough to support Go constants.
334 2020-11-20 Jakub Jelinek <jakub@redhat.com>
337 * Make-lang.in (go.serial): Change from goal to a variable.
338 (.PHONY): Drop go.serial and go.prev.
339 (go1$(exeext)): Depend on $(go.serial) rather than go.serial.
341 2020-11-18 Jakub Jelinek <jakub@redhat.com>
343 * Make-lang.in (go.serial): New goal.
344 (.PHONY): Add go.serial go.prev.
345 (go1$(exeext)): Depend on go.prev. Call LINK_PROGRESS.
347 2020-11-11 Alan Modra <amodra@gmail.com>
349 * go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to
350 avoid ambiguous overloaded call.
352 2020-11-06 Nathan Sidwell <nathan@acm.org>
354 * go-gcc.cc (Gcc_backend::call_expression): Rename
355 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
357 2020-11-04 Ian Lance Taylor <iant@golang.org>
359 * go-lang.c (go_langhook_post_options): Disable
360 -fipa-icf-functions if it was not explicitly enabled.
362 2020-09-14 Jakub Jelinek <jakub@redhat.com>
364 * go-gcc.cc (Gcc_backend::function): Adjust
365 cl_optimization_save, cl_optimization_restore and
366 build_optimization_node callers.
368 2020-08-10 Clément Chigot <chigot.c@gmail.com>
370 * go-c.h (struct go_create_gogo_args): Add need_eqtype field.
371 * go-lang.c (go_langhook_init): Set need_eqtype.
373 2020-04-15 Ian Lance Taylor <iant@golang.org>
376 * go-gcc.cc (class Gcc_backend): Define builtin_const,
377 builtin_noreturn, builtin_novops.
378 (Gcc_backend::define_builtin): Change const_p and noreturn_p
379 parameters to a single flags parameter. Change all callers.
380 (Gcc_backend::Gcc_backend): Pass novops for prefetch.
382 2020-01-01 Jakub Jelinek <jakub@redhat.com>
384 Update copyright years.
386 * gccgo.texi: Bump @copyrights-go year.
388 2019-11-12 Martin Liska <mliska@suse.cz>
390 * go-lang.c (go_langhook_post_options):
391 Use SET_OPTION_IF_UNSET.
393 2019-09-04 Ian Lance Taylor <iant@golang.org>
395 PR tree-optimization/91663
396 * go-lang.c (go_langhook_post_options): Clear
397 flag_partial_inlining.
399 2019-08-23 Jakub Jelinek <jakub@redhat.com>
402 * go-lang.c (go_langhook_post_options): Set flag_excess_precision
403 instead of flag_excess_precision_cmdline.
405 2019-07-02 Cherry Zhang <cherryyz@google.com>
407 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_memset.
409 2019-06-21 Cherry Zhang <cherryyz@google.com>
411 * go-gcc.cc (Gcc_backend::Gcc_backend): Define math/bits
414 2019-05-30 Jim Wilson <jimw@sifive.com>
416 * go-gcc.cc (Gcc_backend::Gcc_backend): Add BUILT_IN_ATOMIC_FETCH_AND_1
417 and BUILT_IN_ATOMIC_FETCH_OR_1.
419 2019-05-16 Cherry Zhang <cherryyz@google.com>
421 * go-gcc.cc (Gcc_backend::Gcc_backend): Define atomic builtins.
423 2019-05-08 Cherry Zhang <cherryyz@google.com>
425 * go-gcc.cc (Gcc_backend::Gcc_backend): Define memmove builtin.
427 2019-05-07 Cherry Zhang <cherryyz@google.com>
429 * lang.opt (-fgo-debug-optimization): New option.
430 * go-c.h (struct go_create_gogo_args): Add debug_optimization
432 * go-lang.c (go_langhook_init): Set debug_optimization field.
433 * gccgo.texi (Invoking gccgo): Document -fgo-debug-optimization.
435 2019-03-06 Ian Lance Taylor <iant@golang.org>
438 * go-gcc.cc (Gcc_backend::function): Set TREE_PUBLIC for an
439 only-inline function.
441 2019-02-15 Cherry Zhang <cherryyz@google.com>
443 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_dwarf_cfa
444 instead of __builtin_frame_address.
446 2019-02-14 Ian Lance Taylor <iant@golang.org>
448 * go-backend.c (go_imported_unsafe): Update
449 optimization_default_node.
451 2019-02-13 Ian Lance Taylor <iant@golang.org>
453 * go-gcc.cc: #include "opts.h".
454 (Gcc_backend::function): Compile thunks with -Os.
456 2019-02-05 Nikhil Benesch <nikhil.benesch@gmail.com>
459 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Mark
460 placeholder structs as requiring structural equality.
461 (Gcc_backend::set_placeholder_pointer_type): Propagate the
462 canonical type from the desired pointer type to the placeholder
465 2019-01-09 Ian Lance Taylor <iant@golang.org>
468 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Go back to
469 build_distinct_type_copy, but copy the fields so that they have
470 the right DECL_CONTEXT.
472 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
476 * go-backend.c: Mechanically replace "can not" with "cannot".
477 * go-gcc.cc: Likewise.
479 2019-01-01 Jakub Jelinek <jakub@redhat.com>
481 Update copyright years.
483 * gccgo.texi: Bump @copyrights-go year.
485 2018-11-27 Ian Lance Taylor <iant@golang.org>
487 * go-gcc.cc (Gcc_backend::function): Handle function_only_inline
490 2018-11-13 David Malcolm <dmalcolm@redhat.com>
492 * go-gcc-diagnostics.cc: Replace "source_location" with "location_t".
493 * go-gcc.cc: Likewise.
494 * go-linemap.cc: Likewise.
495 * go-location.h: Likewise.
496 * gofrontend/README: Likewise.
498 2018-10-31 Ian Lance Taylor <iant@golang.org>
500 * go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
501 gimplify_function_tree. Instead call allocate_struct_function if
504 2018-10-29 Ian Lance Taylor <iant@golang.org>
506 * go-gcc.cc (Gcc_backend::function): Change to use a single flags
509 2018-10-29 Ian Lance Taylor <iant@golang.org>
511 * go-linemap.cc (Gcc_linemap::location_file): New method.
513 2018-10-17 David Malcolm <dmalcolm@redhat.com>
515 * Make-lang.in (selftest-go): New.
517 2018-09-20 Allan Sandfeld Jensen <allan.jensen@qt.io>
519 * gospec.c (lang_specific_driver): Handle -r like -nostdlib.
521 2018-08-27 Martin Liska <mliska@suse.cz>
523 * go-gcc.cc (Gcc_backend::call_expression): Use new function
524 fndecl_built_in_p and remove check for FUNCTION_DECL if
527 2018-07-20 Martin Sebor <msebor@redhat.com>
530 * go-lang.c (go_langhook_handle_option): Change function argument
533 2018-06-28 Ian Lance Taylor <iant@golang.org>
536 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
537 build_variant_type_copy rather than build_distinct_type_copy.
539 2018-06-08 Cherry Zhang <cherryyz@google.com>
541 * go-gcc.cc (class Gcc_backend): Remove
542 stack_allocation_expression method.
544 2018-02-03 Ian Lance Taylor <iant@golang.org>
546 * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
547 using structural equality.
549 2018-02-02 Ian Lance Taylor <iant@golang.org>
551 * go-gcc.cc (Gcc_backend::type_size): Return 0 for
553 (Gcc_backend::convert_expression): Don't convert if the type of
554 expr_tree is void_type_node.
555 (Gcc_backend::array_index_expression): Don't index if the type of
556 the array expression is void_type_node.
557 (Gcc_backend::init_statement): Don't initialize if the type of the
558 initializer expression is void_type_node.
559 (Gcc_backend::assignment_statement): Don't assign if the type of
560 either the left or right hand side is void_type_node.
561 (Gcc_backend::temporary_variable): Don't initialize if the type of
562 the initializer expression is void_type_node.
564 2018-02-01 Cherry Zhang <cherryyz@google.com>
566 * lang.opt (fgo-optimize): Remove RejectNegative.
567 * go-c.h (go_enable_optimize): Update declaration to take value
569 * go-lang.c (go_langhook_handle_option): Pass value to
571 * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
573 2018-01-30 Ian Lance Taylor <iant@golang.org>
575 * go-gcc.cc (Gcc_backend::convert_tree): New private method.
576 (Gcc_backend::constructor_expression): Call it.
577 (Gcc_backend::assignment_statement): Likewise.
578 (Gcc_backend::temporary_variable): Likewise.
580 2018-01-09 Cherry Zhang <cherryyz@google.com>
582 * go-gcc.cc (local_variable): Add decl_var parameter.
584 2018-01-09 Cherry Zhang <cherryyz@google.com>
586 * lang.opt (fgo-debug-escape-hash): New option.
587 * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
589 * go-lang.c (go_langhook_init): Set debug_escape_hash field.
590 * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
592 2018-01-05 Ian Lance Taylor <iant@golang.org>
594 * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
595 math_function_type_long to take one argument.
597 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
598 Alan Hayward <alan.hayward@arm.com>
599 David Sherwood <david.sherwood@arm.com>
601 * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
603 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
604 Alan Hayward <alan.hayward@arm.com>
605 David Sherwood <david.sherwood@arm.com>
607 * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
609 2018-01-03 Jakub Jelinek <jakub@redhat.com>
611 Update copyright years.
613 * gccgo.texi: Bump @copyrights-go year.
615 2017-12-12 Tony Reix <tony.reix@atos.net>
616 Ian Lance Taylor <iant@golang.org>
618 * go-lang.c (TARGET_AIX): Define if not defined.
619 (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
621 2017-12-01 Ian Lance Taylor <iant@golang.org>
623 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
624 __builtin_unreachable.
625 (Gcc_backend::function): Add does_not_return parameter.
627 2017-12-01 Than McIntosh <thanm@google.com>
629 * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
631 * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
633 2017-11-28 Jakub Jelinek <jakub@redhat.com>
635 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
636 build2_loc instead of build3_loc.
638 2017-11-14 Than McIntosh <thanm@google.com>
640 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
642 2017-10-11 Tony Reix <tony.reix@atos.net>
644 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
645 system header files, as is done in ../system.h.
647 2017-10-05 Ian Lance Taylor <iant@golang.org>
649 * Make-lang.in (GO_OBJS): Add go/names.o.
651 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
652 Alan Hayward <alan.hayward@arm.com>
653 David Sherwood <david.sherwood@arm.com>
655 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
657 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
658 Alan Hayward <alan.hayward@arm.com>
659 David Sherwood <david.sherwood@arm.com>
661 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
663 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
664 Alan Hayward <alan.hayward@arm.com>
665 David Sherwood <david.sherwood@arm.com>
667 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
669 2017-08-07 Martin Liska <mliska@suse.cz>
671 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
672 and not __no_split_stack__.
674 2017-07-27 Tony Reix <tony.reix@atos.net>
676 * go-backend.c (go_write_export_data): Use EXCLUDE section for
679 2017-06-09 Ian Lance Taylor <iant@golang.org>
681 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
682 on, disable implicit -forder-blocks-and-partition.
684 2017-05-12 Than McIntosh <thanm@google.com>
686 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
688 2017-05-11 Ian Lance Taylor <iant@google.com>
691 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
692 DECL_EXTERNAL, clear TREE_STATIC.
694 2017-05-10 Than McIntosh <thanm@google.com>
696 * go-backend.c: Include "go-c.h".
697 * go-gcc.cc (Gcc_backend::write_export_data): New method.
699 2017-05-10 Ian Lance Taylor <iant@google.com>
701 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
703 * Make-lang.in (GO_OBJS): Add go/wb.o.
705 2017-03-28 Than McIntosh <thanm@google.com>
708 * go-gcc.cc (Gcc_backend::return_statement): Check for
709 void_type_node when checking result size.
711 2017-02-20 Ian Lance Taylor <iant@golang.org>
714 * lang.opt (-fgo-relative-import-path): Change space to tab.
716 2017-02-07 Richard Biener <rguenther@suse.de>
718 PR tree-optimization/79256
720 * go-backend.c (go_field_alignment): Adjust.
722 2017-01-11 Than McIntosh <thanm@google.com>
724 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
726 2017-01-01 Jakub Jelinek <jakub@redhat.com>
728 Update copyright years.
730 * gccgo.texi: Bump @copyrights-go year.
732 2016-12-16 Than McIntosh <thanm@google.com>
734 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
736 (Gcc_backend::init_statement): Likewise.
737 (Gcc_backend::assignment_statement): Likewise.
738 (Gcc_backend::if_statement): Likewise.
740 2016-12-06 Than McIntosh <thanm@google.com>
742 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
745 2016-11-22 Than McIntosh <thanm@google.com>
747 * go-gcc.cc (char_needs_encoding): Remove.
748 (needs_encoding, fetch_utf8_char, encode_id): Remove.
749 (Gcc_backend::global_variable): Add asm_name parameter. Don't
750 compute asm_name here.
751 (Gcc_backend::implicit_variable): Likewise.
752 (Gcc_backend::implicit_variable_reference): Likewise.
753 (Gcc_backend::immutable_struct): Likewise.
754 (Gcc_backend::immutable_struct_reference): Likewise.
755 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
757 2016-11-22 Ian Lance Taylor <iant@google.com>
759 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
760 __builtin_frame_address.
762 2016-10-25 David Malcolm <dmalcolm@redhat.com>
764 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
765 from result of GET_MODE_CLASS. Minor formatting fixes.
767 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
769 * go-backend.c: Include memmodel.h.
771 2016-10-10 Than McIntosh <thanm@google.com>
773 * go-gcc.h: New file.
774 * go-c.h (struct go_create_gogo_args): Add backend and linemap
776 * go-lang.c: Include "go-gcc.h".
777 (go_langhook_init): Set linemap and backend fields of args.
778 * go-gcc.cc: Include "go-gcc.h".
779 * go-linemap.cc: Include "go-gcc.h".
781 2016-10-10 Than McIntosh <thanm@google.com>
783 * go-linemap.cc (Gcc_linemap::location_line): New method.
785 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
787 * config-lang.in (lang_requires_boot_languages): Delete.
789 2016-10-06 Chris Manghane <cmang@google.com>
791 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
794 2016-09-27 Than McIntosh <thanm@google.com>
796 * go-linemap.cc (Gcc_linemap::to_string): New method.
798 2016-09-23 Than McIntosh <thanm@google.com>
800 * go-gcc-diagnostics.cc: New file.
801 * go-location.h (Location): Remove operator source_location. Add
803 * go-system.h: #include <sstream>.
804 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
805 go/go-gcc-diagnostics.o.
806 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
808 2016-09-23 Chris Manghane <cmang@google.com>
811 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
812 to pass arguments in the correct order.
814 2016-09-22 Ian Lance Taylor <iant@golang.org>
816 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
817 __builtin_frame_address.
819 2016-09-11 Ian Lance Taylor <iant@golang.org>
821 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
822 ctz, ctzll, bswap32, bswap64.
824 2016-09-10 Ian Lance Taylor <iant@golang.org>
826 * go-backend.c (go_trampoline_info): Remove.
827 * go-c.h (go_trampoline_info): Don't declare.
829 2016-09-09 Than McIntosh <thanm@google.com>
831 * go-sha1.cc: New file.
832 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
833 (CFLAGS-go/go-sha1.o): New variable.
835 2016-08-29 Ian Lance Taylor <iant@google.com>
837 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
838 * go-c.h (struct go_create_gogo_args): Define.
839 (go_create_gogo): Change declaration to take struct pointer.
840 * go-lang.c (go_c_header): New static variable.
841 (go_langhook_init): Update call to go_create_gogo.
842 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
843 -fgo-compiling-runtime.
845 2016-08-09 Ian Lance Taylor <iant@google.com>
847 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
849 (Compiler Directives): New chapter.
850 (Function Names): Describe using //go:linkname. Suggest using
851 -fgo-pkgpath rather than -fgo-prefix.
853 2016-08-08 Ian Lance Taylor <iant@google.com>
856 * go-gcc.cc (Gcc_backend::function_type): If the return type is
857 zero bytes, treat the function as returning void.
858 (return_statement): If the return type is zero bytes, don't
859 actually return any values.
861 2016-08-05 Ian Lance Taylor <iant@google.com>
864 * go-gcc.cc (char_needs_encoding): New static function.
865 (needs_encoding, fetch_utf8_char): New static functions.
866 (encode_id): New static function.
867 (Gcc_backend::global_variable): Set asm name if the name is not
869 (Gcc_backend::implicit_variable): Likewise.
870 (Gcc_backend::implicit_variable_reference): Likewise.
871 (Gcc_backend::immutable_struct): Likewise.
872 (Gcc_backend::immutable_struct_reference): Likewise.
873 (Gcc_backend::function): Likewise.
875 2016-08-02 Chris Manghane <cmang@google.com>
877 * lang.opt: Add -fgo-debug-escape option.
878 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
879 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
882 2016-05-06 Chris Manghane <cmang@google.com>
884 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
887 2016-04-29 Chris Manghane <cmang@google.com>
889 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
891 2016-04-18 Michael Matz <matz@suse.de>
893 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
895 2016-02-12 Jakub Jelinek <jakub@redhat.com>
897 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
898 neighbour -> neighbor.
899 * gccgo.texi: Likewise.
901 2016-01-27 Ian Lance Taylor <iant@google.com>
903 * go-lang.c (go_langhook_init_options_struct): Default to
904 -fkeep-gc-roots-live.
906 2016-01-04 Jakub Jelinek <jakub@redhat.com>
908 Update copyright years.
910 * gccgo.texi: Bump @copyrights-go year.
912 2015-12-21 Ian Lance Taylor <iant@google.com>
914 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
915 t_ and orig_type_ fields. Add new two parameter constructor. Add
916 get_tree and get_decl methods.
917 (Gcc_backend::var_expression): Pass location to var get_tree.
918 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
919 two parameter constructor for Bvariable.
920 (Gcc_backend::global_variable_set_init): Don't remove
921 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
922 (Gcc_backend::write_global_definitions): Likewise.
923 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
924 (Gcc_backend::block): Likewise.
925 (Gcc_backend::implicit_variable_set_init): Likewise.
926 (Gcc_backend::immutable_struct_set_init): Likewise.
927 (Gcc_backend::function_set_parameters): Likewise.
929 2015-12-21 Ian Lance Taylor <iant@google.com>
931 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
932 add a VIEW_CONVERT_EXPR to the tree.
933 (Gcc_backend::global_variable_set_init): Remove any
935 (Gcc_backend::write_global_definitions): Likewise.
937 2015-11-30 Ian Lance Taylor <iant@google.com>
940 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
941 TYPE_STRING_FLAG on a variant type.
943 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
945 * go-backend.c: Remove unused header files.
946 * go-gcc.cc: Likewise.
947 * go-lang.c: Likewise.
948 * gospec.c: Likewise.
950 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
952 * go-backend.c: Reorder #include's and remove duplicates.
953 * go-lang.c: Likewise.
955 2015-10-20 Alan Modra <amodra@gmail.com>
958 * gospec.c (saw_opt_m32): Rename to..
959 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
961 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
963 2015-10-01 Ian Lance Taylor <iant@google.com>
966 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
967 TARGET_CAN_SPLIT_STACK_64BIT is defined.
969 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
972 * gospec.c (lang_specific_driver): Set appropriate split stack
973 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
975 2015-09-10 Chris Manghane <cmang@google.com>
977 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
978 unrepresentable size.
980 2015-08-24 Marek Polacek <polacek@redhat.com>
982 PR tree-optimization/67284
983 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
984 Set TREE_THIS_VOLATILE.
985 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
986 Pass false to the rest of define_builtin calls.
988 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
990 * go-lang.c (go_langhook_init_options_struct): Don't set
992 (go_langhook_post_options): Set it here instead.
994 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
996 * gofrontend/backend.h: Fix double word typos.
997 * gofrontend/expressions.cc: Same.
1000 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1002 * go-backend.c: Adjust includes.
1003 * go-gcc.cc: Likewise.
1004 * go-lang.c: Likewise.
1006 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1008 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
1010 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1012 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
1013 * go-gcc.cc: Likewise.
1014 * go-lang.c: Likewise.
1015 * go-system.h: Likewise.
1017 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1019 * go-backend.c : Adjust include files.
1020 * go-gcc.cc : Likewise.
1021 * go-lang.c : Likewise.
1023 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1025 * go-gcc.cc (write_global_definitions): Remove call to
1026 finalize_compilation_unit.
1027 Remove Go specific debug generation.
1028 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
1029 (go_langhook_write_globals): Remove.
1030 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
1032 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1034 * go-backend.c: Adjust includes for restructured coretypes.h.
1036 * go-gcc.cc: Likewise.
1037 * go-lang.c: Likewise.
1039 2015-04-30 Chris Manghane <cmang@google.com>
1041 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
1044 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
1046 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
1048 2015-04-17 Chris Manghane <cmang@google.com>
1050 * Make-lang.in (GO_OBJS): Add go/escape.o.
1052 2015-02-02 Ian Lance Taylor <iant@google.com>
1056 * go-gcc.cc (Gcc_backend::type_size): Change return type to
1058 (Gcc_backend::type_alignment): Likewise.
1059 (Gcc_backend::type_field_alignment): Likewise.
1060 (Gcc_backend::type_field_offset): Likewise.
1061 (Gcc_backend::implicit_variable): Change alignment parameter type
1064 2015-01-23 Ian Lance Taylor <iant@google.com>
1067 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
1070 * gccgo.texi (C Interoperability): Mention that people should use
1073 2015-01-23 Ian Lance Taylor <iant@google.com>
1076 * go-lang.c (go_langhook_init_options_struct): Set default
1078 (go_langhook_post_options): If debug_info_level is still the
1079 default, make sure write_symbols is set.
1080 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
1082 2015-01-16 Richard Henderson <rth@redhat.com>
1084 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
1085 (Gcc_backend::static_chain_variable): New method.
1087 2015-01-09 Ian Lance Taylor <iant@google.com>
1089 * config-lang.in (lang_dirs): Define.
1091 2015-01-09 Michael Collison <michael.collison@linaro.org>
1093 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
1094 input.h, alias.h, symtab.h, options.h, fold-const.h,
1095 wide-int.h, and inchash.h due to flattening of tree.h.
1097 * go-backend.c: Ditto.
1099 2015-01-07 Chris Manghane <cmang@google.com>
1102 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
1103 zero-sized variable.
1105 2015-01-06 Chris Manghane <cmang@google.com>
1107 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
1108 initialize zero-sized fields, just evaluate the values for side
1111 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1113 Update copyright years.
1115 * gccgo.texi: Bump @copyrights-go year.
1117 2014-12-19 Chris Manghane <cmang@google.com>
1119 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
1120 construct arrays of zero-sized values.
1122 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1124 * go-lang.c: Remove redundant enum from machine_mode.
1126 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1128 * go-gcc.cc: Adjust include files.
1130 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1132 * go-gcc.cc: Adjust include files.
1135 2014-10-23 Ian Lance Taylor <iant@google.com>
1137 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
1138 mpc_t parameter instead of two mpfr_t parameters.
1140 2014-09-15 Jakub Jelinek <jakub@redhat.com>
1142 * Make-lang.in (check_go_parallelize): Change to just an upper bound
1145 2014-09-03 Chris Manghane <cmang@google.com>
1147 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
1148 parameter. Add is_hidden parameter.
1149 (Gcc_backend::implicit_variable_set_init): New method.
1150 (Gcc_backend::implicit_variable_reference): New method.
1152 2014-08-08 Ian Lance Taylor <iant@google.com>
1154 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
1157 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
1159 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
1160 symtab_get_node to symtab_node::get.
1162 2014-06-13 Ian Lance Taylor <iant@google.com>
1165 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
1166 ld, add -t option to avoid warning about common symbol changing
1169 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
1171 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
1172 symtab_get_node(var_decl)->implicit_section.
1174 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
1176 * go-gcc.cc (global_variable_set_init): Use
1177 set_decl_section_name.
1179 2014-06-04 Ian Lance Taylor <iant@google.com>
1181 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
1182 alignment parameters. Permit init parameter to be NULL.
1184 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
1186 * go-gcc.cc: Include builtins.h.
1188 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1190 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
1192 2014-05-06 Chris Manghane <cmang@google.com>
1194 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
1195 (Gcc_backend::boolean_constant_expression): New method.
1196 (Gcc_backend::zero_expression): Use this->make_expression rather
1198 (Gcc_backend::var_expression): Likewise.
1199 (Gcc_backend::integer_constant_expression): Likewise.
1200 (Gcc_backend::float_constant_expression): Likewise.
1201 (Gcc_backend::complex_constant_expression): Likewise.
1202 (Gcc_backend::struct_field_expression): Likewise.
1203 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
1204 (tree_to_function, tree_to_block): Remove functions.
1205 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
1206 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
1208 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1209 Mike Stump <mikestump@comcast.net>
1210 Richard Sandiford <rdsandiford@googlemail.com>
1212 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
1214 2014-05-06 Chris Manghane <cmang@google.com>
1216 * go-c.h (go_create_gogo): Update declaration to add
1217 check_divide_zero and check_divide_overflow parameters.
1218 * go-lang.c (go_langhook_init): Pass new arguments to
1221 2014-05-05 Chris Manghane <cmang@google.com>
1223 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
1224 gc_root_variable. Add name and is_constant parameters.
1226 2014-05-05 Chris Manghane <cmang@google.com>
1228 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
1230 (Gcc_backend::temporary_variable): Check for erroneous function.
1232 2014-04-30 Chris Manghane <cmang@google.com>
1234 * go-backend.c: #include "diagnostics.h".
1235 (saw_errors): New function.
1236 * go-c.h (saw_errors): Declare.
1237 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
1239 2014-04-30 Chris Manghane <cmang@google.com>
1241 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
1242 calling into Go frontend.
1243 (go_langhook_type_for_mode): Likewise.
1244 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
1246 2014-04-30 Chris Manghane <cmang@google.com>
1248 * go-gcc.cc: #include "langhooks.h".
1249 (Gcc_backend::Gcc_backend): Add constructor.
1250 (Gcc_backend::lookup_function): New function.
1251 (Gcc_backend::define_builtin): New private function.
1252 (Gcc_backend::gcc_backend): Remove.
1253 (go_get_backend): Use new to create new Gcc_backend.
1255 2014-04-25 Chris Manghane <cmang@google.com>
1257 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
1258 (Gcc_backend::return_statement): Push and pop function.
1259 (Gcc_backend::label): Likewise.
1260 (Gcc_backend::function_defer_statement): Likewise.
1261 (Gcc_backend::switch_statement): Add function parameter.
1262 (Gcc_backend::block): Don't permit function to be NULL.
1263 (Gcc_backend::temporary_variable): Change go_assert to
1265 (Gcc_backend::gc_root_variable): New function.
1266 (Gcc_backend::write_global_definitions): New function.
1268 2014-04-22 Chris Manghane <cmang@google.com>
1270 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
1271 call to create_tmp_var. Require that function be non-NULL.
1273 2014-04-17 Chris Manghane <cmang@google.com>
1275 * go-gcc.cc (Gcc_backend::named_constant_expression): New
1278 2014-04-14 Chris Manghane <cmang@google.com>
1280 * go-gcc.cc: Include "convert.h".
1281 (Gcc_backend::string_constant_expression): New function.
1282 (Gcc_backend::real_part_expression): Likewise.
1283 (Gcc_backend::imag_part_expression): Likewise.
1284 (Gcc_backend::complex_expression): Likewise.
1285 (Gcc_backend::constructor_expression): Likewise.
1286 (Gcc_backend::array_constructor_expression): Likewise.
1287 (Gcc_backend::pointer_offset_expression): Likewise.
1288 (Gcc_backend::array_index_expression): Likewise.
1289 (Gcc_backend::call_expression): Likewise.
1290 (Gcc_backend::exception_handler_statement): Likewise.
1291 (Gcc_backend::function_defer_statement): Likewise.
1292 (Gcc_backend::function_set_parameters): Likewise.
1293 (Gcc_backend::function_set_body): Likewise.
1294 (Gcc_backend::convert_expression): Handle various type
1297 2014-03-03 Ian Lance Taylor <iant@google.com>
1299 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
1301 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
1304 2014-01-24 Chris Manghane <cmang@google.com>
1306 * go-gcc.cc (Gcc_backend::unary_expression): New function.
1308 2014-01-16 Chris Manghane <cmang@google.com>
1310 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
1312 (operator_to_tree_code): New static function.
1313 (Gcc_backend::binary_expression): New function.
1315 2014-01-14 Chris Manghane <cmang@google.com>
1317 * go-gcc.cc (Gcc_backend::compound_expression): New function.
1318 (Gcc_backend::conditional_expression): New function.
1320 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1322 Update copyright years
1324 2014-01-02 Tobias Burnus <burnus@net-b.de>
1326 * gccgo.texi: Bump @copying's copyright year.
1328 2013-12-16 Chris Manghane <cmang@google.com>
1330 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
1332 2013-12-11 Ian Lance Taylor <iant@google.com>
1334 * go-lang.c (go_langhook_post_options): Disable sibling calls by
1337 2013-12-10 Ian Lance Taylor <iant@google.com>
1339 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
1342 2013-12-05 Ian Lance Taylor <iant@google.com>
1344 Revert this change; no longer required.
1345 2013-11-06 Ian Lance Taylor <iant@google.com>
1347 * go-lang.c (go_langhook_post_options): If
1348 -fisolate-erroneous-paths was turned on by an optimization option,
1351 2013-11-23 Ian Lance Taylor <iant@google.com>
1353 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
1356 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1358 * go-gcc.cc: Add required include files from gimple.h.
1359 * go-lang.c: Likewise.
1361 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1363 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
1364 tree_to_shwi throughout.
1366 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1368 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
1369 tree_fits_shwi_p throughout.
1371 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1373 * go-lang.c: Include only gimplify.h and gimple.h as needed.
1375 2013-11-14 Diego Novillo <dnovillo@google.com>
1377 * go-backend.c: Include stor-layout.h.
1378 * go-gcc.cc: Include stringpool.h.
1379 Include stor-layout.h.
1381 * go-lang.c: Include stor-layout.h.
1383 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1385 * go-lang.c: Include gimplify.h.
1387 2013-11-06 Ian Lance Taylor <iant@google.com>
1389 * go-lang.c (go_langhook_post_options): If
1390 -fisolate-erroneous-paths was turned on by an optimization option,
1393 2013-10-14 Chris Manghane <cmang@google.com>
1395 * go-gcc.cc (Gcc_backend::address_expression): New function.
1397 2013-10-11 Chris Manghane <cmang@google.com>
1399 * go-gcc.cc (Gcc_backend::function_code_expression): New
1402 2013-10-10 Chris Manghane <cmang@google.com>
1404 * go-gcc.cc (Gcc_backend::error_function): New function.
1405 (Gcc_backend::function): New function.
1406 (Gcc_backend::make_function): New function.
1407 (function_to_tree): New function.
1409 2013-10-04 Chris Manghane <cmang@google.com>
1411 * go-gcc.cc (Gcc_backend::convert_expression): New function.
1413 2013-10-02 Chris Manghane <cmang@google.com>
1415 * go-gcc.cc: Include "real.h" and "realmpfr.h".
1416 (Gcc_backend::integer_constant_expression): New function.
1417 (Gcc_backend::float_constant_expression): New function.
1418 (Gcc_backend::complex_constant_expression): New function.
1420 2013-09-30 Chris Manghane <cmang@google.com>
1422 * go-gcc.cc (Gcc_backend::error_expression): New function.
1423 (Gcc_backend::var_expression): New function.
1424 (Gcc_backend::indirect_expression): New function.
1426 2013-09-25 Tom Tromey <tromey@redhat.com>
1428 * Make-lang.in (gospec.o): Remove.
1429 (CFLAGS-go/gospec.o): New variable.
1430 (GCCGO_OBJS): Update to use go/gospec.o.
1432 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
1433 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
1434 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
1435 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
1436 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
1437 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
1438 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
1439 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
1440 (go/unsafe.o): Remove.
1441 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
1442 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
1444 2013-09-25 Tom Tromey <tromey@redhat.com>
1446 * Make-lang.in (gospec.o): Don't use subshell.
1448 2013-08-28 Ian Lance Taylor <iant@google.com>
1450 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
1451 the struct is not hidden.
1452 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
1454 2013-08-06 Ian Lance Taylor <iant@google.com>
1456 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
1457 compute_reloc_for_constant.
1459 2013-08-02 Ian Lance Taylor <iant@google.com>
1461 * go-gcc.cc (immutable_struct_set_init): Always call
1462 resolve_unique_section.
1464 2013-07-24 Ian Lance Taylor <iant@google.com>
1466 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
1467 fields, recreate those fields with the first one with a non-zero
1470 2013-07-23 Ian Lance Taylor <iant@google.com>
1472 * go-backend.c: Don't #include "rtl.h".
1473 (go_imported_unsafe): Don't call init_varasm_once.
1474 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
1476 2013-07-23 Ian Lance Taylor <iant@google.com>
1478 * go-lang.c: Don't #include "except.h".
1479 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
1481 2013-06-18 Ian Lance Taylor <iant@google.com>
1483 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
1485 (Gcc_backend::immutable_struct_set_init): Likewise.
1487 2013-05-16 Jason Merrill <jason@redhat.com>
1489 * Make-lang.in (go1$(exeext)): Use link mutex.
1491 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
1493 * gospec.c: pass -u pthread_create to linker when static linking.
1495 2012-12-21 Ian Lance Taylor <iant@google.com>
1498 * go-system.h: Don't include <cstdio>.
1500 2012-12-18 Ian Lance Taylor <iant@google.com>
1503 * gospec.c: Revert last patch.
1505 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
1508 * gospec.c (LIBATOMIC): Define.
1509 (LIBATOMIC_PROFILE): Define.
1510 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
1512 2012-11-29 Ian Lance Taylor <iant@google.com>
1514 * go-gcc.cc: Include "output.h".
1515 (global_variable): Add is_unique_section parameter.
1516 (global_variable_set_init): Adjust unique section if necessary.
1517 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
1519 2012-11-17 Diego Novillo <dnovillo@google.com>
1521 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1523 * go-lang.c: Use new vec API in vec.h.
1525 2012-11-16 Ian Lance Taylor <iant@google.com>
1527 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
1528 (go1$(exeext)): Likewise.
1530 2012-10-30 Ian Lance Taylor <iant@google.com>
1532 * lang.opt (-fgo-relative-import-path): New option.
1533 * go-lang.c (go_relative_import_path): New static variable.
1534 (go_langhook_init): Pass go_relative_import_path to
1536 (go_langhook_handle_option): Handle -fgo-relative-import-path.
1537 * go-c.h (go_create_gogo): Update declaration.
1538 * gccgo.texi (Invoking gccgo): Document
1539 -fgo-relative-import-path.
1541 2012-09-17 Ian Lance Taylor <iant@google.com>
1543 * config-lang.in (target_libs): Add target-libbacktrace.
1545 2012-09-16 Ian Lance Taylor <iant@google.com>
1547 * Make-lang.in (go/gogo.o): Depend on filenames.h.
1549 2012-08-14 Diego Novillo <dnovillo@google.com>
1551 Merge from cxx-conversion branch. Configury.
1553 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1554 * go-gcc.cc: Likewise.
1555 * go-system.h: Likewise.
1557 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
1559 * go-lang.c (lang_decl): Add variable_size GTY option.
1561 2012-05-09 Ian Lance Taylor <iant@google.com>
1563 * lang.opt: Add -fgo-pkgpath.
1564 * go-lang.c (go_pkgpath): New static variable.
1565 (go_prefix): New static variable.
1566 (go_langhook_init): Pass go_pkgpath and go_prefix to
1568 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
1569 -fgo-prefix handling to just set go_prefix.
1570 * go-c.h (go_set_prefix): Don't declare.
1571 (go_create_gogo): Add pkgpath and prefix to declaration.
1572 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1573 to pkgpath. Don't include the package name in the asm name.
1574 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
1575 docs for -fgo-prefix.
1577 2012-04-23 Ian Lance Taylor <iant@google.com>
1579 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1581 2012-04-20 Ian Lance Taylor <iant@google.com>
1583 * lang.opt: Add -fgo-check-divide-zero and
1584 -fgo-check-divide-overflow.
1585 * gccgo.texi (Invoking gccgo): Document new options.
1587 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1589 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1590 with NULL_TREE type instead of void_type_node.
1592 2012-03-09 Ian Lance Taylor <iant@google.com>
1594 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1595 to the lhs type if necessary.
1597 2012-03-08 Ian Lance Taylor <iant@google.com>
1599 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1600 zero-sized variable.
1601 (go_non_zero_struct): New global variable.
1602 (Gcc_backend::non_zero_size_type): New function.
1603 (Gcc_backend::global_variable): Don't build an assignment for a
1605 * go-c.h (go_non_zero_struct): Declare.
1606 * config-lang.in (gtfiles): Add go-c.h.
1608 2012-02-29 Ian Lance Taylor <iant@google.com>
1610 * go-gcc.cc (class Gcc_tree): Add set_tree method.
1611 (set_placeholder_pointer_type): When setting to a pointer to
1612 error, set to error_mark_node.
1614 2012-02-23 Richard Guenther <rguenther@suse.de>
1616 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1617 build_distinct_type_copy.
1619 2012-02-17 Ian Lance Taylor <iant@google.com>
1621 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1623 2012-02-17 Ian Lance Taylor <iant@google.com>
1625 * gospec.c (lang_specific_driver): If linking, and no -o option
1628 2012-02-14 Ian Lance Taylor <iant@google.com>
1631 * Make-lang.in (gccgo-cross$(exeext)): New target.
1632 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1634 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1635 gccgo-cross$(exeext) does not exist.
1637 2012-02-07 Ian Lance Taylor <iant@google.com>
1639 * gccgo.texi (Function Names): Document //extern instead of
1642 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1645 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1646 return build_nonstandard_integer_type result if possible.
1648 2012-01-21 Ian Lance Taylor <iant@google.com>
1650 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1651 (Gcc_backend::type_alignment): Likewise.
1652 (Gcc_backend::type_field_alignment): Likewise.
1653 (Gcc_backend::type_field_offset): Likewise.
1655 2012-01-20 Ian Lance Taylor <iant@google.com>
1657 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1659 (Gcc_backend::set_placeholder_struct_type): Likewise.
1661 2012-01-17 Ian Lance Taylor <iant@google.com>
1663 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1664 BASE.s rather than -o BASE.o.
1666 2012-01-11 Ian Lance Taylor <iant@google.com>
1668 * go-lang.c (go_langhook_init): Initialize void_list_node before
1669 calling go_create_gogo.
1671 2012-01-10 Ian Lance Taylor <iant@google.com>
1673 * go-gcc.cc (Gcc_backend::type_size): New function.
1674 (Gcc_backend::type_alignment): New function.
1675 (Gcc_backend::type_field_alignment): New function.
1676 (Gcc_backend::type_field_offset): New function.
1677 * go-backend.c (go_type_alignment): Remove.
1678 * go-c.h (go_type_alignment): Don't declare.
1680 2011-12-27 Ian Lance Taylor <iant@google.com>
1682 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1683 build_distinct_type_copy rather than build_variant_type_copy.
1684 (Gcc_backend::set_placeholder_array_type): Likewise.
1685 (Gcc_backend::named_type): Add special handling for builtin
1688 2011-12-22 Ian Lance Taylor <iant@google.com>
1690 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1691 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1692 (Gcc_backend::set_placeholder_struct_type): Likewise.
1693 (Gcc_backend::set_placeholder_array_type): Likewise.
1694 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1696 2011-12-13 Ian Lance Taylor <iant@google.com>
1698 * go-backend.c: #include "simple-object.h" and "intl.h".
1699 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1700 (GO_EXPORT_SECTION_NAME): Likewise.
1701 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1702 (go_read_export_data): New function.
1703 * go-c.h (go_read_export_data): Declare.
1705 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1706 Ian Lance Taylor <iant@google.com>
1708 * go-location.h: New file.
1709 * go-linemap.cc: New file.
1710 * go-gcc.cc: Change all uses of source_location to Location.
1711 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1712 (GO_LINEMAP_H): New variable.
1713 (GO_LEX_H): Use $(GO_LINEMAP_H).
1714 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1715 (go/go-linemap.o): New target.
1717 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1719 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1721 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1723 * lang.opt: Add fgo-optimize-.
1724 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1725 * go-c.h (go_enable_optimize): Declare.
1726 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1727 (GO_EXPORT_H): Define.
1728 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1729 (GO_AST_DUMP_H): Define.
1730 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1731 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1732 (go/types.o): Likewise.
1733 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1734 (go/go-optimize.o): New target.
1736 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1738 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1739 (go/go-lang.o): Remove explicit compilation rule.
1741 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1743 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1745 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1747 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1748 (go/ast-dump.o): New target.
1749 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1750 (go/statements.o): Likewise.
1752 2011-07-06 Richard Guenther <rguenther@suse.de>
1754 * go-lang.c (go_langhook_init):
1755 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1757 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1759 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1761 * go-backend.c: Include common/common-target.h.
1762 (go_write_export_data): Use targetm_common.have_named_sections.
1763 * go-lang.c: Include common/common-target.h.
1764 (go_langhook_init_options_struct): Use
1765 targetm_common.supports_split_stack.
1767 2011-06-13 Ian Lance Taylor <iant@google.com>
1769 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1771 2011-06-10 Ian Lance Taylor <iant@google.com>
1773 * go-gcc.cc: Include "toplev.h".
1774 (Gcc_backend::immutable_struct): New function.
1775 (Gcc_backend::immutable_struct_set_init): New function.
1776 (Gcc_backend::immutable_struct_reference): New function.
1777 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1779 2011-06-09 Ian Lance Taylor <iant@google.com>
1781 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1783 2011-06-07 Richard Guenther <rguenther@suse.de>
1785 * go-lang.c (go_langhook_init): Do not set
1786 size_type_node or call set_sizetype.
1788 2011-05-27 Ian Lance Taylor <iant@google.com>
1790 * go-backend.c: Include "output.h".
1791 (go_write_export_data): New function.
1792 * go-c.h (go_write_export_data): Declare.
1793 * Make-lang.in (go/go-backend.o): Depend on output.h.
1794 (go/export.o): Depend on $(GO_C_H). Do not depend on
1795 $(MACHMODE_H), output.h, or $(TARGET_H).
1797 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1799 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1800 (gccgo$(exeext)): Use libcommon-target.a.
1802 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1804 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1806 2011-05-13 Ian Lance Taylor <iant@google.com>
1808 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1809 for multiple results, check that all fields types have a size.
1810 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1812 2011-05-12 Ian Lance Taylor <iant@google.com>
1814 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1816 (Gcc_backend::parameter_variable): Likewise.
1818 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1820 * go-lang.c (global_bindings_p): Return bool and simplify.
1822 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1824 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1826 2011-05-04 Ian Lance Taylor <iant@google.com>
1828 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1829 (Gcc_backend::fill_in_struct): New function.
1830 (Gcc_backend::array_type): Implement.
1831 (Gcc_backend::fill_in_array): New function.
1832 (Gcc_backend::placeholder_pointer_type): New function.
1833 (Gcc_backend::set_placeholder_pointer_type): New function.
1834 (Gcc_backend::set_placeholder_function_type): New function.
1835 (Gcc_backend::placeholder_struct_type): New function.
1836 (Gcc_backend::set_placeholder_struct_type): New function.
1837 (Gcc_backend::placeholder_array_type): New function.
1838 (Gcc_backend::set_placeholder_array_type): New function.
1839 (Gcc_backend::named_type): New function.
1840 (Gcc_backend::circular_pointer_type): New function.
1841 (Gcc_backend::is_circular_pointer_type): New function.
1843 2011-04-26 Ian Lance Taylor <iant@google.com>
1845 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1847 2011-04-25 Ian Lance Taylor <iant@google.com>
1849 * go-gcc.cc (Gcc_backend::error_type): Implement.
1850 (Gcc_backend::string_type): Remove.
1851 (Gcc_backend::function_type): Change signature and implement.
1852 (Gcc_backend::struct_type): Change signature.
1853 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1854 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1855 (Gcc_backend::pointer_type): Check for error.
1856 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1858 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1860 * go-gcc.c (class Gcc_tree): Make get_tree const.
1861 (Gcc_backend::void_type): Implement.
1862 (Gcc_backend::bool_type): Implement.
1863 (Gcc_backend::integer_type): Implement.
1864 (Gcc_backend::float_type): Implement.
1865 (Gcc_backend::complex_type): New function.
1866 (Gcc_backend::pointer_type): New function.
1867 (Gcc_backend::make_type): New function.
1868 (type_to_tree): New function.
1870 2011-04-21 Ian Lance Taylor <iant@google.com>
1872 * go-system.h (go_assert, go_unreachable): Define.
1874 2011-04-19 Ian Lance Taylor <iant@google.com>
1876 * go-system.h: Include "intl.h".
1877 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1878 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1879 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1881 2011-04-19 Ian Lance Taylor <iant@google.com>
1883 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1885 2011-04-19 Ian Lance Taylor <iant@google.com>
1887 * go-gcc.cc (class Bblock): Define.
1888 (Gcc_backend::if_statement): Change then_block and else_block to
1890 (Gcc_backend::block): New function.
1891 (Gcc_backend::block_add_statements): New function.
1892 (Gcc_backend::block_statement): New function.
1893 (tree_to_block, block_to_tree): New functions.
1895 2011-04-18 Ian Lance Taylor <iant@google.com>
1897 * go-gcc.cc: Include "go-c.h".
1898 (class Bvariable): Define.
1899 (Gcc_backend::init_statement): New function.
1900 (Gcc_backend::global_variable): New function.
1901 (Gcc_backend::global_variable_set_init): New function.
1902 (Gcc_backend::local_variable): New function.
1903 (Gcc_backend::parameter_variable): New function.
1904 (tree_to_type, var_to_tree): New functions.
1905 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1906 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1908 2011-04-15 Ian Lance Taylor <iant@google.com>
1910 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1911 (Gcc_backend::assignment_statement): Use error_statement.
1912 (Gcc_backend::return_statement): Likewise.
1913 (Gcc_backend::if_statement): Likewise.
1914 (Gcc_backend::switch_statement): Likewise.
1915 (Gcc_backend::statement_list): Likewise.
1917 2011-04-14 Ian Lance Taylor <iant@google.com>
1919 * go-gcc.cc (Gcc_backend::error_statement): New function.
1921 2011-04-13 Ian Lance Taylor <iant@google.com>
1923 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1925 2011-04-13 Ian Lance Taylor <iant@google.com>
1927 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1928 (GO_RUNTIME_H): New variable.
1929 (go/runtime.o): New target.
1930 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1931 (go/statements.o): Likewise.
1933 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1935 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1938 2011-04-06 Ian Lance Taylor <iant@google.com>
1940 * go-gcc.cc (if_statement): Use build3_loc.
1941 (Gcc_backend::switch_statement): New function.
1942 (Gcc_backend::statement_list): New function.
1944 2011-04-06 Ian Lance Taylor <iant@google.com>
1946 * go-gcc.cc (Gcc_backend::if_statement): New function.
1947 (tree_to_stat): New function.
1948 (expr_to_tree): Renamed from expression_to_tree.
1949 (stat_to_tree): Renamed from statement_to_tree.
1951 2011-04-06 Ian Lance Taylor <iant@google.com>
1953 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1955 2011-04-04 Ian Lance Taylor <iant@google.com>
1957 * go-gcc.c (class Blabel): Define.
1958 (Gcc_backend::make_expression): New function.
1959 (get_identifier_from_string): New function.
1960 (Gcc_backend::label): New function.
1961 (Gcc_backend::label_definition_statement): New function.
1962 (Gcc_backend::goto_statement): New function.
1963 (Gcc_backend::label_address): New function.
1964 (expression_to_tree): New function.
1965 * Make-lang.in (go/expressions.o): Depend on
1966 go/gofrontend/backend.h.
1967 (go/gogo.o): Likewise.
1969 2011-04-04 Ian Lance Taylor <iant@google.com>
1971 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1972 (class Bfunction): Define.
1973 (Gcc_backend::assignment_statement): Rename from assignment.
1975 (Gcc_backend::return_statement): New function.
1976 (tree_to_function): New function.
1977 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1978 $(GIMPLE_H), and $(GO_GOGO_H).
1980 2011-04-03 Ian Lance Taylor <iant@google.com>
1982 * go-gcc.cc: New file.
1983 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1984 (go/go-gcc.o): New target.
1985 (go/go.o): Depend on go/gofrontend/backend.h.
1986 (go/statements.o): Likewise.
1988 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1990 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1992 2011-02-08 Ian Lance Taylor <iant@google.com>
1994 * go-lang.c (go_langhook_init_options_struct): Set
1995 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1997 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1999 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
2000 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
2002 2011-01-21 Ian Lance Taylor <iant@google.com>
2004 * go-lang.c (go_langhook_init): Omit float_type_size when calling
2006 * go-c.h: Update declaration of go_create_gogo.
2008 2011-01-13 Ian Lance Taylor <iant@google.com>
2010 * go-backend.c: Include "rtl.h" and "target.h".
2011 (go_imported_unsafe): New function.
2012 * go-c.h (go_imported_unsafe): Declare.
2013 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
2014 (go/gogo-tree.o): Remove dependency on $(RTL_H).
2015 (go/unsafe.o): Depend on $(GO_C_H).
2017 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
2020 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
2023 2010-12-21 Ian Lance Taylor <iant@google.com>
2025 * Make-lang.in (check-go): Remove.
2026 (lang_checks_parallelized): Add check-go.
2027 (check_go_parallelize): Set.
2029 2010-12-13 Ian Lance Taylor <iant@google.com>
2031 * gospec.c (lang_specific_driver): Add a -o option if not linking
2032 and there is no -o option already.
2034 2010-12-07 Ian Lance Taylor <iant@google.com>
2036 PR tree-optimization/46805
2037 PR tree-optimization/46833
2038 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
2040 2010-12-06 Ian Lance Taylor <iant@google.com>
2044 * go-lang.c (go_char_p): Define type and vectors.
2045 (go_search_dirs): New static variable.
2046 (go_langhook_handle_option): Use version and version/machine
2048 (go_langhook_post_options): Add non-specific -L paths.
2049 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
2050 DEFAULT_TARGET_MACHINE when compiling.
2051 * gccgo.texi (Invoking gccgo): Only document -L for linking.
2052 (Import and Export): Don't mention -L for finding import files.
2054 2010-12-03 Ian Lance Taylor <iant@google.com>
2057 * go-backend.c: New file.
2058 * go-c.h (go_type_alignment): Declare.
2059 (go_field_alignment, go_trampoline_info): Declare.
2060 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
2061 (go/go-backend.o): New target.
2062 (go/go-lang.o): Make dependencies match source file.
2063 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
2064 (go/gogo-tree.o): Don't depend on $(TM_H).
2066 2010-12-03 Ian Lance Taylor <iant@google.com>
2068 * config-lang.in (build_by_default): Set to no.
2070 2010-12-02 Ian Lance Taylor <iant@google.com>
2072 Go frontend added to gcc repository.
2074 Copyright (C) 2010-2023 Free Software Foundation, Inc.
2076 Copying and distribution of this file, with or without modification,
2077 are permitted in any medium without royalty provided the copyright
2078 notice and this notice are preserved.