1 2018-01-05 Ian Lance Taylor <iant@golang.org>
3 * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
4 math_function_type_long to take one argument.
6 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
7 Alan Hayward <alan.hayward@arm.com>
8 David Sherwood <david.sherwood@arm.com>
10 * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
12 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
13 Alan Hayward <alan.hayward@arm.com>
14 David Sherwood <david.sherwood@arm.com>
16 * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
18 2018-01-03 Jakub Jelinek <jakub@redhat.com>
20 Update copyright years.
22 * gccgo.texi: Bump @copyrights-go year.
24 2017-12-12 Tony Reix <tony.reix@atos.net>
25 Ian Lance Taylor <iant@golang.org>
27 * go-lang.c (TARGET_AIX): Define if not defined.
28 (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
30 2017-12-01 Ian Lance Taylor <iant@golang.org>
32 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
33 __builtin_unreachable.
34 (Gcc_backend::function): Add does_not_return parameter.
36 2017-12-01 Than McIntosh <thanm@google.com>
38 * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
40 * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
42 2017-11-28 Jakub Jelinek <jakub@redhat.com>
44 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
45 build2_loc instead of build3_loc.
47 2017-11-14 Than McIntosh <thanm@google.com>
49 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
51 2017-10-11 Tony Reix <tony.reix@atos.net>
53 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
54 system header files, as is done in ../system.h.
56 2017-10-05 Ian Lance Taylor <iant@golang.org>
58 * Make-lang.in (GO_OBJS): Add go/names.o.
60 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
61 Alan Hayward <alan.hayward@arm.com>
62 David Sherwood <david.sherwood@arm.com>
64 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
66 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
67 Alan Hayward <alan.hayward@arm.com>
68 David Sherwood <david.sherwood@arm.com>
70 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
72 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
73 Alan Hayward <alan.hayward@arm.com>
74 David Sherwood <david.sherwood@arm.com>
76 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
78 2017-08-07 Martin Liska <mliska@suse.cz>
80 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
81 and not __no_split_stack__.
83 2017-07-27 Tony Reix <tony.reix@atos.net>
85 * go-backend.c (go_write_export_data): Use EXCLUDE section for
88 2017-06-09 Ian Lance Taylor <iant@golang.org>
90 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
91 on, disable implicit -forder-blocks-and-partition.
93 2017-05-12 Than McIntosh <thanm@google.com>
95 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
97 2017-05-11 Ian Lance Taylor <iant@google.com>
100 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
101 DECL_EXTERNAL, clear TREE_STATIC.
103 2017-05-10 Than McIntosh <thanm@google.com>
105 * go-backend.c: Include "go-c.h".
106 * go-gcc.cc (Gcc_backend::write_export_data): New method.
108 2017-05-10 Ian Lance Taylor <iant@google.com>
110 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
112 * Make-lang.in (GO_OBJS): Add go/wb.o.
114 2017-03-28 Than McIntosh <thanm@google.com>
117 * go-gcc.cc (Gcc_backend::return_statement): Check for
118 void_type_node when checking result size.
120 2017-02-20 Ian Lance Taylor <iant@golang.org>
123 * lang.opt (-fgo-relative-import-path): Change space to tab.
125 2017-02-07 Richard Biener <rguenther@suse.de>
127 PR tree-optimization/79256
129 * go-backend.c (go_field_alignment): Adjust.
131 2017-01-11 Than McIntosh <thanm@google.com>
133 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
135 2017-01-01 Jakub Jelinek <jakub@redhat.com>
137 Update copyright years.
139 * gccgo.texi: Bump @copyrights-go year.
141 2016-12-16 Than McIntosh <thanm@google.com>
143 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
145 (Gcc_backend::init_statement): Likewise.
146 (Gcc_backend::assignment_statement): Likewise.
147 (Gcc_backend::if_statement): Likewise.
149 2016-12-06 Than McIntosh <thanm@google.com>
151 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
154 2016-11-22 Than McIntosh <thanm@google.com>
156 * go-gcc.cc (char_needs_encoding): Remove.
157 (needs_encoding, fetch_utf8_char, encode_id): Remove.
158 (Gcc_backend::global_variable): Add asm_name parameter. Don't
159 compute asm_name here.
160 (Gcc_backend::implicit_variable): Likewise.
161 (Gcc_backend::implicit_variable_reference): Likewise.
162 (Gcc_backend::immutable_struct): Likewise.
163 (Gcc_backend::immutable_struct_reference): Likewise.
164 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
166 2016-11-22 Ian Lance Taylor <iant@google.com>
168 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
169 __builtin_frame_address.
171 2016-10-25 David Malcolm <dmalcolm@redhat.com>
173 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
174 from result of GET_MODE_CLASS. Minor formatting fixes.
176 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
178 * go-backend.c: Include memmodel.h.
180 2016-10-10 Than McIntosh <thanm@google.com>
182 * go-gcc.h: New file.
183 * go-c.h (struct go_create_gogo_args): Add backend and linemap
185 * go-lang.c: Include "go-gcc.h".
186 (go_langhook_init): Set linemap and backend fields of args.
187 * go-gcc.cc: Include "go-gcc.h".
188 * go-linemap.cc: Include "go-gcc.h".
190 2016-10-10 Than McIntosh <thanm@google.com>
192 * go-linemap.cc (Gcc_linemap::location_line): New method.
194 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
196 * config-lang.in (lang_requires_boot_languages): Delete.
198 2016-10-06 Chris Manghane <cmang@google.com>
200 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
203 2016-09-27 Than McIntosh <thanm@google.com>
205 * go-linemap.cc (Gcc_linemap::to_string): New method.
207 2016-09-23 Than McIntosh <thanm@google.com>
209 * go-gcc-diagnostics.cc: New file.
210 * go-location.h (Location): Remove operator source_location. Add
212 * go-system.h: #include <sstream>.
213 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
214 go/go-gcc-diagnostics.o.
215 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
217 2016-09-23 Chris Manghane <cmang@google.com>
220 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
221 to pass arguments in the correct order.
223 2016-09-22 Ian Lance Taylor <iant@golang.org>
225 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
226 __builtin_frame_address.
228 2016-09-11 Ian Lance Taylor <iant@golang.org>
230 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
231 ctz, ctzll, bswap32, bswap64.
233 2016-09-10 Ian Lance Taylor <iant@golang.org>
235 * go-backend.c (go_trampoline_info): Remove.
236 * go-c.h (go_trampoline_info): Don't declare.
238 2016-09-09 Than McIntosh <thanm@google.com>
240 * go-sha1.cc: New file.
241 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
242 (CFLAGS-go/go-sha1.o): New variable.
244 2016-08-29 Ian Lance Taylor <iant@google.com>
246 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
247 * go-c.h (struct go_create_gogo_args): Define.
248 (go_create_gogo): Change declaration to take struct pointer.
249 * go-lang.c (go_c_header): New static variable.
250 (go_langhook_init): Update call to go_create_gogo.
251 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
252 -fgo-compiling-runtime.
254 2016-08-09 Ian Lance Taylor <iant@google.com>
256 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
258 (Compiler Directives): New chapter.
259 (Function Names): Describe using //go:linkname. Suggest using
260 -fgo-pkgpath rather than -fgo-prefix.
262 2016-08-08 Ian Lance Taylor <iant@google.com>
265 * go-gcc.cc (Gcc_backend::function_type): If the return type is
266 zero bytes, treat the function as returning void.
267 (return_statement): If the return type is zero bytes, don't
268 actually return any values.
270 2016-08-05 Ian Lance Taylor <iant@google.com>
273 * go-gcc.cc (char_needs_encoding): New static function.
274 (needs_encoding, fetch_utf8_char): New static functions.
275 (encode_id): New static function.
276 (Gcc_backend::global_variable): Set asm name if the name is not
278 (Gcc_backend::implicit_variable): Likewise.
279 (Gcc_backend::implicit_variable_reference): Likewise.
280 (Gcc_backend::immutable_struct): Likewise.
281 (Gcc_backend::immutable_struct_reference): Likewise.
282 (Gcc_backend::function): Likewise.
284 2016-08-02 Chris Manghane <cmang@google.com>
286 * lang.opt: Add -fgo-debug-escape option.
287 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
288 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
291 2016-05-06 Chris Manghane <cmang@google.com>
293 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
296 2016-04-29 Chris Manghane <cmang@google.com>
298 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
300 2016-04-18 Michael Matz <matz@suse.de>
302 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
304 2016-02-12 Jakub Jelinek <jakub@redhat.com>
306 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
307 neighbour -> neighbor.
308 * gccgo.texi: Likewise.
310 2016-01-27 Ian Lance Taylor <iant@google.com>
312 * go-lang.c (go_langhook_init_options_struct): Default to
313 -fkeep-gc-roots-live.
315 2016-01-04 Jakub Jelinek <jakub@redhat.com>
317 Update copyright years.
319 * gccgo.texi: Bump @copyrights-go year.
321 2015-12-21 Ian Lance Taylor <iant@google.com>
323 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
324 t_ and orig_type_ fields. Add new two parameter constructor. Add
325 get_tree and get_decl methods.
326 (Gcc_backend::var_expression): Pass location to var get_tree.
327 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
328 two parameter constructor for Bvariable.
329 (Gcc_backend::global_variable_set_init): Don't remove
330 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
331 (Gcc_backend::write_global_definitions): Likewise.
332 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
333 (Gcc_backend::block): Likewise.
334 (Gcc_backend::implicit_variable_set_init): Likewise.
335 (Gcc_backend::immutable_struct_set_init): Likewise.
336 (Gcc_backend::function_set_parameters): Likewise.
338 2015-12-21 Ian Lance Taylor <iant@google.com>
340 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
341 add a VIEW_CONVERT_EXPR to the tree.
342 (Gcc_backend::global_variable_set_init): Remove any
344 (Gcc_backend::write_global_definitions): Likewise.
346 2015-11-30 Ian Lance Taylor <iant@google.com>
349 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
350 TYPE_STRING_FLAG on a variant type.
352 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
354 * go-backend.c: Remove unused header files.
355 * go-gcc.cc: Likewise.
356 * go-lang.c: Likewise.
357 * gospec.c: Likewise.
359 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
361 * go-backend.c: Reorder #include's and remove duplicates.
362 * go-lang.c: Likewise.
364 2015-10-20 Alan Modra <amodra@gmail.com>
367 * gospec.c (saw_opt_m32): Rename to..
368 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
370 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
372 2015-10-01 Ian Lance Taylor <iant@google.com>
375 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
376 TARGET_CAN_SPLIT_STACK_64BIT is defined.
378 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
381 * gospec.c (lang_specific_driver): Set appropriate split stack
382 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
384 2015-09-10 Chris Manghane <cmang@google.com>
386 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
387 unrepresentable size.
389 2015-08-24 Marek Polacek <polacek@redhat.com>
391 PR tree-optimization/67284
392 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
393 Set TREE_THIS_VOLATILE.
394 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
395 Pass false to the rest of define_builtin calls.
397 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
399 * go-lang.c (go_langhook_init_options_struct): Don't set
401 (go_langhook_post_options): Set it here instead.
403 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
405 * gofrontend/backend.h: Fix double word typos.
406 * gofrontend/expressions.cc: Same.
409 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
411 * go-backend.c: Adjust includes.
412 * go-gcc.cc: Likewise.
413 * go-lang.c: Likewise.
415 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
417 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
419 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
421 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
422 * go-gcc.cc: Likewise.
423 * go-lang.c: Likewise.
424 * go-system.h: Likewise.
426 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
428 * go-backend.c : Adjust include files.
429 * go-gcc.cc : Likewise.
430 * go-lang.c : Likewise.
432 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
434 * go-gcc.cc (write_global_definitions): Remove call to
435 finalize_compilation_unit.
436 Remove Go specific debug generation.
437 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
438 (go_langhook_write_globals): Remove.
439 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
441 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
443 * go-backend.c: Adjust includes for restructured coretypes.h.
445 * go-gcc.cc: Likewise.
446 * go-lang.c: Likewise.
448 2015-04-30 Chris Manghane <cmang@google.com>
450 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
453 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
455 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
457 2015-04-17 Chris Manghane <cmang@google.com>
459 * Make-lang.in (GO_OBJS): Add go/escape.o.
461 2015-02-02 Ian Lance Taylor <iant@google.com>
465 * go-gcc.cc (Gcc_backend::type_size): Change return type to
467 (Gcc_backend::type_alignment): Likewise.
468 (Gcc_backend::type_field_alignment): Likewise.
469 (Gcc_backend::type_field_offset): Likewise.
470 (Gcc_backend::implicit_variable): Change alignment parameter type
473 2015-01-23 Ian Lance Taylor <iant@google.com>
476 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
479 * gccgo.texi (C Interoperability): Mention that people should use
482 2015-01-23 Ian Lance Taylor <iant@google.com>
485 * go-lang.c (go_langhook_init_options_struct): Set default
487 (go_langhook_post_options): If debug_info_level is still the
488 default, make sure write_symbols is set.
489 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
491 2015-01-16 Richard Henderson <rth@redhat.com>
493 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
494 (Gcc_backend::static_chain_variable): New method.
496 2015-01-09 Ian Lance Taylor <iant@google.com>
498 * config-lang.in (lang_dirs): Define.
500 2015-01-09 Michael Collison <michael.collison@linaro.org>
502 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
503 input.h, alias.h, symtab.h, options.h, fold-const.h,
504 wide-int.h, and inchash.h due to flattening of tree.h.
506 * go-backend.c: Ditto.
508 2015-01-07 Chris Manghane <cmang@google.com>
511 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
514 2015-01-06 Chris Manghane <cmang@google.com>
516 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
517 initialize zero-sized fields, just evaluate the values for side
520 2015-01-05 Jakub Jelinek <jakub@redhat.com>
522 Update copyright years.
524 * gccgo.texi: Bump @copyrights-go year.
526 2014-12-19 Chris Manghane <cmang@google.com>
528 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
529 construct arrays of zero-sized values.
531 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
533 * go-lang.c: Remove redundant enum from machine_mode.
535 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
537 * go-gcc.cc: Adjust include files.
539 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
541 * go-gcc.cc: Adjust include files.
544 2014-10-23 Ian Lance Taylor <iant@google.com>
546 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
547 mpc_t parameter instead of two mpfr_t parameters.
549 2014-09-15 Jakub Jelinek <jakub@redhat.com>
551 * Make-lang.in (check_go_parallelize): Change to just an upper bound
554 2014-09-03 Chris Manghane <cmang@google.com>
556 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
557 parameter. Add is_hidden parameter.
558 (Gcc_backend::implicit_variable_set_init): New method.
559 (Gcc_backend::implicit_variable_reference): New method.
561 2014-08-08 Ian Lance Taylor <iant@google.com>
563 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
566 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
568 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
569 symtab_get_node to symtab_node::get.
571 2014-06-13 Ian Lance Taylor <iant@google.com>
574 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
575 ld, add -t option to avoid warning about common symbol changing
578 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
580 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
581 symtab_get_node(var_decl)->implicit_section.
583 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
585 * go-gcc.cc (global_variable_set_init): Use
586 set_decl_section_name.
588 2014-06-04 Ian Lance Taylor <iant@google.com>
590 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
591 alignment parameters. Permit init parameter to be NULL.
593 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
595 * go-gcc.cc: Include builtins.h.
597 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
599 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
601 2014-05-06 Chris Manghane <cmang@google.com>
603 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
604 (Gcc_backend::boolean_constant_expression): New method.
605 (Gcc_backend::zero_expression): Use this->make_expression rather
607 (Gcc_backend::var_expression): Likewise.
608 (Gcc_backend::integer_constant_expression): Likewise.
609 (Gcc_backend::float_constant_expression): Likewise.
610 (Gcc_backend::complex_constant_expression): Likewise.
611 (Gcc_backend::struct_field_expression): Likewise.
612 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
613 (tree_to_function, tree_to_block): Remove functions.
614 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
615 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
617 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
618 Mike Stump <mikestump@comcast.net>
619 Richard Sandiford <rdsandiford@googlemail.com>
621 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
623 2014-05-06 Chris Manghane <cmang@google.com>
625 * go-c.h (go_create_gogo): Update declaration to add
626 check_divide_zero and check_divide_overflow parameters.
627 * go-lang.c (go_langhook_init): Pass new arguments to
630 2014-05-05 Chris Manghane <cmang@google.com>
632 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
633 gc_root_variable. Add name and is_constant parameters.
635 2014-05-05 Chris Manghane <cmang@google.com>
637 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
639 (Gcc_backend::temporary_variable): Check for erroneous function.
641 2014-04-30 Chris Manghane <cmang@google.com>
643 * go-backend.c: #include "diagnostics.h".
644 (saw_errors): New function.
645 * go-c.h (saw_errors): Declare.
646 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
648 2014-04-30 Chris Manghane <cmang@google.com>
650 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
651 calling into Go frontend.
652 (go_langhook_type_for_mode): Likewise.
653 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
655 2014-04-30 Chris Manghane <cmang@google.com>
657 * go-gcc.cc: #include "langhooks.h".
658 (Gcc_backend::Gcc_backend): Add constructor.
659 (Gcc_backend::lookup_function): New function.
660 (Gcc_backend::define_builtin): New private function.
661 (Gcc_backend::gcc_backend): Remove.
662 (go_get_backend): Use new to create new Gcc_backend.
664 2014-04-25 Chris Manghane <cmang@google.com>
666 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
667 (Gcc_backend::return_statement): Push and pop function.
668 (Gcc_backend::label): Likewise.
669 (Gcc_backend::function_defer_statement): Likewise.
670 (Gcc_backend::switch_statement): Add function parameter.
671 (Gcc_backend::block): Don't permit function to be NULL.
672 (Gcc_backend::temporary_variable): Change go_assert to
674 (Gcc_backend::gc_root_variable): New function.
675 (Gcc_backend::write_global_definitions): New function.
677 2014-04-22 Chris Manghane <cmang@google.com>
679 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
680 call to create_tmp_var. Require that function be non-NULL.
682 2014-04-17 Chris Manghane <cmang@google.com>
684 * go-gcc.cc (Gcc_backend::named_constant_expression): New
687 2014-04-14 Chris Manghane <cmang@google.com>
689 * go-gcc.cc: Include "convert.h".
690 (Gcc_backend::string_constant_expression): New function.
691 (Gcc_backend::real_part_expression): Likewise.
692 (Gcc_backend::imag_part_expression): Likewise.
693 (Gcc_backend::complex_expression): Likewise.
694 (Gcc_backend::constructor_expression): Likewise.
695 (Gcc_backend::array_constructor_expression): Likewise.
696 (Gcc_backend::pointer_offset_expression): Likewise.
697 (Gcc_backend::array_index_expression): Likewise.
698 (Gcc_backend::call_expression): Likewise.
699 (Gcc_backend::exception_handler_statement): Likewise.
700 (Gcc_backend::function_defer_statement): Likewise.
701 (Gcc_backend::function_set_parameters): Likewise.
702 (Gcc_backend::function_set_body): Likewise.
703 (Gcc_backend::convert_expression): Handle various type
706 2014-03-03 Ian Lance Taylor <iant@google.com>
708 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
710 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
713 2014-01-24 Chris Manghane <cmang@google.com>
715 * go-gcc.cc (Gcc_backend::unary_expression): New function.
717 2014-01-16 Chris Manghane <cmang@google.com>
719 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
721 (operator_to_tree_code): New static function.
722 (Gcc_backend::binary_expression): New function.
724 2014-01-14 Chris Manghane <cmang@google.com>
726 * go-gcc.cc (Gcc_backend::compound_expression): New function.
727 (Gcc_backend::conditional_expression): New function.
729 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
731 Update copyright years
733 2014-01-02 Tobias Burnus <burnus@net-b.de>
735 * gccgo.texi: Bump @copying's copyright year.
737 2013-12-16 Chris Manghane <cmang@google.com>
739 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
741 2013-12-11 Ian Lance Taylor <iant@google.com>
743 * go-lang.c (go_langhook_post_options): Disable sibling calls by
746 2013-12-10 Ian Lance Taylor <iant@google.com>
748 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
751 2013-12-05 Ian Lance Taylor <iant@google.com>
753 Revert this change; no longer required.
754 2013-11-06 Ian Lance Taylor <iant@google.com>
756 * go-lang.c (go_langhook_post_options): If
757 -fisolate-erroneous-paths was turned on by an optimization option,
760 2013-11-23 Ian Lance Taylor <iant@google.com>
762 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
765 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
767 * go-gcc.cc: Add required include files from gimple.h.
768 * go-lang.c: Likewise
770 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
772 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
773 tree_to_shwi throughout.
775 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
777 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
778 tree_fits_shwi_p throughout.
780 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
782 * go-lang.c: Include only gimplify.h and gimple.h as needed.
784 2013-11-14 Diego Novillo <dnovillo@google.com>
786 * go-backend.c: Include stor-layout.h.
787 * go-gcc.cc: Include stringpool.h.
788 Include stor-layout.h.
790 * go-lang.c: Include stor-layout.h.
792 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
794 * go-lang.c: Include gimplify.h.
796 2013-11-06 Ian Lance Taylor <iant@google.com>
798 * go-lang.c (go_langhook_post_options): If
799 -fisolate-erroneous-paths was turned on by an optimization option,
802 2013-10-14 Chris Manghane <cmang@google.com>
804 * go-gcc.cc (Gcc_backend::address_expression): New function.
806 2013-10-11 Chris Manghane <cmang@google.com>
808 * go-gcc.cc (Gcc_backend::function_code_expression): New
811 2013-10-10 Chris Manghane <cmang@google.com>
813 * go-gcc.cc (Gcc_backend::error_function): New function.
814 (Gcc_backend::function): New function.
815 (Gcc_backend::make_function): New function.
816 (function_to_tree): New function.
818 2013-10-04 Chris Manghane <cmang@google.com>
820 * go-gcc.cc (Gcc_backend::convert_expression): New function.
822 2013-10-02 Chris Manghane <cmang@google.com>
824 * go-gcc.cc: Include "real.h" and "realmpfr.h".
825 (Gcc_backend::integer_constant_expression): New function.
826 (Gcc_backend::float_constant_expression): New function.
827 (Gcc_backend::complex_constant_expression): New function.
829 2013-09-30 Chris Manghane <cmang@google.com>
831 * go-gcc.cc (Gcc_backend::error_expression): New function.
832 (Gcc_backend::var_expression): New function.
833 (Gcc_backend::indirect_expression): New function.
835 2013-09-25 Tom Tromey <tromey@redhat.com>
837 * Make-lang.in (gospec.o): Remove.
838 (CFLAGS-go/gospec.o): New variable.
839 (GCCGO_OBJS): Update to use go/gospec.o.
841 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
842 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
843 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
844 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
845 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
846 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
847 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
848 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
849 (go/unsafe.o): Remove.
850 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
851 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
853 2013-09-25 Tom Tromey <tromey@redhat.com>
855 * Make-lang.in (gospec.o): Don't use subshell.
857 2013-08-28 Ian Lance Taylor <iant@google.com>
859 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
860 the struct is not hidden.
861 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
863 2013-08-06 Ian Lance Taylor <iant@google.com>
865 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
866 compute_reloc_for_constant.
868 2013-08-02 Ian Lance Taylor <iant@google.com>
870 * go-gcc.cc (immutable_struct_set_init): Always call
871 resolve_unique_section.
873 2013-07-24 Ian Lance Taylor <iant@google.com>
875 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
876 fields, recreate those fields with the first one with a non-zero
879 2013-07-23 Ian Lance Taylor <iant@google.com>
881 * go-backend.c: Don't #include "rtl.h".
882 (go_imported_unsafe): Don't call init_varasm_once.
883 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
885 2013-07-23 Ian Lance Taylor <iant@google.com>
887 * go-lang.c: Don't #include "except.h".
888 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
890 2013-06-18 Ian Lance Taylor <iant@google.com>
892 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
894 (Gcc_backend::immutable_struct_set_init): Likewise.
896 2013-05-16 Jason Merrill <jason@redhat.com>
898 * Make-lang.in (go1$(exeext)): Use link mutex.
900 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
902 * gospec.c: pass -u pthread_create to linker when static linking.
904 2012-12-21 Ian Lance Taylor <iant@google.com>
907 * go-system.h: Don't include <cstdio>.
909 2012-12-18 Ian Lance Taylor <iant@google.com>
912 * gospec.c: Revert last patch.
914 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
917 * gospec.c (LIBATOMIC): Define.
918 (LIBATOMIC_PROFILE): Define.
919 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
921 2012-11-29 Ian Lance Taylor <iant@google.com>
923 * go-gcc.cc: Include "output.h".
924 (global_variable): Add is_unique_section parameter.
925 (global_variable_set_init): Adjust unique section if necessary.
926 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
928 2012-11-17 Diego Novillo <dnovillo@google.com>
930 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
932 * go-lang.c: Use new vec API in vec.h.
934 2012-11-16 Ian Lance Taylor <iant@google.com>
936 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
937 (go1$(exeext)): Likewise.
939 2012-10-30 Ian Lance Taylor <iant@google.com>
941 * lang.opt (-fgo-relative-import-path): New option.
942 * go-lang.c (go_relative_import_path): New static variable.
943 (go_langhook_init): Pass go_relative_import_path to
945 (go_langhook_handle_option): Handle -fgo-relative-import-path.
946 * go-c.h (go_create_gogo): Update declaration.
947 * gccgo.texi (Invoking gccgo): Document
948 -fgo-relative-import-path.
950 2012-09-17 Ian Lance Taylor <iant@google.com>
952 * config-lang.in (target_libs): Add target-libbacktrace.
954 2012-09-16 Ian Lance Taylor <iant@google.com>
956 * Make-lang.in (go/gogo.o): Depend on filenames.h.
958 2012-08-14 Diego Novillo <dnovillo@google.com>
960 Merge from cxx-conversion branch. Configury.
962 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
963 * go-gcc.cc: Likewise.
964 * go-system.h: Likewise.
966 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
968 * go-lang.c (lang_decl): Add variable_size GTY option.
970 2012-05-09 Ian Lance Taylor <iant@google.com>
972 * lang.opt: Add -fgo-pkgpath.
973 * go-lang.c (go_pkgpath): New static variable.
974 (go_prefix): New static variable.
975 (go_langhook_init): Pass go_pkgpath and go_prefix to
977 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
978 -fgo-prefix handling to just set go_prefix.
979 * go-c.h (go_set_prefix): Don't declare.
980 (go_create_gogo): Add pkgpath and prefix to declaration.
981 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
982 to pkgpath. Don't include the package name in the asm name.
983 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
984 docs for -fgo-prefix.
986 2012-04-23 Ian Lance Taylor <iant@google.com>
988 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
990 2012-04-20 Ian Lance Taylor <iant@google.com>
992 * lang.opt: Add -fgo-check-divide-zero and
993 -fgo-check-divide-overflow.
994 * gccgo.texi (Invoking gccgo): Document new options.
996 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
998 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
999 with NULL_TREE type instead of void_type_node.
1001 2012-03-09 Ian Lance Taylor <iant@google.com>
1003 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1004 to the lhs type if necessary.
1006 2012-03-08 Ian Lance Taylor <iant@google.com>
1008 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1009 zero-sized variable.
1010 (go_non_zero_struct): New global variable.
1011 (Gcc_backend::non_zero_size_type): New function.
1012 (Gcc_backend::global_variable): Don't build an assignment for a
1014 * go-c.h (go_non_zero_struct): Declare.
1015 * config-lang.in (gtfiles): Add go-c.h.
1017 2012-02-29 Ian Lance Taylor <iant@google.com>
1019 * go-gcc.cc (class Gcc_tree): Add set_tree method.
1020 (set_placeholder_pointer_type): When setting to a pointer to
1021 error, set to error_mark_node.
1023 2012-02-23 Richard Guenther <rguenther@suse.de>
1025 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1026 build_distinct_type_copy.
1028 2012-02-17 Ian Lance Taylor <iant@google.com>
1030 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1032 2012-02-17 Ian Lance Taylor <iant@google.com>
1034 * gospec.c (lang_specific_driver): If linking, and no -o option
1037 2012-02-14 Ian Lance Taylor <iant@google.com>
1040 * Make-lang.in (gccgo-cross$(exeext)): New target.
1041 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1043 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1044 gccgo-cross$(exeext) does not exist.
1046 2012-02-07 Ian Lance Taylor <iant@google.com>
1048 * gccgo.texi (Function Names): Document //extern instead of
1051 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1054 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1055 return build_nonstandard_integer_type result if possible.
1057 2012-01-21 Ian Lance Taylor <iant@google.com>
1059 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1060 (Gcc_backend::type_alignment): Likewise.
1061 (Gcc_backend::type_field_alignment): Likewise.
1062 (Gcc_backend::type_field_offset): Likewise.
1064 2012-01-20 Ian Lance Taylor <iant@google.com>
1066 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1068 (Gcc_backend::set_placeholder_struct_type): Likewise.
1070 2012-01-17 Ian Lance Taylor <iant@google.com>
1072 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1073 BASE.s rather than -o BASE.o.
1075 2012-01-11 Ian Lance Taylor <iant@google.com>
1077 * go-lang.c (go_langhook_init): Initialize void_list_node before
1078 calling go_create_gogo.
1080 2012-01-10 Ian Lance Taylor <iant@google.com>
1082 * go-gcc.cc (Gcc_backend::type_size): New function.
1083 (Gcc_backend::type_alignment): New function.
1084 (Gcc_backend::type_field_alignment): New function.
1085 (Gcc_backend::type_field_offset): New function.
1086 * go-backend.c (go_type_alignment): Remove.
1087 * go-c.h (go_type_alignment): Don't declare.
1089 2011-12-27 Ian Lance Taylor <iant@google.com>
1091 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1092 build_distinct_type_copy rather than build_variant_type_copy.
1093 (Gcc_backend::set_placeholder_array_type): Likewise.
1094 (Gcc_backend::named_type): Add special handling for builtin
1097 2011-12-22 Ian Lance Taylor <iant@google.com>
1099 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1100 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1101 (Gcc_backend::set_placeholder_struct_type): Likewise.
1102 (Gcc_backend::set_placeholder_array_type): Likewise.
1103 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1105 2011-12-13 Ian Lance Taylor <iant@google.com>
1107 * go-backend.c: #include "simple-object.h" and "intl.h".
1108 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1109 (GO_EXPORT_SECTION_NAME): Likewise.
1110 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1111 (go_read_export_data): New function.
1112 * go-c.h (go_read_export_data): Declare.
1114 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1115 Ian Lance Taylor <iant@google.com>
1117 * go-location.h: New file.
1118 * go-linemap.cc: New file.
1119 * go-gcc.cc: Change all uses of source_location to Location.
1120 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1121 (GO_LINEMAP_H): New variable.
1122 (GO_LEX_H): Use $(GO_LINEMAP_H).
1123 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1124 (go/go-linemap.o): New target.
1126 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1128 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1130 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1132 * lang.opt: Add fgo-optimize-.
1133 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1134 * go-c.h (go_enable_optimize): Declare.
1135 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1136 (GO_EXPORT_H): Define.
1137 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1138 (GO_AST_DUMP_H): Define.
1139 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1140 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1141 (go/types.o): Likewise.
1142 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1143 (go/go-optimize.o): New target.
1145 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1147 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1148 (go/go-lang.o): Remove explicit compilation rule.
1150 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1152 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1154 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1156 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1157 (go/ast-dump.o): New target.
1158 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1159 (go/statements.o): Likewise.
1161 2011-07-06 Richard Guenther <rguenther@suse.de>
1163 * go-lang.c (go_langhook_init):
1164 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1166 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1168 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1170 * go-backend.c: Include common/common-target.h.
1171 (go_write_export_data): Use targetm_common.have_named_sections.
1172 * go-lang.c: Include common/common-target.h.
1173 (go_langhook_init_options_struct): Use
1174 targetm_common.supports_split_stack.
1176 2011-06-13 Ian Lance Taylor <iant@google.com>
1178 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1180 2011-06-10 Ian Lance Taylor <iant@google.com>
1182 * go-gcc.cc: Include "toplev.h".
1183 (Gcc_backend::immutable_struct): New function.
1184 (Gcc_backend::immutable_struct_set_init): New function.
1185 (Gcc_backend::immutable_struct_reference): New function.
1186 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1188 2011-06-09 Ian Lance Taylor <iant@google.com>
1190 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1192 2011-06-07 Richard Guenther <rguenther@suse.de>
1194 * go-lang.c (go_langhook_init): Do not set
1195 size_type_node or call set_sizetype.
1197 2011-05-27 Ian Lance Taylor <iant@google.com>
1199 * go-backend.c: Include "output.h".
1200 (go_write_export_data): New function.
1201 * go-c.h (go_write_export_data): Declare.
1202 * Make-lang.in (go/go-backend.o): Depend on output.h.
1203 (go/export.o): Depend on $(GO_C_H). Do not depend on
1204 $(MACHMODE_H), output.h, or $(TARGET_H).
1206 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1208 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1209 (gccgo$(exeext)): Use libcommon-target.a.
1211 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1213 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1215 2011-05-13 Ian Lance Taylor <iant@google.com>
1217 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1218 for multiple results, check that all fields types have a size.
1219 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1221 2011-05-12 Ian Lance Taylor <iant@google.com>
1223 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1225 (Gcc_backend::parameter_variable): Likewise.
1227 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1229 * go-lang.c (global_bindings_p): Return bool and simplify.
1231 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1233 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1235 2011-05-04 Ian Lance Taylor <iant@google.com>
1237 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1238 (Gcc_backend::fill_in_struct): New function.
1239 (Gcc_backend::array_type): Implement.
1240 (Gcc_backend::fill_in_array): New function.
1241 (Gcc_backend::placeholder_pointer_type): New function.
1242 (Gcc_backend::set_placeholder_pointer_type): New function.
1243 (Gcc_backend::set_placeholder_function_type): New function.
1244 (Gcc_backend::placeholder_struct_type): New function.
1245 (Gcc_backend::set_placeholder_struct_type): New function.
1246 (Gcc_backend::placeholder_array_type): New function.
1247 (Gcc_backend::set_placeholder_array_type): New function.
1248 (Gcc_backend::named_type): New function.
1249 (Gcc_backend::circular_pointer_type): New function.
1250 (Gcc_backend::is_circular_pointer_type): New function.
1252 2011-04-26 Ian Lance Taylor <iant@google.com>
1254 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1256 2011-04-25 Ian Lance Taylor <iant@google.com>
1258 * go-gcc.cc (Gcc_backend::error_type): Implement.
1259 (Gcc_backend::string_type): Remove.
1260 (Gcc_backend::function_type): Change signature and implement.
1261 (Gcc_backend::struct_type): Change signature.
1262 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1263 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1264 (Gcc_backend::pointer_type): Check for error.
1265 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1267 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1269 * go-gcc.c (class Gcc_tree): Make get_tree const.
1270 (Gcc_backend::void_type): Implement.
1271 (Gcc_backend::bool_type): Implement.
1272 (Gcc_backend::integer_type): Implement.
1273 (Gcc_backend::float_type): Implement.
1274 (Gcc_backend::complex_type): New function.
1275 (Gcc_backend::pointer_type): New function.
1276 (Gcc_backend::make_type): New function.
1277 (type_to_tree): New function.
1279 2011-04-21 Ian Lance Taylor <iant@google.com>
1281 * go-system.h (go_assert, go_unreachable): Define.
1283 2011-04-19 Ian Lance Taylor <iant@google.com>
1285 * go-system.h: Include "intl.h".
1286 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1287 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1288 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1290 2011-04-19 Ian Lance Taylor <iant@google.com>
1292 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1294 2011-04-19 Ian Lance Taylor <iant@google.com>
1296 * go-gcc.cc (class Bblock): Define.
1297 (Gcc_backend::if_statement): Change then_block and else_block to
1299 (Gcc_backend::block): New function.
1300 (Gcc_backend::block_add_statements): New function.
1301 (Gcc_backend::block_statement): New function.
1302 (tree_to_block, block_to_tree): New functions.
1304 2011-04-18 Ian Lance Taylor <iant@google.com>
1306 * go-gcc.cc: Include "go-c.h".
1307 (class Bvariable): Define.
1308 (Gcc_backend::init_statement): New function.
1309 (Gcc_backend::global_variable): New function.
1310 (Gcc_backend::global_variable_set_init): New function.
1311 (Gcc_backend::local_variable): New function.
1312 (Gcc_backend::parameter_variable): New function.
1313 (tree_to_type, var_to_tree): New functions.
1314 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1315 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1317 2011-04-15 Ian Lance Taylor <iant@google.com>
1319 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1320 (Gcc_backend::assignment_statement): Use error_statement.
1321 (Gcc_backend::return_statement): Likewise.
1322 (Gcc_backend::if_statement): Likewise.
1323 (Gcc_backend::switch_statement): Likewise.
1324 (Gcc_backend::statement_list): Likewise.
1326 2011-04-14 Ian Lance Taylor <iant@google.com>
1328 * go-gcc.cc (Gcc_backend::error_statement): New function.
1330 2011-04-13 Ian Lance Taylor <iant@google.com>
1332 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1334 2011-04-13 Ian Lance Taylor <iant@google.com>
1336 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1337 (GO_RUNTIME_H): New variable.
1338 (go/runtime.o): New target.
1339 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1340 (go/statements.o): Likewise.
1342 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1344 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1347 2011-04-06 Ian Lance Taylor <iant@google.com>
1349 * go-gcc.cc (if_statement): Use build3_loc.
1350 (Gcc_backend::switch_statement): New function.
1351 (Gcc_backend::statement_list): New function.
1353 2011-04-06 Ian Lance Taylor <iant@google.com>
1355 * go-gcc.cc (Gcc_backend::if_statement): New function.
1356 (tree_to_stat): New function.
1357 (expr_to_tree): Renamed from expression_to_tree.
1358 (stat_to_tree): Renamed from statement_to_tree.
1360 2011-04-06 Ian Lance Taylor <iant@google.com>
1362 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1364 2011-04-04 Ian Lance Taylor <iant@google.com>
1366 * go-gcc.c (class Blabel): Define.
1367 (Gcc_backend::make_expression): New function.
1368 (get_identifier_from_string): New function.
1369 (Gcc_backend::label): New function.
1370 (Gcc_backend::label_definition_statement): New function.
1371 (Gcc_backend::goto_statement): New function.
1372 (Gcc_backend::label_address): New function.
1373 (expression_to_tree): New function.
1374 * Make-lang.in (go/expressions.o): Depend on
1375 go/gofrontend/backend.h.
1376 (go/gogo.o): Likewise.
1378 2011-04-04 Ian Lance Taylor <iant@google.com>
1380 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1381 (class Bfunction): Define.
1382 (Gcc_backend::assignment_statement): Rename from assignment.
1384 (Gcc_backend::return_statement): New function.
1385 (tree_to_function): New function.
1386 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1387 $(GIMPLE_H), and $(GO_GOGO_H).
1389 2011-04-03 Ian Lance Taylor <iant@google.com>
1391 * go-gcc.cc: New file.
1392 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1393 (go/go-gcc.o): New target.
1394 (go/go.o): Depend on go/gofrontend/backend.h.
1395 (go/statements.o): Likewise.
1397 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1399 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1401 2011-02-08 Ian Lance Taylor <iant@google.com>
1403 * go-lang.c (go_langhook_init_options_struct): Set
1404 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1406 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1408 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1409 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1411 2011-01-21 Ian Lance Taylor <iant@google.com>
1413 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1415 * go-c.h: Update declaration of go_create_gogo.
1417 2011-01-13 Ian Lance Taylor <iant@google.com>
1419 * go-backend.c: Include "rtl.h" and "target.h".
1420 (go_imported_unsafe): New function.
1421 * go-c.h (go_imported_unsafe): Declare.
1422 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1423 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1424 (go/unsafe.o): Depend on $(GO_C_H).
1426 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1429 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1432 2010-12-21 Ian Lance Taylor <iant@google.com>
1434 * Make-lang.in (check-go): Remove.
1435 (lang_checks_parallelized): Add check-go.
1436 (check_go_parallelize): Set.
1438 2010-12-13 Ian Lance Taylor <iant@google.com>
1440 * gospec.c (lang_specific_driver): Add a -o option if not linking
1441 and there is no -o option already.
1443 2010-12-07 Ian Lance Taylor <iant@google.com>
1445 PR tree-optimization/46805
1446 PR tree-optimization/46833
1447 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1449 2010-12-06 Ian Lance Taylor <iant@google.com>
1453 * go-lang.c (go_char_p): Define type and vectors.
1454 (go_search_dirs): New static variable.
1455 (go_langhook_handle_option): Use version and version/machine
1457 (go_langhook_post_options): Add non-specific -L paths.
1458 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1459 DEFAULT_TARGET_MACHINE when compiling.
1460 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1461 (Import and Export): Don't mention -L for finding import files.
1463 2010-12-03 Ian Lance Taylor <iant@google.com>
1466 * go-backend.c: New file.
1467 * go-c.h (go_type_alignment): Declare.
1468 (go_field_alignment, go_trampoline_info): Declare.
1469 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1470 (go/go-backend.o): New target.
1471 (go/go-lang.o): Make dependencies match source file.
1472 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1473 (go/gogo-tree.o): Don't depend on $(TM_H).
1475 2010-12-03 Ian Lance Taylor <iant@google.com>
1477 * config-lang.in (build_by_default): Set to no.
1479 2010-12-02 Ian Lance Taylor <iant@google.com>
1481 Go frontend added to gcc repository.
1483 Copyright (C) 2010-2018 Free Software Foundation, Inc.
1485 Copying and distribution of this file, with or without modification,
1486 are permitted in any medium without royalty provided the copyright
1487 notice and this notice are preserved.