1 2021-09-27 Martin Liska <mliska@suse.cz>
3 * go-lang.c (go_langhook_init_options_struct): Set also
4 x_flag_default_complex_method.
6 2021-06-29 Ian Lance Taylor <iant@golang.org>
8 * go-gcc.cc (Gcc_backend::static_chain_variable): Set
9 DECL_NAMELESS on the new decl.
10 (Gcc_backend::temporary_variable): Likewise.
11 (Gcc_backend::function): Set DECL_NAMELESS on the result decl.
13 2021-05-27 Ian Lance Taylor <iant@golang.org>
15 * gccgo.texi (Function Names): Don't HTML quote ampersand.
17 2021-05-24 Ian Lance Taylor <iant@golang.org>
20 * go-gcc.cc (class Gcc_backend): Update methods that create
21 variables to take a flags parameter.
23 2021-01-28 Ian Lance Taylor <iant@golang.org>
25 * gospec.c (lang_specific_driver): Add -g if no debugging options
28 2021-01-15 Ian Lance Taylor <iant@golang.org>
30 * Make-lang.in (GO_OBJS): Add go/embed.o.
32 2021-01-05 Jakub Jelinek <jakub@redhat.com>
34 * lang.opt (fgo-embedcfg=): Add full stop at the end of description.
36 2021-01-05 Ian Lance Taylor <iant@golang.org>
38 * lang.opt (fgo-embedcfg): New option.
39 * go-c.h (struct go_create_gogo_args): Add embedcfg field.
40 * go-lang.c (go_embedcfg): New static variable.
41 (go_langhook_init): Set go_create_gogo_args embedcfg field.
42 (go_langhook_handle_option): Handle OPT_fgo_embedcfg_.
43 * gccgo.texi (Invoking gccgo): Document -fgo-embedcfg.
45 2021-01-01 Jakub Jelinek <jakub@redhat.com>
47 * gccgo.texi: Bump @copyrights-go year.
49 2020-12-22 Ian Lance Taylor <iant@golang.org>
52 * go-lang.c (go_langhook_init): Force MPFR exponent range to be
53 large enough to support Go constants.
55 2020-11-20 Jakub Jelinek <jakub@redhat.com>
58 * Make-lang.in (go.serial): Change from goal to a variable.
59 (.PHONY): Drop go.serial and go.prev.
60 (go1$(exeext)): Depend on $(go.serial) rather than go.serial.
62 2020-11-18 Jakub Jelinek <jakub@redhat.com>
64 * Make-lang.in (go.serial): New goal.
65 (.PHONY): Add go.serial go.prev.
66 (go1$(exeext)): Depend on go.prev. Call LINK_PROGRESS.
68 2020-11-11 Alan Modra <amodra@gmail.com>
70 * go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to
71 avoid ambiguous overloaded call.
73 2020-11-06 Nathan Sidwell <nathan@acm.org>
75 * go-gcc.cc (Gcc_backend::call_expression): Rename
76 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
78 2020-11-04 Ian Lance Taylor <iant@golang.org>
80 * go-lang.c (go_langhook_post_options): Disable
81 -fipa-icf-functions if it was not explicitly enabled.
83 2020-09-14 Jakub Jelinek <jakub@redhat.com>
85 * go-gcc.cc (Gcc_backend::function): Adjust
86 cl_optimization_save, cl_optimization_restore and
87 build_optimization_node callers.
89 2020-08-10 Clément Chigot <chigot.c@gmail.com>
91 * go-c.h (struct go_create_gogo_args): Add need_eqtype field.
92 * go-lang.c (go_langhook_init): Set need_eqtype.
94 2020-04-15 Ian Lance Taylor <iant@golang.org>
97 * go-gcc.cc (class Gcc_backend): Define builtin_const,
98 builtin_noreturn, builtin_novops.
99 (Gcc_backend::define_builtin): Change const_p and noreturn_p
100 parameters to a single flags parameter. Change all callers.
101 (Gcc_backend::Gcc_backend): Pass novops for prefetch.
103 2020-01-01 Jakub Jelinek <jakub@redhat.com>
105 Update copyright years.
107 * gccgo.texi: Bump @copyrights-go year.
109 2019-11-12 Martin Liska <mliska@suse.cz>
111 * go-lang.c (go_langhook_post_options):
112 Use SET_OPTION_IF_UNSET.
114 2019-09-04 Ian Lance Taylor <iant@golang.org>
116 PR tree-optimization/91663
117 * go-lang.c (go_langhook_post_options): Clear
118 flag_partial_inlining.
120 2019-08-23 Jakub Jelinek <jakub@redhat.com>
123 * go-lang.c (go_langhook_post_options): Set flag_excess_precision
124 instead of flag_excess_precision_cmdline.
126 2019-07-02 Cherry Zhang <cherryyz@google.com>
128 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_memset.
130 2019-06-21 Cherry Zhang <cherryyz@google.com>
132 * go-gcc.cc (Gcc_backend::Gcc_backend): Define math/bits
135 2019-05-30 Jim Wilson <jimw@sifive.com>
137 * go-gcc.cc (Gcc_backend::Gcc_backend): Add BUILT_IN_ATOMIC_FETCH_AND_1
138 and BUILT_IN_ATOMIC_FETCH_OR_1.
140 2019-05-16 Cherry Zhang <cherryyz@google.com>
142 * go-gcc.cc (Gcc_backend::Gcc_backend): Define atomic builtins.
144 2019-05-08 Cherry Zhang <cherryyz@google.com>
146 * go-gcc.cc (Gcc_backend::Gcc_backend): Define memmove builtin.
148 2019-05-07 Cherry Zhang <cherryyz@google.com>
150 * lang.opt (-fgo-debug-optimization): New option.
151 * go-c.h (struct go_create_gogo_args): Add debug_optimization
153 * go-lang.c (go_langhook_init): Set debug_optimization field.
154 * gccgo.texi (Invoking gccgo): Document -fgo-debug-optimization.
156 2019-03-06 Ian Lance Taylor <iant@golang.org>
159 * go-gcc.cc (Gcc_backend::function): Set TREE_PUBLIC for an
160 only-inline function.
162 2019-02-15 Cherry Zhang <cherryyz@google.com>
164 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_dwarf_cfa
165 instead of __builtin_frame_address.
167 2019-02-14 Ian Lance Taylor <iant@golang.org>
169 * go-backend.c (go_imported_unsafe): Update
170 optimization_default_node.
172 2019-02-13 Ian Lance Taylor <iant@golang.org>
174 * go-gcc.cc: #include "opts.h".
175 (Gcc_backend::function): Compile thunks with -Os.
177 2019-02-05 Nikhil Benesch <nikhil.benesch@gmail.com>
180 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Mark
181 placeholder structs as requiring structural equality.
182 (Gcc_backend::set_placeholder_pointer_type): Propagate the
183 canonical type from the desired pointer type to the placeholder
186 2019-01-09 Ian Lance Taylor <iant@golang.org>
189 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Go back to
190 build_distinct_type_copy, but copy the fields so that they have
191 the right DECL_CONTEXT.
193 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
197 * go-backend.c: Mechanically replace "can not" with "cannot".
198 * go-gcc.cc: Likewise.
200 2019-01-01 Jakub Jelinek <jakub@redhat.com>
202 Update copyright years.
204 * gccgo.texi: Bump @copyrights-go year.
206 2018-11-27 Ian Lance Taylor <iant@golang.org>
208 * go-gcc.cc (Gcc_backend::function): Handle function_only_inline
211 2018-11-13 David Malcolm <dmalcolm@redhat.com>
213 * go-gcc-diagnostics.cc: Replace "source_location" with "location_t".
214 * go-gcc.cc: Likewise.
215 * go-linemap.cc: Likewise.
216 * go-location.h: Likewise.
217 * gofrontend/README: Likewise.
219 2018-10-31 Ian Lance Taylor <iant@golang.org>
221 * go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
222 gimplify_function_tree. Instead call allocate_struct_function if
225 2018-10-29 Ian Lance Taylor <iant@golang.org>
227 * go-gcc.cc (Gcc_backend::function): Change to use a single flags
230 2018-10-29 Ian Lance Taylor <iant@golang.org>
232 * go-linemap.cc (Gcc_linemap::location_file): New method.
234 2018-10-17 David Malcolm <dmalcolm@redhat.com>
236 * Make-lang.in (selftest-go): New.
238 2018-09-20 Allan Sandfeld Jensen <allan.jensen@qt.io>
240 * gospec.c (lang_specific_driver): Handle -r like -nostdlib.
242 2018-08-27 Martin Liska <mliska@suse.cz>
244 * go-gcc.cc (Gcc_backend::call_expression): Use new function
245 fndecl_built_in_p and remove check for FUNCTION_DECL if
248 2018-07-20 Martin Sebor <msebor@redhat.com>
251 * go-lang.c (go_langhook_handle_option): Change function argument
254 2018-06-28 Ian Lance Taylor <iant@golang.org>
257 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
258 build_variant_type_copy rather than build_distinct_type_copy.
260 2018-06-08 Cherry Zhang <cherryyz@google.com>
262 * go-gcc.cc (class Gcc_backend): Remove
263 stack_allocation_expression method.
265 2018-02-03 Ian Lance Taylor <iant@golang.org>
267 * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
268 using structural equality.
270 2018-02-02 Ian Lance Taylor <iant@golang.org>
272 * go-gcc.cc (Gcc_backend::type_size): Return 0 for
274 (Gcc_backend::convert_expression): Don't convert if the type of
275 expr_tree is void_type_node.
276 (Gcc_backend::array_index_expression): Don't index if the type of
277 the array expression is void_type_node.
278 (Gcc_backend::init_statement): Don't initialize if the type of the
279 initializer expression is void_type_node.
280 (Gcc_backend::assignment_statement): Don't assign if the type of
281 either the left or right hand side is void_type_node.
282 (Gcc_backend::temporary_variable): Don't initialize if the type of
283 the initializer expression is void_type_node.
285 2018-02-01 Cherry Zhang <cherryyz@google.com>
287 * lang.opt (fgo-optimize): Remove RejectNegative.
288 * go-c.h (go_enable_optimize): Update declaration to take value
290 * go-lang.c (go_langhook_handle_option): Pass value to
292 * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
294 2018-01-30 Ian Lance Taylor <iant@golang.org>
296 * go-gcc.cc (Gcc_backend::convert_tree): New private method.
297 (Gcc_backend::constructor_expression): Call it.
298 (Gcc_backend::assignment_statement): Likewise.
299 (Gcc_backend::temporary_variable): Likewise.
301 2018-01-09 Cherry Zhang <cherryyz@google.com>
303 * go-gcc.cc (local_variable): Add decl_var parameter.
305 2018-01-09 Cherry Zhang <cherryyz@google.com>
307 * lang.opt (fgo-debug-escape-hash): New option.
308 * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
310 * go-lang.c (go_langhook_init): Set debug_escape_hash field.
311 * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
313 2018-01-05 Ian Lance Taylor <iant@golang.org>
315 * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
316 math_function_type_long to take one argument.
318 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
319 Alan Hayward <alan.hayward@arm.com>
320 David Sherwood <david.sherwood@arm.com>
322 * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
324 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
325 Alan Hayward <alan.hayward@arm.com>
326 David Sherwood <david.sherwood@arm.com>
328 * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
330 2018-01-03 Jakub Jelinek <jakub@redhat.com>
332 Update copyright years.
334 * gccgo.texi: Bump @copyrights-go year.
336 2017-12-12 Tony Reix <tony.reix@atos.net>
337 Ian Lance Taylor <iant@golang.org>
339 * go-lang.c (TARGET_AIX): Define if not defined.
340 (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
342 2017-12-01 Ian Lance Taylor <iant@golang.org>
344 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
345 __builtin_unreachable.
346 (Gcc_backend::function): Add does_not_return parameter.
348 2017-12-01 Than McIntosh <thanm@google.com>
350 * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
352 * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
354 2017-11-28 Jakub Jelinek <jakub@redhat.com>
356 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
357 build2_loc instead of build3_loc.
359 2017-11-14 Than McIntosh <thanm@google.com>
361 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
363 2017-10-11 Tony Reix <tony.reix@atos.net>
365 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
366 system header files, as is done in ../system.h.
368 2017-10-05 Ian Lance Taylor <iant@golang.org>
370 * Make-lang.in (GO_OBJS): Add go/names.o.
372 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
373 Alan Hayward <alan.hayward@arm.com>
374 David Sherwood <david.sherwood@arm.com>
376 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
378 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
379 Alan Hayward <alan.hayward@arm.com>
380 David Sherwood <david.sherwood@arm.com>
382 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
384 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
385 Alan Hayward <alan.hayward@arm.com>
386 David Sherwood <david.sherwood@arm.com>
388 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
390 2017-08-07 Martin Liska <mliska@suse.cz>
392 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
393 and not __no_split_stack__.
395 2017-07-27 Tony Reix <tony.reix@atos.net>
397 * go-backend.c (go_write_export_data): Use EXCLUDE section for
400 2017-06-09 Ian Lance Taylor <iant@golang.org>
402 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
403 on, disable implicit -forder-blocks-and-partition.
405 2017-05-12 Than McIntosh <thanm@google.com>
407 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
409 2017-05-11 Ian Lance Taylor <iant@google.com>
412 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
413 DECL_EXTERNAL, clear TREE_STATIC.
415 2017-05-10 Than McIntosh <thanm@google.com>
417 * go-backend.c: Include "go-c.h".
418 * go-gcc.cc (Gcc_backend::write_export_data): New method.
420 2017-05-10 Ian Lance Taylor <iant@google.com>
422 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
424 * Make-lang.in (GO_OBJS): Add go/wb.o.
426 2017-03-28 Than McIntosh <thanm@google.com>
429 * go-gcc.cc (Gcc_backend::return_statement): Check for
430 void_type_node when checking result size.
432 2017-02-20 Ian Lance Taylor <iant@golang.org>
435 * lang.opt (-fgo-relative-import-path): Change space to tab.
437 2017-02-07 Richard Biener <rguenther@suse.de>
439 PR tree-optimization/79256
441 * go-backend.c (go_field_alignment): Adjust.
443 2017-01-11 Than McIntosh <thanm@google.com>
445 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
447 2017-01-01 Jakub Jelinek <jakub@redhat.com>
449 Update copyright years.
451 * gccgo.texi: Bump @copyrights-go year.
453 2016-12-16 Than McIntosh <thanm@google.com>
455 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
457 (Gcc_backend::init_statement): Likewise.
458 (Gcc_backend::assignment_statement): Likewise.
459 (Gcc_backend::if_statement): Likewise.
461 2016-12-06 Than McIntosh <thanm@google.com>
463 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
466 2016-11-22 Than McIntosh <thanm@google.com>
468 * go-gcc.cc (char_needs_encoding): Remove.
469 (needs_encoding, fetch_utf8_char, encode_id): Remove.
470 (Gcc_backend::global_variable): Add asm_name parameter. Don't
471 compute asm_name here.
472 (Gcc_backend::implicit_variable): Likewise.
473 (Gcc_backend::implicit_variable_reference): Likewise.
474 (Gcc_backend::immutable_struct): Likewise.
475 (Gcc_backend::immutable_struct_reference): Likewise.
476 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
478 2016-11-22 Ian Lance Taylor <iant@google.com>
480 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
481 __builtin_frame_address.
483 2016-10-25 David Malcolm <dmalcolm@redhat.com>
485 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
486 from result of GET_MODE_CLASS. Minor formatting fixes.
488 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
490 * go-backend.c: Include memmodel.h.
492 2016-10-10 Than McIntosh <thanm@google.com>
494 * go-gcc.h: New file.
495 * go-c.h (struct go_create_gogo_args): Add backend and linemap
497 * go-lang.c: Include "go-gcc.h".
498 (go_langhook_init): Set linemap and backend fields of args.
499 * go-gcc.cc: Include "go-gcc.h".
500 * go-linemap.cc: Include "go-gcc.h".
502 2016-10-10 Than McIntosh <thanm@google.com>
504 * go-linemap.cc (Gcc_linemap::location_line): New method.
506 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
508 * config-lang.in (lang_requires_boot_languages): Delete.
510 2016-10-06 Chris Manghane <cmang@google.com>
512 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
515 2016-09-27 Than McIntosh <thanm@google.com>
517 * go-linemap.cc (Gcc_linemap::to_string): New method.
519 2016-09-23 Than McIntosh <thanm@google.com>
521 * go-gcc-diagnostics.cc: New file.
522 * go-location.h (Location): Remove operator source_location. Add
524 * go-system.h: #include <sstream>.
525 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
526 go/go-gcc-diagnostics.o.
527 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
529 2016-09-23 Chris Manghane <cmang@google.com>
532 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
533 to pass arguments in the correct order.
535 2016-09-22 Ian Lance Taylor <iant@golang.org>
537 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
538 __builtin_frame_address.
540 2016-09-11 Ian Lance Taylor <iant@golang.org>
542 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
543 ctz, ctzll, bswap32, bswap64.
545 2016-09-10 Ian Lance Taylor <iant@golang.org>
547 * go-backend.c (go_trampoline_info): Remove.
548 * go-c.h (go_trampoline_info): Don't declare.
550 2016-09-09 Than McIntosh <thanm@google.com>
552 * go-sha1.cc: New file.
553 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
554 (CFLAGS-go/go-sha1.o): New variable.
556 2016-08-29 Ian Lance Taylor <iant@google.com>
558 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
559 * go-c.h (struct go_create_gogo_args): Define.
560 (go_create_gogo): Change declaration to take struct pointer.
561 * go-lang.c (go_c_header): New static variable.
562 (go_langhook_init): Update call to go_create_gogo.
563 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
564 -fgo-compiling-runtime.
566 2016-08-09 Ian Lance Taylor <iant@google.com>
568 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
570 (Compiler Directives): New chapter.
571 (Function Names): Describe using //go:linkname. Suggest using
572 -fgo-pkgpath rather than -fgo-prefix.
574 2016-08-08 Ian Lance Taylor <iant@google.com>
577 * go-gcc.cc (Gcc_backend::function_type): If the return type is
578 zero bytes, treat the function as returning void.
579 (return_statement): If the return type is zero bytes, don't
580 actually return any values.
582 2016-08-05 Ian Lance Taylor <iant@google.com>
585 * go-gcc.cc (char_needs_encoding): New static function.
586 (needs_encoding, fetch_utf8_char): New static functions.
587 (encode_id): New static function.
588 (Gcc_backend::global_variable): Set asm name if the name is not
590 (Gcc_backend::implicit_variable): Likewise.
591 (Gcc_backend::implicit_variable_reference): Likewise.
592 (Gcc_backend::immutable_struct): Likewise.
593 (Gcc_backend::immutable_struct_reference): Likewise.
594 (Gcc_backend::function): Likewise.
596 2016-08-02 Chris Manghane <cmang@google.com>
598 * lang.opt: Add -fgo-debug-escape option.
599 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
600 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
603 2016-05-06 Chris Manghane <cmang@google.com>
605 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
608 2016-04-29 Chris Manghane <cmang@google.com>
610 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
612 2016-04-18 Michael Matz <matz@suse.de>
614 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
616 2016-02-12 Jakub Jelinek <jakub@redhat.com>
618 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
619 neighbour -> neighbor.
620 * gccgo.texi: Likewise.
622 2016-01-27 Ian Lance Taylor <iant@google.com>
624 * go-lang.c (go_langhook_init_options_struct): Default to
625 -fkeep-gc-roots-live.
627 2016-01-04 Jakub Jelinek <jakub@redhat.com>
629 Update copyright years.
631 * gccgo.texi: Bump @copyrights-go year.
633 2015-12-21 Ian Lance Taylor <iant@google.com>
635 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
636 t_ and orig_type_ fields. Add new two parameter constructor. Add
637 get_tree and get_decl methods.
638 (Gcc_backend::var_expression): Pass location to var get_tree.
639 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
640 two parameter constructor for Bvariable.
641 (Gcc_backend::global_variable_set_init): Don't remove
642 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
643 (Gcc_backend::write_global_definitions): Likewise.
644 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
645 (Gcc_backend::block): Likewise.
646 (Gcc_backend::implicit_variable_set_init): Likewise.
647 (Gcc_backend::immutable_struct_set_init): Likewise.
648 (Gcc_backend::function_set_parameters): Likewise.
650 2015-12-21 Ian Lance Taylor <iant@google.com>
652 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
653 add a VIEW_CONVERT_EXPR to the tree.
654 (Gcc_backend::global_variable_set_init): Remove any
656 (Gcc_backend::write_global_definitions): Likewise.
658 2015-11-30 Ian Lance Taylor <iant@google.com>
661 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
662 TYPE_STRING_FLAG on a variant type.
664 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
666 * go-backend.c: Remove unused header files.
667 * go-gcc.cc: Likewise.
668 * go-lang.c: Likewise.
669 * gospec.c: Likewise.
671 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
673 * go-backend.c: Reorder #include's and remove duplicates.
674 * go-lang.c: Likewise.
676 2015-10-20 Alan Modra <amodra@gmail.com>
679 * gospec.c (saw_opt_m32): Rename to..
680 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
682 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
684 2015-10-01 Ian Lance Taylor <iant@google.com>
687 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
688 TARGET_CAN_SPLIT_STACK_64BIT is defined.
690 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
693 * gospec.c (lang_specific_driver): Set appropriate split stack
694 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
696 2015-09-10 Chris Manghane <cmang@google.com>
698 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
699 unrepresentable size.
701 2015-08-24 Marek Polacek <polacek@redhat.com>
703 PR tree-optimization/67284
704 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
705 Set TREE_THIS_VOLATILE.
706 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
707 Pass false to the rest of define_builtin calls.
709 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
711 * go-lang.c (go_langhook_init_options_struct): Don't set
713 (go_langhook_post_options): Set it here instead.
715 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
717 * gofrontend/backend.h: Fix double word typos.
718 * gofrontend/expressions.cc: Same.
721 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
723 * go-backend.c: Adjust includes.
724 * go-gcc.cc: Likewise.
725 * go-lang.c: Likewise.
727 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
729 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
731 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
733 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
734 * go-gcc.cc: Likewise.
735 * go-lang.c: Likewise.
736 * go-system.h: Likewise.
738 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
740 * go-backend.c : Adjust include files.
741 * go-gcc.cc : Likewise.
742 * go-lang.c : Likewise.
744 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
746 * go-gcc.cc (write_global_definitions): Remove call to
747 finalize_compilation_unit.
748 Remove Go specific debug generation.
749 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
750 (go_langhook_write_globals): Remove.
751 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
753 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
755 * go-backend.c: Adjust includes for restructured coretypes.h.
757 * go-gcc.cc: Likewise.
758 * go-lang.c: Likewise.
760 2015-04-30 Chris Manghane <cmang@google.com>
762 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
765 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
767 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
769 2015-04-17 Chris Manghane <cmang@google.com>
771 * Make-lang.in (GO_OBJS): Add go/escape.o.
773 2015-02-02 Ian Lance Taylor <iant@google.com>
777 * go-gcc.cc (Gcc_backend::type_size): Change return type to
779 (Gcc_backend::type_alignment): Likewise.
780 (Gcc_backend::type_field_alignment): Likewise.
781 (Gcc_backend::type_field_offset): Likewise.
782 (Gcc_backend::implicit_variable): Change alignment parameter type
785 2015-01-23 Ian Lance Taylor <iant@google.com>
788 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
791 * gccgo.texi (C Interoperability): Mention that people should use
794 2015-01-23 Ian Lance Taylor <iant@google.com>
797 * go-lang.c (go_langhook_init_options_struct): Set default
799 (go_langhook_post_options): If debug_info_level is still the
800 default, make sure write_symbols is set.
801 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
803 2015-01-16 Richard Henderson <rth@redhat.com>
805 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
806 (Gcc_backend::static_chain_variable): New method.
808 2015-01-09 Ian Lance Taylor <iant@google.com>
810 * config-lang.in (lang_dirs): Define.
812 2015-01-09 Michael Collison <michael.collison@linaro.org>
814 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
815 input.h, alias.h, symtab.h, options.h, fold-const.h,
816 wide-int.h, and inchash.h due to flattening of tree.h.
818 * go-backend.c: Ditto.
820 2015-01-07 Chris Manghane <cmang@google.com>
823 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
826 2015-01-06 Chris Manghane <cmang@google.com>
828 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
829 initialize zero-sized fields, just evaluate the values for side
832 2015-01-05 Jakub Jelinek <jakub@redhat.com>
834 Update copyright years.
836 * gccgo.texi: Bump @copyrights-go year.
838 2014-12-19 Chris Manghane <cmang@google.com>
840 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
841 construct arrays of zero-sized values.
843 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
845 * go-lang.c: Remove redundant enum from machine_mode.
847 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
849 * go-gcc.cc: Adjust include files.
851 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
853 * go-gcc.cc: Adjust include files.
856 2014-10-23 Ian Lance Taylor <iant@google.com>
858 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
859 mpc_t parameter instead of two mpfr_t parameters.
861 2014-09-15 Jakub Jelinek <jakub@redhat.com>
863 * Make-lang.in (check_go_parallelize): Change to just an upper bound
866 2014-09-03 Chris Manghane <cmang@google.com>
868 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
869 parameter. Add is_hidden parameter.
870 (Gcc_backend::implicit_variable_set_init): New method.
871 (Gcc_backend::implicit_variable_reference): New method.
873 2014-08-08 Ian Lance Taylor <iant@google.com>
875 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
878 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
880 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
881 symtab_get_node to symtab_node::get.
883 2014-06-13 Ian Lance Taylor <iant@google.com>
886 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
887 ld, add -t option to avoid warning about common symbol changing
890 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
892 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
893 symtab_get_node(var_decl)->implicit_section.
895 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
897 * go-gcc.cc (global_variable_set_init): Use
898 set_decl_section_name.
900 2014-06-04 Ian Lance Taylor <iant@google.com>
902 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
903 alignment parameters. Permit init parameter to be NULL.
905 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
907 * go-gcc.cc: Include builtins.h.
909 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
911 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
913 2014-05-06 Chris Manghane <cmang@google.com>
915 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
916 (Gcc_backend::boolean_constant_expression): New method.
917 (Gcc_backend::zero_expression): Use this->make_expression rather
919 (Gcc_backend::var_expression): Likewise.
920 (Gcc_backend::integer_constant_expression): Likewise.
921 (Gcc_backend::float_constant_expression): Likewise.
922 (Gcc_backend::complex_constant_expression): Likewise.
923 (Gcc_backend::struct_field_expression): Likewise.
924 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
925 (tree_to_function, tree_to_block): Remove functions.
926 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
927 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
929 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
930 Mike Stump <mikestump@comcast.net>
931 Richard Sandiford <rdsandiford@googlemail.com>
933 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
935 2014-05-06 Chris Manghane <cmang@google.com>
937 * go-c.h (go_create_gogo): Update declaration to add
938 check_divide_zero and check_divide_overflow parameters.
939 * go-lang.c (go_langhook_init): Pass new arguments to
942 2014-05-05 Chris Manghane <cmang@google.com>
944 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
945 gc_root_variable. Add name and is_constant parameters.
947 2014-05-05 Chris Manghane <cmang@google.com>
949 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
951 (Gcc_backend::temporary_variable): Check for erroneous function.
953 2014-04-30 Chris Manghane <cmang@google.com>
955 * go-backend.c: #include "diagnostics.h".
956 (saw_errors): New function.
957 * go-c.h (saw_errors): Declare.
958 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
960 2014-04-30 Chris Manghane <cmang@google.com>
962 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
963 calling into Go frontend.
964 (go_langhook_type_for_mode): Likewise.
965 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
967 2014-04-30 Chris Manghane <cmang@google.com>
969 * go-gcc.cc: #include "langhooks.h".
970 (Gcc_backend::Gcc_backend): Add constructor.
971 (Gcc_backend::lookup_function): New function.
972 (Gcc_backend::define_builtin): New private function.
973 (Gcc_backend::gcc_backend): Remove.
974 (go_get_backend): Use new to create new Gcc_backend.
976 2014-04-25 Chris Manghane <cmang@google.com>
978 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
979 (Gcc_backend::return_statement): Push and pop function.
980 (Gcc_backend::label): Likewise.
981 (Gcc_backend::function_defer_statement): Likewise.
982 (Gcc_backend::switch_statement): Add function parameter.
983 (Gcc_backend::block): Don't permit function to be NULL.
984 (Gcc_backend::temporary_variable): Change go_assert to
986 (Gcc_backend::gc_root_variable): New function.
987 (Gcc_backend::write_global_definitions): New function.
989 2014-04-22 Chris Manghane <cmang@google.com>
991 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
992 call to create_tmp_var. Require that function be non-NULL.
994 2014-04-17 Chris Manghane <cmang@google.com>
996 * go-gcc.cc (Gcc_backend::named_constant_expression): New
999 2014-04-14 Chris Manghane <cmang@google.com>
1001 * go-gcc.cc: Include "convert.h".
1002 (Gcc_backend::string_constant_expression): New function.
1003 (Gcc_backend::real_part_expression): Likewise.
1004 (Gcc_backend::imag_part_expression): Likewise.
1005 (Gcc_backend::complex_expression): Likewise.
1006 (Gcc_backend::constructor_expression): Likewise.
1007 (Gcc_backend::array_constructor_expression): Likewise.
1008 (Gcc_backend::pointer_offset_expression): Likewise.
1009 (Gcc_backend::array_index_expression): Likewise.
1010 (Gcc_backend::call_expression): Likewise.
1011 (Gcc_backend::exception_handler_statement): Likewise.
1012 (Gcc_backend::function_defer_statement): Likewise.
1013 (Gcc_backend::function_set_parameters): Likewise.
1014 (Gcc_backend::function_set_body): Likewise.
1015 (Gcc_backend::convert_expression): Handle various type
1018 2014-03-03 Ian Lance Taylor <iant@google.com>
1020 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
1022 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
1025 2014-01-24 Chris Manghane <cmang@google.com>
1027 * go-gcc.cc (Gcc_backend::unary_expression): New function.
1029 2014-01-16 Chris Manghane <cmang@google.com>
1031 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
1033 (operator_to_tree_code): New static function.
1034 (Gcc_backend::binary_expression): New function.
1036 2014-01-14 Chris Manghane <cmang@google.com>
1038 * go-gcc.cc (Gcc_backend::compound_expression): New function.
1039 (Gcc_backend::conditional_expression): New function.
1041 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1043 Update copyright years
1045 2014-01-02 Tobias Burnus <burnus@net-b.de>
1047 * gccgo.texi: Bump @copying's copyright year.
1049 2013-12-16 Chris Manghane <cmang@google.com>
1051 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
1053 2013-12-11 Ian Lance Taylor <iant@google.com>
1055 * go-lang.c (go_langhook_post_options): Disable sibling calls by
1058 2013-12-10 Ian Lance Taylor <iant@google.com>
1060 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
1063 2013-12-05 Ian Lance Taylor <iant@google.com>
1065 Revert this change; no longer required.
1066 2013-11-06 Ian Lance Taylor <iant@google.com>
1068 * go-lang.c (go_langhook_post_options): If
1069 -fisolate-erroneous-paths was turned on by an optimization option,
1072 2013-11-23 Ian Lance Taylor <iant@google.com>
1074 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
1077 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1079 * go-gcc.cc: Add required include files from gimple.h.
1080 * go-lang.c: Likewise.
1082 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1084 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
1085 tree_to_shwi throughout.
1087 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1089 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
1090 tree_fits_shwi_p throughout.
1092 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1094 * go-lang.c: Include only gimplify.h and gimple.h as needed.
1096 2013-11-14 Diego Novillo <dnovillo@google.com>
1098 * go-backend.c: Include stor-layout.h.
1099 * go-gcc.cc: Include stringpool.h.
1100 Include stor-layout.h.
1102 * go-lang.c: Include stor-layout.h.
1104 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1106 * go-lang.c: Include gimplify.h.
1108 2013-11-06 Ian Lance Taylor <iant@google.com>
1110 * go-lang.c (go_langhook_post_options): If
1111 -fisolate-erroneous-paths was turned on by an optimization option,
1114 2013-10-14 Chris Manghane <cmang@google.com>
1116 * go-gcc.cc (Gcc_backend::address_expression): New function.
1118 2013-10-11 Chris Manghane <cmang@google.com>
1120 * go-gcc.cc (Gcc_backend::function_code_expression): New
1123 2013-10-10 Chris Manghane <cmang@google.com>
1125 * go-gcc.cc (Gcc_backend::error_function): New function.
1126 (Gcc_backend::function): New function.
1127 (Gcc_backend::make_function): New function.
1128 (function_to_tree): New function.
1130 2013-10-04 Chris Manghane <cmang@google.com>
1132 * go-gcc.cc (Gcc_backend::convert_expression): New function.
1134 2013-10-02 Chris Manghane <cmang@google.com>
1136 * go-gcc.cc: Include "real.h" and "realmpfr.h".
1137 (Gcc_backend::integer_constant_expression): New function.
1138 (Gcc_backend::float_constant_expression): New function.
1139 (Gcc_backend::complex_constant_expression): New function.
1141 2013-09-30 Chris Manghane <cmang@google.com>
1143 * go-gcc.cc (Gcc_backend::error_expression): New function.
1144 (Gcc_backend::var_expression): New function.
1145 (Gcc_backend::indirect_expression): New function.
1147 2013-09-25 Tom Tromey <tromey@redhat.com>
1149 * Make-lang.in (gospec.o): Remove.
1150 (CFLAGS-go/gospec.o): New variable.
1151 (GCCGO_OBJS): Update to use go/gospec.o.
1153 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
1154 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
1155 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
1156 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
1157 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
1158 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
1159 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
1160 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
1161 (go/unsafe.o): Remove.
1162 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
1163 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
1165 2013-09-25 Tom Tromey <tromey@redhat.com>
1167 * Make-lang.in (gospec.o): Don't use subshell.
1169 2013-08-28 Ian Lance Taylor <iant@google.com>
1171 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
1172 the struct is not hidden.
1173 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
1175 2013-08-06 Ian Lance Taylor <iant@google.com>
1177 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
1178 compute_reloc_for_constant.
1180 2013-08-02 Ian Lance Taylor <iant@google.com>
1182 * go-gcc.cc (immutable_struct_set_init): Always call
1183 resolve_unique_section.
1185 2013-07-24 Ian Lance Taylor <iant@google.com>
1187 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
1188 fields, recreate those fields with the first one with a non-zero
1191 2013-07-23 Ian Lance Taylor <iant@google.com>
1193 * go-backend.c: Don't #include "rtl.h".
1194 (go_imported_unsafe): Don't call init_varasm_once.
1195 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
1197 2013-07-23 Ian Lance Taylor <iant@google.com>
1199 * go-lang.c: Don't #include "except.h".
1200 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
1202 2013-06-18 Ian Lance Taylor <iant@google.com>
1204 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
1206 (Gcc_backend::immutable_struct_set_init): Likewise.
1208 2013-05-16 Jason Merrill <jason@redhat.com>
1210 * Make-lang.in (go1$(exeext)): Use link mutex.
1212 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
1214 * gospec.c: pass -u pthread_create to linker when static linking.
1216 2012-12-21 Ian Lance Taylor <iant@google.com>
1219 * go-system.h: Don't include <cstdio>.
1221 2012-12-18 Ian Lance Taylor <iant@google.com>
1224 * gospec.c: Revert last patch.
1226 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
1229 * gospec.c (LIBATOMIC): Define.
1230 (LIBATOMIC_PROFILE): Define.
1231 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
1233 2012-11-29 Ian Lance Taylor <iant@google.com>
1235 * go-gcc.cc: Include "output.h".
1236 (global_variable): Add is_unique_section parameter.
1237 (global_variable_set_init): Adjust unique section if necessary.
1238 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
1240 2012-11-17 Diego Novillo <dnovillo@google.com>
1242 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1244 * go-lang.c: Use new vec API in vec.h.
1246 2012-11-16 Ian Lance Taylor <iant@google.com>
1248 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
1249 (go1$(exeext)): Likewise.
1251 2012-10-30 Ian Lance Taylor <iant@google.com>
1253 * lang.opt (-fgo-relative-import-path): New option.
1254 * go-lang.c (go_relative_import_path): New static variable.
1255 (go_langhook_init): Pass go_relative_import_path to
1257 (go_langhook_handle_option): Handle -fgo-relative-import-path.
1258 * go-c.h (go_create_gogo): Update declaration.
1259 * gccgo.texi (Invoking gccgo): Document
1260 -fgo-relative-import-path.
1262 2012-09-17 Ian Lance Taylor <iant@google.com>
1264 * config-lang.in (target_libs): Add target-libbacktrace.
1266 2012-09-16 Ian Lance Taylor <iant@google.com>
1268 * Make-lang.in (go/gogo.o): Depend on filenames.h.
1270 2012-08-14 Diego Novillo <dnovillo@google.com>
1272 Merge from cxx-conversion branch. Configury.
1274 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1275 * go-gcc.cc: Likewise.
1276 * go-system.h: Likewise.
1278 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
1280 * go-lang.c (lang_decl): Add variable_size GTY option.
1282 2012-05-09 Ian Lance Taylor <iant@google.com>
1284 * lang.opt: Add -fgo-pkgpath.
1285 * go-lang.c (go_pkgpath): New static variable.
1286 (go_prefix): New static variable.
1287 (go_langhook_init): Pass go_pkgpath and go_prefix to
1289 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
1290 -fgo-prefix handling to just set go_prefix.
1291 * go-c.h (go_set_prefix): Don't declare.
1292 (go_create_gogo): Add pkgpath and prefix to declaration.
1293 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1294 to pkgpath. Don't include the package name in the asm name.
1295 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
1296 docs for -fgo-prefix.
1298 2012-04-23 Ian Lance Taylor <iant@google.com>
1300 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1302 2012-04-20 Ian Lance Taylor <iant@google.com>
1304 * lang.opt: Add -fgo-check-divide-zero and
1305 -fgo-check-divide-overflow.
1306 * gccgo.texi (Invoking gccgo): Document new options.
1308 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1310 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1311 with NULL_TREE type instead of void_type_node.
1313 2012-03-09 Ian Lance Taylor <iant@google.com>
1315 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1316 to the lhs type if necessary.
1318 2012-03-08 Ian Lance Taylor <iant@google.com>
1320 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1321 zero-sized variable.
1322 (go_non_zero_struct): New global variable.
1323 (Gcc_backend::non_zero_size_type): New function.
1324 (Gcc_backend::global_variable): Don't build an assignment for a
1326 * go-c.h (go_non_zero_struct): Declare.
1327 * config-lang.in (gtfiles): Add go-c.h.
1329 2012-02-29 Ian Lance Taylor <iant@google.com>
1331 * go-gcc.cc (class Gcc_tree): Add set_tree method.
1332 (set_placeholder_pointer_type): When setting to a pointer to
1333 error, set to error_mark_node.
1335 2012-02-23 Richard Guenther <rguenther@suse.de>
1337 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1338 build_distinct_type_copy.
1340 2012-02-17 Ian Lance Taylor <iant@google.com>
1342 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1344 2012-02-17 Ian Lance Taylor <iant@google.com>
1346 * gospec.c (lang_specific_driver): If linking, and no -o option
1349 2012-02-14 Ian Lance Taylor <iant@google.com>
1352 * Make-lang.in (gccgo-cross$(exeext)): New target.
1353 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1355 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1356 gccgo-cross$(exeext) does not exist.
1358 2012-02-07 Ian Lance Taylor <iant@google.com>
1360 * gccgo.texi (Function Names): Document //extern instead of
1363 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1366 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1367 return build_nonstandard_integer_type result if possible.
1369 2012-01-21 Ian Lance Taylor <iant@google.com>
1371 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1372 (Gcc_backend::type_alignment): Likewise.
1373 (Gcc_backend::type_field_alignment): Likewise.
1374 (Gcc_backend::type_field_offset): Likewise.
1376 2012-01-20 Ian Lance Taylor <iant@google.com>
1378 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1380 (Gcc_backend::set_placeholder_struct_type): Likewise.
1382 2012-01-17 Ian Lance Taylor <iant@google.com>
1384 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1385 BASE.s rather than -o BASE.o.
1387 2012-01-11 Ian Lance Taylor <iant@google.com>
1389 * go-lang.c (go_langhook_init): Initialize void_list_node before
1390 calling go_create_gogo.
1392 2012-01-10 Ian Lance Taylor <iant@google.com>
1394 * go-gcc.cc (Gcc_backend::type_size): New function.
1395 (Gcc_backend::type_alignment): New function.
1396 (Gcc_backend::type_field_alignment): New function.
1397 (Gcc_backend::type_field_offset): New function.
1398 * go-backend.c (go_type_alignment): Remove.
1399 * go-c.h (go_type_alignment): Don't declare.
1401 2011-12-27 Ian Lance Taylor <iant@google.com>
1403 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1404 build_distinct_type_copy rather than build_variant_type_copy.
1405 (Gcc_backend::set_placeholder_array_type): Likewise.
1406 (Gcc_backend::named_type): Add special handling for builtin
1409 2011-12-22 Ian Lance Taylor <iant@google.com>
1411 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1412 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1413 (Gcc_backend::set_placeholder_struct_type): Likewise.
1414 (Gcc_backend::set_placeholder_array_type): Likewise.
1415 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1417 2011-12-13 Ian Lance Taylor <iant@google.com>
1419 * go-backend.c: #include "simple-object.h" and "intl.h".
1420 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1421 (GO_EXPORT_SECTION_NAME): Likewise.
1422 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1423 (go_read_export_data): New function.
1424 * go-c.h (go_read_export_data): Declare.
1426 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1427 Ian Lance Taylor <iant@google.com>
1429 * go-location.h: New file.
1430 * go-linemap.cc: New file.
1431 * go-gcc.cc: Change all uses of source_location to Location.
1432 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1433 (GO_LINEMAP_H): New variable.
1434 (GO_LEX_H): Use $(GO_LINEMAP_H).
1435 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1436 (go/go-linemap.o): New target.
1438 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1440 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1442 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1444 * lang.opt: Add fgo-optimize-.
1445 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1446 * go-c.h (go_enable_optimize): Declare.
1447 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1448 (GO_EXPORT_H): Define.
1449 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1450 (GO_AST_DUMP_H): Define.
1451 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1452 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1453 (go/types.o): Likewise.
1454 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1455 (go/go-optimize.o): New target.
1457 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1459 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1460 (go/go-lang.o): Remove explicit compilation rule.
1462 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1464 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1466 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1468 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1469 (go/ast-dump.o): New target.
1470 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1471 (go/statements.o): Likewise.
1473 2011-07-06 Richard Guenther <rguenther@suse.de>
1475 * go-lang.c (go_langhook_init):
1476 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1478 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1480 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1482 * go-backend.c: Include common/common-target.h.
1483 (go_write_export_data): Use targetm_common.have_named_sections.
1484 * go-lang.c: Include common/common-target.h.
1485 (go_langhook_init_options_struct): Use
1486 targetm_common.supports_split_stack.
1488 2011-06-13 Ian Lance Taylor <iant@google.com>
1490 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1492 2011-06-10 Ian Lance Taylor <iant@google.com>
1494 * go-gcc.cc: Include "toplev.h".
1495 (Gcc_backend::immutable_struct): New function.
1496 (Gcc_backend::immutable_struct_set_init): New function.
1497 (Gcc_backend::immutable_struct_reference): New function.
1498 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1500 2011-06-09 Ian Lance Taylor <iant@google.com>
1502 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1504 2011-06-07 Richard Guenther <rguenther@suse.de>
1506 * go-lang.c (go_langhook_init): Do not set
1507 size_type_node or call set_sizetype.
1509 2011-05-27 Ian Lance Taylor <iant@google.com>
1511 * go-backend.c: Include "output.h".
1512 (go_write_export_data): New function.
1513 * go-c.h (go_write_export_data): Declare.
1514 * Make-lang.in (go/go-backend.o): Depend on output.h.
1515 (go/export.o): Depend on $(GO_C_H). Do not depend on
1516 $(MACHMODE_H), output.h, or $(TARGET_H).
1518 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1520 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1521 (gccgo$(exeext)): Use libcommon-target.a.
1523 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1525 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1527 2011-05-13 Ian Lance Taylor <iant@google.com>
1529 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1530 for multiple results, check that all fields types have a size.
1531 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1533 2011-05-12 Ian Lance Taylor <iant@google.com>
1535 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1537 (Gcc_backend::parameter_variable): Likewise.
1539 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1541 * go-lang.c (global_bindings_p): Return bool and simplify.
1543 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1545 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1547 2011-05-04 Ian Lance Taylor <iant@google.com>
1549 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1550 (Gcc_backend::fill_in_struct): New function.
1551 (Gcc_backend::array_type): Implement.
1552 (Gcc_backend::fill_in_array): New function.
1553 (Gcc_backend::placeholder_pointer_type): New function.
1554 (Gcc_backend::set_placeholder_pointer_type): New function.
1555 (Gcc_backend::set_placeholder_function_type): New function.
1556 (Gcc_backend::placeholder_struct_type): New function.
1557 (Gcc_backend::set_placeholder_struct_type): New function.
1558 (Gcc_backend::placeholder_array_type): New function.
1559 (Gcc_backend::set_placeholder_array_type): New function.
1560 (Gcc_backend::named_type): New function.
1561 (Gcc_backend::circular_pointer_type): New function.
1562 (Gcc_backend::is_circular_pointer_type): New function.
1564 2011-04-26 Ian Lance Taylor <iant@google.com>
1566 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1568 2011-04-25 Ian Lance Taylor <iant@google.com>
1570 * go-gcc.cc (Gcc_backend::error_type): Implement.
1571 (Gcc_backend::string_type): Remove.
1572 (Gcc_backend::function_type): Change signature and implement.
1573 (Gcc_backend::struct_type): Change signature.
1574 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1575 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1576 (Gcc_backend::pointer_type): Check for error.
1577 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1579 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1581 * go-gcc.c (class Gcc_tree): Make get_tree const.
1582 (Gcc_backend::void_type): Implement.
1583 (Gcc_backend::bool_type): Implement.
1584 (Gcc_backend::integer_type): Implement.
1585 (Gcc_backend::float_type): Implement.
1586 (Gcc_backend::complex_type): New function.
1587 (Gcc_backend::pointer_type): New function.
1588 (Gcc_backend::make_type): New function.
1589 (type_to_tree): New function.
1591 2011-04-21 Ian Lance Taylor <iant@google.com>
1593 * go-system.h (go_assert, go_unreachable): Define.
1595 2011-04-19 Ian Lance Taylor <iant@google.com>
1597 * go-system.h: Include "intl.h".
1598 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1599 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1600 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1602 2011-04-19 Ian Lance Taylor <iant@google.com>
1604 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1606 2011-04-19 Ian Lance Taylor <iant@google.com>
1608 * go-gcc.cc (class Bblock): Define.
1609 (Gcc_backend::if_statement): Change then_block and else_block to
1611 (Gcc_backend::block): New function.
1612 (Gcc_backend::block_add_statements): New function.
1613 (Gcc_backend::block_statement): New function.
1614 (tree_to_block, block_to_tree): New functions.
1616 2011-04-18 Ian Lance Taylor <iant@google.com>
1618 * go-gcc.cc: Include "go-c.h".
1619 (class Bvariable): Define.
1620 (Gcc_backend::init_statement): New function.
1621 (Gcc_backend::global_variable): New function.
1622 (Gcc_backend::global_variable_set_init): New function.
1623 (Gcc_backend::local_variable): New function.
1624 (Gcc_backend::parameter_variable): New function.
1625 (tree_to_type, var_to_tree): New functions.
1626 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1627 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1629 2011-04-15 Ian Lance Taylor <iant@google.com>
1631 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1632 (Gcc_backend::assignment_statement): Use error_statement.
1633 (Gcc_backend::return_statement): Likewise.
1634 (Gcc_backend::if_statement): Likewise.
1635 (Gcc_backend::switch_statement): Likewise.
1636 (Gcc_backend::statement_list): Likewise.
1638 2011-04-14 Ian Lance Taylor <iant@google.com>
1640 * go-gcc.cc (Gcc_backend::error_statement): New function.
1642 2011-04-13 Ian Lance Taylor <iant@google.com>
1644 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1646 2011-04-13 Ian Lance Taylor <iant@google.com>
1648 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1649 (GO_RUNTIME_H): New variable.
1650 (go/runtime.o): New target.
1651 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1652 (go/statements.o): Likewise.
1654 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1656 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1659 2011-04-06 Ian Lance Taylor <iant@google.com>
1661 * go-gcc.cc (if_statement): Use build3_loc.
1662 (Gcc_backend::switch_statement): New function.
1663 (Gcc_backend::statement_list): New function.
1665 2011-04-06 Ian Lance Taylor <iant@google.com>
1667 * go-gcc.cc (Gcc_backend::if_statement): New function.
1668 (tree_to_stat): New function.
1669 (expr_to_tree): Renamed from expression_to_tree.
1670 (stat_to_tree): Renamed from statement_to_tree.
1672 2011-04-06 Ian Lance Taylor <iant@google.com>
1674 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1676 2011-04-04 Ian Lance Taylor <iant@google.com>
1678 * go-gcc.c (class Blabel): Define.
1679 (Gcc_backend::make_expression): New function.
1680 (get_identifier_from_string): New function.
1681 (Gcc_backend::label): New function.
1682 (Gcc_backend::label_definition_statement): New function.
1683 (Gcc_backend::goto_statement): New function.
1684 (Gcc_backend::label_address): New function.
1685 (expression_to_tree): New function.
1686 * Make-lang.in (go/expressions.o): Depend on
1687 go/gofrontend/backend.h.
1688 (go/gogo.o): Likewise.
1690 2011-04-04 Ian Lance Taylor <iant@google.com>
1692 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1693 (class Bfunction): Define.
1694 (Gcc_backend::assignment_statement): Rename from assignment.
1696 (Gcc_backend::return_statement): New function.
1697 (tree_to_function): New function.
1698 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1699 $(GIMPLE_H), and $(GO_GOGO_H).
1701 2011-04-03 Ian Lance Taylor <iant@google.com>
1703 * go-gcc.cc: New file.
1704 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1705 (go/go-gcc.o): New target.
1706 (go/go.o): Depend on go/gofrontend/backend.h.
1707 (go/statements.o): Likewise.
1709 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1711 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1713 2011-02-08 Ian Lance Taylor <iant@google.com>
1715 * go-lang.c (go_langhook_init_options_struct): Set
1716 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1718 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1720 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1721 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1723 2011-01-21 Ian Lance Taylor <iant@google.com>
1725 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1727 * go-c.h: Update declaration of go_create_gogo.
1729 2011-01-13 Ian Lance Taylor <iant@google.com>
1731 * go-backend.c: Include "rtl.h" and "target.h".
1732 (go_imported_unsafe): New function.
1733 * go-c.h (go_imported_unsafe): Declare.
1734 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1735 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1736 (go/unsafe.o): Depend on $(GO_C_H).
1738 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1741 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1744 2010-12-21 Ian Lance Taylor <iant@google.com>
1746 * Make-lang.in (check-go): Remove.
1747 (lang_checks_parallelized): Add check-go.
1748 (check_go_parallelize): Set.
1750 2010-12-13 Ian Lance Taylor <iant@google.com>
1752 * gospec.c (lang_specific_driver): Add a -o option if not linking
1753 and there is no -o option already.
1755 2010-12-07 Ian Lance Taylor <iant@google.com>
1757 PR tree-optimization/46805
1758 PR tree-optimization/46833
1759 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1761 2010-12-06 Ian Lance Taylor <iant@google.com>
1765 * go-lang.c (go_char_p): Define type and vectors.
1766 (go_search_dirs): New static variable.
1767 (go_langhook_handle_option): Use version and version/machine
1769 (go_langhook_post_options): Add non-specific -L paths.
1770 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1771 DEFAULT_TARGET_MACHINE when compiling.
1772 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1773 (Import and Export): Don't mention -L for finding import files.
1775 2010-12-03 Ian Lance Taylor <iant@google.com>
1778 * go-backend.c: New file.
1779 * go-c.h (go_type_alignment): Declare.
1780 (go_field_alignment, go_trampoline_info): Declare.
1781 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1782 (go/go-backend.o): New target.
1783 (go/go-lang.o): Make dependencies match source file.
1784 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1785 (go/gogo-tree.o): Don't depend on $(TM_H).
1787 2010-12-03 Ian Lance Taylor <iant@google.com>
1789 * config-lang.in (build_by_default): Set to no.
1791 2010-12-02 Ian Lance Taylor <iant@google.com>
1793 Go frontend added to gcc repository.
1795 Copyright (C) 2010-2021 Free Software Foundation, Inc.
1797 Copying and distribution of this file, with or without modification,
1798 are permitted in any medium without royalty provided the copyright
1799 notice and this notice are preserved.