1 2019-08-23 Jakub Jelinek <jakub@redhat.com>
4 * go-lang.c (go_langhook_post_options): Set flag_excess_precision
5 instead of flag_excess_precision_cmdline.
7 2019-07-02 Cherry Zhang <cherryyz@google.com>
9 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_memset.
11 2019-06-21 Cherry Zhang <cherryyz@google.com>
13 * go-gcc.cc (Gcc_backend::Gcc_backend): Define math/bits
16 2019-05-30 Jim Wilson <jimw@sifive.com>
18 * go-gcc.cc (Gcc_backend::Gcc_backend): Add BUILT_IN_ATOMIC_FETCH_AND_1
19 and BUILT_IN_ATOMIC_FETCH_OR_1.
21 2019-05-16 Cherry Zhang <cherryyz@google.com>
23 * go-gcc.cc (Gcc_backend::Gcc_backend): Define atomic builtins.
25 2019-05-08 Cherry Zhang <cherryyz@google.com>
27 * go-gcc.cc (Gcc_backend::Gcc_backend): Define memmove builtin.
29 2019-05-07 Cherry Zhang <cherryyz@google.com>
31 * lang.opt (-fgo-debug-optimization): New option.
32 * go-c.h (struct go_create_gogo_args): Add debug_optimization
34 * go-lang.c (go_langhook_init): Set debug_optimization field.
35 * gccgo.texi (Invoking gccgo): Document -fgo-debug-optimization.
37 2019-03-06 Ian Lance Taylor <iant@golang.org>
40 * go-gcc.cc (Gcc_backend::function): Set TREE_PUBLIC for an
43 2019-02-15 Cherry Zhang <cherryyz@google.com>
45 * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_dwarf_cfa
46 instead of __builtin_frame_address.
48 2019-02-14 Ian Lance Taylor <iant@golang.org>
50 * go-backend.c (go_imported_unsafe): Update
51 optimization_default_node.
53 2019-02-13 Ian Lance Taylor <iant@golang.org>
55 * go-gcc.cc: #include "opts.h".
56 (Gcc_backend::function): Compile thunks with -Os.
58 2019-02-05 Nikhil Benesch <nikhil.benesch@gmail.com>
61 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Mark
62 placeholder structs as requiring structural equality.
63 (Gcc_backend::set_placeholder_pointer_type): Propagate the
64 canonical type from the desired pointer type to the placeholder
67 2019-01-09 Ian Lance Taylor <iant@golang.org>
70 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Go back to
71 build_distinct_type_copy, but copy the fields so that they have
72 the right DECL_CONTEXT.
74 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
78 * go-backend.c: Mechanically replace "can not" with "cannot".
79 * go-gcc.cc: Likewise.
81 2019-01-01 Jakub Jelinek <jakub@redhat.com>
83 Update copyright years.
85 * gccgo.texi: Bump @copyrights-go year.
87 2018-11-27 Ian Lance Taylor <iant@golang.org>
89 * go-gcc.cc (Gcc_backend::function): Handle function_only_inline
92 2018-11-13 David Malcolm <dmalcolm@redhat.com>
94 * go-gcc-diagnostics.cc: Replace "source_location" with "location_t".
95 * go-gcc.cc: Likewise.
96 * go-linemap.cc: Likewise.
97 * go-location.h: Likewise.
98 * gofrontend/README: Likewise.
100 2018-10-31 Ian Lance Taylor <iant@golang.org>
102 * go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
103 gimplify_function_tree. Instead call allocate_struct_function if
106 2018-10-29 Ian Lance Taylor <iant@golang.org>
108 * go-gcc.cc (Gcc_backend::function): Change to use a single flags
111 2018-10-29 Ian Lance Taylor <iant@golang.org>
113 * go-linemap.cc (Gcc_linemap::location_file): New method.
115 2018-10-17 David Malcolm <dmalcolm@redhat.com>
117 * Make-lang.in (selftest-go): New.
119 2018-09-20 Allan Sandfeld Jensen <allan.jensen@qt.io>
121 * gospec.c (lang_specific_driver): Handle -r like -nostdlib.
123 2018-08-27 Martin Liska <mliska@suse.cz>
125 * go-gcc.cc (Gcc_backend::call_expression): Use new function
126 fndecl_built_in_p and remove check for FUNCTION_DECL if
129 2018-07-20 Martin Sebor <msebor@redhat.com>
132 * go-lang.c (go_langhook_handle_option): Change function argument
135 2018-06-28 Ian Lance Taylor <iant@golang.org>
138 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
139 build_variant_type_copy rather than build_distinct_type_copy.
141 2018-06-08 Cherry Zhang <cherryyz@google.com>
143 * go-gcc.cc (class Gcc_backend): Remove
144 stack_allocation_expression method.
146 2018-02-03 Ian Lance Taylor <iant@golang.org>
148 * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
149 using structural equality.
151 2018-02-02 Ian Lance Taylor <iant@golang.org>
153 * go-gcc.cc (Gcc_backend::type_size): Return 0 for
155 (Gcc_backend::convert_expression): Don't convert if the type of
156 expr_tree is void_type_node.
157 (Gcc_backend::array_index_expression): Don't index if the type of
158 the array expression is void_type_node.
159 (Gcc_backend::init_statement): Don't initialize if the type of the
160 initializer expression is void_type_node.
161 (Gcc_backend::assignment_statement): Don't assign if the type of
162 either the left or right hand side is void_type_node.
163 (Gcc_backend::temporary_variable): Don't initialize if the type of
164 the initializer expression is void_type_node.
166 2018-02-01 Cherry Zhang <cherryyz@google.com>
168 * lang.opt (fgo-optimize): Remove RejectNegative.
169 * go-c.h (go_enable_optimize): Update declaration to take value
171 * go-lang.c (go_langhook_handle_option): Pass value to
173 * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
175 2018-01-30 Ian Lance Taylor <iant@golang.org>
177 * go-gcc.cc (Gcc_backend::convert_tree): New private method.
178 (Gcc_backend::constructor_expression): Call it.
179 (Gcc_backend::assignment_statement): Likewise.
180 (Gcc_backend::temporary_variable): Likewise.
182 2018-01-09 Cherry Zhang <cherryyz@google.com>
184 * go-gcc.cc (local_variable): Add decl_var parameter.
186 2018-01-09 Cherry Zhang <cherryyz@google.com>
188 * lang.opt (fgo-debug-escape-hash): New option.
189 * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
191 * go-lang.c (go_langhook_init): Set debug_escape_hash field.
192 * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
194 2018-01-05 Ian Lance Taylor <iant@golang.org>
196 * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
197 math_function_type_long to take one argument.
199 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
200 Alan Hayward <alan.hayward@arm.com>
201 David Sherwood <david.sherwood@arm.com>
203 * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
205 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
206 Alan Hayward <alan.hayward@arm.com>
207 David Sherwood <david.sherwood@arm.com>
209 * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
211 2018-01-03 Jakub Jelinek <jakub@redhat.com>
213 Update copyright years.
215 * gccgo.texi: Bump @copyrights-go year.
217 2017-12-12 Tony Reix <tony.reix@atos.net>
218 Ian Lance Taylor <iant@golang.org>
220 * go-lang.c (TARGET_AIX): Define if not defined.
221 (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
223 2017-12-01 Ian Lance Taylor <iant@golang.org>
225 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
226 __builtin_unreachable.
227 (Gcc_backend::function): Add does_not_return parameter.
229 2017-12-01 Than McIntosh <thanm@google.com>
231 * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
233 * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
235 2017-11-28 Jakub Jelinek <jakub@redhat.com>
237 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
238 build2_loc instead of build3_loc.
240 2017-11-14 Than McIntosh <thanm@google.com>
242 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
244 2017-10-11 Tony Reix <tony.reix@atos.net>
246 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
247 system header files, as is done in ../system.h.
249 2017-10-05 Ian Lance Taylor <iant@golang.org>
251 * Make-lang.in (GO_OBJS): Add go/names.o.
253 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
254 Alan Hayward <alan.hayward@arm.com>
255 David Sherwood <david.sherwood@arm.com>
257 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
259 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
260 Alan Hayward <alan.hayward@arm.com>
261 David Sherwood <david.sherwood@arm.com>
263 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
265 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
266 Alan Hayward <alan.hayward@arm.com>
267 David Sherwood <david.sherwood@arm.com>
269 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
271 2017-08-07 Martin Liska <mliska@suse.cz>
273 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
274 and not __no_split_stack__.
276 2017-07-27 Tony Reix <tony.reix@atos.net>
278 * go-backend.c (go_write_export_data): Use EXCLUDE section for
281 2017-06-09 Ian Lance Taylor <iant@golang.org>
283 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
284 on, disable implicit -forder-blocks-and-partition.
286 2017-05-12 Than McIntosh <thanm@google.com>
288 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
290 2017-05-11 Ian Lance Taylor <iant@google.com>
293 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
294 DECL_EXTERNAL, clear TREE_STATIC.
296 2017-05-10 Than McIntosh <thanm@google.com>
298 * go-backend.c: Include "go-c.h".
299 * go-gcc.cc (Gcc_backend::write_export_data): New method.
301 2017-05-10 Ian Lance Taylor <iant@google.com>
303 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
305 * Make-lang.in (GO_OBJS): Add go/wb.o.
307 2017-03-28 Than McIntosh <thanm@google.com>
310 * go-gcc.cc (Gcc_backend::return_statement): Check for
311 void_type_node when checking result size.
313 2017-02-20 Ian Lance Taylor <iant@golang.org>
316 * lang.opt (-fgo-relative-import-path): Change space to tab.
318 2017-02-07 Richard Biener <rguenther@suse.de>
320 PR tree-optimization/79256
322 * go-backend.c (go_field_alignment): Adjust.
324 2017-01-11 Than McIntosh <thanm@google.com>
326 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
328 2017-01-01 Jakub Jelinek <jakub@redhat.com>
330 Update copyright years.
332 * gccgo.texi: Bump @copyrights-go year.
334 2016-12-16 Than McIntosh <thanm@google.com>
336 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
338 (Gcc_backend::init_statement): Likewise.
339 (Gcc_backend::assignment_statement): Likewise.
340 (Gcc_backend::if_statement): Likewise.
342 2016-12-06 Than McIntosh <thanm@google.com>
344 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
347 2016-11-22 Than McIntosh <thanm@google.com>
349 * go-gcc.cc (char_needs_encoding): Remove.
350 (needs_encoding, fetch_utf8_char, encode_id): Remove.
351 (Gcc_backend::global_variable): Add asm_name parameter. Don't
352 compute asm_name here.
353 (Gcc_backend::implicit_variable): Likewise.
354 (Gcc_backend::implicit_variable_reference): Likewise.
355 (Gcc_backend::immutable_struct): Likewise.
356 (Gcc_backend::immutable_struct_reference): Likewise.
357 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
359 2016-11-22 Ian Lance Taylor <iant@google.com>
361 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
362 __builtin_frame_address.
364 2016-10-25 David Malcolm <dmalcolm@redhat.com>
366 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
367 from result of GET_MODE_CLASS. Minor formatting fixes.
369 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
371 * go-backend.c: Include memmodel.h.
373 2016-10-10 Than McIntosh <thanm@google.com>
375 * go-gcc.h: New file.
376 * go-c.h (struct go_create_gogo_args): Add backend and linemap
378 * go-lang.c: Include "go-gcc.h".
379 (go_langhook_init): Set linemap and backend fields of args.
380 * go-gcc.cc: Include "go-gcc.h".
381 * go-linemap.cc: Include "go-gcc.h".
383 2016-10-10 Than McIntosh <thanm@google.com>
385 * go-linemap.cc (Gcc_linemap::location_line): New method.
387 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
389 * config-lang.in (lang_requires_boot_languages): Delete.
391 2016-10-06 Chris Manghane <cmang@google.com>
393 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
396 2016-09-27 Than McIntosh <thanm@google.com>
398 * go-linemap.cc (Gcc_linemap::to_string): New method.
400 2016-09-23 Than McIntosh <thanm@google.com>
402 * go-gcc-diagnostics.cc: New file.
403 * go-location.h (Location): Remove operator source_location. Add
405 * go-system.h: #include <sstream>.
406 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
407 go/go-gcc-diagnostics.o.
408 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
410 2016-09-23 Chris Manghane <cmang@google.com>
413 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
414 to pass arguments in the correct order.
416 2016-09-22 Ian Lance Taylor <iant@golang.org>
418 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
419 __builtin_frame_address.
421 2016-09-11 Ian Lance Taylor <iant@golang.org>
423 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
424 ctz, ctzll, bswap32, bswap64.
426 2016-09-10 Ian Lance Taylor <iant@golang.org>
428 * go-backend.c (go_trampoline_info): Remove.
429 * go-c.h (go_trampoline_info): Don't declare.
431 2016-09-09 Than McIntosh <thanm@google.com>
433 * go-sha1.cc: New file.
434 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
435 (CFLAGS-go/go-sha1.o): New variable.
437 2016-08-29 Ian Lance Taylor <iant@google.com>
439 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
440 * go-c.h (struct go_create_gogo_args): Define.
441 (go_create_gogo): Change declaration to take struct pointer.
442 * go-lang.c (go_c_header): New static variable.
443 (go_langhook_init): Update call to go_create_gogo.
444 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
445 -fgo-compiling-runtime.
447 2016-08-09 Ian Lance Taylor <iant@google.com>
449 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
451 (Compiler Directives): New chapter.
452 (Function Names): Describe using //go:linkname. Suggest using
453 -fgo-pkgpath rather than -fgo-prefix.
455 2016-08-08 Ian Lance Taylor <iant@google.com>
458 * go-gcc.cc (Gcc_backend::function_type): If the return type is
459 zero bytes, treat the function as returning void.
460 (return_statement): If the return type is zero bytes, don't
461 actually return any values.
463 2016-08-05 Ian Lance Taylor <iant@google.com>
466 * go-gcc.cc (char_needs_encoding): New static function.
467 (needs_encoding, fetch_utf8_char): New static functions.
468 (encode_id): New static function.
469 (Gcc_backend::global_variable): Set asm name if the name is not
471 (Gcc_backend::implicit_variable): Likewise.
472 (Gcc_backend::implicit_variable_reference): Likewise.
473 (Gcc_backend::immutable_struct): Likewise.
474 (Gcc_backend::immutable_struct_reference): Likewise.
475 (Gcc_backend::function): Likewise.
477 2016-08-02 Chris Manghane <cmang@google.com>
479 * lang.opt: Add -fgo-debug-escape option.
480 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
481 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
484 2016-05-06 Chris Manghane <cmang@google.com>
486 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
489 2016-04-29 Chris Manghane <cmang@google.com>
491 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
493 2016-04-18 Michael Matz <matz@suse.de>
495 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
497 2016-02-12 Jakub Jelinek <jakub@redhat.com>
499 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
500 neighbour -> neighbor.
501 * gccgo.texi: Likewise.
503 2016-01-27 Ian Lance Taylor <iant@google.com>
505 * go-lang.c (go_langhook_init_options_struct): Default to
506 -fkeep-gc-roots-live.
508 2016-01-04 Jakub Jelinek <jakub@redhat.com>
510 Update copyright years.
512 * gccgo.texi: Bump @copyrights-go year.
514 2015-12-21 Ian Lance Taylor <iant@google.com>
516 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
517 t_ and orig_type_ fields. Add new two parameter constructor. Add
518 get_tree and get_decl methods.
519 (Gcc_backend::var_expression): Pass location to var get_tree.
520 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
521 two parameter constructor for Bvariable.
522 (Gcc_backend::global_variable_set_init): Don't remove
523 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
524 (Gcc_backend::write_global_definitions): Likewise.
525 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
526 (Gcc_backend::block): Likewise.
527 (Gcc_backend::implicit_variable_set_init): Likewise.
528 (Gcc_backend::immutable_struct_set_init): Likewise.
529 (Gcc_backend::function_set_parameters): Likewise.
531 2015-12-21 Ian Lance Taylor <iant@google.com>
533 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
534 add a VIEW_CONVERT_EXPR to the tree.
535 (Gcc_backend::global_variable_set_init): Remove any
537 (Gcc_backend::write_global_definitions): Likewise.
539 2015-11-30 Ian Lance Taylor <iant@google.com>
542 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
543 TYPE_STRING_FLAG on a variant type.
545 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
547 * go-backend.c: Remove unused header files.
548 * go-gcc.cc: Likewise.
549 * go-lang.c: Likewise.
550 * gospec.c: Likewise.
552 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
554 * go-backend.c: Reorder #include's and remove duplicates.
555 * go-lang.c: Likewise.
557 2015-10-20 Alan Modra <amodra@gmail.com>
560 * gospec.c (saw_opt_m32): Rename to..
561 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
563 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
565 2015-10-01 Ian Lance Taylor <iant@google.com>
568 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
569 TARGET_CAN_SPLIT_STACK_64BIT is defined.
571 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
574 * gospec.c (lang_specific_driver): Set appropriate split stack
575 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
577 2015-09-10 Chris Manghane <cmang@google.com>
579 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
580 unrepresentable size.
582 2015-08-24 Marek Polacek <polacek@redhat.com>
584 PR tree-optimization/67284
585 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
586 Set TREE_THIS_VOLATILE.
587 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
588 Pass false to the rest of define_builtin calls.
590 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
592 * go-lang.c (go_langhook_init_options_struct): Don't set
594 (go_langhook_post_options): Set it here instead.
596 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
598 * gofrontend/backend.h: Fix double word typos.
599 * gofrontend/expressions.cc: Same.
602 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
604 * go-backend.c: Adjust includes.
605 * go-gcc.cc: Likewise.
606 * go-lang.c: Likewise.
608 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
610 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
612 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
614 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
615 * go-gcc.cc: Likewise.
616 * go-lang.c: Likewise.
617 * go-system.h: Likewise.
619 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
621 * go-backend.c : Adjust include files.
622 * go-gcc.cc : Likewise.
623 * go-lang.c : Likewise.
625 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
627 * go-gcc.cc (write_global_definitions): Remove call to
628 finalize_compilation_unit.
629 Remove Go specific debug generation.
630 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
631 (go_langhook_write_globals): Remove.
632 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
634 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
636 * go-backend.c: Adjust includes for restructured coretypes.h.
638 * go-gcc.cc: Likewise.
639 * go-lang.c: Likewise.
641 2015-04-30 Chris Manghane <cmang@google.com>
643 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
646 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
648 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
650 2015-04-17 Chris Manghane <cmang@google.com>
652 * Make-lang.in (GO_OBJS): Add go/escape.o.
654 2015-02-02 Ian Lance Taylor <iant@google.com>
658 * go-gcc.cc (Gcc_backend::type_size): Change return type to
660 (Gcc_backend::type_alignment): Likewise.
661 (Gcc_backend::type_field_alignment): Likewise.
662 (Gcc_backend::type_field_offset): Likewise.
663 (Gcc_backend::implicit_variable): Change alignment parameter type
666 2015-01-23 Ian Lance Taylor <iant@google.com>
669 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
672 * gccgo.texi (C Interoperability): Mention that people should use
675 2015-01-23 Ian Lance Taylor <iant@google.com>
678 * go-lang.c (go_langhook_init_options_struct): Set default
680 (go_langhook_post_options): If debug_info_level is still the
681 default, make sure write_symbols is set.
682 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
684 2015-01-16 Richard Henderson <rth@redhat.com>
686 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
687 (Gcc_backend::static_chain_variable): New method.
689 2015-01-09 Ian Lance Taylor <iant@google.com>
691 * config-lang.in (lang_dirs): Define.
693 2015-01-09 Michael Collison <michael.collison@linaro.org>
695 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
696 input.h, alias.h, symtab.h, options.h, fold-const.h,
697 wide-int.h, and inchash.h due to flattening of tree.h.
699 * go-backend.c: Ditto.
701 2015-01-07 Chris Manghane <cmang@google.com>
704 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
707 2015-01-06 Chris Manghane <cmang@google.com>
709 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
710 initialize zero-sized fields, just evaluate the values for side
713 2015-01-05 Jakub Jelinek <jakub@redhat.com>
715 Update copyright years.
717 * gccgo.texi: Bump @copyrights-go year.
719 2014-12-19 Chris Manghane <cmang@google.com>
721 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
722 construct arrays of zero-sized values.
724 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
726 * go-lang.c: Remove redundant enum from machine_mode.
728 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
730 * go-gcc.cc: Adjust include files.
732 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
734 * go-gcc.cc: Adjust include files.
737 2014-10-23 Ian Lance Taylor <iant@google.com>
739 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
740 mpc_t parameter instead of two mpfr_t parameters.
742 2014-09-15 Jakub Jelinek <jakub@redhat.com>
744 * Make-lang.in (check_go_parallelize): Change to just an upper bound
747 2014-09-03 Chris Manghane <cmang@google.com>
749 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
750 parameter. Add is_hidden parameter.
751 (Gcc_backend::implicit_variable_set_init): New method.
752 (Gcc_backend::implicit_variable_reference): New method.
754 2014-08-08 Ian Lance Taylor <iant@google.com>
756 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
759 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
761 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
762 symtab_get_node to symtab_node::get.
764 2014-06-13 Ian Lance Taylor <iant@google.com>
767 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
768 ld, add -t option to avoid warning about common symbol changing
771 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
773 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
774 symtab_get_node(var_decl)->implicit_section.
776 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
778 * go-gcc.cc (global_variable_set_init): Use
779 set_decl_section_name.
781 2014-06-04 Ian Lance Taylor <iant@google.com>
783 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
784 alignment parameters. Permit init parameter to be NULL.
786 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
788 * go-gcc.cc: Include builtins.h.
790 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
792 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
794 2014-05-06 Chris Manghane <cmang@google.com>
796 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
797 (Gcc_backend::boolean_constant_expression): New method.
798 (Gcc_backend::zero_expression): Use this->make_expression rather
800 (Gcc_backend::var_expression): Likewise.
801 (Gcc_backend::integer_constant_expression): Likewise.
802 (Gcc_backend::float_constant_expression): Likewise.
803 (Gcc_backend::complex_constant_expression): Likewise.
804 (Gcc_backend::struct_field_expression): Likewise.
805 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
806 (tree_to_function, tree_to_block): Remove functions.
807 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
808 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
810 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
811 Mike Stump <mikestump@comcast.net>
812 Richard Sandiford <rdsandiford@googlemail.com>
814 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
816 2014-05-06 Chris Manghane <cmang@google.com>
818 * go-c.h (go_create_gogo): Update declaration to add
819 check_divide_zero and check_divide_overflow parameters.
820 * go-lang.c (go_langhook_init): Pass new arguments to
823 2014-05-05 Chris Manghane <cmang@google.com>
825 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
826 gc_root_variable. Add name and is_constant parameters.
828 2014-05-05 Chris Manghane <cmang@google.com>
830 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
832 (Gcc_backend::temporary_variable): Check for erroneous function.
834 2014-04-30 Chris Manghane <cmang@google.com>
836 * go-backend.c: #include "diagnostics.h".
837 (saw_errors): New function.
838 * go-c.h (saw_errors): Declare.
839 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
841 2014-04-30 Chris Manghane <cmang@google.com>
843 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
844 calling into Go frontend.
845 (go_langhook_type_for_mode): Likewise.
846 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
848 2014-04-30 Chris Manghane <cmang@google.com>
850 * go-gcc.cc: #include "langhooks.h".
851 (Gcc_backend::Gcc_backend): Add constructor.
852 (Gcc_backend::lookup_function): New function.
853 (Gcc_backend::define_builtin): New private function.
854 (Gcc_backend::gcc_backend): Remove.
855 (go_get_backend): Use new to create new Gcc_backend.
857 2014-04-25 Chris Manghane <cmang@google.com>
859 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
860 (Gcc_backend::return_statement): Push and pop function.
861 (Gcc_backend::label): Likewise.
862 (Gcc_backend::function_defer_statement): Likewise.
863 (Gcc_backend::switch_statement): Add function parameter.
864 (Gcc_backend::block): Don't permit function to be NULL.
865 (Gcc_backend::temporary_variable): Change go_assert to
867 (Gcc_backend::gc_root_variable): New function.
868 (Gcc_backend::write_global_definitions): New function.
870 2014-04-22 Chris Manghane <cmang@google.com>
872 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
873 call to create_tmp_var. Require that function be non-NULL.
875 2014-04-17 Chris Manghane <cmang@google.com>
877 * go-gcc.cc (Gcc_backend::named_constant_expression): New
880 2014-04-14 Chris Manghane <cmang@google.com>
882 * go-gcc.cc: Include "convert.h".
883 (Gcc_backend::string_constant_expression): New function.
884 (Gcc_backend::real_part_expression): Likewise.
885 (Gcc_backend::imag_part_expression): Likewise.
886 (Gcc_backend::complex_expression): Likewise.
887 (Gcc_backend::constructor_expression): Likewise.
888 (Gcc_backend::array_constructor_expression): Likewise.
889 (Gcc_backend::pointer_offset_expression): Likewise.
890 (Gcc_backend::array_index_expression): Likewise.
891 (Gcc_backend::call_expression): Likewise.
892 (Gcc_backend::exception_handler_statement): Likewise.
893 (Gcc_backend::function_defer_statement): Likewise.
894 (Gcc_backend::function_set_parameters): Likewise.
895 (Gcc_backend::function_set_body): Likewise.
896 (Gcc_backend::convert_expression): Handle various type
899 2014-03-03 Ian Lance Taylor <iant@google.com>
901 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
903 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
906 2014-01-24 Chris Manghane <cmang@google.com>
908 * go-gcc.cc (Gcc_backend::unary_expression): New function.
910 2014-01-16 Chris Manghane <cmang@google.com>
912 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
914 (operator_to_tree_code): New static function.
915 (Gcc_backend::binary_expression): New function.
917 2014-01-14 Chris Manghane <cmang@google.com>
919 * go-gcc.cc (Gcc_backend::compound_expression): New function.
920 (Gcc_backend::conditional_expression): New function.
922 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
924 Update copyright years
926 2014-01-02 Tobias Burnus <burnus@net-b.de>
928 * gccgo.texi: Bump @copying's copyright year.
930 2013-12-16 Chris Manghane <cmang@google.com>
932 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
934 2013-12-11 Ian Lance Taylor <iant@google.com>
936 * go-lang.c (go_langhook_post_options): Disable sibling calls by
939 2013-12-10 Ian Lance Taylor <iant@google.com>
941 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
944 2013-12-05 Ian Lance Taylor <iant@google.com>
946 Revert this change; no longer required.
947 2013-11-06 Ian Lance Taylor <iant@google.com>
949 * go-lang.c (go_langhook_post_options): If
950 -fisolate-erroneous-paths was turned on by an optimization option,
953 2013-11-23 Ian Lance Taylor <iant@google.com>
955 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
958 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
960 * go-gcc.cc: Add required include files from gimple.h.
961 * go-lang.c: Likewise.
963 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
965 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
966 tree_to_shwi throughout.
968 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
970 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
971 tree_fits_shwi_p throughout.
973 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
975 * go-lang.c: Include only gimplify.h and gimple.h as needed.
977 2013-11-14 Diego Novillo <dnovillo@google.com>
979 * go-backend.c: Include stor-layout.h.
980 * go-gcc.cc: Include stringpool.h.
981 Include stor-layout.h.
983 * go-lang.c: Include stor-layout.h.
985 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
987 * go-lang.c: Include gimplify.h.
989 2013-11-06 Ian Lance Taylor <iant@google.com>
991 * go-lang.c (go_langhook_post_options): If
992 -fisolate-erroneous-paths was turned on by an optimization option,
995 2013-10-14 Chris Manghane <cmang@google.com>
997 * go-gcc.cc (Gcc_backend::address_expression): New function.
999 2013-10-11 Chris Manghane <cmang@google.com>
1001 * go-gcc.cc (Gcc_backend::function_code_expression): New
1004 2013-10-10 Chris Manghane <cmang@google.com>
1006 * go-gcc.cc (Gcc_backend::error_function): New function.
1007 (Gcc_backend::function): New function.
1008 (Gcc_backend::make_function): New function.
1009 (function_to_tree): New function.
1011 2013-10-04 Chris Manghane <cmang@google.com>
1013 * go-gcc.cc (Gcc_backend::convert_expression): New function.
1015 2013-10-02 Chris Manghane <cmang@google.com>
1017 * go-gcc.cc: Include "real.h" and "realmpfr.h".
1018 (Gcc_backend::integer_constant_expression): New function.
1019 (Gcc_backend::float_constant_expression): New function.
1020 (Gcc_backend::complex_constant_expression): New function.
1022 2013-09-30 Chris Manghane <cmang@google.com>
1024 * go-gcc.cc (Gcc_backend::error_expression): New function.
1025 (Gcc_backend::var_expression): New function.
1026 (Gcc_backend::indirect_expression): New function.
1028 2013-09-25 Tom Tromey <tromey@redhat.com>
1030 * Make-lang.in (gospec.o): Remove.
1031 (CFLAGS-go/gospec.o): New variable.
1032 (GCCGO_OBJS): Update to use go/gospec.o.
1034 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
1035 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
1036 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
1037 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
1038 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
1039 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
1040 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
1041 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
1042 (go/unsafe.o): Remove.
1043 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
1044 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
1046 2013-09-25 Tom Tromey <tromey@redhat.com>
1048 * Make-lang.in (gospec.o): Don't use subshell.
1050 2013-08-28 Ian Lance Taylor <iant@google.com>
1052 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
1053 the struct is not hidden.
1054 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
1056 2013-08-06 Ian Lance Taylor <iant@google.com>
1058 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
1059 compute_reloc_for_constant.
1061 2013-08-02 Ian Lance Taylor <iant@google.com>
1063 * go-gcc.cc (immutable_struct_set_init): Always call
1064 resolve_unique_section.
1066 2013-07-24 Ian Lance Taylor <iant@google.com>
1068 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
1069 fields, recreate those fields with the first one with a non-zero
1072 2013-07-23 Ian Lance Taylor <iant@google.com>
1074 * go-backend.c: Don't #include "rtl.h".
1075 (go_imported_unsafe): Don't call init_varasm_once.
1076 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
1078 2013-07-23 Ian Lance Taylor <iant@google.com>
1080 * go-lang.c: Don't #include "except.h".
1081 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
1083 2013-06-18 Ian Lance Taylor <iant@google.com>
1085 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
1087 (Gcc_backend::immutable_struct_set_init): Likewise.
1089 2013-05-16 Jason Merrill <jason@redhat.com>
1091 * Make-lang.in (go1$(exeext)): Use link mutex.
1093 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
1095 * gospec.c: pass -u pthread_create to linker when static linking.
1097 2012-12-21 Ian Lance Taylor <iant@google.com>
1100 * go-system.h: Don't include <cstdio>.
1102 2012-12-18 Ian Lance Taylor <iant@google.com>
1105 * gospec.c: Revert last patch.
1107 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
1110 * gospec.c (LIBATOMIC): Define.
1111 (LIBATOMIC_PROFILE): Define.
1112 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
1114 2012-11-29 Ian Lance Taylor <iant@google.com>
1116 * go-gcc.cc: Include "output.h".
1117 (global_variable): Add is_unique_section parameter.
1118 (global_variable_set_init): Adjust unique section if necessary.
1119 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
1121 2012-11-17 Diego Novillo <dnovillo@google.com>
1123 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1125 * go-lang.c: Use new vec API in vec.h.
1127 2012-11-16 Ian Lance Taylor <iant@google.com>
1129 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
1130 (go1$(exeext)): Likewise.
1132 2012-10-30 Ian Lance Taylor <iant@google.com>
1134 * lang.opt (-fgo-relative-import-path): New option.
1135 * go-lang.c (go_relative_import_path): New static variable.
1136 (go_langhook_init): Pass go_relative_import_path to
1138 (go_langhook_handle_option): Handle -fgo-relative-import-path.
1139 * go-c.h (go_create_gogo): Update declaration.
1140 * gccgo.texi (Invoking gccgo): Document
1141 -fgo-relative-import-path.
1143 2012-09-17 Ian Lance Taylor <iant@google.com>
1145 * config-lang.in (target_libs): Add target-libbacktrace.
1147 2012-09-16 Ian Lance Taylor <iant@google.com>
1149 * Make-lang.in (go/gogo.o): Depend on filenames.h.
1151 2012-08-14 Diego Novillo <dnovillo@google.com>
1153 Merge from cxx-conversion branch. Configury.
1155 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1156 * go-gcc.cc: Likewise.
1157 * go-system.h: Likewise.
1159 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
1161 * go-lang.c (lang_decl): Add variable_size GTY option.
1163 2012-05-09 Ian Lance Taylor <iant@google.com>
1165 * lang.opt: Add -fgo-pkgpath.
1166 * go-lang.c (go_pkgpath): New static variable.
1167 (go_prefix): New static variable.
1168 (go_langhook_init): Pass go_pkgpath and go_prefix to
1170 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
1171 -fgo-prefix handling to just set go_prefix.
1172 * go-c.h (go_set_prefix): Don't declare.
1173 (go_create_gogo): Add pkgpath and prefix to declaration.
1174 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1175 to pkgpath. Don't include the package name in the asm name.
1176 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
1177 docs for -fgo-prefix.
1179 2012-04-23 Ian Lance Taylor <iant@google.com>
1181 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1183 2012-04-20 Ian Lance Taylor <iant@google.com>
1185 * lang.opt: Add -fgo-check-divide-zero and
1186 -fgo-check-divide-overflow.
1187 * gccgo.texi (Invoking gccgo): Document new options.
1189 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1191 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1192 with NULL_TREE type instead of void_type_node.
1194 2012-03-09 Ian Lance Taylor <iant@google.com>
1196 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1197 to the lhs type if necessary.
1199 2012-03-08 Ian Lance Taylor <iant@google.com>
1201 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1202 zero-sized variable.
1203 (go_non_zero_struct): New global variable.
1204 (Gcc_backend::non_zero_size_type): New function.
1205 (Gcc_backend::global_variable): Don't build an assignment for a
1207 * go-c.h (go_non_zero_struct): Declare.
1208 * config-lang.in (gtfiles): Add go-c.h.
1210 2012-02-29 Ian Lance Taylor <iant@google.com>
1212 * go-gcc.cc (class Gcc_tree): Add set_tree method.
1213 (set_placeholder_pointer_type): When setting to a pointer to
1214 error, set to error_mark_node.
1216 2012-02-23 Richard Guenther <rguenther@suse.de>
1218 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1219 build_distinct_type_copy.
1221 2012-02-17 Ian Lance Taylor <iant@google.com>
1223 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1225 2012-02-17 Ian Lance Taylor <iant@google.com>
1227 * gospec.c (lang_specific_driver): If linking, and no -o option
1230 2012-02-14 Ian Lance Taylor <iant@google.com>
1233 * Make-lang.in (gccgo-cross$(exeext)): New target.
1234 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1236 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1237 gccgo-cross$(exeext) does not exist.
1239 2012-02-07 Ian Lance Taylor <iant@google.com>
1241 * gccgo.texi (Function Names): Document //extern instead of
1244 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1247 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1248 return build_nonstandard_integer_type result if possible.
1250 2012-01-21 Ian Lance Taylor <iant@google.com>
1252 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1253 (Gcc_backend::type_alignment): Likewise.
1254 (Gcc_backend::type_field_alignment): Likewise.
1255 (Gcc_backend::type_field_offset): Likewise.
1257 2012-01-20 Ian Lance Taylor <iant@google.com>
1259 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1261 (Gcc_backend::set_placeholder_struct_type): Likewise.
1263 2012-01-17 Ian Lance Taylor <iant@google.com>
1265 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1266 BASE.s rather than -o BASE.o.
1268 2012-01-11 Ian Lance Taylor <iant@google.com>
1270 * go-lang.c (go_langhook_init): Initialize void_list_node before
1271 calling go_create_gogo.
1273 2012-01-10 Ian Lance Taylor <iant@google.com>
1275 * go-gcc.cc (Gcc_backend::type_size): New function.
1276 (Gcc_backend::type_alignment): New function.
1277 (Gcc_backend::type_field_alignment): New function.
1278 (Gcc_backend::type_field_offset): New function.
1279 * go-backend.c (go_type_alignment): Remove.
1280 * go-c.h (go_type_alignment): Don't declare.
1282 2011-12-27 Ian Lance Taylor <iant@google.com>
1284 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1285 build_distinct_type_copy rather than build_variant_type_copy.
1286 (Gcc_backend::set_placeholder_array_type): Likewise.
1287 (Gcc_backend::named_type): Add special handling for builtin
1290 2011-12-22 Ian Lance Taylor <iant@google.com>
1292 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1293 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1294 (Gcc_backend::set_placeholder_struct_type): Likewise.
1295 (Gcc_backend::set_placeholder_array_type): Likewise.
1296 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1298 2011-12-13 Ian Lance Taylor <iant@google.com>
1300 * go-backend.c: #include "simple-object.h" and "intl.h".
1301 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1302 (GO_EXPORT_SECTION_NAME): Likewise.
1303 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1304 (go_read_export_data): New function.
1305 * go-c.h (go_read_export_data): Declare.
1307 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1308 Ian Lance Taylor <iant@google.com>
1310 * go-location.h: New file.
1311 * go-linemap.cc: New file.
1312 * go-gcc.cc: Change all uses of source_location to Location.
1313 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1314 (GO_LINEMAP_H): New variable.
1315 (GO_LEX_H): Use $(GO_LINEMAP_H).
1316 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1317 (go/go-linemap.o): New target.
1319 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1321 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1323 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1325 * lang.opt: Add fgo-optimize-.
1326 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1327 * go-c.h (go_enable_optimize): Declare.
1328 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1329 (GO_EXPORT_H): Define.
1330 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1331 (GO_AST_DUMP_H): Define.
1332 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1333 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1334 (go/types.o): Likewise.
1335 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1336 (go/go-optimize.o): New target.
1338 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1340 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1341 (go/go-lang.o): Remove explicit compilation rule.
1343 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1345 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1347 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1349 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1350 (go/ast-dump.o): New target.
1351 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1352 (go/statements.o): Likewise.
1354 2011-07-06 Richard Guenther <rguenther@suse.de>
1356 * go-lang.c (go_langhook_init):
1357 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1359 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1361 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1363 * go-backend.c: Include common/common-target.h.
1364 (go_write_export_data): Use targetm_common.have_named_sections.
1365 * go-lang.c: Include common/common-target.h.
1366 (go_langhook_init_options_struct): Use
1367 targetm_common.supports_split_stack.
1369 2011-06-13 Ian Lance Taylor <iant@google.com>
1371 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1373 2011-06-10 Ian Lance Taylor <iant@google.com>
1375 * go-gcc.cc: Include "toplev.h".
1376 (Gcc_backend::immutable_struct): New function.
1377 (Gcc_backend::immutable_struct_set_init): New function.
1378 (Gcc_backend::immutable_struct_reference): New function.
1379 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1381 2011-06-09 Ian Lance Taylor <iant@google.com>
1383 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1385 2011-06-07 Richard Guenther <rguenther@suse.de>
1387 * go-lang.c (go_langhook_init): Do not set
1388 size_type_node or call set_sizetype.
1390 2011-05-27 Ian Lance Taylor <iant@google.com>
1392 * go-backend.c: Include "output.h".
1393 (go_write_export_data): New function.
1394 * go-c.h (go_write_export_data): Declare.
1395 * Make-lang.in (go/go-backend.o): Depend on output.h.
1396 (go/export.o): Depend on $(GO_C_H). Do not depend on
1397 $(MACHMODE_H), output.h, or $(TARGET_H).
1399 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1401 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1402 (gccgo$(exeext)): Use libcommon-target.a.
1404 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1406 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1408 2011-05-13 Ian Lance Taylor <iant@google.com>
1410 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1411 for multiple results, check that all fields types have a size.
1412 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1414 2011-05-12 Ian Lance Taylor <iant@google.com>
1416 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1418 (Gcc_backend::parameter_variable): Likewise.
1420 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1422 * go-lang.c (global_bindings_p): Return bool and simplify.
1424 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1426 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1428 2011-05-04 Ian Lance Taylor <iant@google.com>
1430 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1431 (Gcc_backend::fill_in_struct): New function.
1432 (Gcc_backend::array_type): Implement.
1433 (Gcc_backend::fill_in_array): New function.
1434 (Gcc_backend::placeholder_pointer_type): New function.
1435 (Gcc_backend::set_placeholder_pointer_type): New function.
1436 (Gcc_backend::set_placeholder_function_type): New function.
1437 (Gcc_backend::placeholder_struct_type): New function.
1438 (Gcc_backend::set_placeholder_struct_type): New function.
1439 (Gcc_backend::placeholder_array_type): New function.
1440 (Gcc_backend::set_placeholder_array_type): New function.
1441 (Gcc_backend::named_type): New function.
1442 (Gcc_backend::circular_pointer_type): New function.
1443 (Gcc_backend::is_circular_pointer_type): New function.
1445 2011-04-26 Ian Lance Taylor <iant@google.com>
1447 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1449 2011-04-25 Ian Lance Taylor <iant@google.com>
1451 * go-gcc.cc (Gcc_backend::error_type): Implement.
1452 (Gcc_backend::string_type): Remove.
1453 (Gcc_backend::function_type): Change signature and implement.
1454 (Gcc_backend::struct_type): Change signature.
1455 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1456 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1457 (Gcc_backend::pointer_type): Check for error.
1458 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1460 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1462 * go-gcc.c (class Gcc_tree): Make get_tree const.
1463 (Gcc_backend::void_type): Implement.
1464 (Gcc_backend::bool_type): Implement.
1465 (Gcc_backend::integer_type): Implement.
1466 (Gcc_backend::float_type): Implement.
1467 (Gcc_backend::complex_type): New function.
1468 (Gcc_backend::pointer_type): New function.
1469 (Gcc_backend::make_type): New function.
1470 (type_to_tree): New function.
1472 2011-04-21 Ian Lance Taylor <iant@google.com>
1474 * go-system.h (go_assert, go_unreachable): Define.
1476 2011-04-19 Ian Lance Taylor <iant@google.com>
1478 * go-system.h: Include "intl.h".
1479 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1480 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1481 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1483 2011-04-19 Ian Lance Taylor <iant@google.com>
1485 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1487 2011-04-19 Ian Lance Taylor <iant@google.com>
1489 * go-gcc.cc (class Bblock): Define.
1490 (Gcc_backend::if_statement): Change then_block and else_block to
1492 (Gcc_backend::block): New function.
1493 (Gcc_backend::block_add_statements): New function.
1494 (Gcc_backend::block_statement): New function.
1495 (tree_to_block, block_to_tree): New functions.
1497 2011-04-18 Ian Lance Taylor <iant@google.com>
1499 * go-gcc.cc: Include "go-c.h".
1500 (class Bvariable): Define.
1501 (Gcc_backend::init_statement): New function.
1502 (Gcc_backend::global_variable): New function.
1503 (Gcc_backend::global_variable_set_init): New function.
1504 (Gcc_backend::local_variable): New function.
1505 (Gcc_backend::parameter_variable): New function.
1506 (tree_to_type, var_to_tree): New functions.
1507 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1508 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1510 2011-04-15 Ian Lance Taylor <iant@google.com>
1512 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1513 (Gcc_backend::assignment_statement): Use error_statement.
1514 (Gcc_backend::return_statement): Likewise.
1515 (Gcc_backend::if_statement): Likewise.
1516 (Gcc_backend::switch_statement): Likewise.
1517 (Gcc_backend::statement_list): Likewise.
1519 2011-04-14 Ian Lance Taylor <iant@google.com>
1521 * go-gcc.cc (Gcc_backend::error_statement): New function.
1523 2011-04-13 Ian Lance Taylor <iant@google.com>
1525 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1527 2011-04-13 Ian Lance Taylor <iant@google.com>
1529 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1530 (GO_RUNTIME_H): New variable.
1531 (go/runtime.o): New target.
1532 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1533 (go/statements.o): Likewise.
1535 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1537 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1540 2011-04-06 Ian Lance Taylor <iant@google.com>
1542 * go-gcc.cc (if_statement): Use build3_loc.
1543 (Gcc_backend::switch_statement): New function.
1544 (Gcc_backend::statement_list): New function.
1546 2011-04-06 Ian Lance Taylor <iant@google.com>
1548 * go-gcc.cc (Gcc_backend::if_statement): New function.
1549 (tree_to_stat): New function.
1550 (expr_to_tree): Renamed from expression_to_tree.
1551 (stat_to_tree): Renamed from statement_to_tree.
1553 2011-04-06 Ian Lance Taylor <iant@google.com>
1555 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1557 2011-04-04 Ian Lance Taylor <iant@google.com>
1559 * go-gcc.c (class Blabel): Define.
1560 (Gcc_backend::make_expression): New function.
1561 (get_identifier_from_string): New function.
1562 (Gcc_backend::label): New function.
1563 (Gcc_backend::label_definition_statement): New function.
1564 (Gcc_backend::goto_statement): New function.
1565 (Gcc_backend::label_address): New function.
1566 (expression_to_tree): New function.
1567 * Make-lang.in (go/expressions.o): Depend on
1568 go/gofrontend/backend.h.
1569 (go/gogo.o): Likewise.
1571 2011-04-04 Ian Lance Taylor <iant@google.com>
1573 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1574 (class Bfunction): Define.
1575 (Gcc_backend::assignment_statement): Rename from assignment.
1577 (Gcc_backend::return_statement): New function.
1578 (tree_to_function): New function.
1579 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1580 $(GIMPLE_H), and $(GO_GOGO_H).
1582 2011-04-03 Ian Lance Taylor <iant@google.com>
1584 * go-gcc.cc: New file.
1585 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1586 (go/go-gcc.o): New target.
1587 (go/go.o): Depend on go/gofrontend/backend.h.
1588 (go/statements.o): Likewise.
1590 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1592 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1594 2011-02-08 Ian Lance Taylor <iant@google.com>
1596 * go-lang.c (go_langhook_init_options_struct): Set
1597 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1599 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1601 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1602 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1604 2011-01-21 Ian Lance Taylor <iant@google.com>
1606 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1608 * go-c.h: Update declaration of go_create_gogo.
1610 2011-01-13 Ian Lance Taylor <iant@google.com>
1612 * go-backend.c: Include "rtl.h" and "target.h".
1613 (go_imported_unsafe): New function.
1614 * go-c.h (go_imported_unsafe): Declare.
1615 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1616 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1617 (go/unsafe.o): Depend on $(GO_C_H).
1619 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1622 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1625 2010-12-21 Ian Lance Taylor <iant@google.com>
1627 * Make-lang.in (check-go): Remove.
1628 (lang_checks_parallelized): Add check-go.
1629 (check_go_parallelize): Set.
1631 2010-12-13 Ian Lance Taylor <iant@google.com>
1633 * gospec.c (lang_specific_driver): Add a -o option if not linking
1634 and there is no -o option already.
1636 2010-12-07 Ian Lance Taylor <iant@google.com>
1638 PR tree-optimization/46805
1639 PR tree-optimization/46833
1640 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1642 2010-12-06 Ian Lance Taylor <iant@google.com>
1646 * go-lang.c (go_char_p): Define type and vectors.
1647 (go_search_dirs): New static variable.
1648 (go_langhook_handle_option): Use version and version/machine
1650 (go_langhook_post_options): Add non-specific -L paths.
1651 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1652 DEFAULT_TARGET_MACHINE when compiling.
1653 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1654 (Import and Export): Don't mention -L for finding import files.
1656 2010-12-03 Ian Lance Taylor <iant@google.com>
1659 * go-backend.c: New file.
1660 * go-c.h (go_type_alignment): Declare.
1661 (go_field_alignment, go_trampoline_info): Declare.
1662 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1663 (go/go-backend.o): New target.
1664 (go/go-lang.o): Make dependencies match source file.
1665 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1666 (go/gogo-tree.o): Don't depend on $(TM_H).
1668 2010-12-03 Ian Lance Taylor <iant@google.com>
1670 * config-lang.in (build_by_default): Set to no.
1672 2010-12-02 Ian Lance Taylor <iant@google.com>
1674 Go frontend added to gcc repository.
1676 Copyright (C) 2010-2019 Free Software Foundation, Inc.
1678 Copying and distribution of this file, with or without modification,
1679 are permitted in any medium without royalty provided the copyright
1680 notice and this notice are preserved.