1 2024-06-25 Kewen Lin <linkw@linux.ibm.com>
3 * go-gcc.cc (Gcc_backend::float_type): Use TYPE_PRECISION of
4 {float,double,long_double}_type_node to replace
5 {FLOAT,DOUBLE,LONG_DOUBLE}_TYPE_SIZE.
6 (Gcc_backend::complex_type): Likewise.
8 2024-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10 * gospec.cc (lang_specific_driver) [TARGET_SOLARIS !USE_GLD]: Only
13 2024-05-26 Gerald Pfeifer <gerald@pfeifer.com>
15 * gccgo.texi (Top): Move a web reference from golang.org to go.dev.
16 (C Interoperability): Move a web reference from golang.org to
19 2024-04-05 Christophe Lyon <christophe.lyon@linaro.org>
21 * Make-lang.in (go.install-dvi): New rule.
23 2024-01-04 David Malcolm <dmalcolm@redhat.com>
25 * lang.opt.urls: New file, autogenerated by
26 regenerate-opt-urls.py.
28 2024-01-03 Jakub Jelinek <jakub@redhat.com>
30 * gccgo.texi: Bump @copyrights-go year.
32 2023-07-05 Robin Dapp <rdapp@ventanamicro.com>
33 Juzhe-Zhong <juzhe.zhong@rivai.ai>
35 * go-lang.cc (go_langhook_type_for_mode): Ditto.
37 2023-06-26 Ian Lance Taylor <iant@golang.org>
39 * lang.opt (fgo-importcfg): New option.
40 * go-c.h (struct go_create_gogo_args): Add importcfg field.
41 * go-lang.cc (go_importcfg): New static variable.
42 (go_langhook_init): Set args.importcfg.
43 (go_langhook_handle_option): Handle -fgo-importcfg.
44 * gccgo.texi (Invoking gccgo): Document -fgo-importcfg.
46 2023-06-22 Paul E. Murphy <murphyp@linux.ibm.com>
48 * go-backend.cc [TARGET_AIX]: Rename and update usage to TARGET_AIX_OS.
49 * go-lang.cc: Likewise.
51 2023-03-24 Jakub Jelinek <jakub@redhat.com>
54 * go-gcc.cc (Gcc_backend): Add new static data members builtin_pure
56 (Gcc_backend::Gcc_backend): Pass builtin_pure | builtin_nothrow for
58 (Gcc_backend::define_builtin): Handle builtin_pure and builtin_nothrow
61 2023-02-23 Arsen Arsenović <arsen@aarsen.me>
63 * gccgo.texi: Reorder index entries around @items.
65 2023-01-17 Ian Lance Taylor <iant@golang.org>
68 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_ctzl and
69 __builtin_clzl. Patch by Andrew Pinski.
71 2023-01-02 Jakub Jelinek <jakub@redhat.com>
73 * gccgo.texi: Bump @copyrights-go year.
75 2022-11-14 Martin Liska <mliska@suse.cz>
78 2022-11-14 Martin Liska <mliska@suse.cz>
80 * doc/c-interoperability.rst: New file.
81 * doc/c-type-interoperability.rst: New file.
82 * doc/compiler-directives.rst: New file.
83 * doc/conf.py: New file.
84 * doc/copyright.rst: New file.
85 * doc/function-names.rst: New file.
86 * doc/general-public-license-3.rst: New file.
87 * doc/gnu-free-documentation-license.rst: New file.
88 * doc/import-and-export.rst: New file.
89 * doc/index.rst: New file.
90 * doc/indices-and-tables.rst: New file.
91 * doc/introduction.rst: New file.
92 * doc/invoking-gccgo.rst: New file.
94 2022-11-14 Martin Liska <mliska@suse.cz>
97 2022-11-14 Martin Liska <mliska@suse.cz>
99 * Make-lang.in: Support Sphinx based documentation.
101 2022-11-14 Martin Liska <mliska@suse.cz>
104 2022-11-14 Martin Liska <mliska@suse.cz>
106 * gccgo.texi: Removed.
108 2022-11-14 Martin Liska <mliska@suse.cz>
111 2022-11-14 Martin Liska <mliska@suse.cz>
113 * Make-lang.in: Support --with-sphinx-build.
115 2022-11-14 Martin Liska <mliska@suse.cz>
118 2022-11-14 Martin Liska <mliska@suse.cz>
121 Support installation if sphinx-build is missing.
122 Support installation if sphinx-build is missing.
124 2022-11-14 Martin Liska <mliska@suse.cz>
127 2022-11-14 Martin Liska <mliska@suse.cz>
129 * doc/c-interoperability.rst:
130 Add trailing newline.
131 * doc/c-type-interoperability.rst:
132 Add trailing newline.
133 * doc/compiler-directives.rst:
134 Add trailing newline.
136 Add trailing newline.
137 * doc/function-names.rst:
138 Add trailing newline.
139 * doc/general-public-license-3.rst:
140 Add trailing newline.
141 * doc/gnu-free-documentation-license.rst:
142 Add trailing newline.
143 * doc/import-and-export.rst:
144 Add trailing newline.
146 Add trailing newline.
147 * doc/indices-and-tables.rst:
148 Add trailing newline.
149 * doc/introduction.rst:
150 Add trailing newline.
151 * doc/invoking-gccgo.rst:
152 Add trailing newline.
154 2022-11-14 Martin Liska <mliska@suse.cz>
157 2022-11-14 Martin Liska <mliska@suse.cz>
159 * doc/conf.py: Add newline at last line.
161 2022-11-10 Martin Liska <mliska@suse.cz>
163 * doc/conf.py: Add newline at last line.
165 2022-11-10 Ian Lance Taylor <iant@golang.org>
168 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
169 __atomic_fetch_add_{4,8}.
171 2022-11-09 Martin Liska <mliska@suse.cz>
173 * doc/c-interoperability.rst:
174 Add trailing newline.
175 * doc/c-type-interoperability.rst:
176 Add trailing newline.
177 * doc/compiler-directives.rst:
178 Add trailing newline.
180 Add trailing newline.
181 * doc/function-names.rst:
182 Add trailing newline.
183 * doc/general-public-license-3.rst:
184 Add trailing newline.
185 * doc/gnu-free-documentation-license.rst:
186 Add trailing newline.
187 * doc/import-and-export.rst:
188 Add trailing newline.
190 Add trailing newline.
191 * doc/indices-and-tables.rst:
192 Add trailing newline.
193 * doc/introduction.rst:
194 Add trailing newline.
195 * doc/invoking-gccgo.rst:
196 Add trailing newline.
198 2022-11-09 Martin Liska <mliska@suse.cz>
201 Support installation if sphinx-build is missing.
202 Support installation if sphinx-build is missing.
204 2022-11-09 Martin Liska <mliska@suse.cz>
206 * Make-lang.in: Support --with-sphinx-build.
208 2022-11-09 Martin Liska <mliska@suse.cz>
210 * gccgo.texi: Removed.
212 2022-11-09 Martin Liska <mliska@suse.cz>
214 * Make-lang.in: Support Sphinx based documentation.
216 2022-11-09 Martin Liska <mliska@suse.cz>
218 * doc/c-interoperability.rst: New file.
219 * doc/c-type-interoperability.rst: New file.
220 * doc/compiler-directives.rst: New file.
221 * doc/conf.py: New file.
222 * doc/copyright.rst: New file.
223 * doc/function-names.rst: New file.
224 * doc/general-public-license-3.rst: New file.
225 * doc/gnu-free-documentation-license.rst: New file.
226 * doc/import-and-export.rst: New file.
227 * doc/index.rst: New file.
228 * doc/indices-and-tables.rst: New file.
229 * doc/introduction.rst: New file.
230 * doc/invoking-gccgo.rst: New file.
232 2022-09-15 Richard Biener <rguenther@suse.de>
234 * go-lang.cc (go_langhook_init): Do not initialize
237 2022-09-02 Martin Liska <mliska@suse.cz>
239 * go-lang.cc (go_langhook_pushdecl): Remove -gstabs option support, DBX-related
240 macros and DBX debugging info support.
241 * gospec.cc (lang_specific_driver): Likewise.
243 2022-07-16 Ian Lance Taylor <iant@golang.org>
245 * go-gcc.cc (Gcc_backend::struct_field_expression): Handle a void
246 expression, as for f().x where f returns a zero-sized type.
248 2022-07-15 Ian Lance Taylor <iant@golang.org>
250 * go-gcc.cc (Gcc_backend::call_expression): Handle a void
251 argument, as for f(g()) where g returns a zero-sized type.
253 2022-06-02 David Malcolm <dmalcolm@redhat.com>
255 * go-lang.cc (go_get_sarif_source_language): New.
256 (LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine.
258 2022-05-31 Jason Merrill <jason@redhat.com>
260 * Make-lang.in (go.tags): Look at *.cc.
262 2022-02-13 Ian Lance Taylor <iant@golang.org>
264 * gospec.cc: Revert 2022-02-09 change:
265 (RTLIB, RT_LIBRARY): Don't define.
266 (lang_specific_driver): Don't add -lrt if linking statically
269 2022-02-09 Ian Lance Taylor <iant@golang.org>
271 * gospec.cc (RTLIB, RT_LIBRARY): Define.
272 (lang_specific_driver): Add -lrt if linking statically on
275 2022-02-09 Ian Lance Taylor <iant@golang.org>
277 * go-gcc.cc (Gcc_backend::Gcc_backend): Define builtins
278 __atomic_load_1 and __atomic_store_1.
280 2022-01-17 Martin Liska <mliska@suse.cz>
282 * config-lang.in: Rename .c names to .cc.
283 * go-backend.cc: Likewise.
284 * go-lang.cc: Likewise.
285 * gospec.cc: Likewise.
286 * lang-specs.h: Likewise.
288 2022-01-17 Martin Liska <mliska@suse.cz>
290 * go-backend.c: Moved to...
291 * go-backend.cc: ...here.
292 * go-lang.c: Moved to...
293 * go-lang.cc: ...here.
294 * gospec.c: Moved to...
295 * gospec.cc: ...here.
297 2022-01-03 Jakub Jelinek <jakub@redhat.com>
299 * gccgo.texi: Bump @copyrights-go year.
301 2021-12-28 Martin Liska <mliska@suse.cz>
303 * gccgo.texi: Replace http:// with https.
305 2021-11-29 Eric Gallager <egallager@gcc.gnu.org>
308 * Make-lang.in: Use ETAGS variable in TAGS target.
310 2021-09-27 Martin Liska <mliska@suse.cz>
312 * go-lang.c (go_langhook_init_options_struct): Set also
313 x_flag_default_complex_method.
315 2021-06-29 Ian Lance Taylor <iant@golang.org>
317 * go-gcc.cc (Gcc_backend::static_chain_variable): Set
318 DECL_NAMELESS on the new decl.
319 (Gcc_backend::temporary_variable): Likewise.
320 (Gcc_backend::function): Set DECL_NAMELESS on the result decl.
322 2021-05-27 Ian Lance Taylor <iant@golang.org>
324 * gccgo.texi (Function Names): Don't HTML quote ampersand.
326 2021-05-24 Ian Lance Taylor <iant@golang.org>
329 * go-gcc.cc (class Gcc_backend): Update methods that create
330 variables to take a flags parameter.
332 2021-01-28 Ian Lance Taylor <iant@golang.org>
334 * gospec.c (lang_specific_driver): Add -g if no debugging options
337 2021-01-15 Ian Lance Taylor <iant@golang.org>
339 * Make-lang.in (GO_OBJS): Add go/embed.o.
341 2021-01-05 Jakub Jelinek <jakub@redhat.com>
343 * lang.opt (fgo-embedcfg=): Add full stop at the end of description.
345 2021-01-05 Ian Lance Taylor <iant@golang.org>
347 * lang.opt (fgo-embedcfg): New option.
348 * go-c.h (struct go_create_gogo_args): Add embedcfg field.
349 * go-lang.c (go_embedcfg): New static variable.
350 (go_langhook_init): Set go_create_gogo_args embedcfg field.
351 (go_langhook_handle_option): Handle OPT_fgo_embedcfg_.
352 * gccgo.texi (Invoking gccgo): Document -fgo-embedcfg.
354 2021-01-01 Jakub Jelinek <jakub@redhat.com>
356 * gccgo.texi: Bump @copyrights-go year.
358 2020-12-22 Ian Lance Taylor <iant@golang.org>
361 * go-lang.c (go_langhook_init): Force MPFR exponent range to be
362 large enough to support Go constants.
364 2020-11-20 Jakub Jelinek <jakub@redhat.com>
367 * Make-lang.in (go.serial): Change from goal to a variable.
368 (.PHONY): Drop go.serial and go.prev.
369 (go1$(exeext)): Depend on $(go.serial) rather than go.serial.
371 2020-11-18 Jakub Jelinek <jakub@redhat.com>
373 * Make-lang.in (go.serial): New goal.
374 (.PHONY): Add go.serial go.prev.
375 (go1$(exeext)): Depend on go.prev. Call LINK_PROGRESS.
377 2020-11-11 Alan Modra <amodra@gmail.com>
379 * go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to
380 avoid ambiguous overloaded call.
382 2020-11-06 Nathan Sidwell <nathan@acm.org>
384 * go-gcc.cc (Gcc_backend::call_expression): Rename
385 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
387 2020-11-04 Ian Lance Taylor <iant@golang.org>
389 * go-lang.c (go_langhook_post_options): Disable
390 -fipa-icf-functions if it was not explicitly enabled.
392 2020-09-14 Jakub Jelinek <jakub@redhat.com>
394 * go-gcc.cc (Gcc_backend::function): Adjust
395 cl_optimization_save, cl_optimization_restore and
396 build_optimization_node callers.
398 2020-08-10 Clément Chigot <chigot.c@gmail.com>
400 * go-c.h (struct go_create_gogo_args): Add need_eqtype field.
401 * go-lang.c (go_langhook_init): Set need_eqtype.
403 2020-04-15 Ian Lance Taylor <iant@golang.org>
406 * go-gcc.cc (class Gcc_backend): Define builtin_const,
407 builtin_noreturn, builtin_novops.
408 (Gcc_backend::define_builtin): Change const_p and noreturn_p
409 parameters to a single flags parameter. Change all callers.
410 (Gcc_backend::Gcc_backend): Pass novops for prefetch.
412 2020-01-01 Jakub Jelinek <jakub@redhat.com>
414 Update copyright years.
416 * gccgo.texi: Bump @copyrights-go year.
418 2019-11-12 Martin Liska <mliska@suse.cz>
420 * go-lang.c (go_langhook_post_options):
421 Use SET_OPTION_IF_UNSET.
423 2019-09-04 Ian Lance Taylor <iant@golang.org>
425 PR tree-optimization/91663
426 * go-lang.c (go_langhook_post_options): Clear
427 flag_partial_inlining.
429 2019-08-23 Jakub Jelinek <jakub@redhat.com>
432 * go-lang.c (go_langhook_post_options): Set flag_excess_precision
433 instead of flag_excess_precision_cmdline.
435 2019-07-02 Cherry Zhang <cherryyz@google.com>
437 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_memset.
439 2019-06-21 Cherry Zhang <cherryyz@google.com>
441 * go-gcc.cc (Gcc_backend::Gcc_backend): Define math/bits
444 2019-05-30 Jim Wilson <jimw@sifive.com>
446 * go-gcc.cc (Gcc_backend::Gcc_backend): Add BUILT_IN_ATOMIC_FETCH_AND_1
447 and BUILT_IN_ATOMIC_FETCH_OR_1.
449 2019-05-16 Cherry Zhang <cherryyz@google.com>
451 * go-gcc.cc (Gcc_backend::Gcc_backend): Define atomic builtins.
453 2019-05-08 Cherry Zhang <cherryyz@google.com>
455 * go-gcc.cc (Gcc_backend::Gcc_backend): Define memmove builtin.
457 2019-05-07 Cherry Zhang <cherryyz@google.com>
459 * lang.opt (-fgo-debug-optimization): New option.
460 * go-c.h (struct go_create_gogo_args): Add debug_optimization
462 * go-lang.c (go_langhook_init): Set debug_optimization field.
463 * gccgo.texi (Invoking gccgo): Document -fgo-debug-optimization.
465 2019-03-06 Ian Lance Taylor <iant@golang.org>
468 * go-gcc.cc (Gcc_backend::function): Set TREE_PUBLIC for an
469 only-inline function.
471 2019-02-15 Cherry Zhang <cherryyz@google.com>
473 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_dwarf_cfa
474 instead of __builtin_frame_address.
476 2019-02-14 Ian Lance Taylor <iant@golang.org>
478 * go-backend.c (go_imported_unsafe): Update
479 optimization_default_node.
481 2019-02-13 Ian Lance Taylor <iant@golang.org>
483 * go-gcc.cc: #include "opts.h".
484 (Gcc_backend::function): Compile thunks with -Os.
486 2019-02-05 Nikhil Benesch <nikhil.benesch@gmail.com>
489 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Mark
490 placeholder structs as requiring structural equality.
491 (Gcc_backend::set_placeholder_pointer_type): Propagate the
492 canonical type from the desired pointer type to the placeholder
495 2019-01-09 Ian Lance Taylor <iant@golang.org>
498 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Go back to
499 build_distinct_type_copy, but copy the fields so that they have
500 the right DECL_CONTEXT.
502 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
506 * go-backend.c: Mechanically replace "can not" with "cannot".
507 * go-gcc.cc: Likewise.
509 2019-01-01 Jakub Jelinek <jakub@redhat.com>
511 Update copyright years.
513 * gccgo.texi: Bump @copyrights-go year.
515 2018-11-27 Ian Lance Taylor <iant@golang.org>
517 * go-gcc.cc (Gcc_backend::function): Handle function_only_inline
520 2018-11-13 David Malcolm <dmalcolm@redhat.com>
522 * go-gcc-diagnostics.cc: Replace "source_location" with "location_t".
523 * go-gcc.cc: Likewise.
524 * go-linemap.cc: Likewise.
525 * go-location.h: Likewise.
526 * gofrontend/README: Likewise.
528 2018-10-31 Ian Lance Taylor <iant@golang.org>
530 * go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
531 gimplify_function_tree. Instead call allocate_struct_function if
534 2018-10-29 Ian Lance Taylor <iant@golang.org>
536 * go-gcc.cc (Gcc_backend::function): Change to use a single flags
539 2018-10-29 Ian Lance Taylor <iant@golang.org>
541 * go-linemap.cc (Gcc_linemap::location_file): New method.
543 2018-10-17 David Malcolm <dmalcolm@redhat.com>
545 * Make-lang.in (selftest-go): New.
547 2018-09-20 Allan Sandfeld Jensen <allan.jensen@qt.io>
549 * gospec.c (lang_specific_driver): Handle -r like -nostdlib.
551 2018-08-27 Martin Liska <mliska@suse.cz>
553 * go-gcc.cc (Gcc_backend::call_expression): Use new function
554 fndecl_built_in_p and remove check for FUNCTION_DECL if
557 2018-07-20 Martin Sebor <msebor@redhat.com>
560 * go-lang.c (go_langhook_handle_option): Change function argument
563 2018-06-28 Ian Lance Taylor <iant@golang.org>
566 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
567 build_variant_type_copy rather than build_distinct_type_copy.
569 2018-06-08 Cherry Zhang <cherryyz@google.com>
571 * go-gcc.cc (class Gcc_backend): Remove
572 stack_allocation_expression method.
574 2018-02-03 Ian Lance Taylor <iant@golang.org>
576 * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
577 using structural equality.
579 2018-02-02 Ian Lance Taylor <iant@golang.org>
581 * go-gcc.cc (Gcc_backend::type_size): Return 0 for
583 (Gcc_backend::convert_expression): Don't convert if the type of
584 expr_tree is void_type_node.
585 (Gcc_backend::array_index_expression): Don't index if the type of
586 the array expression is void_type_node.
587 (Gcc_backend::init_statement): Don't initialize if the type of the
588 initializer expression is void_type_node.
589 (Gcc_backend::assignment_statement): Don't assign if the type of
590 either the left or right hand side is void_type_node.
591 (Gcc_backend::temporary_variable): Don't initialize if the type of
592 the initializer expression is void_type_node.
594 2018-02-01 Cherry Zhang <cherryyz@google.com>
596 * lang.opt (fgo-optimize): Remove RejectNegative.
597 * go-c.h (go_enable_optimize): Update declaration to take value
599 * go-lang.c (go_langhook_handle_option): Pass value to
601 * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
603 2018-01-30 Ian Lance Taylor <iant@golang.org>
605 * go-gcc.cc (Gcc_backend::convert_tree): New private method.
606 (Gcc_backend::constructor_expression): Call it.
607 (Gcc_backend::assignment_statement): Likewise.
608 (Gcc_backend::temporary_variable): Likewise.
610 2018-01-09 Cherry Zhang <cherryyz@google.com>
612 * go-gcc.cc (local_variable): Add decl_var parameter.
614 2018-01-09 Cherry Zhang <cherryyz@google.com>
616 * lang.opt (fgo-debug-escape-hash): New option.
617 * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
619 * go-lang.c (go_langhook_init): Set debug_escape_hash field.
620 * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
622 2018-01-05 Ian Lance Taylor <iant@golang.org>
624 * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
625 math_function_type_long to take one argument.
627 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
628 Alan Hayward <alan.hayward@arm.com>
629 David Sherwood <david.sherwood@arm.com>
631 * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
633 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
634 Alan Hayward <alan.hayward@arm.com>
635 David Sherwood <david.sherwood@arm.com>
637 * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
639 2018-01-03 Jakub Jelinek <jakub@redhat.com>
641 Update copyright years.
643 * gccgo.texi: Bump @copyrights-go year.
645 2017-12-12 Tony Reix <tony.reix@atos.net>
646 Ian Lance Taylor <iant@golang.org>
648 * go-lang.c (TARGET_AIX): Define if not defined.
649 (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
651 2017-12-01 Ian Lance Taylor <iant@golang.org>
653 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
654 __builtin_unreachable.
655 (Gcc_backend::function): Add does_not_return parameter.
657 2017-12-01 Than McIntosh <thanm@google.com>
659 * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
661 * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
663 2017-11-28 Jakub Jelinek <jakub@redhat.com>
665 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
666 build2_loc instead of build3_loc.
668 2017-11-14 Than McIntosh <thanm@google.com>
670 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
672 2017-10-11 Tony Reix <tony.reix@atos.net>
674 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
675 system header files, as is done in ../system.h.
677 2017-10-05 Ian Lance Taylor <iant@golang.org>
679 * Make-lang.in (GO_OBJS): Add go/names.o.
681 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
682 Alan Hayward <alan.hayward@arm.com>
683 David Sherwood <david.sherwood@arm.com>
685 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
687 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
688 Alan Hayward <alan.hayward@arm.com>
689 David Sherwood <david.sherwood@arm.com>
691 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
693 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
694 Alan Hayward <alan.hayward@arm.com>
695 David Sherwood <david.sherwood@arm.com>
697 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
699 2017-08-07 Martin Liska <mliska@suse.cz>
701 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
702 and not __no_split_stack__.
704 2017-07-27 Tony Reix <tony.reix@atos.net>
706 * go-backend.c (go_write_export_data): Use EXCLUDE section for
709 2017-06-09 Ian Lance Taylor <iant@golang.org>
711 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
712 on, disable implicit -forder-blocks-and-partition.
714 2017-05-12 Than McIntosh <thanm@google.com>
716 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
718 2017-05-11 Ian Lance Taylor <iant@google.com>
721 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
722 DECL_EXTERNAL, clear TREE_STATIC.
724 2017-05-10 Than McIntosh <thanm@google.com>
726 * go-backend.c: Include "go-c.h".
727 * go-gcc.cc (Gcc_backend::write_export_data): New method.
729 2017-05-10 Ian Lance Taylor <iant@google.com>
731 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
733 * Make-lang.in (GO_OBJS): Add go/wb.o.
735 2017-03-28 Than McIntosh <thanm@google.com>
738 * go-gcc.cc (Gcc_backend::return_statement): Check for
739 void_type_node when checking result size.
741 2017-02-20 Ian Lance Taylor <iant@golang.org>
744 * lang.opt (-fgo-relative-import-path): Change space to tab.
746 2017-02-07 Richard Biener <rguenther@suse.de>
748 PR tree-optimization/79256
750 * go-backend.c (go_field_alignment): Adjust.
752 2017-01-11 Than McIntosh <thanm@google.com>
754 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
756 2017-01-01 Jakub Jelinek <jakub@redhat.com>
758 Update copyright years.
760 * gccgo.texi: Bump @copyrights-go year.
762 2016-12-16 Than McIntosh <thanm@google.com>
764 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
766 (Gcc_backend::init_statement): Likewise.
767 (Gcc_backend::assignment_statement): Likewise.
768 (Gcc_backend::if_statement): Likewise.
770 2016-12-06 Than McIntosh <thanm@google.com>
772 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
775 2016-11-22 Than McIntosh <thanm@google.com>
777 * go-gcc.cc (char_needs_encoding): Remove.
778 (needs_encoding, fetch_utf8_char, encode_id): Remove.
779 (Gcc_backend::global_variable): Add asm_name parameter. Don't
780 compute asm_name here.
781 (Gcc_backend::implicit_variable): Likewise.
782 (Gcc_backend::implicit_variable_reference): Likewise.
783 (Gcc_backend::immutable_struct): Likewise.
784 (Gcc_backend::immutable_struct_reference): Likewise.
785 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
787 2016-11-22 Ian Lance Taylor <iant@google.com>
789 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
790 __builtin_frame_address.
792 2016-10-25 David Malcolm <dmalcolm@redhat.com>
794 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
795 from result of GET_MODE_CLASS. Minor formatting fixes.
797 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
799 * go-backend.c: Include memmodel.h.
801 2016-10-10 Than McIntosh <thanm@google.com>
803 * go-gcc.h: New file.
804 * go-c.h (struct go_create_gogo_args): Add backend and linemap
806 * go-lang.c: Include "go-gcc.h".
807 (go_langhook_init): Set linemap and backend fields of args.
808 * go-gcc.cc: Include "go-gcc.h".
809 * go-linemap.cc: Include "go-gcc.h".
811 2016-10-10 Than McIntosh <thanm@google.com>
813 * go-linemap.cc (Gcc_linemap::location_line): New method.
815 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
817 * config-lang.in (lang_requires_boot_languages): Delete.
819 2016-10-06 Chris Manghane <cmang@google.com>
821 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
824 2016-09-27 Than McIntosh <thanm@google.com>
826 * go-linemap.cc (Gcc_linemap::to_string): New method.
828 2016-09-23 Than McIntosh <thanm@google.com>
830 * go-gcc-diagnostics.cc: New file.
831 * go-location.h (Location): Remove operator source_location. Add
833 * go-system.h: #include <sstream>.
834 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
835 go/go-gcc-diagnostics.o.
836 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
838 2016-09-23 Chris Manghane <cmang@google.com>
841 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
842 to pass arguments in the correct order.
844 2016-09-22 Ian Lance Taylor <iant@golang.org>
846 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
847 __builtin_frame_address.
849 2016-09-11 Ian Lance Taylor <iant@golang.org>
851 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
852 ctz, ctzll, bswap32, bswap64.
854 2016-09-10 Ian Lance Taylor <iant@golang.org>
856 * go-backend.c (go_trampoline_info): Remove.
857 * go-c.h (go_trampoline_info): Don't declare.
859 2016-09-09 Than McIntosh <thanm@google.com>
861 * go-sha1.cc: New file.
862 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
863 (CFLAGS-go/go-sha1.o): New variable.
865 2016-08-29 Ian Lance Taylor <iant@google.com>
867 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
868 * go-c.h (struct go_create_gogo_args): Define.
869 (go_create_gogo): Change declaration to take struct pointer.
870 * go-lang.c (go_c_header): New static variable.
871 (go_langhook_init): Update call to go_create_gogo.
872 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
873 -fgo-compiling-runtime.
875 2016-08-09 Ian Lance Taylor <iant@google.com>
877 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
879 (Compiler Directives): New chapter.
880 (Function Names): Describe using //go:linkname. Suggest using
881 -fgo-pkgpath rather than -fgo-prefix.
883 2016-08-08 Ian Lance Taylor <iant@google.com>
886 * go-gcc.cc (Gcc_backend::function_type): If the return type is
887 zero bytes, treat the function as returning void.
888 (return_statement): If the return type is zero bytes, don't
889 actually return any values.
891 2016-08-05 Ian Lance Taylor <iant@google.com>
894 * go-gcc.cc (char_needs_encoding): New static function.
895 (needs_encoding, fetch_utf8_char): New static functions.
896 (encode_id): New static function.
897 (Gcc_backend::global_variable): Set asm name if the name is not
899 (Gcc_backend::implicit_variable): Likewise.
900 (Gcc_backend::implicit_variable_reference): Likewise.
901 (Gcc_backend::immutable_struct): Likewise.
902 (Gcc_backend::immutable_struct_reference): Likewise.
903 (Gcc_backend::function): Likewise.
905 2016-08-02 Chris Manghane <cmang@google.com>
907 * lang.opt: Add -fgo-debug-escape option.
908 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
909 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
912 2016-05-06 Chris Manghane <cmang@google.com>
914 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
917 2016-04-29 Chris Manghane <cmang@google.com>
919 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
921 2016-04-18 Michael Matz <matz@suse.de>
923 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
925 2016-02-12 Jakub Jelinek <jakub@redhat.com>
927 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
928 neighbour -> neighbor.
929 * gccgo.texi: Likewise.
931 2016-01-27 Ian Lance Taylor <iant@google.com>
933 * go-lang.c (go_langhook_init_options_struct): Default to
934 -fkeep-gc-roots-live.
936 2016-01-04 Jakub Jelinek <jakub@redhat.com>
938 Update copyright years.
940 * gccgo.texi: Bump @copyrights-go year.
942 2015-12-21 Ian Lance Taylor <iant@google.com>
944 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
945 t_ and orig_type_ fields. Add new two parameter constructor. Add
946 get_tree and get_decl methods.
947 (Gcc_backend::var_expression): Pass location to var get_tree.
948 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
949 two parameter constructor for Bvariable.
950 (Gcc_backend::global_variable_set_init): Don't remove
951 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
952 (Gcc_backend::write_global_definitions): Likewise.
953 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
954 (Gcc_backend::block): Likewise.
955 (Gcc_backend::implicit_variable_set_init): Likewise.
956 (Gcc_backend::immutable_struct_set_init): Likewise.
957 (Gcc_backend::function_set_parameters): Likewise.
959 2015-12-21 Ian Lance Taylor <iant@google.com>
961 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
962 add a VIEW_CONVERT_EXPR to the tree.
963 (Gcc_backend::global_variable_set_init): Remove any
965 (Gcc_backend::write_global_definitions): Likewise.
967 2015-11-30 Ian Lance Taylor <iant@google.com>
970 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
971 TYPE_STRING_FLAG on a variant type.
973 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
975 * go-backend.c: Remove unused header files.
976 * go-gcc.cc: Likewise.
977 * go-lang.c: Likewise.
978 * gospec.c: Likewise.
980 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
982 * go-backend.c: Reorder #include's and remove duplicates.
983 * go-lang.c: Likewise.
985 2015-10-20 Alan Modra <amodra@gmail.com>
988 * gospec.c (saw_opt_m32): Rename to..
989 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
991 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
993 2015-10-01 Ian Lance Taylor <iant@google.com>
996 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
997 TARGET_CAN_SPLIT_STACK_64BIT is defined.
999 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
1002 * gospec.c (lang_specific_driver): Set appropriate split stack
1003 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
1005 2015-09-10 Chris Manghane <cmang@google.com>
1007 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
1008 unrepresentable size.
1010 2015-08-24 Marek Polacek <polacek@redhat.com>
1012 PR tree-optimization/67284
1013 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
1014 Set TREE_THIS_VOLATILE.
1015 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
1016 Pass false to the rest of define_builtin calls.
1018 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
1020 * go-lang.c (go_langhook_init_options_struct): Don't set
1022 (go_langhook_post_options): Set it here instead.
1024 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1026 * gofrontend/backend.h: Fix double word typos.
1027 * gofrontend/expressions.cc: Same.
1030 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1032 * go-backend.c: Adjust includes.
1033 * go-gcc.cc: Likewise.
1034 * go-lang.c: Likewise.
1036 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1038 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
1040 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1042 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
1043 * go-gcc.cc: Likewise.
1044 * go-lang.c: Likewise.
1045 * go-system.h: Likewise.
1047 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1049 * go-backend.c : Adjust include files.
1050 * go-gcc.cc : Likewise.
1051 * go-lang.c : Likewise.
1053 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1055 * go-gcc.cc (write_global_definitions): Remove call to
1056 finalize_compilation_unit.
1057 Remove Go specific debug generation.
1058 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
1059 (go_langhook_write_globals): Remove.
1060 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
1062 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1064 * go-backend.c: Adjust includes for restructured coretypes.h.
1066 * go-gcc.cc: Likewise.
1067 * go-lang.c: Likewise.
1069 2015-04-30 Chris Manghane <cmang@google.com>
1071 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
1074 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
1076 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
1078 2015-04-17 Chris Manghane <cmang@google.com>
1080 * Make-lang.in (GO_OBJS): Add go/escape.o.
1082 2015-02-02 Ian Lance Taylor <iant@google.com>
1086 * go-gcc.cc (Gcc_backend::type_size): Change return type to
1088 (Gcc_backend::type_alignment): Likewise.
1089 (Gcc_backend::type_field_alignment): Likewise.
1090 (Gcc_backend::type_field_offset): Likewise.
1091 (Gcc_backend::implicit_variable): Change alignment parameter type
1094 2015-01-23 Ian Lance Taylor <iant@google.com>
1097 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
1100 * gccgo.texi (C Interoperability): Mention that people should use
1103 2015-01-23 Ian Lance Taylor <iant@google.com>
1106 * go-lang.c (go_langhook_init_options_struct): Set default
1108 (go_langhook_post_options): If debug_info_level is still the
1109 default, make sure write_symbols is set.
1110 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
1112 2015-01-16 Richard Henderson <rth@redhat.com>
1114 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
1115 (Gcc_backend::static_chain_variable): New method.
1117 2015-01-09 Ian Lance Taylor <iant@google.com>
1119 * config-lang.in (lang_dirs): Define.
1121 2015-01-09 Michael Collison <michael.collison@linaro.org>
1123 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
1124 input.h, alias.h, symtab.h, options.h, fold-const.h,
1125 wide-int.h, and inchash.h due to flattening of tree.h.
1127 * go-backend.c: Ditto.
1129 2015-01-07 Chris Manghane <cmang@google.com>
1132 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
1133 zero-sized variable.
1135 2015-01-06 Chris Manghane <cmang@google.com>
1137 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
1138 initialize zero-sized fields, just evaluate the values for side
1141 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1143 Update copyright years.
1145 * gccgo.texi: Bump @copyrights-go year.
1147 2014-12-19 Chris Manghane <cmang@google.com>
1149 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
1150 construct arrays of zero-sized values.
1152 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1154 * go-lang.c: Remove redundant enum from machine_mode.
1156 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1158 * go-gcc.cc: Adjust include files.
1160 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1162 * go-gcc.cc: Adjust include files.
1165 2014-10-23 Ian Lance Taylor <iant@google.com>
1167 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
1168 mpc_t parameter instead of two mpfr_t parameters.
1170 2014-09-15 Jakub Jelinek <jakub@redhat.com>
1172 * Make-lang.in (check_go_parallelize): Change to just an upper bound
1175 2014-09-03 Chris Manghane <cmang@google.com>
1177 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
1178 parameter. Add is_hidden parameter.
1179 (Gcc_backend::implicit_variable_set_init): New method.
1180 (Gcc_backend::implicit_variable_reference): New method.
1182 2014-08-08 Ian Lance Taylor <iant@google.com>
1184 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
1187 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
1189 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
1190 symtab_get_node to symtab_node::get.
1192 2014-06-13 Ian Lance Taylor <iant@google.com>
1195 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
1196 ld, add -t option to avoid warning about common symbol changing
1199 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
1201 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
1202 symtab_get_node(var_decl)->implicit_section.
1204 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
1206 * go-gcc.cc (global_variable_set_init): Use
1207 set_decl_section_name.
1209 2014-06-04 Ian Lance Taylor <iant@google.com>
1211 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
1212 alignment parameters. Permit init parameter to be NULL.
1214 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
1216 * go-gcc.cc: Include builtins.h.
1218 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1220 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
1222 2014-05-06 Chris Manghane <cmang@google.com>
1224 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
1225 (Gcc_backend::boolean_constant_expression): New method.
1226 (Gcc_backend::zero_expression): Use this->make_expression rather
1228 (Gcc_backend::var_expression): Likewise.
1229 (Gcc_backend::integer_constant_expression): Likewise.
1230 (Gcc_backend::float_constant_expression): Likewise.
1231 (Gcc_backend::complex_constant_expression): Likewise.
1232 (Gcc_backend::struct_field_expression): Likewise.
1233 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
1234 (tree_to_function, tree_to_block): Remove functions.
1235 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
1236 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
1238 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1239 Mike Stump <mikestump@comcast.net>
1240 Richard Sandiford <rdsandiford@googlemail.com>
1242 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
1244 2014-05-06 Chris Manghane <cmang@google.com>
1246 * go-c.h (go_create_gogo): Update declaration to add
1247 check_divide_zero and check_divide_overflow parameters.
1248 * go-lang.c (go_langhook_init): Pass new arguments to
1251 2014-05-05 Chris Manghane <cmang@google.com>
1253 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
1254 gc_root_variable. Add name and is_constant parameters.
1256 2014-05-05 Chris Manghane <cmang@google.com>
1258 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
1260 (Gcc_backend::temporary_variable): Check for erroneous function.
1262 2014-04-30 Chris Manghane <cmang@google.com>
1264 * go-backend.c: #include "diagnostics.h".
1265 (saw_errors): New function.
1266 * go-c.h (saw_errors): Declare.
1267 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
1269 2014-04-30 Chris Manghane <cmang@google.com>
1271 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
1272 calling into Go frontend.
1273 (go_langhook_type_for_mode): Likewise.
1274 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
1276 2014-04-30 Chris Manghane <cmang@google.com>
1278 * go-gcc.cc: #include "langhooks.h".
1279 (Gcc_backend::Gcc_backend): Add constructor.
1280 (Gcc_backend::lookup_function): New function.
1281 (Gcc_backend::define_builtin): New private function.
1282 (Gcc_backend::gcc_backend): Remove.
1283 (go_get_backend): Use new to create new Gcc_backend.
1285 2014-04-25 Chris Manghane <cmang@google.com>
1287 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
1288 (Gcc_backend::return_statement): Push and pop function.
1289 (Gcc_backend::label): Likewise.
1290 (Gcc_backend::function_defer_statement): Likewise.
1291 (Gcc_backend::switch_statement): Add function parameter.
1292 (Gcc_backend::block): Don't permit function to be NULL.
1293 (Gcc_backend::temporary_variable): Change go_assert to
1295 (Gcc_backend::gc_root_variable): New function.
1296 (Gcc_backend::write_global_definitions): New function.
1298 2014-04-22 Chris Manghane <cmang@google.com>
1300 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
1301 call to create_tmp_var. Require that function be non-NULL.
1303 2014-04-17 Chris Manghane <cmang@google.com>
1305 * go-gcc.cc (Gcc_backend::named_constant_expression): New
1308 2014-04-14 Chris Manghane <cmang@google.com>
1310 * go-gcc.cc: Include "convert.h".
1311 (Gcc_backend::string_constant_expression): New function.
1312 (Gcc_backend::real_part_expression): Likewise.
1313 (Gcc_backend::imag_part_expression): Likewise.
1314 (Gcc_backend::complex_expression): Likewise.
1315 (Gcc_backend::constructor_expression): Likewise.
1316 (Gcc_backend::array_constructor_expression): Likewise.
1317 (Gcc_backend::pointer_offset_expression): Likewise.
1318 (Gcc_backend::array_index_expression): Likewise.
1319 (Gcc_backend::call_expression): Likewise.
1320 (Gcc_backend::exception_handler_statement): Likewise.
1321 (Gcc_backend::function_defer_statement): Likewise.
1322 (Gcc_backend::function_set_parameters): Likewise.
1323 (Gcc_backend::function_set_body): Likewise.
1324 (Gcc_backend::convert_expression): Handle various type
1327 2014-03-03 Ian Lance Taylor <iant@google.com>
1329 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
1331 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
1334 2014-01-24 Chris Manghane <cmang@google.com>
1336 * go-gcc.cc (Gcc_backend::unary_expression): New function.
1338 2014-01-16 Chris Manghane <cmang@google.com>
1340 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
1342 (operator_to_tree_code): New static function.
1343 (Gcc_backend::binary_expression): New function.
1345 2014-01-14 Chris Manghane <cmang@google.com>
1347 * go-gcc.cc (Gcc_backend::compound_expression): New function.
1348 (Gcc_backend::conditional_expression): New function.
1350 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1352 Update copyright years
1354 2014-01-02 Tobias Burnus <burnus@net-b.de>
1356 * gccgo.texi: Bump @copying's copyright year.
1358 2013-12-16 Chris Manghane <cmang@google.com>
1360 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
1362 2013-12-11 Ian Lance Taylor <iant@google.com>
1364 * go-lang.c (go_langhook_post_options): Disable sibling calls by
1367 2013-12-10 Ian Lance Taylor <iant@google.com>
1369 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
1372 2013-12-05 Ian Lance Taylor <iant@google.com>
1374 Revert this change; no longer required.
1375 2013-11-06 Ian Lance Taylor <iant@google.com>
1377 * go-lang.c (go_langhook_post_options): If
1378 -fisolate-erroneous-paths was turned on by an optimization option,
1381 2013-11-23 Ian Lance Taylor <iant@google.com>
1383 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
1386 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1388 * go-gcc.cc: Add required include files from gimple.h.
1389 * go-lang.c: Likewise.
1391 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1393 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
1394 tree_to_shwi throughout.
1396 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1398 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
1399 tree_fits_shwi_p throughout.
1401 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1403 * go-lang.c: Include only gimplify.h and gimple.h as needed.
1405 2013-11-14 Diego Novillo <dnovillo@google.com>
1407 * go-backend.c: Include stor-layout.h.
1408 * go-gcc.cc: Include stringpool.h.
1409 Include stor-layout.h.
1411 * go-lang.c: Include stor-layout.h.
1413 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1415 * go-lang.c: Include gimplify.h.
1417 2013-11-06 Ian Lance Taylor <iant@google.com>
1419 * go-lang.c (go_langhook_post_options): If
1420 -fisolate-erroneous-paths was turned on by an optimization option,
1423 2013-10-14 Chris Manghane <cmang@google.com>
1425 * go-gcc.cc (Gcc_backend::address_expression): New function.
1427 2013-10-11 Chris Manghane <cmang@google.com>
1429 * go-gcc.cc (Gcc_backend::function_code_expression): New
1432 2013-10-10 Chris Manghane <cmang@google.com>
1434 * go-gcc.cc (Gcc_backend::error_function): New function.
1435 (Gcc_backend::function): New function.
1436 (Gcc_backend::make_function): New function.
1437 (function_to_tree): New function.
1439 2013-10-04 Chris Manghane <cmang@google.com>
1441 * go-gcc.cc (Gcc_backend::convert_expression): New function.
1443 2013-10-02 Chris Manghane <cmang@google.com>
1445 * go-gcc.cc: Include "real.h" and "realmpfr.h".
1446 (Gcc_backend::integer_constant_expression): New function.
1447 (Gcc_backend::float_constant_expression): New function.
1448 (Gcc_backend::complex_constant_expression): New function.
1450 2013-09-30 Chris Manghane <cmang@google.com>
1452 * go-gcc.cc (Gcc_backend::error_expression): New function.
1453 (Gcc_backend::var_expression): New function.
1454 (Gcc_backend::indirect_expression): New function.
1456 2013-09-25 Tom Tromey <tromey@redhat.com>
1458 * Make-lang.in (gospec.o): Remove.
1459 (CFLAGS-go/gospec.o): New variable.
1460 (GCCGO_OBJS): Update to use go/gospec.o.
1462 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
1463 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
1464 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
1465 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
1466 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
1467 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
1468 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
1469 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
1470 (go/unsafe.o): Remove.
1471 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
1472 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
1474 2013-09-25 Tom Tromey <tromey@redhat.com>
1476 * Make-lang.in (gospec.o): Don't use subshell.
1478 2013-08-28 Ian Lance Taylor <iant@google.com>
1480 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
1481 the struct is not hidden.
1482 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
1484 2013-08-06 Ian Lance Taylor <iant@google.com>
1486 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
1487 compute_reloc_for_constant.
1489 2013-08-02 Ian Lance Taylor <iant@google.com>
1491 * go-gcc.cc (immutable_struct_set_init): Always call
1492 resolve_unique_section.
1494 2013-07-24 Ian Lance Taylor <iant@google.com>
1496 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
1497 fields, recreate those fields with the first one with a non-zero
1500 2013-07-23 Ian Lance Taylor <iant@google.com>
1502 * go-backend.c: Don't #include "rtl.h".
1503 (go_imported_unsafe): Don't call init_varasm_once.
1504 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
1506 2013-07-23 Ian Lance Taylor <iant@google.com>
1508 * go-lang.c: Don't #include "except.h".
1509 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
1511 2013-06-18 Ian Lance Taylor <iant@google.com>
1513 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
1515 (Gcc_backend::immutable_struct_set_init): Likewise.
1517 2013-05-16 Jason Merrill <jason@redhat.com>
1519 * Make-lang.in (go1$(exeext)): Use link mutex.
1521 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
1523 * gospec.c: pass -u pthread_create to linker when static linking.
1525 2012-12-21 Ian Lance Taylor <iant@google.com>
1528 * go-system.h: Don't include <cstdio>.
1530 2012-12-18 Ian Lance Taylor <iant@google.com>
1533 * gospec.c: Revert last patch.
1535 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
1538 * gospec.c (LIBATOMIC): Define.
1539 (LIBATOMIC_PROFILE): Define.
1540 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
1542 2012-11-29 Ian Lance Taylor <iant@google.com>
1544 * go-gcc.cc: Include "output.h".
1545 (global_variable): Add is_unique_section parameter.
1546 (global_variable_set_init): Adjust unique section if necessary.
1547 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
1549 2012-11-17 Diego Novillo <dnovillo@google.com>
1551 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1553 * go-lang.c: Use new vec API in vec.h.
1555 2012-11-16 Ian Lance Taylor <iant@google.com>
1557 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
1558 (go1$(exeext)): Likewise.
1560 2012-10-30 Ian Lance Taylor <iant@google.com>
1562 * lang.opt (-fgo-relative-import-path): New option.
1563 * go-lang.c (go_relative_import_path): New static variable.
1564 (go_langhook_init): Pass go_relative_import_path to
1566 (go_langhook_handle_option): Handle -fgo-relative-import-path.
1567 * go-c.h (go_create_gogo): Update declaration.
1568 * gccgo.texi (Invoking gccgo): Document
1569 -fgo-relative-import-path.
1571 2012-09-17 Ian Lance Taylor <iant@google.com>
1573 * config-lang.in (target_libs): Add target-libbacktrace.
1575 2012-09-16 Ian Lance Taylor <iant@google.com>
1577 * Make-lang.in (go/gogo.o): Depend on filenames.h.
1579 2012-08-14 Diego Novillo <dnovillo@google.com>
1581 Merge from cxx-conversion branch. Configury.
1583 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1584 * go-gcc.cc: Likewise.
1585 * go-system.h: Likewise.
1587 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
1589 * go-lang.c (lang_decl): Add variable_size GTY option.
1591 2012-05-09 Ian Lance Taylor <iant@google.com>
1593 * lang.opt: Add -fgo-pkgpath.
1594 * go-lang.c (go_pkgpath): New static variable.
1595 (go_prefix): New static variable.
1596 (go_langhook_init): Pass go_pkgpath and go_prefix to
1598 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
1599 -fgo-prefix handling to just set go_prefix.
1600 * go-c.h (go_set_prefix): Don't declare.
1601 (go_create_gogo): Add pkgpath and prefix to declaration.
1602 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1603 to pkgpath. Don't include the package name in the asm name.
1604 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
1605 docs for -fgo-prefix.
1607 2012-04-23 Ian Lance Taylor <iant@google.com>
1609 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1611 2012-04-20 Ian Lance Taylor <iant@google.com>
1613 * lang.opt: Add -fgo-check-divide-zero and
1614 -fgo-check-divide-overflow.
1615 * gccgo.texi (Invoking gccgo): Document new options.
1617 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1619 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1620 with NULL_TREE type instead of void_type_node.
1622 2012-03-09 Ian Lance Taylor <iant@google.com>
1624 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1625 to the lhs type if necessary.
1627 2012-03-08 Ian Lance Taylor <iant@google.com>
1629 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1630 zero-sized variable.
1631 (go_non_zero_struct): New global variable.
1632 (Gcc_backend::non_zero_size_type): New function.
1633 (Gcc_backend::global_variable): Don't build an assignment for a
1635 * go-c.h (go_non_zero_struct): Declare.
1636 * config-lang.in (gtfiles): Add go-c.h.
1638 2012-02-29 Ian Lance Taylor <iant@google.com>
1640 * go-gcc.cc (class Gcc_tree): Add set_tree method.
1641 (set_placeholder_pointer_type): When setting to a pointer to
1642 error, set to error_mark_node.
1644 2012-02-23 Richard Guenther <rguenther@suse.de>
1646 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1647 build_distinct_type_copy.
1649 2012-02-17 Ian Lance Taylor <iant@google.com>
1651 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1653 2012-02-17 Ian Lance Taylor <iant@google.com>
1655 * gospec.c (lang_specific_driver): If linking, and no -o option
1658 2012-02-14 Ian Lance Taylor <iant@google.com>
1661 * Make-lang.in (gccgo-cross$(exeext)): New target.
1662 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1664 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1665 gccgo-cross$(exeext) does not exist.
1667 2012-02-07 Ian Lance Taylor <iant@google.com>
1669 * gccgo.texi (Function Names): Document //extern instead of
1672 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1675 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1676 return build_nonstandard_integer_type result if possible.
1678 2012-01-21 Ian Lance Taylor <iant@google.com>
1680 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1681 (Gcc_backend::type_alignment): Likewise.
1682 (Gcc_backend::type_field_alignment): Likewise.
1683 (Gcc_backend::type_field_offset): Likewise.
1685 2012-01-20 Ian Lance Taylor <iant@google.com>
1687 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1689 (Gcc_backend::set_placeholder_struct_type): Likewise.
1691 2012-01-17 Ian Lance Taylor <iant@google.com>
1693 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1694 BASE.s rather than -o BASE.o.
1696 2012-01-11 Ian Lance Taylor <iant@google.com>
1698 * go-lang.c (go_langhook_init): Initialize void_list_node before
1699 calling go_create_gogo.
1701 2012-01-10 Ian Lance Taylor <iant@google.com>
1703 * go-gcc.cc (Gcc_backend::type_size): New function.
1704 (Gcc_backend::type_alignment): New function.
1705 (Gcc_backend::type_field_alignment): New function.
1706 (Gcc_backend::type_field_offset): New function.
1707 * go-backend.c (go_type_alignment): Remove.
1708 * go-c.h (go_type_alignment): Don't declare.
1710 2011-12-27 Ian Lance Taylor <iant@google.com>
1712 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1713 build_distinct_type_copy rather than build_variant_type_copy.
1714 (Gcc_backend::set_placeholder_array_type): Likewise.
1715 (Gcc_backend::named_type): Add special handling for builtin
1718 2011-12-22 Ian Lance Taylor <iant@google.com>
1720 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1721 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1722 (Gcc_backend::set_placeholder_struct_type): Likewise.
1723 (Gcc_backend::set_placeholder_array_type): Likewise.
1724 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1726 2011-12-13 Ian Lance Taylor <iant@google.com>
1728 * go-backend.c: #include "simple-object.h" and "intl.h".
1729 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1730 (GO_EXPORT_SECTION_NAME): Likewise.
1731 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1732 (go_read_export_data): New function.
1733 * go-c.h (go_read_export_data): Declare.
1735 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1736 Ian Lance Taylor <iant@google.com>
1738 * go-location.h: New file.
1739 * go-linemap.cc: New file.
1740 * go-gcc.cc: Change all uses of source_location to Location.
1741 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1742 (GO_LINEMAP_H): New variable.
1743 (GO_LEX_H): Use $(GO_LINEMAP_H).
1744 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1745 (go/go-linemap.o): New target.
1747 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1749 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1751 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1753 * lang.opt: Add fgo-optimize-.
1754 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1755 * go-c.h (go_enable_optimize): Declare.
1756 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1757 (GO_EXPORT_H): Define.
1758 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1759 (GO_AST_DUMP_H): Define.
1760 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1761 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1762 (go/types.o): Likewise.
1763 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1764 (go/go-optimize.o): New target.
1766 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1768 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1769 (go/go-lang.o): Remove explicit compilation rule.
1771 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1773 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1775 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1777 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1778 (go/ast-dump.o): New target.
1779 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1780 (go/statements.o): Likewise.
1782 2011-07-06 Richard Guenther <rguenther@suse.de>
1784 * go-lang.c (go_langhook_init):
1785 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1787 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1789 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1791 * go-backend.c: Include common/common-target.h.
1792 (go_write_export_data): Use targetm_common.have_named_sections.
1793 * go-lang.c: Include common/common-target.h.
1794 (go_langhook_init_options_struct): Use
1795 targetm_common.supports_split_stack.
1797 2011-06-13 Ian Lance Taylor <iant@google.com>
1799 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1801 2011-06-10 Ian Lance Taylor <iant@google.com>
1803 * go-gcc.cc: Include "toplev.h".
1804 (Gcc_backend::immutable_struct): New function.
1805 (Gcc_backend::immutable_struct_set_init): New function.
1806 (Gcc_backend::immutable_struct_reference): New function.
1807 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1809 2011-06-09 Ian Lance Taylor <iant@google.com>
1811 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1813 2011-06-07 Richard Guenther <rguenther@suse.de>
1815 * go-lang.c (go_langhook_init): Do not set
1816 size_type_node or call set_sizetype.
1818 2011-05-27 Ian Lance Taylor <iant@google.com>
1820 * go-backend.c: Include "output.h".
1821 (go_write_export_data): New function.
1822 * go-c.h (go_write_export_data): Declare.
1823 * Make-lang.in (go/go-backend.o): Depend on output.h.
1824 (go/export.o): Depend on $(GO_C_H). Do not depend on
1825 $(MACHMODE_H), output.h, or $(TARGET_H).
1827 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1829 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1830 (gccgo$(exeext)): Use libcommon-target.a.
1832 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1834 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1836 2011-05-13 Ian Lance Taylor <iant@google.com>
1838 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1839 for multiple results, check that all fields types have a size.
1840 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1842 2011-05-12 Ian Lance Taylor <iant@google.com>
1844 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1846 (Gcc_backend::parameter_variable): Likewise.
1848 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1850 * go-lang.c (global_bindings_p): Return bool and simplify.
1852 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1854 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1856 2011-05-04 Ian Lance Taylor <iant@google.com>
1858 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1859 (Gcc_backend::fill_in_struct): New function.
1860 (Gcc_backend::array_type): Implement.
1861 (Gcc_backend::fill_in_array): New function.
1862 (Gcc_backend::placeholder_pointer_type): New function.
1863 (Gcc_backend::set_placeholder_pointer_type): New function.
1864 (Gcc_backend::set_placeholder_function_type): New function.
1865 (Gcc_backend::placeholder_struct_type): New function.
1866 (Gcc_backend::set_placeholder_struct_type): New function.
1867 (Gcc_backend::placeholder_array_type): New function.
1868 (Gcc_backend::set_placeholder_array_type): New function.
1869 (Gcc_backend::named_type): New function.
1870 (Gcc_backend::circular_pointer_type): New function.
1871 (Gcc_backend::is_circular_pointer_type): New function.
1873 2011-04-26 Ian Lance Taylor <iant@google.com>
1875 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1877 2011-04-25 Ian Lance Taylor <iant@google.com>
1879 * go-gcc.cc (Gcc_backend::error_type): Implement.
1880 (Gcc_backend::string_type): Remove.
1881 (Gcc_backend::function_type): Change signature and implement.
1882 (Gcc_backend::struct_type): Change signature.
1883 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1884 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1885 (Gcc_backend::pointer_type): Check for error.
1886 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1888 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1890 * go-gcc.c (class Gcc_tree): Make get_tree const.
1891 (Gcc_backend::void_type): Implement.
1892 (Gcc_backend::bool_type): Implement.
1893 (Gcc_backend::integer_type): Implement.
1894 (Gcc_backend::float_type): Implement.
1895 (Gcc_backend::complex_type): New function.
1896 (Gcc_backend::pointer_type): New function.
1897 (Gcc_backend::make_type): New function.
1898 (type_to_tree): New function.
1900 2011-04-21 Ian Lance Taylor <iant@google.com>
1902 * go-system.h (go_assert, go_unreachable): Define.
1904 2011-04-19 Ian Lance Taylor <iant@google.com>
1906 * go-system.h: Include "intl.h".
1907 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1908 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1909 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1911 2011-04-19 Ian Lance Taylor <iant@google.com>
1913 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1915 2011-04-19 Ian Lance Taylor <iant@google.com>
1917 * go-gcc.cc (class Bblock): Define.
1918 (Gcc_backend::if_statement): Change then_block and else_block to
1920 (Gcc_backend::block): New function.
1921 (Gcc_backend::block_add_statements): New function.
1922 (Gcc_backend::block_statement): New function.
1923 (tree_to_block, block_to_tree): New functions.
1925 2011-04-18 Ian Lance Taylor <iant@google.com>
1927 * go-gcc.cc: Include "go-c.h".
1928 (class Bvariable): Define.
1929 (Gcc_backend::init_statement): New function.
1930 (Gcc_backend::global_variable): New function.
1931 (Gcc_backend::global_variable_set_init): New function.
1932 (Gcc_backend::local_variable): New function.
1933 (Gcc_backend::parameter_variable): New function.
1934 (tree_to_type, var_to_tree): New functions.
1935 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1936 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1938 2011-04-15 Ian Lance Taylor <iant@google.com>
1940 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1941 (Gcc_backend::assignment_statement): Use error_statement.
1942 (Gcc_backend::return_statement): Likewise.
1943 (Gcc_backend::if_statement): Likewise.
1944 (Gcc_backend::switch_statement): Likewise.
1945 (Gcc_backend::statement_list): Likewise.
1947 2011-04-14 Ian Lance Taylor <iant@google.com>
1949 * go-gcc.cc (Gcc_backend::error_statement): New function.
1951 2011-04-13 Ian Lance Taylor <iant@google.com>
1953 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1955 2011-04-13 Ian Lance Taylor <iant@google.com>
1957 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1958 (GO_RUNTIME_H): New variable.
1959 (go/runtime.o): New target.
1960 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1961 (go/statements.o): Likewise.
1963 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1965 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1968 2011-04-06 Ian Lance Taylor <iant@google.com>
1970 * go-gcc.cc (if_statement): Use build3_loc.
1971 (Gcc_backend::switch_statement): New function.
1972 (Gcc_backend::statement_list): New function.
1974 2011-04-06 Ian Lance Taylor <iant@google.com>
1976 * go-gcc.cc (Gcc_backend::if_statement): New function.
1977 (tree_to_stat): New function.
1978 (expr_to_tree): Renamed from expression_to_tree.
1979 (stat_to_tree): Renamed from statement_to_tree.
1981 2011-04-06 Ian Lance Taylor <iant@google.com>
1983 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1985 2011-04-04 Ian Lance Taylor <iant@google.com>
1987 * go-gcc.c (class Blabel): Define.
1988 (Gcc_backend::make_expression): New function.
1989 (get_identifier_from_string): New function.
1990 (Gcc_backend::label): New function.
1991 (Gcc_backend::label_definition_statement): New function.
1992 (Gcc_backend::goto_statement): New function.
1993 (Gcc_backend::label_address): New function.
1994 (expression_to_tree): New function.
1995 * Make-lang.in (go/expressions.o): Depend on
1996 go/gofrontend/backend.h.
1997 (go/gogo.o): Likewise.
1999 2011-04-04 Ian Lance Taylor <iant@google.com>
2001 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
2002 (class Bfunction): Define.
2003 (Gcc_backend::assignment_statement): Rename from assignment.
2005 (Gcc_backend::return_statement): New function.
2006 (tree_to_function): New function.
2007 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
2008 $(GIMPLE_H), and $(GO_GOGO_H).
2010 2011-04-03 Ian Lance Taylor <iant@google.com>
2012 * go-gcc.cc: New file.
2013 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
2014 (go/go-gcc.o): New target.
2015 (go/go.o): Depend on go/gofrontend/backend.h.
2016 (go/statements.o): Likewise.
2018 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2020 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
2022 2011-02-08 Ian Lance Taylor <iant@google.com>
2024 * go-lang.c (go_langhook_init_options_struct): Set
2025 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
2027 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2029 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
2030 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
2032 2011-01-21 Ian Lance Taylor <iant@google.com>
2034 * go-lang.c (go_langhook_init): Omit float_type_size when calling
2036 * go-c.h: Update declaration of go_create_gogo.
2038 2011-01-13 Ian Lance Taylor <iant@google.com>
2040 * go-backend.c: Include "rtl.h" and "target.h".
2041 (go_imported_unsafe): New function.
2042 * go-c.h (go_imported_unsafe): Declare.
2043 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
2044 (go/gogo-tree.o): Remove dependency on $(RTL_H).
2045 (go/unsafe.o): Depend on $(GO_C_H).
2047 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
2050 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
2053 2010-12-21 Ian Lance Taylor <iant@google.com>
2055 * Make-lang.in (check-go): Remove.
2056 (lang_checks_parallelized): Add check-go.
2057 (check_go_parallelize): Set.
2059 2010-12-13 Ian Lance Taylor <iant@google.com>
2061 * gospec.c (lang_specific_driver): Add a -o option if not linking
2062 and there is no -o option already.
2064 2010-12-07 Ian Lance Taylor <iant@google.com>
2066 PR tree-optimization/46805
2067 PR tree-optimization/46833
2068 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
2070 2010-12-06 Ian Lance Taylor <iant@google.com>
2074 * go-lang.c (go_char_p): Define type and vectors.
2075 (go_search_dirs): New static variable.
2076 (go_langhook_handle_option): Use version and version/machine
2078 (go_langhook_post_options): Add non-specific -L paths.
2079 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
2080 DEFAULT_TARGET_MACHINE when compiling.
2081 * gccgo.texi (Invoking gccgo): Only document -L for linking.
2082 (Import and Export): Don't mention -L for finding import files.
2084 2010-12-03 Ian Lance Taylor <iant@google.com>
2087 * go-backend.c: New file.
2088 * go-c.h (go_type_alignment): Declare.
2089 (go_field_alignment, go_trampoline_info): Declare.
2090 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
2091 (go/go-backend.o): New target.
2092 (go/go-lang.o): Make dependencies match source file.
2093 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
2094 (go/gogo-tree.o): Don't depend on $(TM_H).
2096 2010-12-03 Ian Lance Taylor <iant@google.com>
2098 * config-lang.in (build_by_default): Set to no.
2100 2010-12-02 Ian Lance Taylor <iant@google.com>
2102 Go frontend added to gcc repository.
2104 Copyright (C) 2010-2024 Free Software Foundation, Inc.
2106 Copying and distribution of this file, with or without modification,
2107 are permitted in any medium without royalty provided the copyright
2108 notice and this notice are preserved.