1 2021-01-15 Ian Lance Taylor <iant@golang.org>
3 * Make-lang.in (GO_OBJS): Add go/embed.o.
5 2021-01-05 Jakub Jelinek <jakub@redhat.com>
7 * lang.opt (fgo-embedcfg=): Add full stop at the end of description.
9 2021-01-05 Ian Lance Taylor <iant@golang.org>
11 * lang.opt (fgo-embedcfg): New option.
12 * go-c.h (struct go_create_gogo_args): Add embedcfg field.
13 * go-lang.c (go_embedcfg): New static variable.
14 (go_langhook_init): Set go_create_gogo_args embedcfg field.
15 (go_langhook_handle_option): Handle OPT_fgo_embedcfg_.
16 * gccgo.texi (Invoking gccgo): Document -fgo-embedcfg.
18 2021-01-01 Jakub Jelinek <jakub@redhat.com>
20 * gccgo.texi: Bump @copyrights-go year.
22 2020-12-22 Ian Lance Taylor <iant@golang.org>
25 * go-lang.c (go_langhook_init): Force MPFR exponent range to be
26 large enough to support Go constants.
28 2020-11-20 Jakub Jelinek <jakub@redhat.com>
31 * Make-lang.in (go.serial): Change from goal to a variable.
32 (.PHONY): Drop go.serial and go.prev.
33 (go1$(exeext)): Depend on $(go.serial) rather than go.serial.
35 2020-11-18 Jakub Jelinek <jakub@redhat.com>
37 * Make-lang.in (go.serial): New goal.
38 (.PHONY): Add go.serial go.prev.
39 (go1$(exeext)): Depend on go.prev. Call LINK_PROGRESS.
41 2020-11-11 Alan Modra <amodra@gmail.com>
43 * go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to
44 avoid ambiguous overloaded call.
46 2020-11-06 Nathan Sidwell <nathan@acm.org>
48 * go-gcc.cc (Gcc_backend::call_expression): Rename
49 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
51 2020-11-04 Ian Lance Taylor <iant@golang.org>
53 * go-lang.c (go_langhook_post_options): Disable
54 -fipa-icf-functions if it was not explicitly enabled.
56 2020-09-14 Jakub Jelinek <jakub@redhat.com>
58 * go-gcc.cc (Gcc_backend::function): Adjust
59 cl_optimization_save, cl_optimization_restore and
60 build_optimization_node callers.
62 2020-08-10 Clément Chigot <chigot.c@gmail.com>
64 * go-c.h (struct go_create_gogo_args): Add need_eqtype field.
65 * go-lang.c (go_langhook_init): Set need_eqtype.
67 2020-04-15 Ian Lance Taylor <iant@golang.org>
70 * go-gcc.cc (class Gcc_backend): Define builtin_const,
71 builtin_noreturn, builtin_novops.
72 (Gcc_backend::define_builtin): Change const_p and noreturn_p
73 parameters to a single flags parameter. Change all callers.
74 (Gcc_backend::Gcc_backend): Pass novops for prefetch.
76 2020-01-01 Jakub Jelinek <jakub@redhat.com>
78 Update copyright years.
80 * gccgo.texi: Bump @copyrights-go year.
82 2019-11-12 Martin Liska <mliska@suse.cz>
84 * go-lang.c (go_langhook_post_options):
85 Use SET_OPTION_IF_UNSET.
87 2019-09-04 Ian Lance Taylor <iant@golang.org>
89 PR tree-optimization/91663
90 * go-lang.c (go_langhook_post_options): Clear
91 flag_partial_inlining.
93 2019-08-23 Jakub Jelinek <jakub@redhat.com>
96 * go-lang.c (go_langhook_post_options): Set flag_excess_precision
97 instead of flag_excess_precision_cmdline.
99 2019-07-02 Cherry Zhang <cherryyz@google.com>
101 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_memset.
103 2019-06-21 Cherry Zhang <cherryyz@google.com>
105 * go-gcc.cc (Gcc_backend::Gcc_backend): Define math/bits
108 2019-05-30 Jim Wilson <jimw@sifive.com>
110 * go-gcc.cc (Gcc_backend::Gcc_backend): Add BUILT_IN_ATOMIC_FETCH_AND_1
111 and BUILT_IN_ATOMIC_FETCH_OR_1.
113 2019-05-16 Cherry Zhang <cherryyz@google.com>
115 * go-gcc.cc (Gcc_backend::Gcc_backend): Define atomic builtins.
117 2019-05-08 Cherry Zhang <cherryyz@google.com>
119 * go-gcc.cc (Gcc_backend::Gcc_backend): Define memmove builtin.
121 2019-05-07 Cherry Zhang <cherryyz@google.com>
123 * lang.opt (-fgo-debug-optimization): New option.
124 * go-c.h (struct go_create_gogo_args): Add debug_optimization
126 * go-lang.c (go_langhook_init): Set debug_optimization field.
127 * gccgo.texi (Invoking gccgo): Document -fgo-debug-optimization.
129 2019-03-06 Ian Lance Taylor <iant@golang.org>
132 * go-gcc.cc (Gcc_backend::function): Set TREE_PUBLIC for an
133 only-inline function.
135 2019-02-15 Cherry Zhang <cherryyz@google.com>
137 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_dwarf_cfa
138 instead of __builtin_frame_address.
140 2019-02-14 Ian Lance Taylor <iant@golang.org>
142 * go-backend.c (go_imported_unsafe): Update
143 optimization_default_node.
145 2019-02-13 Ian Lance Taylor <iant@golang.org>
147 * go-gcc.cc: #include "opts.h".
148 (Gcc_backend::function): Compile thunks with -Os.
150 2019-02-05 Nikhil Benesch <nikhil.benesch@gmail.com>
153 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Mark
154 placeholder structs as requiring structural equality.
155 (Gcc_backend::set_placeholder_pointer_type): Propagate the
156 canonical type from the desired pointer type to the placeholder
159 2019-01-09 Ian Lance Taylor <iant@golang.org>
162 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Go back to
163 build_distinct_type_copy, but copy the fields so that they have
164 the right DECL_CONTEXT.
166 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
170 * go-backend.c: Mechanically replace "can not" with "cannot".
171 * go-gcc.cc: Likewise.
173 2019-01-01 Jakub Jelinek <jakub@redhat.com>
175 Update copyright years.
177 * gccgo.texi: Bump @copyrights-go year.
179 2018-11-27 Ian Lance Taylor <iant@golang.org>
181 * go-gcc.cc (Gcc_backend::function): Handle function_only_inline
184 2018-11-13 David Malcolm <dmalcolm@redhat.com>
186 * go-gcc-diagnostics.cc: Replace "source_location" with "location_t".
187 * go-gcc.cc: Likewise.
188 * go-linemap.cc: Likewise.
189 * go-location.h: Likewise.
190 * gofrontend/README: Likewise.
192 2018-10-31 Ian Lance Taylor <iant@golang.org>
194 * go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
195 gimplify_function_tree. Instead call allocate_struct_function if
198 2018-10-29 Ian Lance Taylor <iant@golang.org>
200 * go-gcc.cc (Gcc_backend::function): Change to use a single flags
203 2018-10-29 Ian Lance Taylor <iant@golang.org>
205 * go-linemap.cc (Gcc_linemap::location_file): New method.
207 2018-10-17 David Malcolm <dmalcolm@redhat.com>
209 * Make-lang.in (selftest-go): New.
211 2018-09-20 Allan Sandfeld Jensen <allan.jensen@qt.io>
213 * gospec.c (lang_specific_driver): Handle -r like -nostdlib.
215 2018-08-27 Martin Liska <mliska@suse.cz>
217 * go-gcc.cc (Gcc_backend::call_expression): Use new function
218 fndecl_built_in_p and remove check for FUNCTION_DECL if
221 2018-07-20 Martin Sebor <msebor@redhat.com>
224 * go-lang.c (go_langhook_handle_option): Change function argument
227 2018-06-28 Ian Lance Taylor <iant@golang.org>
230 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
231 build_variant_type_copy rather than build_distinct_type_copy.
233 2018-06-08 Cherry Zhang <cherryyz@google.com>
235 * go-gcc.cc (class Gcc_backend): Remove
236 stack_allocation_expression method.
238 2018-02-03 Ian Lance Taylor <iant@golang.org>
240 * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
241 using structural equality.
243 2018-02-02 Ian Lance Taylor <iant@golang.org>
245 * go-gcc.cc (Gcc_backend::type_size): Return 0 for
247 (Gcc_backend::convert_expression): Don't convert if the type of
248 expr_tree is void_type_node.
249 (Gcc_backend::array_index_expression): Don't index if the type of
250 the array expression is void_type_node.
251 (Gcc_backend::init_statement): Don't initialize if the type of the
252 initializer expression is void_type_node.
253 (Gcc_backend::assignment_statement): Don't assign if the type of
254 either the left or right hand side is void_type_node.
255 (Gcc_backend::temporary_variable): Don't initialize if the type of
256 the initializer expression is void_type_node.
258 2018-02-01 Cherry Zhang <cherryyz@google.com>
260 * lang.opt (fgo-optimize): Remove RejectNegative.
261 * go-c.h (go_enable_optimize): Update declaration to take value
263 * go-lang.c (go_langhook_handle_option): Pass value to
265 * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
267 2018-01-30 Ian Lance Taylor <iant@golang.org>
269 * go-gcc.cc (Gcc_backend::convert_tree): New private method.
270 (Gcc_backend::constructor_expression): Call it.
271 (Gcc_backend::assignment_statement): Likewise.
272 (Gcc_backend::temporary_variable): Likewise.
274 2018-01-09 Cherry Zhang <cherryyz@google.com>
276 * go-gcc.cc (local_variable): Add decl_var parameter.
278 2018-01-09 Cherry Zhang <cherryyz@google.com>
280 * lang.opt (fgo-debug-escape-hash): New option.
281 * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
283 * go-lang.c (go_langhook_init): Set debug_escape_hash field.
284 * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
286 2018-01-05 Ian Lance Taylor <iant@golang.org>
288 * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
289 math_function_type_long to take one argument.
291 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
292 Alan Hayward <alan.hayward@arm.com>
293 David Sherwood <david.sherwood@arm.com>
295 * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
297 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
298 Alan Hayward <alan.hayward@arm.com>
299 David Sherwood <david.sherwood@arm.com>
301 * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
303 2018-01-03 Jakub Jelinek <jakub@redhat.com>
305 Update copyright years.
307 * gccgo.texi: Bump @copyrights-go year.
309 2017-12-12 Tony Reix <tony.reix@atos.net>
310 Ian Lance Taylor <iant@golang.org>
312 * go-lang.c (TARGET_AIX): Define if not defined.
313 (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
315 2017-12-01 Ian Lance Taylor <iant@golang.org>
317 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
318 __builtin_unreachable.
319 (Gcc_backend::function): Add does_not_return parameter.
321 2017-12-01 Than McIntosh <thanm@google.com>
323 * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
325 * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
327 2017-11-28 Jakub Jelinek <jakub@redhat.com>
329 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
330 build2_loc instead of build3_loc.
332 2017-11-14 Than McIntosh <thanm@google.com>
334 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
336 2017-10-11 Tony Reix <tony.reix@atos.net>
338 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
339 system header files, as is done in ../system.h.
341 2017-10-05 Ian Lance Taylor <iant@golang.org>
343 * Make-lang.in (GO_OBJS): Add go/names.o.
345 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
346 Alan Hayward <alan.hayward@arm.com>
347 David Sherwood <david.sherwood@arm.com>
349 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
351 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
352 Alan Hayward <alan.hayward@arm.com>
353 David Sherwood <david.sherwood@arm.com>
355 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
357 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
358 Alan Hayward <alan.hayward@arm.com>
359 David Sherwood <david.sherwood@arm.com>
361 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
363 2017-08-07 Martin Liska <mliska@suse.cz>
365 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
366 and not __no_split_stack__.
368 2017-07-27 Tony Reix <tony.reix@atos.net>
370 * go-backend.c (go_write_export_data): Use EXCLUDE section for
373 2017-06-09 Ian Lance Taylor <iant@golang.org>
375 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
376 on, disable implicit -forder-blocks-and-partition.
378 2017-05-12 Than McIntosh <thanm@google.com>
380 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
382 2017-05-11 Ian Lance Taylor <iant@google.com>
385 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
386 DECL_EXTERNAL, clear TREE_STATIC.
388 2017-05-10 Than McIntosh <thanm@google.com>
390 * go-backend.c: Include "go-c.h".
391 * go-gcc.cc (Gcc_backend::write_export_data): New method.
393 2017-05-10 Ian Lance Taylor <iant@google.com>
395 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
397 * Make-lang.in (GO_OBJS): Add go/wb.o.
399 2017-03-28 Than McIntosh <thanm@google.com>
402 * go-gcc.cc (Gcc_backend::return_statement): Check for
403 void_type_node when checking result size.
405 2017-02-20 Ian Lance Taylor <iant@golang.org>
408 * lang.opt (-fgo-relative-import-path): Change space to tab.
410 2017-02-07 Richard Biener <rguenther@suse.de>
412 PR tree-optimization/79256
414 * go-backend.c (go_field_alignment): Adjust.
416 2017-01-11 Than McIntosh <thanm@google.com>
418 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
420 2017-01-01 Jakub Jelinek <jakub@redhat.com>
422 Update copyright years.
424 * gccgo.texi: Bump @copyrights-go year.
426 2016-12-16 Than McIntosh <thanm@google.com>
428 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
430 (Gcc_backend::init_statement): Likewise.
431 (Gcc_backend::assignment_statement): Likewise.
432 (Gcc_backend::if_statement): Likewise.
434 2016-12-06 Than McIntosh <thanm@google.com>
436 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
439 2016-11-22 Than McIntosh <thanm@google.com>
441 * go-gcc.cc (char_needs_encoding): Remove.
442 (needs_encoding, fetch_utf8_char, encode_id): Remove.
443 (Gcc_backend::global_variable): Add asm_name parameter. Don't
444 compute asm_name here.
445 (Gcc_backend::implicit_variable): Likewise.
446 (Gcc_backend::implicit_variable_reference): Likewise.
447 (Gcc_backend::immutable_struct): Likewise.
448 (Gcc_backend::immutable_struct_reference): Likewise.
449 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
451 2016-11-22 Ian Lance Taylor <iant@google.com>
453 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
454 __builtin_frame_address.
456 2016-10-25 David Malcolm <dmalcolm@redhat.com>
458 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
459 from result of GET_MODE_CLASS. Minor formatting fixes.
461 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
463 * go-backend.c: Include memmodel.h.
465 2016-10-10 Than McIntosh <thanm@google.com>
467 * go-gcc.h: New file.
468 * go-c.h (struct go_create_gogo_args): Add backend and linemap
470 * go-lang.c: Include "go-gcc.h".
471 (go_langhook_init): Set linemap and backend fields of args.
472 * go-gcc.cc: Include "go-gcc.h".
473 * go-linemap.cc: Include "go-gcc.h".
475 2016-10-10 Than McIntosh <thanm@google.com>
477 * go-linemap.cc (Gcc_linemap::location_line): New method.
479 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
481 * config-lang.in (lang_requires_boot_languages): Delete.
483 2016-10-06 Chris Manghane <cmang@google.com>
485 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
488 2016-09-27 Than McIntosh <thanm@google.com>
490 * go-linemap.cc (Gcc_linemap::to_string): New method.
492 2016-09-23 Than McIntosh <thanm@google.com>
494 * go-gcc-diagnostics.cc: New file.
495 * go-location.h (Location): Remove operator source_location. Add
497 * go-system.h: #include <sstream>.
498 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
499 go/go-gcc-diagnostics.o.
500 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
502 2016-09-23 Chris Manghane <cmang@google.com>
505 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
506 to pass arguments in the correct order.
508 2016-09-22 Ian Lance Taylor <iant@golang.org>
510 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
511 __builtin_frame_address.
513 2016-09-11 Ian Lance Taylor <iant@golang.org>
515 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
516 ctz, ctzll, bswap32, bswap64.
518 2016-09-10 Ian Lance Taylor <iant@golang.org>
520 * go-backend.c (go_trampoline_info): Remove.
521 * go-c.h (go_trampoline_info): Don't declare.
523 2016-09-09 Than McIntosh <thanm@google.com>
525 * go-sha1.cc: New file.
526 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
527 (CFLAGS-go/go-sha1.o): New variable.
529 2016-08-29 Ian Lance Taylor <iant@google.com>
531 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
532 * go-c.h (struct go_create_gogo_args): Define.
533 (go_create_gogo): Change declaration to take struct pointer.
534 * go-lang.c (go_c_header): New static variable.
535 (go_langhook_init): Update call to go_create_gogo.
536 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
537 -fgo-compiling-runtime.
539 2016-08-09 Ian Lance Taylor <iant@google.com>
541 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
543 (Compiler Directives): New chapter.
544 (Function Names): Describe using //go:linkname. Suggest using
545 -fgo-pkgpath rather than -fgo-prefix.
547 2016-08-08 Ian Lance Taylor <iant@google.com>
550 * go-gcc.cc (Gcc_backend::function_type): If the return type is
551 zero bytes, treat the function as returning void.
552 (return_statement): If the return type is zero bytes, don't
553 actually return any values.
555 2016-08-05 Ian Lance Taylor <iant@google.com>
558 * go-gcc.cc (char_needs_encoding): New static function.
559 (needs_encoding, fetch_utf8_char): New static functions.
560 (encode_id): New static function.
561 (Gcc_backend::global_variable): Set asm name if the name is not
563 (Gcc_backend::implicit_variable): Likewise.
564 (Gcc_backend::implicit_variable_reference): Likewise.
565 (Gcc_backend::immutable_struct): Likewise.
566 (Gcc_backend::immutable_struct_reference): Likewise.
567 (Gcc_backend::function): Likewise.
569 2016-08-02 Chris Manghane <cmang@google.com>
571 * lang.opt: Add -fgo-debug-escape option.
572 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
573 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
576 2016-05-06 Chris Manghane <cmang@google.com>
578 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
581 2016-04-29 Chris Manghane <cmang@google.com>
583 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
585 2016-04-18 Michael Matz <matz@suse.de>
587 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
589 2016-02-12 Jakub Jelinek <jakub@redhat.com>
591 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
592 neighbour -> neighbor.
593 * gccgo.texi: Likewise.
595 2016-01-27 Ian Lance Taylor <iant@google.com>
597 * go-lang.c (go_langhook_init_options_struct): Default to
598 -fkeep-gc-roots-live.
600 2016-01-04 Jakub Jelinek <jakub@redhat.com>
602 Update copyright years.
604 * gccgo.texi: Bump @copyrights-go year.
606 2015-12-21 Ian Lance Taylor <iant@google.com>
608 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
609 t_ and orig_type_ fields. Add new two parameter constructor. Add
610 get_tree and get_decl methods.
611 (Gcc_backend::var_expression): Pass location to var get_tree.
612 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
613 two parameter constructor for Bvariable.
614 (Gcc_backend::global_variable_set_init): Don't remove
615 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
616 (Gcc_backend::write_global_definitions): Likewise.
617 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
618 (Gcc_backend::block): Likewise.
619 (Gcc_backend::implicit_variable_set_init): Likewise.
620 (Gcc_backend::immutable_struct_set_init): Likewise.
621 (Gcc_backend::function_set_parameters): Likewise.
623 2015-12-21 Ian Lance Taylor <iant@google.com>
625 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
626 add a VIEW_CONVERT_EXPR to the tree.
627 (Gcc_backend::global_variable_set_init): Remove any
629 (Gcc_backend::write_global_definitions): Likewise.
631 2015-11-30 Ian Lance Taylor <iant@google.com>
634 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
635 TYPE_STRING_FLAG on a variant type.
637 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
639 * go-backend.c: Remove unused header files.
640 * go-gcc.cc: Likewise.
641 * go-lang.c: Likewise.
642 * gospec.c: Likewise.
644 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
646 * go-backend.c: Reorder #include's and remove duplicates.
647 * go-lang.c: Likewise.
649 2015-10-20 Alan Modra <amodra@gmail.com>
652 * gospec.c (saw_opt_m32): Rename to..
653 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
655 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
657 2015-10-01 Ian Lance Taylor <iant@google.com>
660 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
661 TARGET_CAN_SPLIT_STACK_64BIT is defined.
663 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
666 * gospec.c (lang_specific_driver): Set appropriate split stack
667 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
669 2015-09-10 Chris Manghane <cmang@google.com>
671 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
672 unrepresentable size.
674 2015-08-24 Marek Polacek <polacek@redhat.com>
676 PR tree-optimization/67284
677 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
678 Set TREE_THIS_VOLATILE.
679 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
680 Pass false to the rest of define_builtin calls.
682 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
684 * go-lang.c (go_langhook_init_options_struct): Don't set
686 (go_langhook_post_options): Set it here instead.
688 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
690 * gofrontend/backend.h: Fix double word typos.
691 * gofrontend/expressions.cc: Same.
694 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
696 * go-backend.c: Adjust includes.
697 * go-gcc.cc: Likewise.
698 * go-lang.c: Likewise.
700 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
702 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
704 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
706 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
707 * go-gcc.cc: Likewise.
708 * go-lang.c: Likewise.
709 * go-system.h: Likewise.
711 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
713 * go-backend.c : Adjust include files.
714 * go-gcc.cc : Likewise.
715 * go-lang.c : Likewise.
717 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
719 * go-gcc.cc (write_global_definitions): Remove call to
720 finalize_compilation_unit.
721 Remove Go specific debug generation.
722 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
723 (go_langhook_write_globals): Remove.
724 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
726 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
728 * go-backend.c: Adjust includes for restructured coretypes.h.
730 * go-gcc.cc: Likewise.
731 * go-lang.c: Likewise.
733 2015-04-30 Chris Manghane <cmang@google.com>
735 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
738 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
740 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
742 2015-04-17 Chris Manghane <cmang@google.com>
744 * Make-lang.in (GO_OBJS): Add go/escape.o.
746 2015-02-02 Ian Lance Taylor <iant@google.com>
750 * go-gcc.cc (Gcc_backend::type_size): Change return type to
752 (Gcc_backend::type_alignment): Likewise.
753 (Gcc_backend::type_field_alignment): Likewise.
754 (Gcc_backend::type_field_offset): Likewise.
755 (Gcc_backend::implicit_variable): Change alignment parameter type
758 2015-01-23 Ian Lance Taylor <iant@google.com>
761 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
764 * gccgo.texi (C Interoperability): Mention that people should use
767 2015-01-23 Ian Lance Taylor <iant@google.com>
770 * go-lang.c (go_langhook_init_options_struct): Set default
772 (go_langhook_post_options): If debug_info_level is still the
773 default, make sure write_symbols is set.
774 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
776 2015-01-16 Richard Henderson <rth@redhat.com>
778 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
779 (Gcc_backend::static_chain_variable): New method.
781 2015-01-09 Ian Lance Taylor <iant@google.com>
783 * config-lang.in (lang_dirs): Define.
785 2015-01-09 Michael Collison <michael.collison@linaro.org>
787 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
788 input.h, alias.h, symtab.h, options.h, fold-const.h,
789 wide-int.h, and inchash.h due to flattening of tree.h.
791 * go-backend.c: Ditto.
793 2015-01-07 Chris Manghane <cmang@google.com>
796 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
799 2015-01-06 Chris Manghane <cmang@google.com>
801 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
802 initialize zero-sized fields, just evaluate the values for side
805 2015-01-05 Jakub Jelinek <jakub@redhat.com>
807 Update copyright years.
809 * gccgo.texi: Bump @copyrights-go year.
811 2014-12-19 Chris Manghane <cmang@google.com>
813 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
814 construct arrays of zero-sized values.
816 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
818 * go-lang.c: Remove redundant enum from machine_mode.
820 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
822 * go-gcc.cc: Adjust include files.
824 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
826 * go-gcc.cc: Adjust include files.
829 2014-10-23 Ian Lance Taylor <iant@google.com>
831 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
832 mpc_t parameter instead of two mpfr_t parameters.
834 2014-09-15 Jakub Jelinek <jakub@redhat.com>
836 * Make-lang.in (check_go_parallelize): Change to just an upper bound
839 2014-09-03 Chris Manghane <cmang@google.com>
841 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
842 parameter. Add is_hidden parameter.
843 (Gcc_backend::implicit_variable_set_init): New method.
844 (Gcc_backend::implicit_variable_reference): New method.
846 2014-08-08 Ian Lance Taylor <iant@google.com>
848 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
851 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
853 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
854 symtab_get_node to symtab_node::get.
856 2014-06-13 Ian Lance Taylor <iant@google.com>
859 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
860 ld, add -t option to avoid warning about common symbol changing
863 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
865 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
866 symtab_get_node(var_decl)->implicit_section.
868 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
870 * go-gcc.cc (global_variable_set_init): Use
871 set_decl_section_name.
873 2014-06-04 Ian Lance Taylor <iant@google.com>
875 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
876 alignment parameters. Permit init parameter to be NULL.
878 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
880 * go-gcc.cc: Include builtins.h.
882 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
884 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
886 2014-05-06 Chris Manghane <cmang@google.com>
888 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
889 (Gcc_backend::boolean_constant_expression): New method.
890 (Gcc_backend::zero_expression): Use this->make_expression rather
892 (Gcc_backend::var_expression): Likewise.
893 (Gcc_backend::integer_constant_expression): Likewise.
894 (Gcc_backend::float_constant_expression): Likewise.
895 (Gcc_backend::complex_constant_expression): Likewise.
896 (Gcc_backend::struct_field_expression): Likewise.
897 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
898 (tree_to_function, tree_to_block): Remove functions.
899 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
900 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
902 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
903 Mike Stump <mikestump@comcast.net>
904 Richard Sandiford <rdsandiford@googlemail.com>
906 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
908 2014-05-06 Chris Manghane <cmang@google.com>
910 * go-c.h (go_create_gogo): Update declaration to add
911 check_divide_zero and check_divide_overflow parameters.
912 * go-lang.c (go_langhook_init): Pass new arguments to
915 2014-05-05 Chris Manghane <cmang@google.com>
917 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
918 gc_root_variable. Add name and is_constant parameters.
920 2014-05-05 Chris Manghane <cmang@google.com>
922 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
924 (Gcc_backend::temporary_variable): Check for erroneous function.
926 2014-04-30 Chris Manghane <cmang@google.com>
928 * go-backend.c: #include "diagnostics.h".
929 (saw_errors): New function.
930 * go-c.h (saw_errors): Declare.
931 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
933 2014-04-30 Chris Manghane <cmang@google.com>
935 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
936 calling into Go frontend.
937 (go_langhook_type_for_mode): Likewise.
938 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
940 2014-04-30 Chris Manghane <cmang@google.com>
942 * go-gcc.cc: #include "langhooks.h".
943 (Gcc_backend::Gcc_backend): Add constructor.
944 (Gcc_backend::lookup_function): New function.
945 (Gcc_backend::define_builtin): New private function.
946 (Gcc_backend::gcc_backend): Remove.
947 (go_get_backend): Use new to create new Gcc_backend.
949 2014-04-25 Chris Manghane <cmang@google.com>
951 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
952 (Gcc_backend::return_statement): Push and pop function.
953 (Gcc_backend::label): Likewise.
954 (Gcc_backend::function_defer_statement): Likewise.
955 (Gcc_backend::switch_statement): Add function parameter.
956 (Gcc_backend::block): Don't permit function to be NULL.
957 (Gcc_backend::temporary_variable): Change go_assert to
959 (Gcc_backend::gc_root_variable): New function.
960 (Gcc_backend::write_global_definitions): New function.
962 2014-04-22 Chris Manghane <cmang@google.com>
964 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
965 call to create_tmp_var. Require that function be non-NULL.
967 2014-04-17 Chris Manghane <cmang@google.com>
969 * go-gcc.cc (Gcc_backend::named_constant_expression): New
972 2014-04-14 Chris Manghane <cmang@google.com>
974 * go-gcc.cc: Include "convert.h".
975 (Gcc_backend::string_constant_expression): New function.
976 (Gcc_backend::real_part_expression): Likewise.
977 (Gcc_backend::imag_part_expression): Likewise.
978 (Gcc_backend::complex_expression): Likewise.
979 (Gcc_backend::constructor_expression): Likewise.
980 (Gcc_backend::array_constructor_expression): Likewise.
981 (Gcc_backend::pointer_offset_expression): Likewise.
982 (Gcc_backend::array_index_expression): Likewise.
983 (Gcc_backend::call_expression): Likewise.
984 (Gcc_backend::exception_handler_statement): Likewise.
985 (Gcc_backend::function_defer_statement): Likewise.
986 (Gcc_backend::function_set_parameters): Likewise.
987 (Gcc_backend::function_set_body): Likewise.
988 (Gcc_backend::convert_expression): Handle various type
991 2014-03-03 Ian Lance Taylor <iant@google.com>
993 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
995 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
998 2014-01-24 Chris Manghane <cmang@google.com>
1000 * go-gcc.cc (Gcc_backend::unary_expression): New function.
1002 2014-01-16 Chris Manghane <cmang@google.com>
1004 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
1006 (operator_to_tree_code): New static function.
1007 (Gcc_backend::binary_expression): New function.
1009 2014-01-14 Chris Manghane <cmang@google.com>
1011 * go-gcc.cc (Gcc_backend::compound_expression): New function.
1012 (Gcc_backend::conditional_expression): New function.
1014 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1016 Update copyright years
1018 2014-01-02 Tobias Burnus <burnus@net-b.de>
1020 * gccgo.texi: Bump @copying's copyright year.
1022 2013-12-16 Chris Manghane <cmang@google.com>
1024 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
1026 2013-12-11 Ian Lance Taylor <iant@google.com>
1028 * go-lang.c (go_langhook_post_options): Disable sibling calls by
1031 2013-12-10 Ian Lance Taylor <iant@google.com>
1033 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
1036 2013-12-05 Ian Lance Taylor <iant@google.com>
1038 Revert this change; no longer required.
1039 2013-11-06 Ian Lance Taylor <iant@google.com>
1041 * go-lang.c (go_langhook_post_options): If
1042 -fisolate-erroneous-paths was turned on by an optimization option,
1045 2013-11-23 Ian Lance Taylor <iant@google.com>
1047 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
1050 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1052 * go-gcc.cc: Add required include files from gimple.h.
1053 * go-lang.c: Likewise.
1055 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1057 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
1058 tree_to_shwi throughout.
1060 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1062 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
1063 tree_fits_shwi_p throughout.
1065 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1067 * go-lang.c: Include only gimplify.h and gimple.h as needed.
1069 2013-11-14 Diego Novillo <dnovillo@google.com>
1071 * go-backend.c: Include stor-layout.h.
1072 * go-gcc.cc: Include stringpool.h.
1073 Include stor-layout.h.
1075 * go-lang.c: Include stor-layout.h.
1077 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1079 * go-lang.c: Include gimplify.h.
1081 2013-11-06 Ian Lance Taylor <iant@google.com>
1083 * go-lang.c (go_langhook_post_options): If
1084 -fisolate-erroneous-paths was turned on by an optimization option,
1087 2013-10-14 Chris Manghane <cmang@google.com>
1089 * go-gcc.cc (Gcc_backend::address_expression): New function.
1091 2013-10-11 Chris Manghane <cmang@google.com>
1093 * go-gcc.cc (Gcc_backend::function_code_expression): New
1096 2013-10-10 Chris Manghane <cmang@google.com>
1098 * go-gcc.cc (Gcc_backend::error_function): New function.
1099 (Gcc_backend::function): New function.
1100 (Gcc_backend::make_function): New function.
1101 (function_to_tree): New function.
1103 2013-10-04 Chris Manghane <cmang@google.com>
1105 * go-gcc.cc (Gcc_backend::convert_expression): New function.
1107 2013-10-02 Chris Manghane <cmang@google.com>
1109 * go-gcc.cc: Include "real.h" and "realmpfr.h".
1110 (Gcc_backend::integer_constant_expression): New function.
1111 (Gcc_backend::float_constant_expression): New function.
1112 (Gcc_backend::complex_constant_expression): New function.
1114 2013-09-30 Chris Manghane <cmang@google.com>
1116 * go-gcc.cc (Gcc_backend::error_expression): New function.
1117 (Gcc_backend::var_expression): New function.
1118 (Gcc_backend::indirect_expression): New function.
1120 2013-09-25 Tom Tromey <tromey@redhat.com>
1122 * Make-lang.in (gospec.o): Remove.
1123 (CFLAGS-go/gospec.o): New variable.
1124 (GCCGO_OBJS): Update to use go/gospec.o.
1126 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
1127 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
1128 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
1129 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
1130 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
1131 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
1132 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
1133 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
1134 (go/unsafe.o): Remove.
1135 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
1136 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
1138 2013-09-25 Tom Tromey <tromey@redhat.com>
1140 * Make-lang.in (gospec.o): Don't use subshell.
1142 2013-08-28 Ian Lance Taylor <iant@google.com>
1144 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
1145 the struct is not hidden.
1146 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
1148 2013-08-06 Ian Lance Taylor <iant@google.com>
1150 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
1151 compute_reloc_for_constant.
1153 2013-08-02 Ian Lance Taylor <iant@google.com>
1155 * go-gcc.cc (immutable_struct_set_init): Always call
1156 resolve_unique_section.
1158 2013-07-24 Ian Lance Taylor <iant@google.com>
1160 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
1161 fields, recreate those fields with the first one with a non-zero
1164 2013-07-23 Ian Lance Taylor <iant@google.com>
1166 * go-backend.c: Don't #include "rtl.h".
1167 (go_imported_unsafe): Don't call init_varasm_once.
1168 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
1170 2013-07-23 Ian Lance Taylor <iant@google.com>
1172 * go-lang.c: Don't #include "except.h".
1173 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
1175 2013-06-18 Ian Lance Taylor <iant@google.com>
1177 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
1179 (Gcc_backend::immutable_struct_set_init): Likewise.
1181 2013-05-16 Jason Merrill <jason@redhat.com>
1183 * Make-lang.in (go1$(exeext)): Use link mutex.
1185 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
1187 * gospec.c: pass -u pthread_create to linker when static linking.
1189 2012-12-21 Ian Lance Taylor <iant@google.com>
1192 * go-system.h: Don't include <cstdio>.
1194 2012-12-18 Ian Lance Taylor <iant@google.com>
1197 * gospec.c: Revert last patch.
1199 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
1202 * gospec.c (LIBATOMIC): Define.
1203 (LIBATOMIC_PROFILE): Define.
1204 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
1206 2012-11-29 Ian Lance Taylor <iant@google.com>
1208 * go-gcc.cc: Include "output.h".
1209 (global_variable): Add is_unique_section parameter.
1210 (global_variable_set_init): Adjust unique section if necessary.
1211 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
1213 2012-11-17 Diego Novillo <dnovillo@google.com>
1215 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1217 * go-lang.c: Use new vec API in vec.h.
1219 2012-11-16 Ian Lance Taylor <iant@google.com>
1221 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
1222 (go1$(exeext)): Likewise.
1224 2012-10-30 Ian Lance Taylor <iant@google.com>
1226 * lang.opt (-fgo-relative-import-path): New option.
1227 * go-lang.c (go_relative_import_path): New static variable.
1228 (go_langhook_init): Pass go_relative_import_path to
1230 (go_langhook_handle_option): Handle -fgo-relative-import-path.
1231 * go-c.h (go_create_gogo): Update declaration.
1232 * gccgo.texi (Invoking gccgo): Document
1233 -fgo-relative-import-path.
1235 2012-09-17 Ian Lance Taylor <iant@google.com>
1237 * config-lang.in (target_libs): Add target-libbacktrace.
1239 2012-09-16 Ian Lance Taylor <iant@google.com>
1241 * Make-lang.in (go/gogo.o): Depend on filenames.h.
1243 2012-08-14 Diego Novillo <dnovillo@google.com>
1245 Merge from cxx-conversion branch. Configury.
1247 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1248 * go-gcc.cc: Likewise.
1249 * go-system.h: Likewise.
1251 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
1253 * go-lang.c (lang_decl): Add variable_size GTY option.
1255 2012-05-09 Ian Lance Taylor <iant@google.com>
1257 * lang.opt: Add -fgo-pkgpath.
1258 * go-lang.c (go_pkgpath): New static variable.
1259 (go_prefix): New static variable.
1260 (go_langhook_init): Pass go_pkgpath and go_prefix to
1262 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
1263 -fgo-prefix handling to just set go_prefix.
1264 * go-c.h (go_set_prefix): Don't declare.
1265 (go_create_gogo): Add pkgpath and prefix to declaration.
1266 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1267 to pkgpath. Don't include the package name in the asm name.
1268 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
1269 docs for -fgo-prefix.
1271 2012-04-23 Ian Lance Taylor <iant@google.com>
1273 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1275 2012-04-20 Ian Lance Taylor <iant@google.com>
1277 * lang.opt: Add -fgo-check-divide-zero and
1278 -fgo-check-divide-overflow.
1279 * gccgo.texi (Invoking gccgo): Document new options.
1281 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1283 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1284 with NULL_TREE type instead of void_type_node.
1286 2012-03-09 Ian Lance Taylor <iant@google.com>
1288 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1289 to the lhs type if necessary.
1291 2012-03-08 Ian Lance Taylor <iant@google.com>
1293 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1294 zero-sized variable.
1295 (go_non_zero_struct): New global variable.
1296 (Gcc_backend::non_zero_size_type): New function.
1297 (Gcc_backend::global_variable): Don't build an assignment for a
1299 * go-c.h (go_non_zero_struct): Declare.
1300 * config-lang.in (gtfiles): Add go-c.h.
1302 2012-02-29 Ian Lance Taylor <iant@google.com>
1304 * go-gcc.cc (class Gcc_tree): Add set_tree method.
1305 (set_placeholder_pointer_type): When setting to a pointer to
1306 error, set to error_mark_node.
1308 2012-02-23 Richard Guenther <rguenther@suse.de>
1310 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1311 build_distinct_type_copy.
1313 2012-02-17 Ian Lance Taylor <iant@google.com>
1315 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1317 2012-02-17 Ian Lance Taylor <iant@google.com>
1319 * gospec.c (lang_specific_driver): If linking, and no -o option
1322 2012-02-14 Ian Lance Taylor <iant@google.com>
1325 * Make-lang.in (gccgo-cross$(exeext)): New target.
1326 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1328 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1329 gccgo-cross$(exeext) does not exist.
1331 2012-02-07 Ian Lance Taylor <iant@google.com>
1333 * gccgo.texi (Function Names): Document //extern instead of
1336 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1339 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1340 return build_nonstandard_integer_type result if possible.
1342 2012-01-21 Ian Lance Taylor <iant@google.com>
1344 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1345 (Gcc_backend::type_alignment): Likewise.
1346 (Gcc_backend::type_field_alignment): Likewise.
1347 (Gcc_backend::type_field_offset): Likewise.
1349 2012-01-20 Ian Lance Taylor <iant@google.com>
1351 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1353 (Gcc_backend::set_placeholder_struct_type): Likewise.
1355 2012-01-17 Ian Lance Taylor <iant@google.com>
1357 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1358 BASE.s rather than -o BASE.o.
1360 2012-01-11 Ian Lance Taylor <iant@google.com>
1362 * go-lang.c (go_langhook_init): Initialize void_list_node before
1363 calling go_create_gogo.
1365 2012-01-10 Ian Lance Taylor <iant@google.com>
1367 * go-gcc.cc (Gcc_backend::type_size): New function.
1368 (Gcc_backend::type_alignment): New function.
1369 (Gcc_backend::type_field_alignment): New function.
1370 (Gcc_backend::type_field_offset): New function.
1371 * go-backend.c (go_type_alignment): Remove.
1372 * go-c.h (go_type_alignment): Don't declare.
1374 2011-12-27 Ian Lance Taylor <iant@google.com>
1376 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1377 build_distinct_type_copy rather than build_variant_type_copy.
1378 (Gcc_backend::set_placeholder_array_type): Likewise.
1379 (Gcc_backend::named_type): Add special handling for builtin
1382 2011-12-22 Ian Lance Taylor <iant@google.com>
1384 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1385 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1386 (Gcc_backend::set_placeholder_struct_type): Likewise.
1387 (Gcc_backend::set_placeholder_array_type): Likewise.
1388 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1390 2011-12-13 Ian Lance Taylor <iant@google.com>
1392 * go-backend.c: #include "simple-object.h" and "intl.h".
1393 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1394 (GO_EXPORT_SECTION_NAME): Likewise.
1395 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1396 (go_read_export_data): New function.
1397 * go-c.h (go_read_export_data): Declare.
1399 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1400 Ian Lance Taylor <iant@google.com>
1402 * go-location.h: New file.
1403 * go-linemap.cc: New file.
1404 * go-gcc.cc: Change all uses of source_location to Location.
1405 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1406 (GO_LINEMAP_H): New variable.
1407 (GO_LEX_H): Use $(GO_LINEMAP_H).
1408 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1409 (go/go-linemap.o): New target.
1411 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1413 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1415 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1417 * lang.opt: Add fgo-optimize-.
1418 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1419 * go-c.h (go_enable_optimize): Declare.
1420 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1421 (GO_EXPORT_H): Define.
1422 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1423 (GO_AST_DUMP_H): Define.
1424 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1425 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1426 (go/types.o): Likewise.
1427 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1428 (go/go-optimize.o): New target.
1430 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1432 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1433 (go/go-lang.o): Remove explicit compilation rule.
1435 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1437 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1439 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1441 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1442 (go/ast-dump.o): New target.
1443 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1444 (go/statements.o): Likewise.
1446 2011-07-06 Richard Guenther <rguenther@suse.de>
1448 * go-lang.c (go_langhook_init):
1449 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1451 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1453 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1455 * go-backend.c: Include common/common-target.h.
1456 (go_write_export_data): Use targetm_common.have_named_sections.
1457 * go-lang.c: Include common/common-target.h.
1458 (go_langhook_init_options_struct): Use
1459 targetm_common.supports_split_stack.
1461 2011-06-13 Ian Lance Taylor <iant@google.com>
1463 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1465 2011-06-10 Ian Lance Taylor <iant@google.com>
1467 * go-gcc.cc: Include "toplev.h".
1468 (Gcc_backend::immutable_struct): New function.
1469 (Gcc_backend::immutable_struct_set_init): New function.
1470 (Gcc_backend::immutable_struct_reference): New function.
1471 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1473 2011-06-09 Ian Lance Taylor <iant@google.com>
1475 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1477 2011-06-07 Richard Guenther <rguenther@suse.de>
1479 * go-lang.c (go_langhook_init): Do not set
1480 size_type_node or call set_sizetype.
1482 2011-05-27 Ian Lance Taylor <iant@google.com>
1484 * go-backend.c: Include "output.h".
1485 (go_write_export_data): New function.
1486 * go-c.h (go_write_export_data): Declare.
1487 * Make-lang.in (go/go-backend.o): Depend on output.h.
1488 (go/export.o): Depend on $(GO_C_H). Do not depend on
1489 $(MACHMODE_H), output.h, or $(TARGET_H).
1491 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1493 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1494 (gccgo$(exeext)): Use libcommon-target.a.
1496 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1498 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1500 2011-05-13 Ian Lance Taylor <iant@google.com>
1502 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1503 for multiple results, check that all fields types have a size.
1504 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1506 2011-05-12 Ian Lance Taylor <iant@google.com>
1508 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1510 (Gcc_backend::parameter_variable): Likewise.
1512 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1514 * go-lang.c (global_bindings_p): Return bool and simplify.
1516 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1518 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1520 2011-05-04 Ian Lance Taylor <iant@google.com>
1522 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1523 (Gcc_backend::fill_in_struct): New function.
1524 (Gcc_backend::array_type): Implement.
1525 (Gcc_backend::fill_in_array): New function.
1526 (Gcc_backend::placeholder_pointer_type): New function.
1527 (Gcc_backend::set_placeholder_pointer_type): New function.
1528 (Gcc_backend::set_placeholder_function_type): New function.
1529 (Gcc_backend::placeholder_struct_type): New function.
1530 (Gcc_backend::set_placeholder_struct_type): New function.
1531 (Gcc_backend::placeholder_array_type): New function.
1532 (Gcc_backend::set_placeholder_array_type): New function.
1533 (Gcc_backend::named_type): New function.
1534 (Gcc_backend::circular_pointer_type): New function.
1535 (Gcc_backend::is_circular_pointer_type): New function.
1537 2011-04-26 Ian Lance Taylor <iant@google.com>
1539 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1541 2011-04-25 Ian Lance Taylor <iant@google.com>
1543 * go-gcc.cc (Gcc_backend::error_type): Implement.
1544 (Gcc_backend::string_type): Remove.
1545 (Gcc_backend::function_type): Change signature and implement.
1546 (Gcc_backend::struct_type): Change signature.
1547 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1548 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1549 (Gcc_backend::pointer_type): Check for error.
1550 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1552 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1554 * go-gcc.c (class Gcc_tree): Make get_tree const.
1555 (Gcc_backend::void_type): Implement.
1556 (Gcc_backend::bool_type): Implement.
1557 (Gcc_backend::integer_type): Implement.
1558 (Gcc_backend::float_type): Implement.
1559 (Gcc_backend::complex_type): New function.
1560 (Gcc_backend::pointer_type): New function.
1561 (Gcc_backend::make_type): New function.
1562 (type_to_tree): New function.
1564 2011-04-21 Ian Lance Taylor <iant@google.com>
1566 * go-system.h (go_assert, go_unreachable): Define.
1568 2011-04-19 Ian Lance Taylor <iant@google.com>
1570 * go-system.h: Include "intl.h".
1571 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1572 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1573 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1575 2011-04-19 Ian Lance Taylor <iant@google.com>
1577 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1579 2011-04-19 Ian Lance Taylor <iant@google.com>
1581 * go-gcc.cc (class Bblock): Define.
1582 (Gcc_backend::if_statement): Change then_block and else_block to
1584 (Gcc_backend::block): New function.
1585 (Gcc_backend::block_add_statements): New function.
1586 (Gcc_backend::block_statement): New function.
1587 (tree_to_block, block_to_tree): New functions.
1589 2011-04-18 Ian Lance Taylor <iant@google.com>
1591 * go-gcc.cc: Include "go-c.h".
1592 (class Bvariable): Define.
1593 (Gcc_backend::init_statement): New function.
1594 (Gcc_backend::global_variable): New function.
1595 (Gcc_backend::global_variable_set_init): New function.
1596 (Gcc_backend::local_variable): New function.
1597 (Gcc_backend::parameter_variable): New function.
1598 (tree_to_type, var_to_tree): New functions.
1599 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1600 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1602 2011-04-15 Ian Lance Taylor <iant@google.com>
1604 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1605 (Gcc_backend::assignment_statement): Use error_statement.
1606 (Gcc_backend::return_statement): Likewise.
1607 (Gcc_backend::if_statement): Likewise.
1608 (Gcc_backend::switch_statement): Likewise.
1609 (Gcc_backend::statement_list): Likewise.
1611 2011-04-14 Ian Lance Taylor <iant@google.com>
1613 * go-gcc.cc (Gcc_backend::error_statement): New function.
1615 2011-04-13 Ian Lance Taylor <iant@google.com>
1617 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1619 2011-04-13 Ian Lance Taylor <iant@google.com>
1621 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1622 (GO_RUNTIME_H): New variable.
1623 (go/runtime.o): New target.
1624 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1625 (go/statements.o): Likewise.
1627 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1629 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1632 2011-04-06 Ian Lance Taylor <iant@google.com>
1634 * go-gcc.cc (if_statement): Use build3_loc.
1635 (Gcc_backend::switch_statement): New function.
1636 (Gcc_backend::statement_list): New function.
1638 2011-04-06 Ian Lance Taylor <iant@google.com>
1640 * go-gcc.cc (Gcc_backend::if_statement): New function.
1641 (tree_to_stat): New function.
1642 (expr_to_tree): Renamed from expression_to_tree.
1643 (stat_to_tree): Renamed from statement_to_tree.
1645 2011-04-06 Ian Lance Taylor <iant@google.com>
1647 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1649 2011-04-04 Ian Lance Taylor <iant@google.com>
1651 * go-gcc.c (class Blabel): Define.
1652 (Gcc_backend::make_expression): New function.
1653 (get_identifier_from_string): New function.
1654 (Gcc_backend::label): New function.
1655 (Gcc_backend::label_definition_statement): New function.
1656 (Gcc_backend::goto_statement): New function.
1657 (Gcc_backend::label_address): New function.
1658 (expression_to_tree): New function.
1659 * Make-lang.in (go/expressions.o): Depend on
1660 go/gofrontend/backend.h.
1661 (go/gogo.o): Likewise.
1663 2011-04-04 Ian Lance Taylor <iant@google.com>
1665 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1666 (class Bfunction): Define.
1667 (Gcc_backend::assignment_statement): Rename from assignment.
1669 (Gcc_backend::return_statement): New function.
1670 (tree_to_function): New function.
1671 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1672 $(GIMPLE_H), and $(GO_GOGO_H).
1674 2011-04-03 Ian Lance Taylor <iant@google.com>
1676 * go-gcc.cc: New file.
1677 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1678 (go/go-gcc.o): New target.
1679 (go/go.o): Depend on go/gofrontend/backend.h.
1680 (go/statements.o): Likewise.
1682 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1684 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1686 2011-02-08 Ian Lance Taylor <iant@google.com>
1688 * go-lang.c (go_langhook_init_options_struct): Set
1689 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1691 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1693 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1694 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1696 2011-01-21 Ian Lance Taylor <iant@google.com>
1698 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1700 * go-c.h: Update declaration of go_create_gogo.
1702 2011-01-13 Ian Lance Taylor <iant@google.com>
1704 * go-backend.c: Include "rtl.h" and "target.h".
1705 (go_imported_unsafe): New function.
1706 * go-c.h (go_imported_unsafe): Declare.
1707 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1708 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1709 (go/unsafe.o): Depend on $(GO_C_H).
1711 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1714 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1717 2010-12-21 Ian Lance Taylor <iant@google.com>
1719 * Make-lang.in (check-go): Remove.
1720 (lang_checks_parallelized): Add check-go.
1721 (check_go_parallelize): Set.
1723 2010-12-13 Ian Lance Taylor <iant@google.com>
1725 * gospec.c (lang_specific_driver): Add a -o option if not linking
1726 and there is no -o option already.
1728 2010-12-07 Ian Lance Taylor <iant@google.com>
1730 PR tree-optimization/46805
1731 PR tree-optimization/46833
1732 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1734 2010-12-06 Ian Lance Taylor <iant@google.com>
1738 * go-lang.c (go_char_p): Define type and vectors.
1739 (go_search_dirs): New static variable.
1740 (go_langhook_handle_option): Use version and version/machine
1742 (go_langhook_post_options): Add non-specific -L paths.
1743 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1744 DEFAULT_TARGET_MACHINE when compiling.
1745 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1746 (Import and Export): Don't mention -L for finding import files.
1748 2010-12-03 Ian Lance Taylor <iant@google.com>
1751 * go-backend.c: New file.
1752 * go-c.h (go_type_alignment): Declare.
1753 (go_field_alignment, go_trampoline_info): Declare.
1754 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1755 (go/go-backend.o): New target.
1756 (go/go-lang.o): Make dependencies match source file.
1757 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1758 (go/gogo-tree.o): Don't depend on $(TM_H).
1760 2010-12-03 Ian Lance Taylor <iant@google.com>
1762 * config-lang.in (build_by_default): Set to no.
1764 2010-12-02 Ian Lance Taylor <iant@google.com>
1766 Go frontend added to gcc repository.
1768 Copyright (C) 2010-2021 Free Software Foundation, Inc.
1770 Copying and distribution of this file, with or without modification,
1771 are permitted in any medium without royalty provided the copyright
1772 notice and this notice are preserved.