1 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
3 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
5 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
10 * go-system.h: Likewise.
12 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
14 * go-backend.c : Adjust include files.
15 * go-gcc.cc : Likewise.
16 * go-lang.c : Likewise.
18 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
20 * go-gcc.cc (write_global_definitions): Remove call to
21 finalize_compilation_unit.
22 Remove Go specific debug generation.
23 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
24 (go_langhook_write_globals): Remove.
25 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
27 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
29 * go-backend.c: Adjust includes for restructured coretypes.h.
31 * go-gcc.cc: Likewise.
32 * go-lang.c: Likewise.
34 2015-04-30 Chris Manghane <cmang@google.com>
36 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
39 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
41 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
43 2015-04-17 Chris Manghane <cmang@google.com>
45 * Make-lang.in (GO_OBJS): Add go/escape.o.
47 2015-02-02 Ian Lance Taylor <iant@google.com>
51 * go-gcc.cc (Gcc_backend::type_size): Change return type to
53 (Gcc_backend::type_alignment): Likewise.
54 (Gcc_backend::type_field_alignment): Likewise.
55 (Gcc_backend::type_field_offset): Likewise.
56 (Gcc_backend::implicit_variable): Change alignment parameter type
59 2015-01-23 Ian Lance Taylor <iant@google.com>
62 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
65 * gccgo.texi (C Interoperability): Mention that people should use
68 2015-01-23 Ian Lance Taylor <iant@google.com>
71 * go-lang.c (go_langhook_init_options_struct): Set default
73 (go_langhook_post_options): If debug_info_level is still the
74 default, make sure write_symbols is set.
75 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
77 2015-01-16 Richard Henderson <rth@redhat.com>
79 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
80 (Gcc_backend::static_chain_variable): New method.
82 2015-01-09 Ian Lance Taylor <iant@google.com>
84 * config-lang.in (lang_dirs): Define.
86 2015-01-09 Michael Collison <michael.collison@linaro.org>
88 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
89 input.h, alias.h, symtab.h, options.h, fold-const.h,
90 wide-int.h, and inchash.h due to flattening of tree.h.
92 * go-backend.c: Ditto.
94 2015-01-07 Chris Manghane <cmang@google.com>
97 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
100 2015-01-06 Chris Manghane <cmang@google.com>
102 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
103 initialize zero-sized fields, just evaluate the values for side
106 2015-01-05 Jakub Jelinek <jakub@redhat.com>
108 Update copyright years.
110 * gccgo.texi: Bump @copyrights-go year.
112 2014-12-19 Chris Manghane <cmang@google.com>
114 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
115 construct arrays of zero-sized values.
117 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
119 * go-lang.c: Remove redundant enum from machine_mode.
121 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
123 * go-gcc.cc: Adjust include files.
125 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
127 * go-gcc.cc: Adjust include files.
130 2014-10-23 Ian Lance Taylor <iant@google.com>
132 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
133 mpc_t parameter instead of two mpfr_t parameters.
135 2014-09-15 Jakub Jelinek <jakub@redhat.com>
137 * Make-lang.in (check_go_parallelize): Change to just an upper bound
140 2014-09-03 Chris Manghane <cmang@google.com>
142 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
143 parameter. Add is_hidden parameter.
144 (Gcc_backend::implicit_variable_set_init): New method.
145 (Gcc_backend::implicit_variable_reference): New method.
147 2014-08-08 Ian Lance Taylor <iant@google.com>
149 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
152 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
154 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
155 symtab_get_node to symtab_node::get.
157 2014-06-13 Ian Lance Taylor <iant@google.com>
160 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
161 ld, add -t option to avoid warning about common symbol changing
164 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
166 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
167 symtab_get_node(var_decl)->implicit_section.
169 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
171 * go-gcc.cc (global_variable_set_init): Use
172 set_decl_section_name.
174 2014-06-04 Ian Lance Taylor <iant@google.com>
176 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
177 alignment parameters. Permit init parameter to be NULL.
179 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
181 * go-gcc.cc: Include builtins.h.
183 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
185 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
187 2014-05-06 Chris Manghane <cmang@google.com>
189 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
190 (Gcc_backend::boolean_constant_expression): New method.
191 (Gcc_backend::zero_expression): Use this->make_expression rather
193 (Gcc_backend::var_expression): Likewise.
194 (Gcc_backend::integer_constant_expression): Likewise.
195 (Gcc_backend::float_constant_expression): Likewise.
196 (Gcc_backend::complex_constant_expression): Likewise.
197 (Gcc_backend::struct_field_expression): Likewise.
198 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
199 (tree_to_function, tree_to_block): Remove functions.
200 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
201 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
203 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
204 Mike Stump <mikestump@comcast.net>
205 Richard Sandiford <rdsandiford@googlemail.com>
207 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
209 2014-05-06 Chris Manghane <cmang@google.com>
211 * go-c.h (go_create_gogo): Update declaration to add
212 check_divide_zero and check_divide_overflow parameters.
213 * go-lang.c (go_langhook_init): Pass new arguments to
216 2014-05-05 Chris Manghane <cmang@google.com>
218 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
219 gc_root_variable. Add name and is_constant parameters.
221 2014-05-05 Chris Manghane <cmang@google.com>
223 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
225 (Gcc_backend::temporary_variable): Check for erroneous function.
227 2014-04-30 Chris Manghane <cmang@google.com>
229 * go-backend.c: #include "diagnostics.h".
230 (saw_errors): New function.
231 * go-c.h (saw_errors): Declare.
232 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
234 2014-04-30 Chris Manghane <cmang@google.com>
236 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
237 calling into Go frontend.
238 (go_langhook_type_for_mode): Likewise.
239 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
241 2014-04-30 Chris Manghane <cmang@google.com>
243 * go-gcc.cc: #include "langhooks.h".
244 (Gcc_backend::Gcc_backend): Add constructor.
245 (Gcc_backend::lookup_function): New function.
246 (Gcc_backend::define_builtin): New private function.
247 (Gcc_backend::gcc_backend): Remove.
248 (go_get_backend): Use new to create new Gcc_backend.
250 2014-04-25 Chris Manghane <cmang@google.com>
252 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
253 (Gcc_backend::return_statement): Push and pop function.
254 (Gcc_backend::label): Likewise.
255 (Gcc_backend::function_defer_statement): Likewise.
256 (Gcc_backend::switch_statement): Add function parameter.
257 (Gcc_backend::block): Don't permit function to be NULL.
258 (Gcc_backend::temporary_variable): Change go_assert to
260 (Gcc_backend::gc_root_variable): New function.
261 (Gcc_backend::write_global_definitions): New function.
263 2014-04-22 Chris Manghane <cmang@google.com>
265 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
266 call to create_tmp_var. Require that function be non-NULL.
268 2014-04-17 Chris Manghane <cmang@google.com>
270 * go-gcc.cc (Gcc_backend::named_constant_expression): New
273 2014-04-14 Chris Manghane <cmang@google.com>
275 * go-gcc.cc: Include "convert.h".
276 (Gcc_backend::string_constant_expression): New function.
277 (Gcc_backend::real_part_expression): Likewise.
278 (Gcc_backend::imag_part_expression): Likewise.
279 (Gcc_backend::complex_expression): Likewise.
280 (Gcc_backend::constructor_expression): Likewise.
281 (Gcc_backend::array_constructor_expression): Likewise.
282 (Gcc_backend::pointer_offset_expression): Likewise.
283 (Gcc_backend::array_index_expression): Likewise.
284 (Gcc_backend::call_expression): Likewise.
285 (Gcc_backend::exception_handler_statement): Likewise.
286 (Gcc_backend::function_defer_statement): Likewise.
287 (Gcc_backend::function_set_parameters): Likewise.
288 (Gcc_backend::function_set_body): Likewise.
289 (Gcc_backend::convert_expression): Handle various type
292 2014-03-03 Ian Lance Taylor <iant@google.com>
294 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
296 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
299 2014-01-24 Chris Manghane <cmang@google.com>
301 * go-gcc.cc (Gcc_backend::unary_expression): New function.
303 2014-01-16 Chris Manghane <cmang@google.com>
305 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
307 (operator_to_tree_code): New static function.
308 (Gcc_backend::binary_expression): New function.
310 2014-01-14 Chris Manghane <cmang@google.com>
312 * go-gcc.cc (Gcc_backend::compound_expression): New function.
313 (Gcc_backend::conditional_expression): New function.
315 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
317 Update copyright years
319 2014-01-02 Tobias Burnus <burnus@net-b.de>
321 * gccgo.texi: Bump @copying's copyright year.
323 2013-12-16 Chris Manghane <cmang@google.com>
325 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
327 2013-12-11 Ian Lance Taylor <iant@google.com>
329 * go-lang.c (go_langhook_post_options): Disable sibling calls by
332 2013-12-10 Ian Lance Taylor <iant@google.com>
334 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
337 2013-12-05 Ian Lance Taylor <iant@google.com>
339 Revert this change; no longer required.
340 2013-11-06 Ian Lance Taylor <iant@google.com>
342 * go-lang.c (go_langhook_post_options): If
343 -fisolate-erroneous-paths was turned on by an optimization option,
346 2013-11-23 Ian Lance Taylor <iant@google.com>
348 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
351 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
353 * go-gcc.cc: Add required include files from gimple.h.
354 * go-lang.c: Likewise
356 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
358 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
359 tree_to_shwi throughout.
361 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
363 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
364 tree_fits_shwi_p throughout.
366 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
368 * go-lang.c: Include only gimplify.h and gimple.h as needed.
370 2013-11-14 Diego Novillo <dnovillo@google.com>
372 * go-backend.c: Include stor-layout.h.
373 * go-gcc.cc: Include stringpool.h.
374 Include stor-layout.h.
376 * go-lang.c: Include stor-layout.h.
378 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
380 * go-lang.c: Include gimplify.h.
382 2013-11-06 Ian Lance Taylor <iant@google.com>
384 * go-lang.c (go_langhook_post_options): If
385 -fisolate-erroneous-paths was turned on by an optimization option,
388 2013-10-14 Chris Manghane <cmang@google.com>
390 * go-gcc.cc (Gcc_backend::address_expression): New function.
392 2013-10-11 Chris Manghane <cmang@google.com>
394 * go-gcc.cc (Gcc_backend::function_code_expression): New
397 2013-10-10 Chris Manghane <cmang@google.com>
399 * go-gcc.cc (Gcc_backend::error_function): New function.
400 (Gcc_backend::function): New function.
401 (Gcc_backend::make_function): New function.
402 (function_to_tree): New function.
404 2013-10-04 Chris Manghane <cmang@google.com>
406 * go-gcc.cc (Gcc_backend::convert_expression): New function.
408 2013-10-02 Chris Manghane <cmang@google.com>
410 * go-gcc.cc: Include "real.h" and "realmpfr.h".
411 (Gcc_backend::integer_constant_expression): New function.
412 (Gcc_backend::float_constant_expression): New function.
413 (Gcc_backend::complex_constant_expression): New function.
415 2013-09-30 Chris Manghane <cmang@google.com>
417 * go-gcc.cc (Gcc_backend::error_expression): New function.
418 (Gcc_backend::var_expression): New function.
419 (Gcc_backend::indirect_expression): New function.
421 2013-09-25 Tom Tromey <tromey@redhat.com>
423 * Make-lang.in (gospec.o): Remove.
424 (CFLAGS-go/gospec.o): New variable.
425 (GCCGO_OBJS): Update to use go/gospec.o.
427 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
428 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
429 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
430 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
431 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
432 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
433 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
434 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
435 (go/unsafe.o): Remove.
436 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
437 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
439 2013-09-25 Tom Tromey <tromey@redhat.com>
441 * Make-lang.in (gospec.o): Don't use subshell.
443 2013-08-28 Ian Lance Taylor <iant@google.com>
445 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
446 the struct is not hidden.
447 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
449 2013-08-06 Ian Lance Taylor <iant@google.com>
451 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
452 compute_reloc_for_constant.
454 2013-08-02 Ian Lance Taylor <iant@google.com>
456 * go-gcc.cc (immutable_struct_set_init): Always call
457 resolve_unique_section.
459 2013-07-24 Ian Lance Taylor <iant@google.com>
461 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
462 fields, recreate those fields with the first one with a non-zero
465 2013-07-23 Ian Lance Taylor <iant@google.com>
467 * go-backend.c: Don't #include "rtl.h".
468 (go_imported_unsafe): Don't call init_varasm_once.
469 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
471 2013-07-23 Ian Lance Taylor <iant@google.com>
473 * go-lang.c: Don't #include "except.h".
474 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
476 2013-06-18 Ian Lance Taylor <iant@google.com>
478 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
480 (Gcc_backend::immutable_struct_set_init): Likewise.
482 2013-05-16 Jason Merrill <jason@redhat.com>
484 * Make-lang.in (go1$(exeext)): Use link mutex.
486 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
488 * gospec.c: pass -u pthread_create to linker when static linking.
490 2012-12-21 Ian Lance Taylor <iant@google.com>
493 * go-system.h: Don't include <cstdio>.
495 2012-12-18 Ian Lance Taylor <iant@google.com>
498 * gospec.c: Revert last patch.
500 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
503 * gospec.c (LIBATOMIC): Define.
504 (LIBATOMIC_PROFILE): Define.
505 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
507 2012-11-29 Ian Lance Taylor <iant@google.com>
509 * go-gcc.cc: Include "output.h".
510 (global_variable): Add is_unique_section parameter.
511 (global_variable_set_init): Adjust unique section if necessary.
512 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
514 2012-11-17 Diego Novillo <dnovillo@google.com>
516 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
518 * go-lang.c: Use new vec API in vec.h.
520 2012-11-16 Ian Lance Taylor <iant@google.com>
522 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
523 (go1$(exeext)): Likewise.
525 2012-10-30 Ian Lance Taylor <iant@google.com>
527 * lang.opt (-fgo-relative-import-path): New option.
528 * go-lang.c (go_relative_import_path): New static variable.
529 (go_langhook_init): Pass go_relative_import_path to
531 (go_langhook_handle_option): Handle -fgo-relative-import-path.
532 * go-c.h (go_create_gogo): Update declaration.
533 * gccgo.texi (Invoking gccgo): Document
534 -fgo-relative-import-path.
536 2012-09-17 Ian Lance Taylor <iant@google.com>
538 * config-lang.in (target_libs): Add target-libbacktrace.
540 2012-09-16 Ian Lance Taylor <iant@google.com>
542 * Make-lang.in (go/gogo.o): Depend on filenames.h.
544 2012-08-14 Diego Novillo <dnovillo@google.com>
546 Merge from cxx-conversion branch. Configury.
548 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
549 * go-gcc.cc: Likewise.
550 * go-system.h: Likewise.
552 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
554 * go-lang.c (lang_decl): Add variable_size GTY option.
556 2012-05-09 Ian Lance Taylor <iant@google.com>
558 * lang.opt: Add -fgo-pkgpath.
559 * go-lang.c (go_pkgpath): New static variable.
560 (go_prefix): New static variable.
561 (go_langhook_init): Pass go_pkgpath and go_prefix to
563 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
564 -fgo-prefix handling to just set go_prefix.
565 * go-c.h (go_set_prefix): Don't declare.
566 (go_create_gogo): Add pkgpath and prefix to declaration.
567 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
568 to pkgpath. Don't include the package name in the asm name.
569 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
570 docs for -fgo-prefix.
572 2012-04-23 Ian Lance Taylor <iant@google.com>
574 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
576 2012-04-20 Ian Lance Taylor <iant@google.com>
578 * lang.opt: Add -fgo-check-divide-zero and
579 -fgo-check-divide-overflow.
580 * gccgo.texi (Invoking gccgo): Document new options.
582 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
584 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
585 with NULL_TREE type instead of void_type_node.
587 2012-03-09 Ian Lance Taylor <iant@google.com>
589 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
590 to the lhs type if necessary.
592 2012-03-08 Ian Lance Taylor <iant@google.com>
594 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
596 (go_non_zero_struct): New global variable.
597 (Gcc_backend::non_zero_size_type): New function.
598 (Gcc_backend::global_variable): Don't build an assignment for a
600 * go-c.h (go_non_zero_struct): Declare.
601 * config-lang.in (gtfiles): Add go-c.h.
603 2012-02-29 Ian Lance Taylor <iant@google.com>
605 * go-gcc.cc (class Gcc_tree): Add set_tree method.
606 (set_placeholder_pointer_type): When setting to a pointer to
607 error, set to error_mark_node.
609 2012-02-23 Richard Guenther <rguenther@suse.de>
611 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
612 build_distinct_type_copy.
614 2012-02-17 Ian Lance Taylor <iant@google.com>
616 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
618 2012-02-17 Ian Lance Taylor <iant@google.com>
620 * gospec.c (lang_specific_driver): If linking, and no -o option
623 2012-02-14 Ian Lance Taylor <iant@google.com>
626 * Make-lang.in (gccgo-cross$(exeext)): New target.
627 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
629 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
630 gccgo-cross$(exeext) does not exist.
632 2012-02-07 Ian Lance Taylor <iant@google.com>
634 * gccgo.texi (Function Names): Document //extern instead of
637 2012-02-01 Jakub Jelinek <jakub@redhat.com>
640 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
641 return build_nonstandard_integer_type result if possible.
643 2012-01-21 Ian Lance Taylor <iant@google.com>
645 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
646 (Gcc_backend::type_alignment): Likewise.
647 (Gcc_backend::type_field_alignment): Likewise.
648 (Gcc_backend::type_field_offset): Likewise.
650 2012-01-20 Ian Lance Taylor <iant@google.com>
652 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
654 (Gcc_backend::set_placeholder_struct_type): Likewise.
656 2012-01-17 Ian Lance Taylor <iant@google.com>
658 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
659 BASE.s rather than -o BASE.o.
661 2012-01-11 Ian Lance Taylor <iant@google.com>
663 * go-lang.c (go_langhook_init): Initialize void_list_node before
664 calling go_create_gogo.
666 2012-01-10 Ian Lance Taylor <iant@google.com>
668 * go-gcc.cc (Gcc_backend::type_size): New function.
669 (Gcc_backend::type_alignment): New function.
670 (Gcc_backend::type_field_alignment): New function.
671 (Gcc_backend::type_field_offset): New function.
672 * go-backend.c (go_type_alignment): Remove.
673 * go-c.h (go_type_alignment): Don't declare.
675 2011-12-27 Ian Lance Taylor <iant@google.com>
677 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
678 build_distinct_type_copy rather than build_variant_type_copy.
679 (Gcc_backend::set_placeholder_array_type): Likewise.
680 (Gcc_backend::named_type): Add special handling for builtin
683 2011-12-22 Ian Lance Taylor <iant@google.com>
685 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
686 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
687 (Gcc_backend::set_placeholder_struct_type): Likewise.
688 (Gcc_backend::set_placeholder_array_type): Likewise.
689 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
691 2011-12-13 Ian Lance Taylor <iant@google.com>
693 * go-backend.c: #include "simple-object.h" and "intl.h".
694 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
695 (GO_EXPORT_SECTION_NAME): Likewise.
696 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
697 (go_read_export_data): New function.
698 * go-c.h (go_read_export_data): Declare.
700 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
701 Ian Lance Taylor <iant@google.com>
703 * go-location.h: New file.
704 * go-linemap.cc: New file.
705 * go-gcc.cc: Change all uses of source_location to Location.
706 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
707 (GO_LINEMAP_H): New variable.
708 (GO_LEX_H): Use $(GO_LINEMAP_H).
709 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
710 (go/go-linemap.o): New target.
712 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
714 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
716 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
718 * lang.opt: Add fgo-optimize-.
719 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
720 * go-c.h (go_enable_optimize): Declare.
721 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
722 (GO_EXPORT_H): Define.
723 (GO_IMPORT_H): Add $(GO_EXPORT_H).
724 (GO_AST_DUMP_H): Define.
725 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
726 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
727 (go/types.o): Likewise.
728 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
729 (go/go-optimize.o): New target.
731 2011-08-24 Joseph Myers <joseph@codesourcery.com>
733 * Make-lang.in (CFLAGS-go/go-lang.o): New.
734 (go/go-lang.o): Remove explicit compilation rule.
736 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
738 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
740 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
742 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
743 (go/ast-dump.o): New target.
744 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
745 (go/statements.o): Likewise.
747 2011-07-06 Richard Guenther <rguenther@suse.de>
749 * go-lang.c (go_langhook_init):
750 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
752 2011-06-14 Joseph Myers <joseph@codesourcery.com>
754 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
756 * go-backend.c: Include common/common-target.h.
757 (go_write_export_data): Use targetm_common.have_named_sections.
758 * go-lang.c: Include common/common-target.h.
759 (go_langhook_init_options_struct): Use
760 targetm_common.supports_split_stack.
762 2011-06-13 Ian Lance Taylor <iant@google.com>
764 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
766 2011-06-10 Ian Lance Taylor <iant@google.com>
768 * go-gcc.cc: Include "toplev.h".
769 (Gcc_backend::immutable_struct): New function.
770 (Gcc_backend::immutable_struct_set_init): New function.
771 (Gcc_backend::immutable_struct_reference): New function.
772 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
774 2011-06-09 Ian Lance Taylor <iant@google.com>
776 * go-gcc.cc (Gcc_backend::zero_expression): New function.
778 2011-06-07 Richard Guenther <rguenther@suse.de>
780 * go-lang.c (go_langhook_init): Do not set
781 size_type_node or call set_sizetype.
783 2011-05-27 Ian Lance Taylor <iant@google.com>
785 * go-backend.c: Include "output.h".
786 (go_write_export_data): New function.
787 * go-c.h (go_write_export_data): Declare.
788 * Make-lang.in (go/go-backend.o): Depend on output.h.
789 (go/export.o): Depend on $(GO_C_H). Do not depend on
790 $(MACHMODE_H), output.h, or $(TARGET_H).
792 2011-05-24 Joseph Myers <joseph@codesourcery.com>
794 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
795 (gccgo$(exeext)): Use libcommon-target.a.
797 2011-05-20 Joseph Myers <joseph@codesourcery.com>
799 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
801 2011-05-13 Ian Lance Taylor <iant@google.com>
803 * go-gcc.cc (Gcc_backend::function_type): When building a struct
804 for multiple results, check that all fields types have a size.
805 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
807 2011-05-12 Ian Lance Taylor <iant@google.com>
809 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
811 (Gcc_backend::parameter_variable): Likewise.
813 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
815 * go-lang.c (global_bindings_p): Return bool and simplify.
817 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
819 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
821 2011-05-04 Ian Lance Taylor <iant@google.com>
823 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
824 (Gcc_backend::fill_in_struct): New function.
825 (Gcc_backend::array_type): Implement.
826 (Gcc_backend::fill_in_array): New function.
827 (Gcc_backend::placeholder_pointer_type): New function.
828 (Gcc_backend::set_placeholder_pointer_type): New function.
829 (Gcc_backend::set_placeholder_function_type): New function.
830 (Gcc_backend::placeholder_struct_type): New function.
831 (Gcc_backend::set_placeholder_struct_type): New function.
832 (Gcc_backend::placeholder_array_type): New function.
833 (Gcc_backend::set_placeholder_array_type): New function.
834 (Gcc_backend::named_type): New function.
835 (Gcc_backend::circular_pointer_type): New function.
836 (Gcc_backend::is_circular_pointer_type): New function.
838 2011-04-26 Ian Lance Taylor <iant@google.com>
840 * go-gcc.cc (Gcc_backend::struct_type): Implement.
842 2011-04-25 Ian Lance Taylor <iant@google.com>
844 * go-gcc.cc (Gcc_backend::error_type): Implement.
845 (Gcc_backend::string_type): Remove.
846 (Gcc_backend::function_type): Change signature and implement.
847 (Gcc_backend::struct_type): Change signature.
848 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
849 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
850 (Gcc_backend::pointer_type): Check for error.
851 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
853 2011-04-25 Evan Shaw <edsrzf@gmail.com>
855 * go-gcc.c (class Gcc_tree): Make get_tree const.
856 (Gcc_backend::void_type): Implement.
857 (Gcc_backend::bool_type): Implement.
858 (Gcc_backend::integer_type): Implement.
859 (Gcc_backend::float_type): Implement.
860 (Gcc_backend::complex_type): New function.
861 (Gcc_backend::pointer_type): New function.
862 (Gcc_backend::make_type): New function.
863 (type_to_tree): New function.
865 2011-04-21 Ian Lance Taylor <iant@google.com>
867 * go-system.h (go_assert, go_unreachable): Define.
869 2011-04-19 Ian Lance Taylor <iant@google.com>
871 * go-system.h: Include "intl.h".
872 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
873 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
874 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
876 2011-04-19 Ian Lance Taylor <iant@google.com>
878 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
880 2011-04-19 Ian Lance Taylor <iant@google.com>
882 * go-gcc.cc (class Bblock): Define.
883 (Gcc_backend::if_statement): Change then_block and else_block to
885 (Gcc_backend::block): New function.
886 (Gcc_backend::block_add_statements): New function.
887 (Gcc_backend::block_statement): New function.
888 (tree_to_block, block_to_tree): New functions.
890 2011-04-18 Ian Lance Taylor <iant@google.com>
892 * go-gcc.cc: Include "go-c.h".
893 (class Bvariable): Define.
894 (Gcc_backend::init_statement): New function.
895 (Gcc_backend::global_variable): New function.
896 (Gcc_backend::global_variable_set_init): New function.
897 (Gcc_backend::local_variable): New function.
898 (Gcc_backend::parameter_variable): New function.
899 (tree_to_type, var_to_tree): New functions.
900 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
901 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
903 2011-04-15 Ian Lance Taylor <iant@google.com>
905 * go-gcc.cc (Gcc_backend::compound_statement): New function.
906 (Gcc_backend::assignment_statement): Use error_statement.
907 (Gcc_backend::return_statement): Likewise.
908 (Gcc_backend::if_statement): Likewise.
909 (Gcc_backend::switch_statement): Likewise.
910 (Gcc_backend::statement_list): Likewise.
912 2011-04-14 Ian Lance Taylor <iant@google.com>
914 * go-gcc.cc (Gcc_backend::error_statement): New function.
916 2011-04-13 Ian Lance Taylor <iant@google.com>
918 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
920 2011-04-13 Ian Lance Taylor <iant@google.com>
922 * Make-lang.in (GO_OBJS): Add go/runtime.o.
923 (GO_RUNTIME_H): New variable.
924 (go/runtime.o): New target.
925 (go/gogo.o): Depend on $(GO_RUNTIME_H).
926 (go/statements.o): Likewise.
928 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
930 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
933 2011-04-06 Ian Lance Taylor <iant@google.com>
935 * go-gcc.cc (if_statement): Use build3_loc.
936 (Gcc_backend::switch_statement): New function.
937 (Gcc_backend::statement_list): New function.
939 2011-04-06 Ian Lance Taylor <iant@google.com>
941 * go-gcc.cc (Gcc_backend::if_statement): New function.
942 (tree_to_stat): New function.
943 (expr_to_tree): Renamed from expression_to_tree.
944 (stat_to_tree): Renamed from statement_to_tree.
946 2011-04-06 Ian Lance Taylor <iant@google.com>
948 * go-gcc.cc (Gcc_backend::expression_statement): New function.
950 2011-04-04 Ian Lance Taylor <iant@google.com>
952 * go-gcc.c (class Blabel): Define.
953 (Gcc_backend::make_expression): New function.
954 (get_identifier_from_string): New function.
955 (Gcc_backend::label): New function.
956 (Gcc_backend::label_definition_statement): New function.
957 (Gcc_backend::goto_statement): New function.
958 (Gcc_backend::label_address): New function.
959 (expression_to_tree): New function.
960 * Make-lang.in (go/expressions.o): Depend on
961 go/gofrontend/backend.h.
962 (go/gogo.o): Likewise.
964 2011-04-04 Ian Lance Taylor <iant@google.com>
966 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
967 (class Bfunction): Define.
968 (Gcc_backend::assignment_statement): Rename from assignment.
970 (Gcc_backend::return_statement): New function.
971 (tree_to_function): New function.
972 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
973 $(GIMPLE_H), and $(GO_GOGO_H).
975 2011-04-03 Ian Lance Taylor <iant@google.com>
977 * go-gcc.cc: New file.
978 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
979 (go/go-gcc.o): New target.
980 (go/go.o): Depend on go/gofrontend/backend.h.
981 (go/statements.o): Likewise.
983 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
985 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
987 2011-02-08 Ian Lance Taylor <iant@google.com>
989 * go-lang.c (go_langhook_init_options_struct): Set
990 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
992 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
994 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
995 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
997 2011-01-21 Ian Lance Taylor <iant@google.com>
999 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1001 * go-c.h: Update declaration of go_create_gogo.
1003 2011-01-13 Ian Lance Taylor <iant@google.com>
1005 * go-backend.c: Include "rtl.h" and "target.h".
1006 (go_imported_unsafe): New function.
1007 * go-c.h (go_imported_unsafe): Declare.
1008 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1009 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1010 (go/unsafe.o): Depend on $(GO_C_H).
1012 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1015 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1018 2010-12-21 Ian Lance Taylor <iant@google.com>
1020 * Make-lang.in (check-go): Remove.
1021 (lang_checks_parallelized): Add check-go.
1022 (check_go_parallelize): Set.
1024 2010-12-13 Ian Lance Taylor <iant@google.com>
1026 * gospec.c (lang_specific_driver): Add a -o option if not linking
1027 and there is no -o option already.
1029 2010-12-07 Ian Lance Taylor <iant@google.com>
1031 PR tree-optimization/46805
1032 PR tree-optimization/46833
1033 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1035 2010-12-06 Ian Lance Taylor <iant@google.com>
1039 * go-lang.c (go_char_p): Define type and vectors.
1040 (go_search_dirs): New static variable.
1041 (go_langhook_handle_option): Use version and version/machine
1043 (go_langhook_post_options): Add non-specific -L paths.
1044 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1045 DEFAULT_TARGET_MACHINE when compiling.
1046 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1047 (Import and Export): Don't mention -L for finding import files.
1049 2010-12-03 Ian Lance Taylor <iant@google.com>
1052 * go-backend.c: New file.
1053 * go-c.h (go_type_alignment): Declare.
1054 (go_field_alignment, go_trampoline_info): Declare.
1055 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1056 (go/go-backend.o): New target.
1057 (go/go-lang.o): Make dependencies match source file.
1058 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1059 (go/gogo-tree.o): Don't depend on $(TM_H).
1061 2010-12-03 Ian Lance Taylor <iant@google.com>
1063 * config-lang.in (build_by_default): Set to no.
1065 2010-12-02 Ian Lance Taylor <iant@google.com>
1067 Go frontend added to gcc repository.
1069 Copyright (C) 2010-2015 Free Software Foundation, Inc.
1071 Copying and distribution of this file, with or without modification,
1072 are permitted in any medium without royalty provided the copyright
1073 notice and this notice are preserved.