1 2023-07-05 Robin Dapp <rdapp@ventanamicro.com>
2 Juzhe-Zhong <juzhe.zhong@rivai.ai>
4 * go-lang.cc (go_langhook_type_for_mode): Ditto.
6 2023-06-26 Ian Lance Taylor <iant@golang.org>
8 * lang.opt (fgo-importcfg): New option.
9 * go-c.h (struct go_create_gogo_args): Add importcfg field.
10 * go-lang.cc (go_importcfg): New static variable.
11 (go_langhook_init): Set args.importcfg.
12 (go_langhook_handle_option): Handle -fgo-importcfg.
13 * gccgo.texi (Invoking gccgo): Document -fgo-importcfg.
15 2023-06-22 Paul E. Murphy <murphyp@linux.ibm.com>
17 * go-backend.cc [TARGET_AIX]: Rename and update usage to TARGET_AIX_OS.
18 * go-lang.cc: Likewise.
20 2023-03-24 Jakub Jelinek <jakub@redhat.com>
23 * go-gcc.cc (Gcc_backend): Add new static data members builtin_pure
25 (Gcc_backend::Gcc_backend): Pass builtin_pure | builtin_nothrow for
27 (Gcc_backend::define_builtin): Handle builtin_pure and builtin_nothrow
30 2023-02-23 Arsen Arsenović <arsen@aarsen.me>
32 * gccgo.texi: Reorder index entries around @items.
34 2023-01-17 Ian Lance Taylor <iant@golang.org>
37 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_ctzl and
38 __builtin_clzl. Patch by Andrew Pinski.
40 2023-01-02 Jakub Jelinek <jakub@redhat.com>
42 * gccgo.texi: Bump @copyrights-go year.
44 2022-11-14 Martin Liska <mliska@suse.cz>
47 2022-11-14 Martin Liska <mliska@suse.cz>
49 * doc/c-interoperability.rst: New file.
50 * doc/c-type-interoperability.rst: New file.
51 * doc/compiler-directives.rst: New file.
52 * doc/conf.py: New file.
53 * doc/copyright.rst: New file.
54 * doc/function-names.rst: New file.
55 * doc/general-public-license-3.rst: New file.
56 * doc/gnu-free-documentation-license.rst: New file.
57 * doc/import-and-export.rst: New file.
58 * doc/index.rst: New file.
59 * doc/indices-and-tables.rst: New file.
60 * doc/introduction.rst: New file.
61 * doc/invoking-gccgo.rst: New file.
63 2022-11-14 Martin Liska <mliska@suse.cz>
66 2022-11-14 Martin Liska <mliska@suse.cz>
68 * Make-lang.in: Support Sphinx based documentation.
70 2022-11-14 Martin Liska <mliska@suse.cz>
73 2022-11-14 Martin Liska <mliska@suse.cz>
75 * gccgo.texi: Removed.
77 2022-11-14 Martin Liska <mliska@suse.cz>
80 2022-11-14 Martin Liska <mliska@suse.cz>
82 * Make-lang.in: Support --with-sphinx-build.
84 2022-11-14 Martin Liska <mliska@suse.cz>
87 2022-11-14 Martin Liska <mliska@suse.cz>
90 Support installation if sphinx-build is missing.
91 Support installation if sphinx-build is missing.
93 2022-11-14 Martin Liska <mliska@suse.cz>
96 2022-11-14 Martin Liska <mliska@suse.cz>
98 * doc/c-interoperability.rst:
100 * doc/c-type-interoperability.rst:
101 Add trailing newline.
102 * doc/compiler-directives.rst:
103 Add trailing newline.
105 Add trailing newline.
106 * doc/function-names.rst:
107 Add trailing newline.
108 * doc/general-public-license-3.rst:
109 Add trailing newline.
110 * doc/gnu-free-documentation-license.rst:
111 Add trailing newline.
112 * doc/import-and-export.rst:
113 Add trailing newline.
115 Add trailing newline.
116 * doc/indices-and-tables.rst:
117 Add trailing newline.
118 * doc/introduction.rst:
119 Add trailing newline.
120 * doc/invoking-gccgo.rst:
121 Add trailing newline.
123 2022-11-14 Martin Liska <mliska@suse.cz>
126 2022-11-14 Martin Liska <mliska@suse.cz>
128 * doc/conf.py: Add newline at last line.
130 2022-11-10 Martin Liska <mliska@suse.cz>
132 * doc/conf.py: Add newline at last line.
134 2022-11-10 Ian Lance Taylor <iant@golang.org>
137 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
138 __atomic_fetch_add_{4,8}.
140 2022-11-09 Martin Liska <mliska@suse.cz>
142 * doc/c-interoperability.rst:
143 Add trailing newline.
144 * doc/c-type-interoperability.rst:
145 Add trailing newline.
146 * doc/compiler-directives.rst:
147 Add trailing newline.
149 Add trailing newline.
150 * doc/function-names.rst:
151 Add trailing newline.
152 * doc/general-public-license-3.rst:
153 Add trailing newline.
154 * doc/gnu-free-documentation-license.rst:
155 Add trailing newline.
156 * doc/import-and-export.rst:
157 Add trailing newline.
159 Add trailing newline.
160 * doc/indices-and-tables.rst:
161 Add trailing newline.
162 * doc/introduction.rst:
163 Add trailing newline.
164 * doc/invoking-gccgo.rst:
165 Add trailing newline.
167 2022-11-09 Martin Liska <mliska@suse.cz>
170 Support installation if sphinx-build is missing.
171 Support installation if sphinx-build is missing.
173 2022-11-09 Martin Liska <mliska@suse.cz>
175 * Make-lang.in: Support --with-sphinx-build.
177 2022-11-09 Martin Liska <mliska@suse.cz>
179 * gccgo.texi: Removed.
181 2022-11-09 Martin Liska <mliska@suse.cz>
183 * Make-lang.in: Support Sphinx based documentation.
185 2022-11-09 Martin Liska <mliska@suse.cz>
187 * doc/c-interoperability.rst: New file.
188 * doc/c-type-interoperability.rst: New file.
189 * doc/compiler-directives.rst: New file.
190 * doc/conf.py: New file.
191 * doc/copyright.rst: New file.
192 * doc/function-names.rst: New file.
193 * doc/general-public-license-3.rst: New file.
194 * doc/gnu-free-documentation-license.rst: New file.
195 * doc/import-and-export.rst: New file.
196 * doc/index.rst: New file.
197 * doc/indices-and-tables.rst: New file.
198 * doc/introduction.rst: New file.
199 * doc/invoking-gccgo.rst: New file.
201 2022-09-15 Richard Biener <rguenther@suse.de>
203 * go-lang.cc (go_langhook_init): Do not initialize
206 2022-09-02 Martin Liska <mliska@suse.cz>
208 * go-lang.cc (go_langhook_pushdecl): Remove -gstabs option support, DBX-related
209 macros and DBX debugging info support.
210 * gospec.cc (lang_specific_driver): Likewise.
212 2022-07-16 Ian Lance Taylor <iant@golang.org>
214 * go-gcc.cc (Gcc_backend::struct_field_expression): Handle a void
215 expression, as for f().x where f returns a zero-sized type.
217 2022-07-15 Ian Lance Taylor <iant@golang.org>
219 * go-gcc.cc (Gcc_backend::call_expression): Handle a void
220 argument, as for f(g()) where g returns a zero-sized type.
222 2022-06-02 David Malcolm <dmalcolm@redhat.com>
224 * go-lang.cc (go_get_sarif_source_language): New.
225 (LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine.
227 2022-05-31 Jason Merrill <jason@redhat.com>
229 * Make-lang.in (go.tags): Look at *.cc.
231 2022-02-13 Ian Lance Taylor <iant@golang.org>
233 * gospec.cc: Revert 2022-02-09 change:
234 (RTLIB, RT_LIBRARY): Don't define.
235 (lang_specific_driver): Don't add -lrt if linking statically
238 2022-02-09 Ian Lance Taylor <iant@golang.org>
240 * gospec.cc (RTLIB, RT_LIBRARY): Define.
241 (lang_specific_driver): Add -lrt if linking statically on
244 2022-02-09 Ian Lance Taylor <iant@golang.org>
246 * go-gcc.cc (Gcc_backend::Gcc_backend): Define builtins
247 __atomic_load_1 and __atomic_store_1.
249 2022-01-17 Martin Liska <mliska@suse.cz>
251 * config-lang.in: Rename .c names to .cc.
252 * go-backend.cc: Likewise.
253 * go-lang.cc: Likewise.
254 * gospec.cc: Likewise.
255 * lang-specs.h: Likewise.
257 2022-01-17 Martin Liska <mliska@suse.cz>
259 * go-backend.c: Moved to...
260 * go-backend.cc: ...here.
261 * go-lang.c: Moved to...
262 * go-lang.cc: ...here.
263 * gospec.c: Moved to...
264 * gospec.cc: ...here.
266 2022-01-03 Jakub Jelinek <jakub@redhat.com>
268 * gccgo.texi: Bump @copyrights-go year.
270 2021-12-28 Martin Liska <mliska@suse.cz>
272 * gccgo.texi: Replace http:// with https.
274 2021-11-29 Eric Gallager <egallager@gcc.gnu.org>
277 * Make-lang.in: Use ETAGS variable in TAGS target.
279 2021-09-27 Martin Liska <mliska@suse.cz>
281 * go-lang.c (go_langhook_init_options_struct): Set also
282 x_flag_default_complex_method.
284 2021-06-29 Ian Lance Taylor <iant@golang.org>
286 * go-gcc.cc (Gcc_backend::static_chain_variable): Set
287 DECL_NAMELESS on the new decl.
288 (Gcc_backend::temporary_variable): Likewise.
289 (Gcc_backend::function): Set DECL_NAMELESS on the result decl.
291 2021-05-27 Ian Lance Taylor <iant@golang.org>
293 * gccgo.texi (Function Names): Don't HTML quote ampersand.
295 2021-05-24 Ian Lance Taylor <iant@golang.org>
298 * go-gcc.cc (class Gcc_backend): Update methods that create
299 variables to take a flags parameter.
301 2021-01-28 Ian Lance Taylor <iant@golang.org>
303 * gospec.c (lang_specific_driver): Add -g if no debugging options
306 2021-01-15 Ian Lance Taylor <iant@golang.org>
308 * Make-lang.in (GO_OBJS): Add go/embed.o.
310 2021-01-05 Jakub Jelinek <jakub@redhat.com>
312 * lang.opt (fgo-embedcfg=): Add full stop at the end of description.
314 2021-01-05 Ian Lance Taylor <iant@golang.org>
316 * lang.opt (fgo-embedcfg): New option.
317 * go-c.h (struct go_create_gogo_args): Add embedcfg field.
318 * go-lang.c (go_embedcfg): New static variable.
319 (go_langhook_init): Set go_create_gogo_args embedcfg field.
320 (go_langhook_handle_option): Handle OPT_fgo_embedcfg_.
321 * gccgo.texi (Invoking gccgo): Document -fgo-embedcfg.
323 2021-01-01 Jakub Jelinek <jakub@redhat.com>
325 * gccgo.texi: Bump @copyrights-go year.
327 2020-12-22 Ian Lance Taylor <iant@golang.org>
330 * go-lang.c (go_langhook_init): Force MPFR exponent range to be
331 large enough to support Go constants.
333 2020-11-20 Jakub Jelinek <jakub@redhat.com>
336 * Make-lang.in (go.serial): Change from goal to a variable.
337 (.PHONY): Drop go.serial and go.prev.
338 (go1$(exeext)): Depend on $(go.serial) rather than go.serial.
340 2020-11-18 Jakub Jelinek <jakub@redhat.com>
342 * Make-lang.in (go.serial): New goal.
343 (.PHONY): Add go.serial go.prev.
344 (go1$(exeext)): Depend on go.prev. Call LINK_PROGRESS.
346 2020-11-11 Alan Modra <amodra@gmail.com>
348 * go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to
349 avoid ambiguous overloaded call.
351 2020-11-06 Nathan Sidwell <nathan@acm.org>
353 * go-gcc.cc (Gcc_backend::call_expression): Rename
354 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
356 2020-11-04 Ian Lance Taylor <iant@golang.org>
358 * go-lang.c (go_langhook_post_options): Disable
359 -fipa-icf-functions if it was not explicitly enabled.
361 2020-09-14 Jakub Jelinek <jakub@redhat.com>
363 * go-gcc.cc (Gcc_backend::function): Adjust
364 cl_optimization_save, cl_optimization_restore and
365 build_optimization_node callers.
367 2020-08-10 Clément Chigot <chigot.c@gmail.com>
369 * go-c.h (struct go_create_gogo_args): Add need_eqtype field.
370 * go-lang.c (go_langhook_init): Set need_eqtype.
372 2020-04-15 Ian Lance Taylor <iant@golang.org>
375 * go-gcc.cc (class Gcc_backend): Define builtin_const,
376 builtin_noreturn, builtin_novops.
377 (Gcc_backend::define_builtin): Change const_p and noreturn_p
378 parameters to a single flags parameter. Change all callers.
379 (Gcc_backend::Gcc_backend): Pass novops for prefetch.
381 2020-01-01 Jakub Jelinek <jakub@redhat.com>
383 Update copyright years.
385 * gccgo.texi: Bump @copyrights-go year.
387 2019-11-12 Martin Liska <mliska@suse.cz>
389 * go-lang.c (go_langhook_post_options):
390 Use SET_OPTION_IF_UNSET.
392 2019-09-04 Ian Lance Taylor <iant@golang.org>
394 PR tree-optimization/91663
395 * go-lang.c (go_langhook_post_options): Clear
396 flag_partial_inlining.
398 2019-08-23 Jakub Jelinek <jakub@redhat.com>
401 * go-lang.c (go_langhook_post_options): Set flag_excess_precision
402 instead of flag_excess_precision_cmdline.
404 2019-07-02 Cherry Zhang <cherryyz@google.com>
406 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_memset.
408 2019-06-21 Cherry Zhang <cherryyz@google.com>
410 * go-gcc.cc (Gcc_backend::Gcc_backend): Define math/bits
413 2019-05-30 Jim Wilson <jimw@sifive.com>
415 * go-gcc.cc (Gcc_backend::Gcc_backend): Add BUILT_IN_ATOMIC_FETCH_AND_1
416 and BUILT_IN_ATOMIC_FETCH_OR_1.
418 2019-05-16 Cherry Zhang <cherryyz@google.com>
420 * go-gcc.cc (Gcc_backend::Gcc_backend): Define atomic builtins.
422 2019-05-08 Cherry Zhang <cherryyz@google.com>
424 * go-gcc.cc (Gcc_backend::Gcc_backend): Define memmove builtin.
426 2019-05-07 Cherry Zhang <cherryyz@google.com>
428 * lang.opt (-fgo-debug-optimization): New option.
429 * go-c.h (struct go_create_gogo_args): Add debug_optimization
431 * go-lang.c (go_langhook_init): Set debug_optimization field.
432 * gccgo.texi (Invoking gccgo): Document -fgo-debug-optimization.
434 2019-03-06 Ian Lance Taylor <iant@golang.org>
437 * go-gcc.cc (Gcc_backend::function): Set TREE_PUBLIC for an
438 only-inline function.
440 2019-02-15 Cherry Zhang <cherryyz@google.com>
442 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_dwarf_cfa
443 instead of __builtin_frame_address.
445 2019-02-14 Ian Lance Taylor <iant@golang.org>
447 * go-backend.c (go_imported_unsafe): Update
448 optimization_default_node.
450 2019-02-13 Ian Lance Taylor <iant@golang.org>
452 * go-gcc.cc: #include "opts.h".
453 (Gcc_backend::function): Compile thunks with -Os.
455 2019-02-05 Nikhil Benesch <nikhil.benesch@gmail.com>
458 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Mark
459 placeholder structs as requiring structural equality.
460 (Gcc_backend::set_placeholder_pointer_type): Propagate the
461 canonical type from the desired pointer type to the placeholder
464 2019-01-09 Ian Lance Taylor <iant@golang.org>
467 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Go back to
468 build_distinct_type_copy, but copy the fields so that they have
469 the right DECL_CONTEXT.
471 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
475 * go-backend.c: Mechanically replace "can not" with "cannot".
476 * go-gcc.cc: Likewise.
478 2019-01-01 Jakub Jelinek <jakub@redhat.com>
480 Update copyright years.
482 * gccgo.texi: Bump @copyrights-go year.
484 2018-11-27 Ian Lance Taylor <iant@golang.org>
486 * go-gcc.cc (Gcc_backend::function): Handle function_only_inline
489 2018-11-13 David Malcolm <dmalcolm@redhat.com>
491 * go-gcc-diagnostics.cc: Replace "source_location" with "location_t".
492 * go-gcc.cc: Likewise.
493 * go-linemap.cc: Likewise.
494 * go-location.h: Likewise.
495 * gofrontend/README: Likewise.
497 2018-10-31 Ian Lance Taylor <iant@golang.org>
499 * go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
500 gimplify_function_tree. Instead call allocate_struct_function if
503 2018-10-29 Ian Lance Taylor <iant@golang.org>
505 * go-gcc.cc (Gcc_backend::function): Change to use a single flags
508 2018-10-29 Ian Lance Taylor <iant@golang.org>
510 * go-linemap.cc (Gcc_linemap::location_file): New method.
512 2018-10-17 David Malcolm <dmalcolm@redhat.com>
514 * Make-lang.in (selftest-go): New.
516 2018-09-20 Allan Sandfeld Jensen <allan.jensen@qt.io>
518 * gospec.c (lang_specific_driver): Handle -r like -nostdlib.
520 2018-08-27 Martin Liska <mliska@suse.cz>
522 * go-gcc.cc (Gcc_backend::call_expression): Use new function
523 fndecl_built_in_p and remove check for FUNCTION_DECL if
526 2018-07-20 Martin Sebor <msebor@redhat.com>
529 * go-lang.c (go_langhook_handle_option): Change function argument
532 2018-06-28 Ian Lance Taylor <iant@golang.org>
535 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
536 build_variant_type_copy rather than build_distinct_type_copy.
538 2018-06-08 Cherry Zhang <cherryyz@google.com>
540 * go-gcc.cc (class Gcc_backend): Remove
541 stack_allocation_expression method.
543 2018-02-03 Ian Lance Taylor <iant@golang.org>
545 * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
546 using structural equality.
548 2018-02-02 Ian Lance Taylor <iant@golang.org>
550 * go-gcc.cc (Gcc_backend::type_size): Return 0 for
552 (Gcc_backend::convert_expression): Don't convert if the type of
553 expr_tree is void_type_node.
554 (Gcc_backend::array_index_expression): Don't index if the type of
555 the array expression is void_type_node.
556 (Gcc_backend::init_statement): Don't initialize if the type of the
557 initializer expression is void_type_node.
558 (Gcc_backend::assignment_statement): Don't assign if the type of
559 either the left or right hand side is void_type_node.
560 (Gcc_backend::temporary_variable): Don't initialize if the type of
561 the initializer expression is void_type_node.
563 2018-02-01 Cherry Zhang <cherryyz@google.com>
565 * lang.opt (fgo-optimize): Remove RejectNegative.
566 * go-c.h (go_enable_optimize): Update declaration to take value
568 * go-lang.c (go_langhook_handle_option): Pass value to
570 * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
572 2018-01-30 Ian Lance Taylor <iant@golang.org>
574 * go-gcc.cc (Gcc_backend::convert_tree): New private method.
575 (Gcc_backend::constructor_expression): Call it.
576 (Gcc_backend::assignment_statement): Likewise.
577 (Gcc_backend::temporary_variable): Likewise.
579 2018-01-09 Cherry Zhang <cherryyz@google.com>
581 * go-gcc.cc (local_variable): Add decl_var parameter.
583 2018-01-09 Cherry Zhang <cherryyz@google.com>
585 * lang.opt (fgo-debug-escape-hash): New option.
586 * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
588 * go-lang.c (go_langhook_init): Set debug_escape_hash field.
589 * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
591 2018-01-05 Ian Lance Taylor <iant@golang.org>
593 * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
594 math_function_type_long to take one argument.
596 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
597 Alan Hayward <alan.hayward@arm.com>
598 David Sherwood <david.sherwood@arm.com>
600 * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
602 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
603 Alan Hayward <alan.hayward@arm.com>
604 David Sherwood <david.sherwood@arm.com>
606 * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
608 2018-01-03 Jakub Jelinek <jakub@redhat.com>
610 Update copyright years.
612 * gccgo.texi: Bump @copyrights-go year.
614 2017-12-12 Tony Reix <tony.reix@atos.net>
615 Ian Lance Taylor <iant@golang.org>
617 * go-lang.c (TARGET_AIX): Define if not defined.
618 (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
620 2017-12-01 Ian Lance Taylor <iant@golang.org>
622 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
623 __builtin_unreachable.
624 (Gcc_backend::function): Add does_not_return parameter.
626 2017-12-01 Than McIntosh <thanm@google.com>
628 * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
630 * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
632 2017-11-28 Jakub Jelinek <jakub@redhat.com>
634 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
635 build2_loc instead of build3_loc.
637 2017-11-14 Than McIntosh <thanm@google.com>
639 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
641 2017-10-11 Tony Reix <tony.reix@atos.net>
643 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
644 system header files, as is done in ../system.h.
646 2017-10-05 Ian Lance Taylor <iant@golang.org>
648 * Make-lang.in (GO_OBJS): Add go/names.o.
650 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
651 Alan Hayward <alan.hayward@arm.com>
652 David Sherwood <david.sherwood@arm.com>
654 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
656 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
657 Alan Hayward <alan.hayward@arm.com>
658 David Sherwood <david.sherwood@arm.com>
660 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
662 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
663 Alan Hayward <alan.hayward@arm.com>
664 David Sherwood <david.sherwood@arm.com>
666 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
668 2017-08-07 Martin Liska <mliska@suse.cz>
670 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
671 and not __no_split_stack__.
673 2017-07-27 Tony Reix <tony.reix@atos.net>
675 * go-backend.c (go_write_export_data): Use EXCLUDE section for
678 2017-06-09 Ian Lance Taylor <iant@golang.org>
680 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
681 on, disable implicit -forder-blocks-and-partition.
683 2017-05-12 Than McIntosh <thanm@google.com>
685 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
687 2017-05-11 Ian Lance Taylor <iant@google.com>
690 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
691 DECL_EXTERNAL, clear TREE_STATIC.
693 2017-05-10 Than McIntosh <thanm@google.com>
695 * go-backend.c: Include "go-c.h".
696 * go-gcc.cc (Gcc_backend::write_export_data): New method.
698 2017-05-10 Ian Lance Taylor <iant@google.com>
700 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
702 * Make-lang.in (GO_OBJS): Add go/wb.o.
704 2017-03-28 Than McIntosh <thanm@google.com>
707 * go-gcc.cc (Gcc_backend::return_statement): Check for
708 void_type_node when checking result size.
710 2017-02-20 Ian Lance Taylor <iant@golang.org>
713 * lang.opt (-fgo-relative-import-path): Change space to tab.
715 2017-02-07 Richard Biener <rguenther@suse.de>
717 PR tree-optimization/79256
719 * go-backend.c (go_field_alignment): Adjust.
721 2017-01-11 Than McIntosh <thanm@google.com>
723 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
725 2017-01-01 Jakub Jelinek <jakub@redhat.com>
727 Update copyright years.
729 * gccgo.texi: Bump @copyrights-go year.
731 2016-12-16 Than McIntosh <thanm@google.com>
733 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
735 (Gcc_backend::init_statement): Likewise.
736 (Gcc_backend::assignment_statement): Likewise.
737 (Gcc_backend::if_statement): Likewise.
739 2016-12-06 Than McIntosh <thanm@google.com>
741 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
744 2016-11-22 Than McIntosh <thanm@google.com>
746 * go-gcc.cc (char_needs_encoding): Remove.
747 (needs_encoding, fetch_utf8_char, encode_id): Remove.
748 (Gcc_backend::global_variable): Add asm_name parameter. Don't
749 compute asm_name here.
750 (Gcc_backend::implicit_variable): Likewise.
751 (Gcc_backend::implicit_variable_reference): Likewise.
752 (Gcc_backend::immutable_struct): Likewise.
753 (Gcc_backend::immutable_struct_reference): Likewise.
754 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
756 2016-11-22 Ian Lance Taylor <iant@google.com>
758 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
759 __builtin_frame_address.
761 2016-10-25 David Malcolm <dmalcolm@redhat.com>
763 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
764 from result of GET_MODE_CLASS. Minor formatting fixes.
766 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
768 * go-backend.c: Include memmodel.h.
770 2016-10-10 Than McIntosh <thanm@google.com>
772 * go-gcc.h: New file.
773 * go-c.h (struct go_create_gogo_args): Add backend and linemap
775 * go-lang.c: Include "go-gcc.h".
776 (go_langhook_init): Set linemap and backend fields of args.
777 * go-gcc.cc: Include "go-gcc.h".
778 * go-linemap.cc: Include "go-gcc.h".
780 2016-10-10 Than McIntosh <thanm@google.com>
782 * go-linemap.cc (Gcc_linemap::location_line): New method.
784 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
786 * config-lang.in (lang_requires_boot_languages): Delete.
788 2016-10-06 Chris Manghane <cmang@google.com>
790 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
793 2016-09-27 Than McIntosh <thanm@google.com>
795 * go-linemap.cc (Gcc_linemap::to_string): New method.
797 2016-09-23 Than McIntosh <thanm@google.com>
799 * go-gcc-diagnostics.cc: New file.
800 * go-location.h (Location): Remove operator source_location. Add
802 * go-system.h: #include <sstream>.
803 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
804 go/go-gcc-diagnostics.o.
805 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
807 2016-09-23 Chris Manghane <cmang@google.com>
810 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
811 to pass arguments in the correct order.
813 2016-09-22 Ian Lance Taylor <iant@golang.org>
815 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
816 __builtin_frame_address.
818 2016-09-11 Ian Lance Taylor <iant@golang.org>
820 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
821 ctz, ctzll, bswap32, bswap64.
823 2016-09-10 Ian Lance Taylor <iant@golang.org>
825 * go-backend.c (go_trampoline_info): Remove.
826 * go-c.h (go_trampoline_info): Don't declare.
828 2016-09-09 Than McIntosh <thanm@google.com>
830 * go-sha1.cc: New file.
831 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
832 (CFLAGS-go/go-sha1.o): New variable.
834 2016-08-29 Ian Lance Taylor <iant@google.com>
836 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
837 * go-c.h (struct go_create_gogo_args): Define.
838 (go_create_gogo): Change declaration to take struct pointer.
839 * go-lang.c (go_c_header): New static variable.
840 (go_langhook_init): Update call to go_create_gogo.
841 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
842 -fgo-compiling-runtime.
844 2016-08-09 Ian Lance Taylor <iant@google.com>
846 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
848 (Compiler Directives): New chapter.
849 (Function Names): Describe using //go:linkname. Suggest using
850 -fgo-pkgpath rather than -fgo-prefix.
852 2016-08-08 Ian Lance Taylor <iant@google.com>
855 * go-gcc.cc (Gcc_backend::function_type): If the return type is
856 zero bytes, treat the function as returning void.
857 (return_statement): If the return type is zero bytes, don't
858 actually return any values.
860 2016-08-05 Ian Lance Taylor <iant@google.com>
863 * go-gcc.cc (char_needs_encoding): New static function.
864 (needs_encoding, fetch_utf8_char): New static functions.
865 (encode_id): New static function.
866 (Gcc_backend::global_variable): Set asm name if the name is not
868 (Gcc_backend::implicit_variable): Likewise.
869 (Gcc_backend::implicit_variable_reference): Likewise.
870 (Gcc_backend::immutable_struct): Likewise.
871 (Gcc_backend::immutable_struct_reference): Likewise.
872 (Gcc_backend::function): Likewise.
874 2016-08-02 Chris Manghane <cmang@google.com>
876 * lang.opt: Add -fgo-debug-escape option.
877 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
878 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
881 2016-05-06 Chris Manghane <cmang@google.com>
883 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
886 2016-04-29 Chris Manghane <cmang@google.com>
888 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
890 2016-04-18 Michael Matz <matz@suse.de>
892 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
894 2016-02-12 Jakub Jelinek <jakub@redhat.com>
896 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
897 neighbour -> neighbor.
898 * gccgo.texi: Likewise.
900 2016-01-27 Ian Lance Taylor <iant@google.com>
902 * go-lang.c (go_langhook_init_options_struct): Default to
903 -fkeep-gc-roots-live.
905 2016-01-04 Jakub Jelinek <jakub@redhat.com>
907 Update copyright years.
909 * gccgo.texi: Bump @copyrights-go year.
911 2015-12-21 Ian Lance Taylor <iant@google.com>
913 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
914 t_ and orig_type_ fields. Add new two parameter constructor. Add
915 get_tree and get_decl methods.
916 (Gcc_backend::var_expression): Pass location to var get_tree.
917 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
918 two parameter constructor for Bvariable.
919 (Gcc_backend::global_variable_set_init): Don't remove
920 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
921 (Gcc_backend::write_global_definitions): Likewise.
922 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
923 (Gcc_backend::block): Likewise.
924 (Gcc_backend::implicit_variable_set_init): Likewise.
925 (Gcc_backend::immutable_struct_set_init): Likewise.
926 (Gcc_backend::function_set_parameters): Likewise.
928 2015-12-21 Ian Lance Taylor <iant@google.com>
930 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
931 add a VIEW_CONVERT_EXPR to the tree.
932 (Gcc_backend::global_variable_set_init): Remove any
934 (Gcc_backend::write_global_definitions): Likewise.
936 2015-11-30 Ian Lance Taylor <iant@google.com>
939 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
940 TYPE_STRING_FLAG on a variant type.
942 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
944 * go-backend.c: Remove unused header files.
945 * go-gcc.cc: Likewise.
946 * go-lang.c: Likewise.
947 * gospec.c: Likewise.
949 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
951 * go-backend.c: Reorder #include's and remove duplicates.
952 * go-lang.c: Likewise.
954 2015-10-20 Alan Modra <amodra@gmail.com>
957 * gospec.c (saw_opt_m32): Rename to..
958 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
960 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
962 2015-10-01 Ian Lance Taylor <iant@google.com>
965 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
966 TARGET_CAN_SPLIT_STACK_64BIT is defined.
968 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
971 * gospec.c (lang_specific_driver): Set appropriate split stack
972 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
974 2015-09-10 Chris Manghane <cmang@google.com>
976 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
977 unrepresentable size.
979 2015-08-24 Marek Polacek <polacek@redhat.com>
981 PR tree-optimization/67284
982 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
983 Set TREE_THIS_VOLATILE.
984 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
985 Pass false to the rest of define_builtin calls.
987 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
989 * go-lang.c (go_langhook_init_options_struct): Don't set
991 (go_langhook_post_options): Set it here instead.
993 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
995 * gofrontend/backend.h: Fix double word typos.
996 * gofrontend/expressions.cc: Same.
999 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1001 * go-backend.c: Adjust includes.
1002 * go-gcc.cc: Likewise.
1003 * go-lang.c: Likewise.
1005 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1007 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
1009 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1011 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
1012 * go-gcc.cc: Likewise.
1013 * go-lang.c: Likewise.
1014 * go-system.h: Likewise.
1016 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1018 * go-backend.c : Adjust include files.
1019 * go-gcc.cc : Likewise.
1020 * go-lang.c : Likewise.
1022 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1024 * go-gcc.cc (write_global_definitions): Remove call to
1025 finalize_compilation_unit.
1026 Remove Go specific debug generation.
1027 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
1028 (go_langhook_write_globals): Remove.
1029 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
1031 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1033 * go-backend.c: Adjust includes for restructured coretypes.h.
1035 * go-gcc.cc: Likewise.
1036 * go-lang.c: Likewise.
1038 2015-04-30 Chris Manghane <cmang@google.com>
1040 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
1043 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
1045 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
1047 2015-04-17 Chris Manghane <cmang@google.com>
1049 * Make-lang.in (GO_OBJS): Add go/escape.o.
1051 2015-02-02 Ian Lance Taylor <iant@google.com>
1055 * go-gcc.cc (Gcc_backend::type_size): Change return type to
1057 (Gcc_backend::type_alignment): Likewise.
1058 (Gcc_backend::type_field_alignment): Likewise.
1059 (Gcc_backend::type_field_offset): Likewise.
1060 (Gcc_backend::implicit_variable): Change alignment parameter type
1063 2015-01-23 Ian Lance Taylor <iant@google.com>
1066 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
1069 * gccgo.texi (C Interoperability): Mention that people should use
1072 2015-01-23 Ian Lance Taylor <iant@google.com>
1075 * go-lang.c (go_langhook_init_options_struct): Set default
1077 (go_langhook_post_options): If debug_info_level is still the
1078 default, make sure write_symbols is set.
1079 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
1081 2015-01-16 Richard Henderson <rth@redhat.com>
1083 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
1084 (Gcc_backend::static_chain_variable): New method.
1086 2015-01-09 Ian Lance Taylor <iant@google.com>
1088 * config-lang.in (lang_dirs): Define.
1090 2015-01-09 Michael Collison <michael.collison@linaro.org>
1092 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
1093 input.h, alias.h, symtab.h, options.h, fold-const.h,
1094 wide-int.h, and inchash.h due to flattening of tree.h.
1096 * go-backend.c: Ditto.
1098 2015-01-07 Chris Manghane <cmang@google.com>
1101 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
1102 zero-sized variable.
1104 2015-01-06 Chris Manghane <cmang@google.com>
1106 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
1107 initialize zero-sized fields, just evaluate the values for side
1110 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1112 Update copyright years.
1114 * gccgo.texi: Bump @copyrights-go year.
1116 2014-12-19 Chris Manghane <cmang@google.com>
1118 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
1119 construct arrays of zero-sized values.
1121 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1123 * go-lang.c: Remove redundant enum from machine_mode.
1125 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1127 * go-gcc.cc: Adjust include files.
1129 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1131 * go-gcc.cc: Adjust include files.
1134 2014-10-23 Ian Lance Taylor <iant@google.com>
1136 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
1137 mpc_t parameter instead of two mpfr_t parameters.
1139 2014-09-15 Jakub Jelinek <jakub@redhat.com>
1141 * Make-lang.in (check_go_parallelize): Change to just an upper bound
1144 2014-09-03 Chris Manghane <cmang@google.com>
1146 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
1147 parameter. Add is_hidden parameter.
1148 (Gcc_backend::implicit_variable_set_init): New method.
1149 (Gcc_backend::implicit_variable_reference): New method.
1151 2014-08-08 Ian Lance Taylor <iant@google.com>
1153 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
1156 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
1158 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
1159 symtab_get_node to symtab_node::get.
1161 2014-06-13 Ian Lance Taylor <iant@google.com>
1164 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
1165 ld, add -t option to avoid warning about common symbol changing
1168 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
1170 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
1171 symtab_get_node(var_decl)->implicit_section.
1173 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
1175 * go-gcc.cc (global_variable_set_init): Use
1176 set_decl_section_name.
1178 2014-06-04 Ian Lance Taylor <iant@google.com>
1180 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
1181 alignment parameters. Permit init parameter to be NULL.
1183 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
1185 * go-gcc.cc: Include builtins.h.
1187 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1189 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
1191 2014-05-06 Chris Manghane <cmang@google.com>
1193 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
1194 (Gcc_backend::boolean_constant_expression): New method.
1195 (Gcc_backend::zero_expression): Use this->make_expression rather
1197 (Gcc_backend::var_expression): Likewise.
1198 (Gcc_backend::integer_constant_expression): Likewise.
1199 (Gcc_backend::float_constant_expression): Likewise.
1200 (Gcc_backend::complex_constant_expression): Likewise.
1201 (Gcc_backend::struct_field_expression): Likewise.
1202 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
1203 (tree_to_function, tree_to_block): Remove functions.
1204 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
1205 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
1207 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1208 Mike Stump <mikestump@comcast.net>
1209 Richard Sandiford <rdsandiford@googlemail.com>
1211 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
1213 2014-05-06 Chris Manghane <cmang@google.com>
1215 * go-c.h (go_create_gogo): Update declaration to add
1216 check_divide_zero and check_divide_overflow parameters.
1217 * go-lang.c (go_langhook_init): Pass new arguments to
1220 2014-05-05 Chris Manghane <cmang@google.com>
1222 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
1223 gc_root_variable. Add name and is_constant parameters.
1225 2014-05-05 Chris Manghane <cmang@google.com>
1227 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
1229 (Gcc_backend::temporary_variable): Check for erroneous function.
1231 2014-04-30 Chris Manghane <cmang@google.com>
1233 * go-backend.c: #include "diagnostics.h".
1234 (saw_errors): New function.
1235 * go-c.h (saw_errors): Declare.
1236 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
1238 2014-04-30 Chris Manghane <cmang@google.com>
1240 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
1241 calling into Go frontend.
1242 (go_langhook_type_for_mode): Likewise.
1243 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
1245 2014-04-30 Chris Manghane <cmang@google.com>
1247 * go-gcc.cc: #include "langhooks.h".
1248 (Gcc_backend::Gcc_backend): Add constructor.
1249 (Gcc_backend::lookup_function): New function.
1250 (Gcc_backend::define_builtin): New private function.
1251 (Gcc_backend::gcc_backend): Remove.
1252 (go_get_backend): Use new to create new Gcc_backend.
1254 2014-04-25 Chris Manghane <cmang@google.com>
1256 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
1257 (Gcc_backend::return_statement): Push and pop function.
1258 (Gcc_backend::label): Likewise.
1259 (Gcc_backend::function_defer_statement): Likewise.
1260 (Gcc_backend::switch_statement): Add function parameter.
1261 (Gcc_backend::block): Don't permit function to be NULL.
1262 (Gcc_backend::temporary_variable): Change go_assert to
1264 (Gcc_backend::gc_root_variable): New function.
1265 (Gcc_backend::write_global_definitions): New function.
1267 2014-04-22 Chris Manghane <cmang@google.com>
1269 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
1270 call to create_tmp_var. Require that function be non-NULL.
1272 2014-04-17 Chris Manghane <cmang@google.com>
1274 * go-gcc.cc (Gcc_backend::named_constant_expression): New
1277 2014-04-14 Chris Manghane <cmang@google.com>
1279 * go-gcc.cc: Include "convert.h".
1280 (Gcc_backend::string_constant_expression): New function.
1281 (Gcc_backend::real_part_expression): Likewise.
1282 (Gcc_backend::imag_part_expression): Likewise.
1283 (Gcc_backend::complex_expression): Likewise.
1284 (Gcc_backend::constructor_expression): Likewise.
1285 (Gcc_backend::array_constructor_expression): Likewise.
1286 (Gcc_backend::pointer_offset_expression): Likewise.
1287 (Gcc_backend::array_index_expression): Likewise.
1288 (Gcc_backend::call_expression): Likewise.
1289 (Gcc_backend::exception_handler_statement): Likewise.
1290 (Gcc_backend::function_defer_statement): Likewise.
1291 (Gcc_backend::function_set_parameters): Likewise.
1292 (Gcc_backend::function_set_body): Likewise.
1293 (Gcc_backend::convert_expression): Handle various type
1296 2014-03-03 Ian Lance Taylor <iant@google.com>
1298 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
1300 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
1303 2014-01-24 Chris Manghane <cmang@google.com>
1305 * go-gcc.cc (Gcc_backend::unary_expression): New function.
1307 2014-01-16 Chris Manghane <cmang@google.com>
1309 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
1311 (operator_to_tree_code): New static function.
1312 (Gcc_backend::binary_expression): New function.
1314 2014-01-14 Chris Manghane <cmang@google.com>
1316 * go-gcc.cc (Gcc_backend::compound_expression): New function.
1317 (Gcc_backend::conditional_expression): New function.
1319 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1321 Update copyright years
1323 2014-01-02 Tobias Burnus <burnus@net-b.de>
1325 * gccgo.texi: Bump @copying's copyright year.
1327 2013-12-16 Chris Manghane <cmang@google.com>
1329 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
1331 2013-12-11 Ian Lance Taylor <iant@google.com>
1333 * go-lang.c (go_langhook_post_options): Disable sibling calls by
1336 2013-12-10 Ian Lance Taylor <iant@google.com>
1338 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
1341 2013-12-05 Ian Lance Taylor <iant@google.com>
1343 Revert this change; no longer required.
1344 2013-11-06 Ian Lance Taylor <iant@google.com>
1346 * go-lang.c (go_langhook_post_options): If
1347 -fisolate-erroneous-paths was turned on by an optimization option,
1350 2013-11-23 Ian Lance Taylor <iant@google.com>
1352 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
1355 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1357 * go-gcc.cc: Add required include files from gimple.h.
1358 * go-lang.c: Likewise.
1360 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1362 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
1363 tree_to_shwi throughout.
1365 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1367 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
1368 tree_fits_shwi_p throughout.
1370 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1372 * go-lang.c: Include only gimplify.h and gimple.h as needed.
1374 2013-11-14 Diego Novillo <dnovillo@google.com>
1376 * go-backend.c: Include stor-layout.h.
1377 * go-gcc.cc: Include stringpool.h.
1378 Include stor-layout.h.
1380 * go-lang.c: Include stor-layout.h.
1382 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1384 * go-lang.c: Include gimplify.h.
1386 2013-11-06 Ian Lance Taylor <iant@google.com>
1388 * go-lang.c (go_langhook_post_options): If
1389 -fisolate-erroneous-paths was turned on by an optimization option,
1392 2013-10-14 Chris Manghane <cmang@google.com>
1394 * go-gcc.cc (Gcc_backend::address_expression): New function.
1396 2013-10-11 Chris Manghane <cmang@google.com>
1398 * go-gcc.cc (Gcc_backend::function_code_expression): New
1401 2013-10-10 Chris Manghane <cmang@google.com>
1403 * go-gcc.cc (Gcc_backend::error_function): New function.
1404 (Gcc_backend::function): New function.
1405 (Gcc_backend::make_function): New function.
1406 (function_to_tree): New function.
1408 2013-10-04 Chris Manghane <cmang@google.com>
1410 * go-gcc.cc (Gcc_backend::convert_expression): New function.
1412 2013-10-02 Chris Manghane <cmang@google.com>
1414 * go-gcc.cc: Include "real.h" and "realmpfr.h".
1415 (Gcc_backend::integer_constant_expression): New function.
1416 (Gcc_backend::float_constant_expression): New function.
1417 (Gcc_backend::complex_constant_expression): New function.
1419 2013-09-30 Chris Manghane <cmang@google.com>
1421 * go-gcc.cc (Gcc_backend::error_expression): New function.
1422 (Gcc_backend::var_expression): New function.
1423 (Gcc_backend::indirect_expression): New function.
1425 2013-09-25 Tom Tromey <tromey@redhat.com>
1427 * Make-lang.in (gospec.o): Remove.
1428 (CFLAGS-go/gospec.o): New variable.
1429 (GCCGO_OBJS): Update to use go/gospec.o.
1431 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
1432 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
1433 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
1434 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
1435 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
1436 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
1437 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
1438 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
1439 (go/unsafe.o): Remove.
1440 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
1441 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
1443 2013-09-25 Tom Tromey <tromey@redhat.com>
1445 * Make-lang.in (gospec.o): Don't use subshell.
1447 2013-08-28 Ian Lance Taylor <iant@google.com>
1449 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
1450 the struct is not hidden.
1451 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
1453 2013-08-06 Ian Lance Taylor <iant@google.com>
1455 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
1456 compute_reloc_for_constant.
1458 2013-08-02 Ian Lance Taylor <iant@google.com>
1460 * go-gcc.cc (immutable_struct_set_init): Always call
1461 resolve_unique_section.
1463 2013-07-24 Ian Lance Taylor <iant@google.com>
1465 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
1466 fields, recreate those fields with the first one with a non-zero
1469 2013-07-23 Ian Lance Taylor <iant@google.com>
1471 * go-backend.c: Don't #include "rtl.h".
1472 (go_imported_unsafe): Don't call init_varasm_once.
1473 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
1475 2013-07-23 Ian Lance Taylor <iant@google.com>
1477 * go-lang.c: Don't #include "except.h".
1478 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
1480 2013-06-18 Ian Lance Taylor <iant@google.com>
1482 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
1484 (Gcc_backend::immutable_struct_set_init): Likewise.
1486 2013-05-16 Jason Merrill <jason@redhat.com>
1488 * Make-lang.in (go1$(exeext)): Use link mutex.
1490 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
1492 * gospec.c: pass -u pthread_create to linker when static linking.
1494 2012-12-21 Ian Lance Taylor <iant@google.com>
1497 * go-system.h: Don't include <cstdio>.
1499 2012-12-18 Ian Lance Taylor <iant@google.com>
1502 * gospec.c: Revert last patch.
1504 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
1507 * gospec.c (LIBATOMIC): Define.
1508 (LIBATOMIC_PROFILE): Define.
1509 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
1511 2012-11-29 Ian Lance Taylor <iant@google.com>
1513 * go-gcc.cc: Include "output.h".
1514 (global_variable): Add is_unique_section parameter.
1515 (global_variable_set_init): Adjust unique section if necessary.
1516 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
1518 2012-11-17 Diego Novillo <dnovillo@google.com>
1520 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1522 * go-lang.c: Use new vec API in vec.h.
1524 2012-11-16 Ian Lance Taylor <iant@google.com>
1526 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
1527 (go1$(exeext)): Likewise.
1529 2012-10-30 Ian Lance Taylor <iant@google.com>
1531 * lang.opt (-fgo-relative-import-path): New option.
1532 * go-lang.c (go_relative_import_path): New static variable.
1533 (go_langhook_init): Pass go_relative_import_path to
1535 (go_langhook_handle_option): Handle -fgo-relative-import-path.
1536 * go-c.h (go_create_gogo): Update declaration.
1537 * gccgo.texi (Invoking gccgo): Document
1538 -fgo-relative-import-path.
1540 2012-09-17 Ian Lance Taylor <iant@google.com>
1542 * config-lang.in (target_libs): Add target-libbacktrace.
1544 2012-09-16 Ian Lance Taylor <iant@google.com>
1546 * Make-lang.in (go/gogo.o): Depend on filenames.h.
1548 2012-08-14 Diego Novillo <dnovillo@google.com>
1550 Merge from cxx-conversion branch. Configury.
1552 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1553 * go-gcc.cc: Likewise.
1554 * go-system.h: Likewise.
1556 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
1558 * go-lang.c (lang_decl): Add variable_size GTY option.
1560 2012-05-09 Ian Lance Taylor <iant@google.com>
1562 * lang.opt: Add -fgo-pkgpath.
1563 * go-lang.c (go_pkgpath): New static variable.
1564 (go_prefix): New static variable.
1565 (go_langhook_init): Pass go_pkgpath and go_prefix to
1567 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
1568 -fgo-prefix handling to just set go_prefix.
1569 * go-c.h (go_set_prefix): Don't declare.
1570 (go_create_gogo): Add pkgpath and prefix to declaration.
1571 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1572 to pkgpath. Don't include the package name in the asm name.
1573 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
1574 docs for -fgo-prefix.
1576 2012-04-23 Ian Lance Taylor <iant@google.com>
1578 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1580 2012-04-20 Ian Lance Taylor <iant@google.com>
1582 * lang.opt: Add -fgo-check-divide-zero and
1583 -fgo-check-divide-overflow.
1584 * gccgo.texi (Invoking gccgo): Document new options.
1586 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1588 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1589 with NULL_TREE type instead of void_type_node.
1591 2012-03-09 Ian Lance Taylor <iant@google.com>
1593 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1594 to the lhs type if necessary.
1596 2012-03-08 Ian Lance Taylor <iant@google.com>
1598 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1599 zero-sized variable.
1600 (go_non_zero_struct): New global variable.
1601 (Gcc_backend::non_zero_size_type): New function.
1602 (Gcc_backend::global_variable): Don't build an assignment for a
1604 * go-c.h (go_non_zero_struct): Declare.
1605 * config-lang.in (gtfiles): Add go-c.h.
1607 2012-02-29 Ian Lance Taylor <iant@google.com>
1609 * go-gcc.cc (class Gcc_tree): Add set_tree method.
1610 (set_placeholder_pointer_type): When setting to a pointer to
1611 error, set to error_mark_node.
1613 2012-02-23 Richard Guenther <rguenther@suse.de>
1615 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1616 build_distinct_type_copy.
1618 2012-02-17 Ian Lance Taylor <iant@google.com>
1620 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1622 2012-02-17 Ian Lance Taylor <iant@google.com>
1624 * gospec.c (lang_specific_driver): If linking, and no -o option
1627 2012-02-14 Ian Lance Taylor <iant@google.com>
1630 * Make-lang.in (gccgo-cross$(exeext)): New target.
1631 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1633 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1634 gccgo-cross$(exeext) does not exist.
1636 2012-02-07 Ian Lance Taylor <iant@google.com>
1638 * gccgo.texi (Function Names): Document //extern instead of
1641 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1644 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1645 return build_nonstandard_integer_type result if possible.
1647 2012-01-21 Ian Lance Taylor <iant@google.com>
1649 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1650 (Gcc_backend::type_alignment): Likewise.
1651 (Gcc_backend::type_field_alignment): Likewise.
1652 (Gcc_backend::type_field_offset): Likewise.
1654 2012-01-20 Ian Lance Taylor <iant@google.com>
1656 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1658 (Gcc_backend::set_placeholder_struct_type): Likewise.
1660 2012-01-17 Ian Lance Taylor <iant@google.com>
1662 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1663 BASE.s rather than -o BASE.o.
1665 2012-01-11 Ian Lance Taylor <iant@google.com>
1667 * go-lang.c (go_langhook_init): Initialize void_list_node before
1668 calling go_create_gogo.
1670 2012-01-10 Ian Lance Taylor <iant@google.com>
1672 * go-gcc.cc (Gcc_backend::type_size): New function.
1673 (Gcc_backend::type_alignment): New function.
1674 (Gcc_backend::type_field_alignment): New function.
1675 (Gcc_backend::type_field_offset): New function.
1676 * go-backend.c (go_type_alignment): Remove.
1677 * go-c.h (go_type_alignment): Don't declare.
1679 2011-12-27 Ian Lance Taylor <iant@google.com>
1681 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1682 build_distinct_type_copy rather than build_variant_type_copy.
1683 (Gcc_backend::set_placeholder_array_type): Likewise.
1684 (Gcc_backend::named_type): Add special handling for builtin
1687 2011-12-22 Ian Lance Taylor <iant@google.com>
1689 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1690 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1691 (Gcc_backend::set_placeholder_struct_type): Likewise.
1692 (Gcc_backend::set_placeholder_array_type): Likewise.
1693 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1695 2011-12-13 Ian Lance Taylor <iant@google.com>
1697 * go-backend.c: #include "simple-object.h" and "intl.h".
1698 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1699 (GO_EXPORT_SECTION_NAME): Likewise.
1700 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1701 (go_read_export_data): New function.
1702 * go-c.h (go_read_export_data): Declare.
1704 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1705 Ian Lance Taylor <iant@google.com>
1707 * go-location.h: New file.
1708 * go-linemap.cc: New file.
1709 * go-gcc.cc: Change all uses of source_location to Location.
1710 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1711 (GO_LINEMAP_H): New variable.
1712 (GO_LEX_H): Use $(GO_LINEMAP_H).
1713 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1714 (go/go-linemap.o): New target.
1716 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1718 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1720 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1722 * lang.opt: Add fgo-optimize-.
1723 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1724 * go-c.h (go_enable_optimize): Declare.
1725 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1726 (GO_EXPORT_H): Define.
1727 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1728 (GO_AST_DUMP_H): Define.
1729 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1730 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1731 (go/types.o): Likewise.
1732 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1733 (go/go-optimize.o): New target.
1735 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1737 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1738 (go/go-lang.o): Remove explicit compilation rule.
1740 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1742 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1744 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1746 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1747 (go/ast-dump.o): New target.
1748 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1749 (go/statements.o): Likewise.
1751 2011-07-06 Richard Guenther <rguenther@suse.de>
1753 * go-lang.c (go_langhook_init):
1754 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1756 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1758 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1760 * go-backend.c: Include common/common-target.h.
1761 (go_write_export_data): Use targetm_common.have_named_sections.
1762 * go-lang.c: Include common/common-target.h.
1763 (go_langhook_init_options_struct): Use
1764 targetm_common.supports_split_stack.
1766 2011-06-13 Ian Lance Taylor <iant@google.com>
1768 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1770 2011-06-10 Ian Lance Taylor <iant@google.com>
1772 * go-gcc.cc: Include "toplev.h".
1773 (Gcc_backend::immutable_struct): New function.
1774 (Gcc_backend::immutable_struct_set_init): New function.
1775 (Gcc_backend::immutable_struct_reference): New function.
1776 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1778 2011-06-09 Ian Lance Taylor <iant@google.com>
1780 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1782 2011-06-07 Richard Guenther <rguenther@suse.de>
1784 * go-lang.c (go_langhook_init): Do not set
1785 size_type_node or call set_sizetype.
1787 2011-05-27 Ian Lance Taylor <iant@google.com>
1789 * go-backend.c: Include "output.h".
1790 (go_write_export_data): New function.
1791 * go-c.h (go_write_export_data): Declare.
1792 * Make-lang.in (go/go-backend.o): Depend on output.h.
1793 (go/export.o): Depend on $(GO_C_H). Do not depend on
1794 $(MACHMODE_H), output.h, or $(TARGET_H).
1796 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1798 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1799 (gccgo$(exeext)): Use libcommon-target.a.
1801 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1803 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1805 2011-05-13 Ian Lance Taylor <iant@google.com>
1807 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1808 for multiple results, check that all fields types have a size.
1809 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1811 2011-05-12 Ian Lance Taylor <iant@google.com>
1813 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1815 (Gcc_backend::parameter_variable): Likewise.
1817 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1819 * go-lang.c (global_bindings_p): Return bool and simplify.
1821 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1823 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1825 2011-05-04 Ian Lance Taylor <iant@google.com>
1827 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1828 (Gcc_backend::fill_in_struct): New function.
1829 (Gcc_backend::array_type): Implement.
1830 (Gcc_backend::fill_in_array): New function.
1831 (Gcc_backend::placeholder_pointer_type): New function.
1832 (Gcc_backend::set_placeholder_pointer_type): New function.
1833 (Gcc_backend::set_placeholder_function_type): New function.
1834 (Gcc_backend::placeholder_struct_type): New function.
1835 (Gcc_backend::set_placeholder_struct_type): New function.
1836 (Gcc_backend::placeholder_array_type): New function.
1837 (Gcc_backend::set_placeholder_array_type): New function.
1838 (Gcc_backend::named_type): New function.
1839 (Gcc_backend::circular_pointer_type): New function.
1840 (Gcc_backend::is_circular_pointer_type): New function.
1842 2011-04-26 Ian Lance Taylor <iant@google.com>
1844 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1846 2011-04-25 Ian Lance Taylor <iant@google.com>
1848 * go-gcc.cc (Gcc_backend::error_type): Implement.
1849 (Gcc_backend::string_type): Remove.
1850 (Gcc_backend::function_type): Change signature and implement.
1851 (Gcc_backend::struct_type): Change signature.
1852 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1853 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1854 (Gcc_backend::pointer_type): Check for error.
1855 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1857 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1859 * go-gcc.c (class Gcc_tree): Make get_tree const.
1860 (Gcc_backend::void_type): Implement.
1861 (Gcc_backend::bool_type): Implement.
1862 (Gcc_backend::integer_type): Implement.
1863 (Gcc_backend::float_type): Implement.
1864 (Gcc_backend::complex_type): New function.
1865 (Gcc_backend::pointer_type): New function.
1866 (Gcc_backend::make_type): New function.
1867 (type_to_tree): New function.
1869 2011-04-21 Ian Lance Taylor <iant@google.com>
1871 * go-system.h (go_assert, go_unreachable): Define.
1873 2011-04-19 Ian Lance Taylor <iant@google.com>
1875 * go-system.h: Include "intl.h".
1876 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1877 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1878 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1880 2011-04-19 Ian Lance Taylor <iant@google.com>
1882 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1884 2011-04-19 Ian Lance Taylor <iant@google.com>
1886 * go-gcc.cc (class Bblock): Define.
1887 (Gcc_backend::if_statement): Change then_block and else_block to
1889 (Gcc_backend::block): New function.
1890 (Gcc_backend::block_add_statements): New function.
1891 (Gcc_backend::block_statement): New function.
1892 (tree_to_block, block_to_tree): New functions.
1894 2011-04-18 Ian Lance Taylor <iant@google.com>
1896 * go-gcc.cc: Include "go-c.h".
1897 (class Bvariable): Define.
1898 (Gcc_backend::init_statement): New function.
1899 (Gcc_backend::global_variable): New function.
1900 (Gcc_backend::global_variable_set_init): New function.
1901 (Gcc_backend::local_variable): New function.
1902 (Gcc_backend::parameter_variable): New function.
1903 (tree_to_type, var_to_tree): New functions.
1904 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1905 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1907 2011-04-15 Ian Lance Taylor <iant@google.com>
1909 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1910 (Gcc_backend::assignment_statement): Use error_statement.
1911 (Gcc_backend::return_statement): Likewise.
1912 (Gcc_backend::if_statement): Likewise.
1913 (Gcc_backend::switch_statement): Likewise.
1914 (Gcc_backend::statement_list): Likewise.
1916 2011-04-14 Ian Lance Taylor <iant@google.com>
1918 * go-gcc.cc (Gcc_backend::error_statement): New function.
1920 2011-04-13 Ian Lance Taylor <iant@google.com>
1922 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1924 2011-04-13 Ian Lance Taylor <iant@google.com>
1926 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1927 (GO_RUNTIME_H): New variable.
1928 (go/runtime.o): New target.
1929 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1930 (go/statements.o): Likewise.
1932 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1934 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1937 2011-04-06 Ian Lance Taylor <iant@google.com>
1939 * go-gcc.cc (if_statement): Use build3_loc.
1940 (Gcc_backend::switch_statement): New function.
1941 (Gcc_backend::statement_list): New function.
1943 2011-04-06 Ian Lance Taylor <iant@google.com>
1945 * go-gcc.cc (Gcc_backend::if_statement): New function.
1946 (tree_to_stat): New function.
1947 (expr_to_tree): Renamed from expression_to_tree.
1948 (stat_to_tree): Renamed from statement_to_tree.
1950 2011-04-06 Ian Lance Taylor <iant@google.com>
1952 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1954 2011-04-04 Ian Lance Taylor <iant@google.com>
1956 * go-gcc.c (class Blabel): Define.
1957 (Gcc_backend::make_expression): New function.
1958 (get_identifier_from_string): New function.
1959 (Gcc_backend::label): New function.
1960 (Gcc_backend::label_definition_statement): New function.
1961 (Gcc_backend::goto_statement): New function.
1962 (Gcc_backend::label_address): New function.
1963 (expression_to_tree): New function.
1964 * Make-lang.in (go/expressions.o): Depend on
1965 go/gofrontend/backend.h.
1966 (go/gogo.o): Likewise.
1968 2011-04-04 Ian Lance Taylor <iant@google.com>
1970 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1971 (class Bfunction): Define.
1972 (Gcc_backend::assignment_statement): Rename from assignment.
1974 (Gcc_backend::return_statement): New function.
1975 (tree_to_function): New function.
1976 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1977 $(GIMPLE_H), and $(GO_GOGO_H).
1979 2011-04-03 Ian Lance Taylor <iant@google.com>
1981 * go-gcc.cc: New file.
1982 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1983 (go/go-gcc.o): New target.
1984 (go/go.o): Depend on go/gofrontend/backend.h.
1985 (go/statements.o): Likewise.
1987 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1989 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1991 2011-02-08 Ian Lance Taylor <iant@google.com>
1993 * go-lang.c (go_langhook_init_options_struct): Set
1994 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1996 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1998 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1999 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
2001 2011-01-21 Ian Lance Taylor <iant@google.com>
2003 * go-lang.c (go_langhook_init): Omit float_type_size when calling
2005 * go-c.h: Update declaration of go_create_gogo.
2007 2011-01-13 Ian Lance Taylor <iant@google.com>
2009 * go-backend.c: Include "rtl.h" and "target.h".
2010 (go_imported_unsafe): New function.
2011 * go-c.h (go_imported_unsafe): Declare.
2012 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
2013 (go/gogo-tree.o): Remove dependency on $(RTL_H).
2014 (go/unsafe.o): Depend on $(GO_C_H).
2016 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
2019 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
2022 2010-12-21 Ian Lance Taylor <iant@google.com>
2024 * Make-lang.in (check-go): Remove.
2025 (lang_checks_parallelized): Add check-go.
2026 (check_go_parallelize): Set.
2028 2010-12-13 Ian Lance Taylor <iant@google.com>
2030 * gospec.c (lang_specific_driver): Add a -o option if not linking
2031 and there is no -o option already.
2033 2010-12-07 Ian Lance Taylor <iant@google.com>
2035 PR tree-optimization/46805
2036 PR tree-optimization/46833
2037 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
2039 2010-12-06 Ian Lance Taylor <iant@google.com>
2043 * go-lang.c (go_char_p): Define type and vectors.
2044 (go_search_dirs): New static variable.
2045 (go_langhook_handle_option): Use version and version/machine
2047 (go_langhook_post_options): Add non-specific -L paths.
2048 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
2049 DEFAULT_TARGET_MACHINE when compiling.
2050 * gccgo.texi (Invoking gccgo): Only document -L for linking.
2051 (Import and Export): Don't mention -L for finding import files.
2053 2010-12-03 Ian Lance Taylor <iant@google.com>
2056 * go-backend.c: New file.
2057 * go-c.h (go_type_alignment): Declare.
2058 (go_field_alignment, go_trampoline_info): Declare.
2059 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
2060 (go/go-backend.o): New target.
2061 (go/go-lang.o): Make dependencies match source file.
2062 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
2063 (go/gogo-tree.o): Don't depend on $(TM_H).
2065 2010-12-03 Ian Lance Taylor <iant@google.com>
2067 * config-lang.in (build_by_default): Set to no.
2069 2010-12-02 Ian Lance Taylor <iant@google.com>
2071 Go frontend added to gcc repository.
2073 Copyright (C) 2010-2023 Free Software Foundation, Inc.
2075 Copying and distribution of this file, with or without modification,
2076 are permitted in any medium without royalty provided the copyright
2077 notice and this notice are preserved.