1 2018-06-28 Ian Lance Taylor <iant@golang.org>
4 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
5 build_variant_type_copy rather than build_distinct_type_copy.
7 2018-06-08 Cherry Zhang <cherryyz@google.com>
9 * go-gcc.cc (class Gcc_backend): Remove
10 stack_allocation_expression method.
12 2018-02-03 Ian Lance Taylor <iant@golang.org>
14 * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
15 using structural equality.
17 2018-02-02 Ian Lance Taylor <iant@golang.org>
19 * go-gcc.cc (Gcc_backend::type_size): Return 0 for
21 (Gcc_backend::convert_expression): Don't convert if the type of
22 expr_tree is void_type_node.
23 (Gcc_backend::array_index_expression): Don't index if the type of
24 the array expression is void_type_node.
25 (Gcc_backend::init_statement): Don't initialize if the type of the
26 initializer expression is void_type_node.
27 (Gcc_backend::assignment_statement): Don't assign if the type of
28 either the left or right hand side is void_type_node.
29 (Gcc_backend::temporary_variable): Don't initialize if the type of
30 the initializer expression is void_type_node.
32 2018-02-01 Cherry Zhang <cherryyz@google.com>
34 * lang.opt (fgo-optimize): Remove RejectNegative.
35 * go-c.h (go_enable_optimize): Update declaration to take value
37 * go-lang.c (go_langhook_handle_option): Pass value to
39 * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
41 2018-01-30 Ian Lance Taylor <iant@golang.org>
43 * go-gcc.cc (Gcc_backend::convert_tree): New private method.
44 (Gcc_backend::constructor_expression): Call it.
45 (Gcc_backend::assignment_statement): Likewise.
46 (Gcc_backend::temporary_variable): Likewise.
48 2018-01-09 Cherry Zhang <cherryyz@google.com>
50 * go-gcc.cc (local_variable): Add decl_var parameter.
52 2018-01-09 Cherry Zhang <cherryyz@google.com>
54 * lang.opt (fgo-debug-escape-hash): New option.
55 * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
57 * go-lang.c (go_langhook_init): Set debug_escape_hash field.
58 * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
60 2018-01-05 Ian Lance Taylor <iant@golang.org>
62 * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
63 math_function_type_long to take one argument.
65 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
66 Alan Hayward <alan.hayward@arm.com>
67 David Sherwood <david.sherwood@arm.com>
69 * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
71 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
72 Alan Hayward <alan.hayward@arm.com>
73 David Sherwood <david.sherwood@arm.com>
75 * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
77 2018-01-03 Jakub Jelinek <jakub@redhat.com>
79 Update copyright years.
81 * gccgo.texi: Bump @copyrights-go year.
83 2017-12-12 Tony Reix <tony.reix@atos.net>
84 Ian Lance Taylor <iant@golang.org>
86 * go-lang.c (TARGET_AIX): Define if not defined.
87 (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
89 2017-12-01 Ian Lance Taylor <iant@golang.org>
91 * go-gcc.cc (Gcc_backend::Gcc_backend): Define
92 __builtin_unreachable.
93 (Gcc_backend::function): Add does_not_return parameter.
95 2017-12-01 Than McIntosh <thanm@google.com>
97 * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
99 * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
101 2017-11-28 Jakub Jelinek <jakub@redhat.com>
103 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
104 build2_loc instead of build3_loc.
106 2017-11-14 Than McIntosh <thanm@google.com>
108 * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
110 2017-10-11 Tony Reix <tony.reix@atos.net>
112 * go-system.h (__STDC_FORMAT_MACROS): Define before including any
113 system header files, as is done in ../system.h.
115 2017-10-05 Ian Lance Taylor <iant@golang.org>
117 * Make-lang.in (GO_OBJS): Add go/names.o.
119 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
120 Alan Hayward <alan.hayward@arm.com>
121 David Sherwood <david.sherwood@arm.com>
123 * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
125 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
126 Alan Hayward <alan.hayward@arm.com>
127 David Sherwood <david.sherwood@arm.com>
129 * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
131 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
132 Alan Hayward <alan.hayward@arm.com>
133 David Sherwood <david.sherwood@arm.com>
135 * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
137 2017-08-07 Martin Liska <mliska@suse.cz>
139 * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
140 and not __no_split_stack__.
142 2017-07-27 Tony Reix <tony.reix@atos.net>
144 * go-backend.c (go_write_export_data): Use EXCLUDE section for
147 2017-06-09 Ian Lance Taylor <iant@golang.org>
149 * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
150 on, disable implicit -forder-blocks-and-partition.
152 2017-05-12 Than McIntosh <thanm@google.com>
154 * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
156 2017-05-11 Ian Lance Taylor <iant@google.com>
159 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
160 DECL_EXTERNAL, clear TREE_STATIC.
162 2017-05-10 Than McIntosh <thanm@google.com>
164 * go-backend.c: Include "go-c.h".
165 * go-gcc.cc (Gcc_backend::write_export_data): New method.
167 2017-05-10 Ian Lance Taylor <iant@google.com>
169 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
171 * Make-lang.in (GO_OBJS): Add go/wb.o.
173 2017-03-28 Than McIntosh <thanm@google.com>
176 * go-gcc.cc (Gcc_backend::return_statement): Check for
177 void_type_node when checking result size.
179 2017-02-20 Ian Lance Taylor <iant@golang.org>
182 * lang.opt (-fgo-relative-import-path): Change space to tab.
184 2017-02-07 Richard Biener <rguenther@suse.de>
186 PR tree-optimization/79256
188 * go-backend.c (go_field_alignment): Adjust.
190 2017-01-11 Than McIntosh <thanm@google.com>
192 * go-gcc.cc (conditional_expression): Add Bfunction parameter.
194 2017-01-01 Jakub Jelinek <jakub@redhat.com>
196 Update copyright years.
198 * gccgo.texi: Bump @copyrights-go year.
200 2016-12-16 Than McIntosh <thanm@google.com>
202 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
204 (Gcc_backend::init_statement): Likewise.
205 (Gcc_backend::assignment_statement): Likewise.
206 (Gcc_backend::if_statement): Likewise.
208 2016-12-06 Than McIntosh <thanm@google.com>
210 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
213 2016-11-22 Than McIntosh <thanm@google.com>
215 * go-gcc.cc (char_needs_encoding): Remove.
216 (needs_encoding, fetch_utf8_char, encode_id): Remove.
217 (Gcc_backend::global_variable): Add asm_name parameter. Don't
218 compute asm_name here.
219 (Gcc_backend::implicit_variable): Likewise.
220 (Gcc_backend::implicit_variable_reference): Likewise.
221 (Gcc_backend::immutable_struct): Likewise.
222 (Gcc_backend::immutable_struct_reference): Likewise.
223 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
225 2016-11-22 Ian Lance Taylor <iant@google.com>
227 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
228 __builtin_frame_address.
230 2016-10-25 David Malcolm <dmalcolm@redhat.com>
232 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
233 from result of GET_MODE_CLASS. Minor formatting fixes.
235 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
237 * go-backend.c: Include memmodel.h.
239 2016-10-10 Than McIntosh <thanm@google.com>
241 * go-gcc.h: New file.
242 * go-c.h (struct go_create_gogo_args): Add backend and linemap
244 * go-lang.c: Include "go-gcc.h".
245 (go_langhook_init): Set linemap and backend fields of args.
246 * go-gcc.cc: Include "go-gcc.h".
247 * go-linemap.cc: Include "go-gcc.h".
249 2016-10-10 Than McIntosh <thanm@google.com>
251 * go-linemap.cc (Gcc_linemap::location_line): New method.
253 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
255 * config-lang.in (lang_requires_boot_languages): Delete.
257 2016-10-06 Chris Manghane <cmang@google.com>
259 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
262 2016-09-27 Than McIntosh <thanm@google.com>
264 * go-linemap.cc (Gcc_linemap::to_string): New method.
266 2016-09-23 Than McIntosh <thanm@google.com>
268 * go-gcc-diagnostics.cc: New file.
269 * go-location.h (Location): Remove operator source_location. Add
271 * go-system.h: #include <sstream>.
272 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
273 go/go-gcc-diagnostics.o.
274 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
276 2016-09-23 Chris Manghane <cmang@google.com>
279 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
280 to pass arguments in the correct order.
282 2016-09-22 Ian Lance Taylor <iant@golang.org>
284 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
285 __builtin_frame_address.
287 2016-09-11 Ian Lance Taylor <iant@golang.org>
289 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
290 ctz, ctzll, bswap32, bswap64.
292 2016-09-10 Ian Lance Taylor <iant@golang.org>
294 * go-backend.c (go_trampoline_info): Remove.
295 * go-c.h (go_trampoline_info): Don't declare.
297 2016-09-09 Than McIntosh <thanm@google.com>
299 * go-sha1.cc: New file.
300 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
301 (CFLAGS-go/go-sha1.o): New variable.
303 2016-08-29 Ian Lance Taylor <iant@google.com>
305 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
306 * go-c.h (struct go_create_gogo_args): Define.
307 (go_create_gogo): Change declaration to take struct pointer.
308 * go-lang.c (go_c_header): New static variable.
309 (go_langhook_init): Update call to go_create_gogo.
310 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
311 -fgo-compiling-runtime.
313 2016-08-09 Ian Lance Taylor <iant@google.com>
315 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
317 (Compiler Directives): New chapter.
318 (Function Names): Describe using //go:linkname. Suggest using
319 -fgo-pkgpath rather than -fgo-prefix.
321 2016-08-08 Ian Lance Taylor <iant@google.com>
324 * go-gcc.cc (Gcc_backend::function_type): If the return type is
325 zero bytes, treat the function as returning void.
326 (return_statement): If the return type is zero bytes, don't
327 actually return any values.
329 2016-08-05 Ian Lance Taylor <iant@google.com>
332 * go-gcc.cc (char_needs_encoding): New static function.
333 (needs_encoding, fetch_utf8_char): New static functions.
334 (encode_id): New static function.
335 (Gcc_backend::global_variable): Set asm name if the name is not
337 (Gcc_backend::implicit_variable): Likewise.
338 (Gcc_backend::implicit_variable_reference): Likewise.
339 (Gcc_backend::immutable_struct): Likewise.
340 (Gcc_backend::immutable_struct_reference): Likewise.
341 (Gcc_backend::function): Likewise.
343 2016-08-02 Chris Manghane <cmang@google.com>
345 * lang.opt: Add -fgo-debug-escape option.
346 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
347 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
350 2016-05-06 Chris Manghane <cmang@google.com>
352 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
355 2016-04-29 Chris Manghane <cmang@google.com>
357 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
359 2016-04-18 Michael Matz <matz@suse.de>
361 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
363 2016-02-12 Jakub Jelinek <jakub@redhat.com>
365 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
366 neighbour -> neighbor.
367 * gccgo.texi: Likewise.
369 2016-01-27 Ian Lance Taylor <iant@google.com>
371 * go-lang.c (go_langhook_init_options_struct): Default to
372 -fkeep-gc-roots-live.
374 2016-01-04 Jakub Jelinek <jakub@redhat.com>
376 Update copyright years.
378 * gccgo.texi: Bump @copyrights-go year.
380 2015-12-21 Ian Lance Taylor <iant@google.com>
382 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
383 t_ and orig_type_ fields. Add new two parameter constructor. Add
384 get_tree and get_decl methods.
385 (Gcc_backend::var_expression): Pass location to var get_tree.
386 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
387 two parameter constructor for Bvariable.
388 (Gcc_backend::global_variable_set_init): Don't remove
389 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
390 (Gcc_backend::write_global_definitions): Likewise.
391 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
392 (Gcc_backend::block): Likewise.
393 (Gcc_backend::implicit_variable_set_init): Likewise.
394 (Gcc_backend::immutable_struct_set_init): Likewise.
395 (Gcc_backend::function_set_parameters): Likewise.
397 2015-12-21 Ian Lance Taylor <iant@google.com>
399 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
400 add a VIEW_CONVERT_EXPR to the tree.
401 (Gcc_backend::global_variable_set_init): Remove any
403 (Gcc_backend::write_global_definitions): Likewise.
405 2015-11-30 Ian Lance Taylor <iant@google.com>
408 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
409 TYPE_STRING_FLAG on a variant type.
411 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
413 * go-backend.c: Remove unused header files.
414 * go-gcc.cc: Likewise.
415 * go-lang.c: Likewise.
416 * gospec.c: Likewise.
418 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
420 * go-backend.c: Reorder #include's and remove duplicates.
421 * go-lang.c: Likewise.
423 2015-10-20 Alan Modra <amodra@gmail.com>
426 * gospec.c (saw_opt_m32): Rename to..
427 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
429 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
431 2015-10-01 Ian Lance Taylor <iant@google.com>
434 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
435 TARGET_CAN_SPLIT_STACK_64BIT is defined.
437 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
440 * gospec.c (lang_specific_driver): Set appropriate split stack
441 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
443 2015-09-10 Chris Manghane <cmang@google.com>
445 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
446 unrepresentable size.
448 2015-08-24 Marek Polacek <polacek@redhat.com>
450 PR tree-optimization/67284
451 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
452 Set TREE_THIS_VOLATILE.
453 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
454 Pass false to the rest of define_builtin calls.
456 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
458 * go-lang.c (go_langhook_init_options_struct): Don't set
460 (go_langhook_post_options): Set it here instead.
462 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
464 * gofrontend/backend.h: Fix double word typos.
465 * gofrontend/expressions.cc: Same.
468 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
470 * go-backend.c: Adjust includes.
471 * go-gcc.cc: Likewise.
472 * go-lang.c: Likewise.
474 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
476 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
478 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
480 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
481 * go-gcc.cc: Likewise.
482 * go-lang.c: Likewise.
483 * go-system.h: Likewise.
485 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
487 * go-backend.c : Adjust include files.
488 * go-gcc.cc : Likewise.
489 * go-lang.c : Likewise.
491 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
493 * go-gcc.cc (write_global_definitions): Remove call to
494 finalize_compilation_unit.
495 Remove Go specific debug generation.
496 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
497 (go_langhook_write_globals): Remove.
498 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
500 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
502 * go-backend.c: Adjust includes for restructured coretypes.h.
504 * go-gcc.cc: Likewise.
505 * go-lang.c: Likewise.
507 2015-04-30 Chris Manghane <cmang@google.com>
509 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
512 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
514 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
516 2015-04-17 Chris Manghane <cmang@google.com>
518 * Make-lang.in (GO_OBJS): Add go/escape.o.
520 2015-02-02 Ian Lance Taylor <iant@google.com>
524 * go-gcc.cc (Gcc_backend::type_size): Change return type to
526 (Gcc_backend::type_alignment): Likewise.
527 (Gcc_backend::type_field_alignment): Likewise.
528 (Gcc_backend::type_field_offset): Likewise.
529 (Gcc_backend::implicit_variable): Change alignment parameter type
532 2015-01-23 Ian Lance Taylor <iant@google.com>
535 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
538 * gccgo.texi (C Interoperability): Mention that people should use
541 2015-01-23 Ian Lance Taylor <iant@google.com>
544 * go-lang.c (go_langhook_init_options_struct): Set default
546 (go_langhook_post_options): If debug_info_level is still the
547 default, make sure write_symbols is set.
548 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
550 2015-01-16 Richard Henderson <rth@redhat.com>
552 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
553 (Gcc_backend::static_chain_variable): New method.
555 2015-01-09 Ian Lance Taylor <iant@google.com>
557 * config-lang.in (lang_dirs): Define.
559 2015-01-09 Michael Collison <michael.collison@linaro.org>
561 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
562 input.h, alias.h, symtab.h, options.h, fold-const.h,
563 wide-int.h, and inchash.h due to flattening of tree.h.
565 * go-backend.c: Ditto.
567 2015-01-07 Chris Manghane <cmang@google.com>
570 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
573 2015-01-06 Chris Manghane <cmang@google.com>
575 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
576 initialize zero-sized fields, just evaluate the values for side
579 2015-01-05 Jakub Jelinek <jakub@redhat.com>
581 Update copyright years.
583 * gccgo.texi: Bump @copyrights-go year.
585 2014-12-19 Chris Manghane <cmang@google.com>
587 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
588 construct arrays of zero-sized values.
590 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
592 * go-lang.c: Remove redundant enum from machine_mode.
594 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
596 * go-gcc.cc: Adjust include files.
598 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
600 * go-gcc.cc: Adjust include files.
603 2014-10-23 Ian Lance Taylor <iant@google.com>
605 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
606 mpc_t parameter instead of two mpfr_t parameters.
608 2014-09-15 Jakub Jelinek <jakub@redhat.com>
610 * Make-lang.in (check_go_parallelize): Change to just an upper bound
613 2014-09-03 Chris Manghane <cmang@google.com>
615 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
616 parameter. Add is_hidden parameter.
617 (Gcc_backend::implicit_variable_set_init): New method.
618 (Gcc_backend::implicit_variable_reference): New method.
620 2014-08-08 Ian Lance Taylor <iant@google.com>
622 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
625 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
627 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
628 symtab_get_node to symtab_node::get.
630 2014-06-13 Ian Lance Taylor <iant@google.com>
633 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
634 ld, add -t option to avoid warning about common symbol changing
637 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
639 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
640 symtab_get_node(var_decl)->implicit_section.
642 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
644 * go-gcc.cc (global_variable_set_init): Use
645 set_decl_section_name.
647 2014-06-04 Ian Lance Taylor <iant@google.com>
649 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
650 alignment parameters. Permit init parameter to be NULL.
652 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
654 * go-gcc.cc: Include builtins.h.
656 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
658 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
660 2014-05-06 Chris Manghane <cmang@google.com>
662 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
663 (Gcc_backend::boolean_constant_expression): New method.
664 (Gcc_backend::zero_expression): Use this->make_expression rather
666 (Gcc_backend::var_expression): Likewise.
667 (Gcc_backend::integer_constant_expression): Likewise.
668 (Gcc_backend::float_constant_expression): Likewise.
669 (Gcc_backend::complex_constant_expression): Likewise.
670 (Gcc_backend::struct_field_expression): Likewise.
671 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
672 (tree_to_function, tree_to_block): Remove functions.
673 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
674 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
676 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
677 Mike Stump <mikestump@comcast.net>
678 Richard Sandiford <rdsandiford@googlemail.com>
680 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
682 2014-05-06 Chris Manghane <cmang@google.com>
684 * go-c.h (go_create_gogo): Update declaration to add
685 check_divide_zero and check_divide_overflow parameters.
686 * go-lang.c (go_langhook_init): Pass new arguments to
689 2014-05-05 Chris Manghane <cmang@google.com>
691 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
692 gc_root_variable. Add name and is_constant parameters.
694 2014-05-05 Chris Manghane <cmang@google.com>
696 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
698 (Gcc_backend::temporary_variable): Check for erroneous function.
700 2014-04-30 Chris Manghane <cmang@google.com>
702 * go-backend.c: #include "diagnostics.h".
703 (saw_errors): New function.
704 * go-c.h (saw_errors): Declare.
705 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
707 2014-04-30 Chris Manghane <cmang@google.com>
709 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
710 calling into Go frontend.
711 (go_langhook_type_for_mode): Likewise.
712 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
714 2014-04-30 Chris Manghane <cmang@google.com>
716 * go-gcc.cc: #include "langhooks.h".
717 (Gcc_backend::Gcc_backend): Add constructor.
718 (Gcc_backend::lookup_function): New function.
719 (Gcc_backend::define_builtin): New private function.
720 (Gcc_backend::gcc_backend): Remove.
721 (go_get_backend): Use new to create new Gcc_backend.
723 2014-04-25 Chris Manghane <cmang@google.com>
725 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
726 (Gcc_backend::return_statement): Push and pop function.
727 (Gcc_backend::label): Likewise.
728 (Gcc_backend::function_defer_statement): Likewise.
729 (Gcc_backend::switch_statement): Add function parameter.
730 (Gcc_backend::block): Don't permit function to be NULL.
731 (Gcc_backend::temporary_variable): Change go_assert to
733 (Gcc_backend::gc_root_variable): New function.
734 (Gcc_backend::write_global_definitions): New function.
736 2014-04-22 Chris Manghane <cmang@google.com>
738 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
739 call to create_tmp_var. Require that function be non-NULL.
741 2014-04-17 Chris Manghane <cmang@google.com>
743 * go-gcc.cc (Gcc_backend::named_constant_expression): New
746 2014-04-14 Chris Manghane <cmang@google.com>
748 * go-gcc.cc: Include "convert.h".
749 (Gcc_backend::string_constant_expression): New function.
750 (Gcc_backend::real_part_expression): Likewise.
751 (Gcc_backend::imag_part_expression): Likewise.
752 (Gcc_backend::complex_expression): Likewise.
753 (Gcc_backend::constructor_expression): Likewise.
754 (Gcc_backend::array_constructor_expression): Likewise.
755 (Gcc_backend::pointer_offset_expression): Likewise.
756 (Gcc_backend::array_index_expression): Likewise.
757 (Gcc_backend::call_expression): Likewise.
758 (Gcc_backend::exception_handler_statement): Likewise.
759 (Gcc_backend::function_defer_statement): Likewise.
760 (Gcc_backend::function_set_parameters): Likewise.
761 (Gcc_backend::function_set_body): Likewise.
762 (Gcc_backend::convert_expression): Handle various type
765 2014-03-03 Ian Lance Taylor <iant@google.com>
767 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
769 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
772 2014-01-24 Chris Manghane <cmang@google.com>
774 * go-gcc.cc (Gcc_backend::unary_expression): New function.
776 2014-01-16 Chris Manghane <cmang@google.com>
778 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
780 (operator_to_tree_code): New static function.
781 (Gcc_backend::binary_expression): New function.
783 2014-01-14 Chris Manghane <cmang@google.com>
785 * go-gcc.cc (Gcc_backend::compound_expression): New function.
786 (Gcc_backend::conditional_expression): New function.
788 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
790 Update copyright years
792 2014-01-02 Tobias Burnus <burnus@net-b.de>
794 * gccgo.texi: Bump @copying's copyright year.
796 2013-12-16 Chris Manghane <cmang@google.com>
798 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
800 2013-12-11 Ian Lance Taylor <iant@google.com>
802 * go-lang.c (go_langhook_post_options): Disable sibling calls by
805 2013-12-10 Ian Lance Taylor <iant@google.com>
807 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
810 2013-12-05 Ian Lance Taylor <iant@google.com>
812 Revert this change; no longer required.
813 2013-11-06 Ian Lance Taylor <iant@google.com>
815 * go-lang.c (go_langhook_post_options): If
816 -fisolate-erroneous-paths was turned on by an optimization option,
819 2013-11-23 Ian Lance Taylor <iant@google.com>
821 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
824 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
826 * go-gcc.cc: Add required include files from gimple.h.
827 * go-lang.c: Likewise
829 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
831 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
832 tree_to_shwi throughout.
834 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
836 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
837 tree_fits_shwi_p throughout.
839 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
841 * go-lang.c: Include only gimplify.h and gimple.h as needed.
843 2013-11-14 Diego Novillo <dnovillo@google.com>
845 * go-backend.c: Include stor-layout.h.
846 * go-gcc.cc: Include stringpool.h.
847 Include stor-layout.h.
849 * go-lang.c: Include stor-layout.h.
851 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
853 * go-lang.c: Include gimplify.h.
855 2013-11-06 Ian Lance Taylor <iant@google.com>
857 * go-lang.c (go_langhook_post_options): If
858 -fisolate-erroneous-paths was turned on by an optimization option,
861 2013-10-14 Chris Manghane <cmang@google.com>
863 * go-gcc.cc (Gcc_backend::address_expression): New function.
865 2013-10-11 Chris Manghane <cmang@google.com>
867 * go-gcc.cc (Gcc_backend::function_code_expression): New
870 2013-10-10 Chris Manghane <cmang@google.com>
872 * go-gcc.cc (Gcc_backend::error_function): New function.
873 (Gcc_backend::function): New function.
874 (Gcc_backend::make_function): New function.
875 (function_to_tree): New function.
877 2013-10-04 Chris Manghane <cmang@google.com>
879 * go-gcc.cc (Gcc_backend::convert_expression): New function.
881 2013-10-02 Chris Manghane <cmang@google.com>
883 * go-gcc.cc: Include "real.h" and "realmpfr.h".
884 (Gcc_backend::integer_constant_expression): New function.
885 (Gcc_backend::float_constant_expression): New function.
886 (Gcc_backend::complex_constant_expression): New function.
888 2013-09-30 Chris Manghane <cmang@google.com>
890 * go-gcc.cc (Gcc_backend::error_expression): New function.
891 (Gcc_backend::var_expression): New function.
892 (Gcc_backend::indirect_expression): New function.
894 2013-09-25 Tom Tromey <tromey@redhat.com>
896 * Make-lang.in (gospec.o): Remove.
897 (CFLAGS-go/gospec.o): New variable.
898 (GCCGO_OBJS): Update to use go/gospec.o.
900 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
901 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
902 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
903 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
904 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
905 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
906 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
907 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
908 (go/unsafe.o): Remove.
909 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
910 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
912 2013-09-25 Tom Tromey <tromey@redhat.com>
914 * Make-lang.in (gospec.o): Don't use subshell.
916 2013-08-28 Ian Lance Taylor <iant@google.com>
918 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
919 the struct is not hidden.
920 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
922 2013-08-06 Ian Lance Taylor <iant@google.com>
924 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
925 compute_reloc_for_constant.
927 2013-08-02 Ian Lance Taylor <iant@google.com>
929 * go-gcc.cc (immutable_struct_set_init): Always call
930 resolve_unique_section.
932 2013-07-24 Ian Lance Taylor <iant@google.com>
934 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
935 fields, recreate those fields with the first one with a non-zero
938 2013-07-23 Ian Lance Taylor <iant@google.com>
940 * go-backend.c: Don't #include "rtl.h".
941 (go_imported_unsafe): Don't call init_varasm_once.
942 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
944 2013-07-23 Ian Lance Taylor <iant@google.com>
946 * go-lang.c: Don't #include "except.h".
947 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
949 2013-06-18 Ian Lance Taylor <iant@google.com>
951 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
953 (Gcc_backend::immutable_struct_set_init): Likewise.
955 2013-05-16 Jason Merrill <jason@redhat.com>
957 * Make-lang.in (go1$(exeext)): Use link mutex.
959 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
961 * gospec.c: pass -u pthread_create to linker when static linking.
963 2012-12-21 Ian Lance Taylor <iant@google.com>
966 * go-system.h: Don't include <cstdio>.
968 2012-12-18 Ian Lance Taylor <iant@google.com>
971 * gospec.c: Revert last patch.
973 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
976 * gospec.c (LIBATOMIC): Define.
977 (LIBATOMIC_PROFILE): Define.
978 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
980 2012-11-29 Ian Lance Taylor <iant@google.com>
982 * go-gcc.cc: Include "output.h".
983 (global_variable): Add is_unique_section parameter.
984 (global_variable_set_init): Adjust unique section if necessary.
985 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
987 2012-11-17 Diego Novillo <dnovillo@google.com>
989 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
991 * go-lang.c: Use new vec API in vec.h.
993 2012-11-16 Ian Lance Taylor <iant@google.com>
995 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
996 (go1$(exeext)): Likewise.
998 2012-10-30 Ian Lance Taylor <iant@google.com>
1000 * lang.opt (-fgo-relative-import-path): New option.
1001 * go-lang.c (go_relative_import_path): New static variable.
1002 (go_langhook_init): Pass go_relative_import_path to
1004 (go_langhook_handle_option): Handle -fgo-relative-import-path.
1005 * go-c.h (go_create_gogo): Update declaration.
1006 * gccgo.texi (Invoking gccgo): Document
1007 -fgo-relative-import-path.
1009 2012-09-17 Ian Lance Taylor <iant@google.com>
1011 * config-lang.in (target_libs): Add target-libbacktrace.
1013 2012-09-16 Ian Lance Taylor <iant@google.com>
1015 * Make-lang.in (go/gogo.o): Depend on filenames.h.
1017 2012-08-14 Diego Novillo <dnovillo@google.com>
1019 Merge from cxx-conversion branch. Configury.
1021 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1022 * go-gcc.cc: Likewise.
1023 * go-system.h: Likewise.
1025 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
1027 * go-lang.c (lang_decl): Add variable_size GTY option.
1029 2012-05-09 Ian Lance Taylor <iant@google.com>
1031 * lang.opt: Add -fgo-pkgpath.
1032 * go-lang.c (go_pkgpath): New static variable.
1033 (go_prefix): New static variable.
1034 (go_langhook_init): Pass go_pkgpath and go_prefix to
1036 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
1037 -fgo-prefix handling to just set go_prefix.
1038 * go-c.h (go_set_prefix): Don't declare.
1039 (go_create_gogo): Add pkgpath and prefix to declaration.
1040 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1041 to pkgpath. Don't include the package name in the asm name.
1042 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
1043 docs for -fgo-prefix.
1045 2012-04-23 Ian Lance Taylor <iant@google.com>
1047 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1049 2012-04-20 Ian Lance Taylor <iant@google.com>
1051 * lang.opt: Add -fgo-check-divide-zero and
1052 -fgo-check-divide-overflow.
1053 * gccgo.texi (Invoking gccgo): Document new options.
1055 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1057 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1058 with NULL_TREE type instead of void_type_node.
1060 2012-03-09 Ian Lance Taylor <iant@google.com>
1062 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1063 to the lhs type if necessary.
1065 2012-03-08 Ian Lance Taylor <iant@google.com>
1067 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1068 zero-sized variable.
1069 (go_non_zero_struct): New global variable.
1070 (Gcc_backend::non_zero_size_type): New function.
1071 (Gcc_backend::global_variable): Don't build an assignment for a
1073 * go-c.h (go_non_zero_struct): Declare.
1074 * config-lang.in (gtfiles): Add go-c.h.
1076 2012-02-29 Ian Lance Taylor <iant@google.com>
1078 * go-gcc.cc (class Gcc_tree): Add set_tree method.
1079 (set_placeholder_pointer_type): When setting to a pointer to
1080 error, set to error_mark_node.
1082 2012-02-23 Richard Guenther <rguenther@suse.de>
1084 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1085 build_distinct_type_copy.
1087 2012-02-17 Ian Lance Taylor <iant@google.com>
1089 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1091 2012-02-17 Ian Lance Taylor <iant@google.com>
1093 * gospec.c (lang_specific_driver): If linking, and no -o option
1096 2012-02-14 Ian Lance Taylor <iant@google.com>
1099 * Make-lang.in (gccgo-cross$(exeext)): New target.
1100 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1102 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1103 gccgo-cross$(exeext) does not exist.
1105 2012-02-07 Ian Lance Taylor <iant@google.com>
1107 * gccgo.texi (Function Names): Document //extern instead of
1110 2012-02-01 Jakub Jelinek <jakub@redhat.com>
1113 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1114 return build_nonstandard_integer_type result if possible.
1116 2012-01-21 Ian Lance Taylor <iant@google.com>
1118 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1119 (Gcc_backend::type_alignment): Likewise.
1120 (Gcc_backend::type_field_alignment): Likewise.
1121 (Gcc_backend::type_field_offset): Likewise.
1123 2012-01-20 Ian Lance Taylor <iant@google.com>
1125 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1127 (Gcc_backend::set_placeholder_struct_type): Likewise.
1129 2012-01-17 Ian Lance Taylor <iant@google.com>
1131 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1132 BASE.s rather than -o BASE.o.
1134 2012-01-11 Ian Lance Taylor <iant@google.com>
1136 * go-lang.c (go_langhook_init): Initialize void_list_node before
1137 calling go_create_gogo.
1139 2012-01-10 Ian Lance Taylor <iant@google.com>
1141 * go-gcc.cc (Gcc_backend::type_size): New function.
1142 (Gcc_backend::type_alignment): New function.
1143 (Gcc_backend::type_field_alignment): New function.
1144 (Gcc_backend::type_field_offset): New function.
1145 * go-backend.c (go_type_alignment): Remove.
1146 * go-c.h (go_type_alignment): Don't declare.
1148 2011-12-27 Ian Lance Taylor <iant@google.com>
1150 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1151 build_distinct_type_copy rather than build_variant_type_copy.
1152 (Gcc_backend::set_placeholder_array_type): Likewise.
1153 (Gcc_backend::named_type): Add special handling for builtin
1156 2011-12-22 Ian Lance Taylor <iant@google.com>
1158 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1159 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1160 (Gcc_backend::set_placeholder_struct_type): Likewise.
1161 (Gcc_backend::set_placeholder_array_type): Likewise.
1162 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1164 2011-12-13 Ian Lance Taylor <iant@google.com>
1166 * go-backend.c: #include "simple-object.h" and "intl.h".
1167 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1168 (GO_EXPORT_SECTION_NAME): Likewise.
1169 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1170 (go_read_export_data): New function.
1171 * go-c.h (go_read_export_data): Declare.
1173 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
1174 Ian Lance Taylor <iant@google.com>
1176 * go-location.h: New file.
1177 * go-linemap.cc: New file.
1178 * go-gcc.cc: Change all uses of source_location to Location.
1179 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1180 (GO_LINEMAP_H): New variable.
1181 (GO_LEX_H): Use $(GO_LINEMAP_H).
1182 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1183 (go/go-linemap.o): New target.
1185 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1187 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1189 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
1191 * lang.opt: Add fgo-optimize-.
1192 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1193 * go-c.h (go_enable_optimize): Declare.
1194 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1195 (GO_EXPORT_H): Define.
1196 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1197 (GO_AST_DUMP_H): Define.
1198 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1199 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1200 (go/types.o): Likewise.
1201 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1202 (go/go-optimize.o): New target.
1204 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1206 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1207 (go/go-lang.o): Remove explicit compilation rule.
1209 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1211 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1213 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1215 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1216 (go/ast-dump.o): New target.
1217 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1218 (go/statements.o): Likewise.
1220 2011-07-06 Richard Guenther <rguenther@suse.de>
1222 * go-lang.c (go_langhook_init):
1223 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1225 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1227 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1229 * go-backend.c: Include common/common-target.h.
1230 (go_write_export_data): Use targetm_common.have_named_sections.
1231 * go-lang.c: Include common/common-target.h.
1232 (go_langhook_init_options_struct): Use
1233 targetm_common.supports_split_stack.
1235 2011-06-13 Ian Lance Taylor <iant@google.com>
1237 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1239 2011-06-10 Ian Lance Taylor <iant@google.com>
1241 * go-gcc.cc: Include "toplev.h".
1242 (Gcc_backend::immutable_struct): New function.
1243 (Gcc_backend::immutable_struct_set_init): New function.
1244 (Gcc_backend::immutable_struct_reference): New function.
1245 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1247 2011-06-09 Ian Lance Taylor <iant@google.com>
1249 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1251 2011-06-07 Richard Guenther <rguenther@suse.de>
1253 * go-lang.c (go_langhook_init): Do not set
1254 size_type_node or call set_sizetype.
1256 2011-05-27 Ian Lance Taylor <iant@google.com>
1258 * go-backend.c: Include "output.h".
1259 (go_write_export_data): New function.
1260 * go-c.h (go_write_export_data): Declare.
1261 * Make-lang.in (go/go-backend.o): Depend on output.h.
1262 (go/export.o): Depend on $(GO_C_H). Do not depend on
1263 $(MACHMODE_H), output.h, or $(TARGET_H).
1265 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1267 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1268 (gccgo$(exeext)): Use libcommon-target.a.
1270 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1272 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1274 2011-05-13 Ian Lance Taylor <iant@google.com>
1276 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1277 for multiple results, check that all fields types have a size.
1278 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1280 2011-05-12 Ian Lance Taylor <iant@google.com>
1282 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1284 (Gcc_backend::parameter_variable): Likewise.
1286 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1288 * go-lang.c (global_bindings_p): Return bool and simplify.
1290 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1292 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1294 2011-05-04 Ian Lance Taylor <iant@google.com>
1296 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1297 (Gcc_backend::fill_in_struct): New function.
1298 (Gcc_backend::array_type): Implement.
1299 (Gcc_backend::fill_in_array): New function.
1300 (Gcc_backend::placeholder_pointer_type): New function.
1301 (Gcc_backend::set_placeholder_pointer_type): New function.
1302 (Gcc_backend::set_placeholder_function_type): New function.
1303 (Gcc_backend::placeholder_struct_type): New function.
1304 (Gcc_backend::set_placeholder_struct_type): New function.
1305 (Gcc_backend::placeholder_array_type): New function.
1306 (Gcc_backend::set_placeholder_array_type): New function.
1307 (Gcc_backend::named_type): New function.
1308 (Gcc_backend::circular_pointer_type): New function.
1309 (Gcc_backend::is_circular_pointer_type): New function.
1311 2011-04-26 Ian Lance Taylor <iant@google.com>
1313 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1315 2011-04-25 Ian Lance Taylor <iant@google.com>
1317 * go-gcc.cc (Gcc_backend::error_type): Implement.
1318 (Gcc_backend::string_type): Remove.
1319 (Gcc_backend::function_type): Change signature and implement.
1320 (Gcc_backend::struct_type): Change signature.
1321 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1322 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1323 (Gcc_backend::pointer_type): Check for error.
1324 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1326 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1328 * go-gcc.c (class Gcc_tree): Make get_tree const.
1329 (Gcc_backend::void_type): Implement.
1330 (Gcc_backend::bool_type): Implement.
1331 (Gcc_backend::integer_type): Implement.
1332 (Gcc_backend::float_type): Implement.
1333 (Gcc_backend::complex_type): New function.
1334 (Gcc_backend::pointer_type): New function.
1335 (Gcc_backend::make_type): New function.
1336 (type_to_tree): New function.
1338 2011-04-21 Ian Lance Taylor <iant@google.com>
1340 * go-system.h (go_assert, go_unreachable): Define.
1342 2011-04-19 Ian Lance Taylor <iant@google.com>
1344 * go-system.h: Include "intl.h".
1345 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1346 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1347 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1349 2011-04-19 Ian Lance Taylor <iant@google.com>
1351 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1353 2011-04-19 Ian Lance Taylor <iant@google.com>
1355 * go-gcc.cc (class Bblock): Define.
1356 (Gcc_backend::if_statement): Change then_block and else_block to
1358 (Gcc_backend::block): New function.
1359 (Gcc_backend::block_add_statements): New function.
1360 (Gcc_backend::block_statement): New function.
1361 (tree_to_block, block_to_tree): New functions.
1363 2011-04-18 Ian Lance Taylor <iant@google.com>
1365 * go-gcc.cc: Include "go-c.h".
1366 (class Bvariable): Define.
1367 (Gcc_backend::init_statement): New function.
1368 (Gcc_backend::global_variable): New function.
1369 (Gcc_backend::global_variable_set_init): New function.
1370 (Gcc_backend::local_variable): New function.
1371 (Gcc_backend::parameter_variable): New function.
1372 (tree_to_type, var_to_tree): New functions.
1373 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1374 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1376 2011-04-15 Ian Lance Taylor <iant@google.com>
1378 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1379 (Gcc_backend::assignment_statement): Use error_statement.
1380 (Gcc_backend::return_statement): Likewise.
1381 (Gcc_backend::if_statement): Likewise.
1382 (Gcc_backend::switch_statement): Likewise.
1383 (Gcc_backend::statement_list): Likewise.
1385 2011-04-14 Ian Lance Taylor <iant@google.com>
1387 * go-gcc.cc (Gcc_backend::error_statement): New function.
1389 2011-04-13 Ian Lance Taylor <iant@google.com>
1391 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1393 2011-04-13 Ian Lance Taylor <iant@google.com>
1395 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1396 (GO_RUNTIME_H): New variable.
1397 (go/runtime.o): New target.
1398 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1399 (go/statements.o): Likewise.
1401 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1403 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1406 2011-04-06 Ian Lance Taylor <iant@google.com>
1408 * go-gcc.cc (if_statement): Use build3_loc.
1409 (Gcc_backend::switch_statement): New function.
1410 (Gcc_backend::statement_list): New function.
1412 2011-04-06 Ian Lance Taylor <iant@google.com>
1414 * go-gcc.cc (Gcc_backend::if_statement): New function.
1415 (tree_to_stat): New function.
1416 (expr_to_tree): Renamed from expression_to_tree.
1417 (stat_to_tree): Renamed from statement_to_tree.
1419 2011-04-06 Ian Lance Taylor <iant@google.com>
1421 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1423 2011-04-04 Ian Lance Taylor <iant@google.com>
1425 * go-gcc.c (class Blabel): Define.
1426 (Gcc_backend::make_expression): New function.
1427 (get_identifier_from_string): New function.
1428 (Gcc_backend::label): New function.
1429 (Gcc_backend::label_definition_statement): New function.
1430 (Gcc_backend::goto_statement): New function.
1431 (Gcc_backend::label_address): New function.
1432 (expression_to_tree): New function.
1433 * Make-lang.in (go/expressions.o): Depend on
1434 go/gofrontend/backend.h.
1435 (go/gogo.o): Likewise.
1437 2011-04-04 Ian Lance Taylor <iant@google.com>
1439 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1440 (class Bfunction): Define.
1441 (Gcc_backend::assignment_statement): Rename from assignment.
1443 (Gcc_backend::return_statement): New function.
1444 (tree_to_function): New function.
1445 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1446 $(GIMPLE_H), and $(GO_GOGO_H).
1448 2011-04-03 Ian Lance Taylor <iant@google.com>
1450 * go-gcc.cc: New file.
1451 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1452 (go/go-gcc.o): New target.
1453 (go/go.o): Depend on go/gofrontend/backend.h.
1454 (go/statements.o): Likewise.
1456 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1458 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1460 2011-02-08 Ian Lance Taylor <iant@google.com>
1462 * go-lang.c (go_langhook_init_options_struct): Set
1463 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1465 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1467 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1468 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1470 2011-01-21 Ian Lance Taylor <iant@google.com>
1472 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1474 * go-c.h: Update declaration of go_create_gogo.
1476 2011-01-13 Ian Lance Taylor <iant@google.com>
1478 * go-backend.c: Include "rtl.h" and "target.h".
1479 (go_imported_unsafe): New function.
1480 * go-c.h (go_imported_unsafe): Declare.
1481 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1482 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1483 (go/unsafe.o): Depend on $(GO_C_H).
1485 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1488 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1491 2010-12-21 Ian Lance Taylor <iant@google.com>
1493 * Make-lang.in (check-go): Remove.
1494 (lang_checks_parallelized): Add check-go.
1495 (check_go_parallelize): Set.
1497 2010-12-13 Ian Lance Taylor <iant@google.com>
1499 * gospec.c (lang_specific_driver): Add a -o option if not linking
1500 and there is no -o option already.
1502 2010-12-07 Ian Lance Taylor <iant@google.com>
1504 PR tree-optimization/46805
1505 PR tree-optimization/46833
1506 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1508 2010-12-06 Ian Lance Taylor <iant@google.com>
1512 * go-lang.c (go_char_p): Define type and vectors.
1513 (go_search_dirs): New static variable.
1514 (go_langhook_handle_option): Use version and version/machine
1516 (go_langhook_post_options): Add non-specific -L paths.
1517 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1518 DEFAULT_TARGET_MACHINE when compiling.
1519 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1520 (Import and Export): Don't mention -L for finding import files.
1522 2010-12-03 Ian Lance Taylor <iant@google.com>
1525 * go-backend.c: New file.
1526 * go-c.h (go_type_alignment): Declare.
1527 (go_field_alignment, go_trampoline_info): Declare.
1528 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1529 (go/go-backend.o): New target.
1530 (go/go-lang.o): Make dependencies match source file.
1531 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1532 (go/gogo-tree.o): Don't depend on $(TM_H).
1534 2010-12-03 Ian Lance Taylor <iant@google.com>
1536 * config-lang.in (build_by_default): Set to no.
1538 2010-12-02 Ian Lance Taylor <iant@google.com>
1540 Go frontend added to gcc repository.
1542 Copyright (C) 2010-2018 Free Software Foundation, Inc.
1544 Copying and distribution of this file, with or without modification,
1545 are permitted in any medium without royalty provided the copyright
1546 notice and this notice are preserved.