1 2015-04-22 Release Manager
5 2015-02-02 Ian Lance Taylor <iant@google.com>
9 * go-gcc.cc (Gcc_backend::type_size): Change return type to
11 (Gcc_backend::type_alignment): Likewise.
12 (Gcc_backend::type_field_alignment): Likewise.
13 (Gcc_backend::type_field_offset): Likewise.
14 (Gcc_backend::implicit_variable): Change alignment parameter type
17 2015-01-23 Ian Lance Taylor <iant@google.com>
20 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
23 * gccgo.texi (C Interoperability): Mention that people should use
26 2015-01-23 Ian Lance Taylor <iant@google.com>
29 * go-lang.c (go_langhook_init_options_struct): Set default
31 (go_langhook_post_options): If debug_info_level is still the
32 default, make sure write_symbols is set.
33 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
35 2015-01-16 Richard Henderson <rth@redhat.com>
37 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
38 (Gcc_backend::static_chain_variable): New method.
40 2015-01-09 Ian Lance Taylor <iant@google.com>
42 * config-lang.in (lang_dirs): Define.
44 2015-01-09 Michael Collison <michael.collison@linaro.org>
46 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
47 input.h, alias.h, symtab.h, options.h, fold-const.h,
48 wide-int.h, and inchash.h due to flattening of tree.h.
50 * go-backend.c: Ditto.
52 2015-01-07 Chris Manghane <cmang@google.com>
55 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
58 2015-01-06 Chris Manghane <cmang@google.com>
60 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
61 initialize zero-sized fields, just evaluate the values for side
64 2015-01-05 Jakub Jelinek <jakub@redhat.com>
66 Update copyright years.
68 * gccgo.texi: Bump @copyrights-go year.
70 2014-12-19 Chris Manghane <cmang@google.com>
72 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
73 construct arrays of zero-sized values.
75 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
77 * go-lang.c: Remove redundant enum from machine_mode.
79 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
81 * go-gcc.cc: Adjust include files.
83 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
85 * go-gcc.cc: Adjust include files.
88 2014-10-23 Ian Lance Taylor <iant@google.com>
90 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
91 mpc_t parameter instead of two mpfr_t parameters.
93 2014-09-15 Jakub Jelinek <jakub@redhat.com>
95 * Make-lang.in (check_go_parallelize): Change to just an upper bound
98 2014-09-03 Chris Manghane <cmang@google.com>
100 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
101 parameter. Add is_hidden parameter.
102 (Gcc_backend::implicit_variable_set_init): New method.
103 (Gcc_backend::implicit_variable_reference): New method.
105 2014-08-08 Ian Lance Taylor <iant@google.com>
107 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
110 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
112 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
113 symtab_get_node to symtab_node::get.
115 2014-06-13 Ian Lance Taylor <iant@google.com>
118 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
119 ld, add -t option to avoid warning about common symbol changing
122 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
124 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
125 symtab_get_node(var_decl)->implicit_section.
127 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
129 * go-gcc.cc (global_variable_set_init): Use
130 set_decl_section_name.
132 2014-06-04 Ian Lance Taylor <iant@google.com>
134 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
135 alignment parameters. Permit init parameter to be NULL.
137 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
139 * go-gcc.cc: Include builtins.h.
141 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
143 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
145 2014-05-06 Chris Manghane <cmang@google.com>
147 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
148 (Gcc_backend::boolean_constant_expression): New method.
149 (Gcc_backend::zero_expression): Use this->make_expression rather
151 (Gcc_backend::var_expression): Likewise.
152 (Gcc_backend::integer_constant_expression): Likewise.
153 (Gcc_backend::float_constant_expression): Likewise.
154 (Gcc_backend::complex_constant_expression): Likewise.
155 (Gcc_backend::struct_field_expression): Likewise.
156 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
157 (tree_to_function, tree_to_block): Remove functions.
158 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
159 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
161 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
162 Mike Stump <mikestump@comcast.net>
163 Richard Sandiford <rdsandiford@googlemail.com>
165 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
167 2014-05-06 Chris Manghane <cmang@google.com>
169 * go-c.h (go_create_gogo): Update declaration to add
170 check_divide_zero and check_divide_overflow parameters.
171 * go-lang.c (go_langhook_init): Pass new arguments to
174 2014-05-05 Chris Manghane <cmang@google.com>
176 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
177 gc_root_variable. Add name and is_constant parameters.
179 2014-05-05 Chris Manghane <cmang@google.com>
181 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
183 (Gcc_backend::temporary_variable): Check for erroneous function.
185 2014-04-30 Chris Manghane <cmang@google.com>
187 * go-backend.c: #include "diagnostics.h".
188 (saw_errors): New function.
189 * go-c.h (saw_errors): Declare.
190 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
192 2014-04-30 Chris Manghane <cmang@google.com>
194 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
195 calling into Go frontend.
196 (go_langhook_type_for_mode): Likewise.
197 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
199 2014-04-30 Chris Manghane <cmang@google.com>
201 * go-gcc.cc: #include "langhooks.h".
202 (Gcc_backend::Gcc_backend): Add constructor.
203 (Gcc_backend::lookup_function): New function.
204 (Gcc_backend::define_builtin): New private function.
205 (Gcc_backend::gcc_backend): Remove.
206 (go_get_backend): Use new to create new Gcc_backend.
208 2014-04-25 Chris Manghane <cmang@google.com>
210 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
211 (Gcc_backend::return_statement): Push and pop function.
212 (Gcc_backend::label): Likewise.
213 (Gcc_backend::function_defer_statement): Likewise.
214 (Gcc_backend::switch_statement): Add function parameter.
215 (Gcc_backend::block): Don't permit function to be NULL.
216 (Gcc_backend::temporary_variable): Change go_assert to
218 (Gcc_backend::gc_root_variable): New function.
219 (Gcc_backend::write_global_definitions): New function.
221 2014-04-22 Chris Manghane <cmang@google.com>
223 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
224 call to create_tmp_var. Require that function be non-NULL.
226 2014-04-17 Chris Manghane <cmang@google.com>
228 * go-gcc.cc (Gcc_backend::named_constant_expression): New
231 2014-04-14 Chris Manghane <cmang@google.com>
233 * go-gcc.cc: Include "convert.h".
234 (Gcc_backend::string_constant_expression): New function.
235 (Gcc_backend::real_part_expression): Likewise.
236 (Gcc_backend::imag_part_expression): Likewise.
237 (Gcc_backend::complex_expression): Likewise.
238 (Gcc_backend::constructor_expression): Likewise.
239 (Gcc_backend::array_constructor_expression): Likewise.
240 (Gcc_backend::pointer_offset_expression): Likewise.
241 (Gcc_backend::array_index_expression): Likewise.
242 (Gcc_backend::call_expression): Likewise.
243 (Gcc_backend::exception_handler_statement): Likewise.
244 (Gcc_backend::function_defer_statement): Likewise.
245 (Gcc_backend::function_set_parameters): Likewise.
246 (Gcc_backend::function_set_body): Likewise.
247 (Gcc_backend::convert_expression): Handle various type
250 2014-03-03 Ian Lance Taylor <iant@google.com>
252 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
254 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
257 2014-01-24 Chris Manghane <cmang@google.com>
259 * go-gcc.cc (Gcc_backend::unary_expression): New function.
261 2014-01-16 Chris Manghane <cmang@google.com>
263 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
265 (operator_to_tree_code): New static function.
266 (Gcc_backend::binary_expression): New function.
268 2014-01-14 Chris Manghane <cmang@google.com>
270 * go-gcc.cc (Gcc_backend::compound_expression): New function.
271 (Gcc_backend::conditional_expression): New function.
273 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
275 Update copyright years
277 2014-01-02 Tobias Burnus <burnus@net-b.de>
279 * gccgo.texi: Bump @copying's copyright year.
281 2013-12-16 Chris Manghane <cmang@google.com>
283 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
285 2013-12-11 Ian Lance Taylor <iant@google.com>
287 * go-lang.c (go_langhook_post_options): Disable sibling calls by
290 2013-12-10 Ian Lance Taylor <iant@google.com>
292 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
295 2013-12-05 Ian Lance Taylor <iant@google.com>
297 Revert this change; no longer required.
298 2013-11-06 Ian Lance Taylor <iant@google.com>
300 * go-lang.c (go_langhook_post_options): If
301 -fisolate-erroneous-paths was turned on by an optimization option,
304 2013-11-23 Ian Lance Taylor <iant@google.com>
306 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
309 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
311 * go-gcc.cc: Add required include files from gimple.h.
312 * go-lang.c: Likewise
314 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
316 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
317 tree_to_shwi throughout.
319 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
321 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
322 tree_fits_shwi_p throughout.
324 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
326 * go-lang.c: Include only gimplify.h and gimple.h as needed.
328 2013-11-14 Diego Novillo <dnovillo@google.com>
330 * go-backend.c: Include stor-layout.h.
331 * go-gcc.cc: Include stringpool.h.
332 Include stor-layout.h.
334 * go-lang.c: Include stor-layout.h.
336 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
338 * go-lang.c: Include gimplify.h.
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-10-14 Chris Manghane <cmang@google.com>
348 * go-gcc.cc (Gcc_backend::address_expression): New function.
350 2013-10-11 Chris Manghane <cmang@google.com>
352 * go-gcc.cc (Gcc_backend::function_code_expression): New
355 2013-10-10 Chris Manghane <cmang@google.com>
357 * go-gcc.cc (Gcc_backend::error_function): New function.
358 (Gcc_backend::function): New function.
359 (Gcc_backend::make_function): New function.
360 (function_to_tree): New function.
362 2013-10-04 Chris Manghane <cmang@google.com>
364 * go-gcc.cc (Gcc_backend::convert_expression): New function.
366 2013-10-02 Chris Manghane <cmang@google.com>
368 * go-gcc.cc: Include "real.h" and "realmpfr.h".
369 (Gcc_backend::integer_constant_expression): New function.
370 (Gcc_backend::float_constant_expression): New function.
371 (Gcc_backend::complex_constant_expression): New function.
373 2013-09-30 Chris Manghane <cmang@google.com>
375 * go-gcc.cc (Gcc_backend::error_expression): New function.
376 (Gcc_backend::var_expression): New function.
377 (Gcc_backend::indirect_expression): New function.
379 2013-09-25 Tom Tromey <tromey@redhat.com>
381 * Make-lang.in (gospec.o): Remove.
382 (CFLAGS-go/gospec.o): New variable.
383 (GCCGO_OBJS): Update to use go/gospec.o.
385 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
386 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
387 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
388 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
389 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
390 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
391 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
392 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
393 (go/unsafe.o): Remove.
394 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
395 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
397 2013-09-25 Tom Tromey <tromey@redhat.com>
399 * Make-lang.in (gospec.o): Don't use subshell.
401 2013-08-28 Ian Lance Taylor <iant@google.com>
403 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
404 the struct is not hidden.
405 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
407 2013-08-06 Ian Lance Taylor <iant@google.com>
409 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
410 compute_reloc_for_constant.
412 2013-08-02 Ian Lance Taylor <iant@google.com>
414 * go-gcc.cc (immutable_struct_set_init): Always call
415 resolve_unique_section.
417 2013-07-24 Ian Lance Taylor <iant@google.com>
419 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
420 fields, recreate those fields with the first one with a non-zero
423 2013-07-23 Ian Lance Taylor <iant@google.com>
425 * go-backend.c: Don't #include "rtl.h".
426 (go_imported_unsafe): Don't call init_varasm_once.
427 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
429 2013-07-23 Ian Lance Taylor <iant@google.com>
431 * go-lang.c: Don't #include "except.h".
432 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
434 2013-06-18 Ian Lance Taylor <iant@google.com>
436 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
438 (Gcc_backend::immutable_struct_set_init): Likewise.
440 2013-05-16 Jason Merrill <jason@redhat.com>
442 * Make-lang.in (go1$(exeext)): Use link mutex.
444 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
446 * gospec.c: pass -u pthread_create to linker when static linking.
448 2012-12-21 Ian Lance Taylor <iant@google.com>
451 * go-system.h: Don't include <cstdio>.
453 2012-12-18 Ian Lance Taylor <iant@google.com>
456 * gospec.c: Revert last patch.
458 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
461 * gospec.c (LIBATOMIC): Define.
462 (LIBATOMIC_PROFILE): Define.
463 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
465 2012-11-29 Ian Lance Taylor <iant@google.com>
467 * go-gcc.cc: Include "output.h".
468 (global_variable): Add is_unique_section parameter.
469 (global_variable_set_init): Adjust unique section if necessary.
470 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
472 2012-11-17 Diego Novillo <dnovillo@google.com>
474 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
476 * go-lang.c: Use new vec API in vec.h.
478 2012-11-16 Ian Lance Taylor <iant@google.com>
480 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
481 (go1$(exeext)): Likewise.
483 2012-10-30 Ian Lance Taylor <iant@google.com>
485 * lang.opt (-fgo-relative-import-path): New option.
486 * go-lang.c (go_relative_import_path): New static variable.
487 (go_langhook_init): Pass go_relative_import_path to
489 (go_langhook_handle_option): Handle -fgo-relative-import-path.
490 * go-c.h (go_create_gogo): Update declaration.
491 * gccgo.texi (Invoking gccgo): Document
492 -fgo-relative-import-path.
494 2012-09-17 Ian Lance Taylor <iant@google.com>
496 * config-lang.in (target_libs): Add target-libbacktrace.
498 2012-09-16 Ian Lance Taylor <iant@google.com>
500 * Make-lang.in (go/gogo.o): Depend on filenames.h.
502 2012-08-14 Diego Novillo <dnovillo@google.com>
504 Merge from cxx-conversion branch. Configury.
506 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
507 * go-gcc.cc: Likewise.
508 * go-system.h: Likewise.
510 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
512 * go-lang.c (lang_decl): Add variable_size GTY option.
514 2012-05-09 Ian Lance Taylor <iant@google.com>
516 * lang.opt: Add -fgo-pkgpath.
517 * go-lang.c (go_pkgpath): New static variable.
518 (go_prefix): New static variable.
519 (go_langhook_init): Pass go_pkgpath and go_prefix to
521 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
522 -fgo-prefix handling to just set go_prefix.
523 * go-c.h (go_set_prefix): Don't declare.
524 (go_create_gogo): Add pkgpath and prefix to declaration.
525 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
526 to pkgpath. Don't include the package name in the asm name.
527 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
528 docs for -fgo-prefix.
530 2012-04-23 Ian Lance Taylor <iant@google.com>
532 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
534 2012-04-20 Ian Lance Taylor <iant@google.com>
536 * lang.opt: Add -fgo-check-divide-zero and
537 -fgo-check-divide-overflow.
538 * gccgo.texi (Invoking gccgo): Document new options.
540 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
542 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
543 with NULL_TREE type instead of void_type_node.
545 2012-03-09 Ian Lance Taylor <iant@google.com>
547 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
548 to the lhs type if necessary.
550 2012-03-08 Ian Lance Taylor <iant@google.com>
552 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
554 (go_non_zero_struct): New global variable.
555 (Gcc_backend::non_zero_size_type): New function.
556 (Gcc_backend::global_variable): Don't build an assignment for a
558 * go-c.h (go_non_zero_struct): Declare.
559 * config-lang.in (gtfiles): Add go-c.h.
561 2012-02-29 Ian Lance Taylor <iant@google.com>
563 * go-gcc.cc (class Gcc_tree): Add set_tree method.
564 (set_placeholder_pointer_type): When setting to a pointer to
565 error, set to error_mark_node.
567 2012-02-23 Richard Guenther <rguenther@suse.de>
569 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
570 build_distinct_type_copy.
572 2012-02-17 Ian Lance Taylor <iant@google.com>
574 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
576 2012-02-17 Ian Lance Taylor <iant@google.com>
578 * gospec.c (lang_specific_driver): If linking, and no -o option
581 2012-02-14 Ian Lance Taylor <iant@google.com>
584 * Make-lang.in (gccgo-cross$(exeext)): New target.
585 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
587 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
588 gccgo-cross$(exeext) does not exist.
590 2012-02-07 Ian Lance Taylor <iant@google.com>
592 * gccgo.texi (Function Names): Document //extern instead of
595 2012-02-01 Jakub Jelinek <jakub@redhat.com>
598 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
599 return build_nonstandard_integer_type result if possible.
601 2012-01-21 Ian Lance Taylor <iant@google.com>
603 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
604 (Gcc_backend::type_alignment): Likewise.
605 (Gcc_backend::type_field_alignment): Likewise.
606 (Gcc_backend::type_field_offset): Likewise.
608 2012-01-20 Ian Lance Taylor <iant@google.com>
610 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
612 (Gcc_backend::set_placeholder_struct_type): Likewise.
614 2012-01-17 Ian Lance Taylor <iant@google.com>
616 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
617 BASE.s rather than -o BASE.o.
619 2012-01-11 Ian Lance Taylor <iant@google.com>
621 * go-lang.c (go_langhook_init): Initialize void_list_node before
622 calling go_create_gogo.
624 2012-01-10 Ian Lance Taylor <iant@google.com>
626 * go-gcc.cc (Gcc_backend::type_size): New function.
627 (Gcc_backend::type_alignment): New function.
628 (Gcc_backend::type_field_alignment): New function.
629 (Gcc_backend::type_field_offset): New function.
630 * go-backend.c (go_type_alignment): Remove.
631 * go-c.h (go_type_alignment): Don't declare.
633 2011-12-27 Ian Lance Taylor <iant@google.com>
635 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
636 build_distinct_type_copy rather than build_variant_type_copy.
637 (Gcc_backend::set_placeholder_array_type): Likewise.
638 (Gcc_backend::named_type): Add special handling for builtin
641 2011-12-22 Ian Lance Taylor <iant@google.com>
643 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
644 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
645 (Gcc_backend::set_placeholder_struct_type): Likewise.
646 (Gcc_backend::set_placeholder_array_type): Likewise.
647 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
649 2011-12-13 Ian Lance Taylor <iant@google.com>
651 * go-backend.c: #include "simple-object.h" and "intl.h".
652 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
653 (GO_EXPORT_SECTION_NAME): Likewise.
654 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
655 (go_read_export_data): New function.
656 * go-c.h (go_read_export_data): Declare.
658 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
659 Ian Lance Taylor <iant@google.com>
661 * go-location.h: New file.
662 * go-linemap.cc: New file.
663 * go-gcc.cc: Change all uses of source_location to Location.
664 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
665 (GO_LINEMAP_H): New variable.
666 (GO_LEX_H): Use $(GO_LINEMAP_H).
667 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
668 (go/go-linemap.o): New target.
670 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
672 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
674 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
676 * lang.opt: Add fgo-optimize-.
677 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
678 * go-c.h (go_enable_optimize): Declare.
679 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
680 (GO_EXPORT_H): Define.
681 (GO_IMPORT_H): Add $(GO_EXPORT_H).
682 (GO_AST_DUMP_H): Define.
683 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
684 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
685 (go/types.o): Likewise.
686 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
687 (go/go-optimize.o): New target.
689 2011-08-24 Joseph Myers <joseph@codesourcery.com>
691 * Make-lang.in (CFLAGS-go/go-lang.o): New.
692 (go/go-lang.o): Remove explicit compilation rule.
694 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
696 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
698 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
700 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
701 (go/ast-dump.o): New target.
702 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
703 (go/statements.o): Likewise.
705 2011-07-06 Richard Guenther <rguenther@suse.de>
707 * go-lang.c (go_langhook_init):
708 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
710 2011-06-14 Joseph Myers <joseph@codesourcery.com>
712 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
714 * go-backend.c: Include common/common-target.h.
715 (go_write_export_data): Use targetm_common.have_named_sections.
716 * go-lang.c: Include common/common-target.h.
717 (go_langhook_init_options_struct): Use
718 targetm_common.supports_split_stack.
720 2011-06-13 Ian Lance Taylor <iant@google.com>
722 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
724 2011-06-10 Ian Lance Taylor <iant@google.com>
726 * go-gcc.cc: Include "toplev.h".
727 (Gcc_backend::immutable_struct): New function.
728 (Gcc_backend::immutable_struct_set_init): New function.
729 (Gcc_backend::immutable_struct_reference): New function.
730 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
732 2011-06-09 Ian Lance Taylor <iant@google.com>
734 * go-gcc.cc (Gcc_backend::zero_expression): New function.
736 2011-06-07 Richard Guenther <rguenther@suse.de>
738 * go-lang.c (go_langhook_init): Do not set
739 size_type_node or call set_sizetype.
741 2011-05-27 Ian Lance Taylor <iant@google.com>
743 * go-backend.c: Include "output.h".
744 (go_write_export_data): New function.
745 * go-c.h (go_write_export_data): Declare.
746 * Make-lang.in (go/go-backend.o): Depend on output.h.
747 (go/export.o): Depend on $(GO_C_H). Do not depend on
748 $(MACHMODE_H), output.h, or $(TARGET_H).
750 2011-05-24 Joseph Myers <joseph@codesourcery.com>
752 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
753 (gccgo$(exeext)): Use libcommon-target.a.
755 2011-05-20 Joseph Myers <joseph@codesourcery.com>
757 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
759 2011-05-13 Ian Lance Taylor <iant@google.com>
761 * go-gcc.cc (Gcc_backend::function_type): When building a struct
762 for multiple results, check that all fields types have a size.
763 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
765 2011-05-12 Ian Lance Taylor <iant@google.com>
767 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
769 (Gcc_backend::parameter_variable): Likewise.
771 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
773 * go-lang.c (global_bindings_p): Return bool and simplify.
775 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
777 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
779 2011-05-04 Ian Lance Taylor <iant@google.com>
781 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
782 (Gcc_backend::fill_in_struct): New function.
783 (Gcc_backend::array_type): Implement.
784 (Gcc_backend::fill_in_array): New function.
785 (Gcc_backend::placeholder_pointer_type): New function.
786 (Gcc_backend::set_placeholder_pointer_type): New function.
787 (Gcc_backend::set_placeholder_function_type): New function.
788 (Gcc_backend::placeholder_struct_type): New function.
789 (Gcc_backend::set_placeholder_struct_type): New function.
790 (Gcc_backend::placeholder_array_type): New function.
791 (Gcc_backend::set_placeholder_array_type): New function.
792 (Gcc_backend::named_type): New function.
793 (Gcc_backend::circular_pointer_type): New function.
794 (Gcc_backend::is_circular_pointer_type): New function.
796 2011-04-26 Ian Lance Taylor <iant@google.com>
798 * go-gcc.cc (Gcc_backend::struct_type): Implement.
800 2011-04-25 Ian Lance Taylor <iant@google.com>
802 * go-gcc.cc (Gcc_backend::error_type): Implement.
803 (Gcc_backend::string_type): Remove.
804 (Gcc_backend::function_type): Change signature and implement.
805 (Gcc_backend::struct_type): Change signature.
806 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
807 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
808 (Gcc_backend::pointer_type): Check for error.
809 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
811 2011-04-25 Evan Shaw <edsrzf@gmail.com>
813 * go-gcc.c (class Gcc_tree): Make get_tree const.
814 (Gcc_backend::void_type): Implement.
815 (Gcc_backend::bool_type): Implement.
816 (Gcc_backend::integer_type): Implement.
817 (Gcc_backend::float_type): Implement.
818 (Gcc_backend::complex_type): New function.
819 (Gcc_backend::pointer_type): New function.
820 (Gcc_backend::make_type): New function.
821 (type_to_tree): New function.
823 2011-04-21 Ian Lance Taylor <iant@google.com>
825 * go-system.h (go_assert, go_unreachable): Define.
827 2011-04-19 Ian Lance Taylor <iant@google.com>
829 * go-system.h: Include "intl.h".
830 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
831 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
832 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
834 2011-04-19 Ian Lance Taylor <iant@google.com>
836 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
838 2011-04-19 Ian Lance Taylor <iant@google.com>
840 * go-gcc.cc (class Bblock): Define.
841 (Gcc_backend::if_statement): Change then_block and else_block to
843 (Gcc_backend::block): New function.
844 (Gcc_backend::block_add_statements): New function.
845 (Gcc_backend::block_statement): New function.
846 (tree_to_block, block_to_tree): New functions.
848 2011-04-18 Ian Lance Taylor <iant@google.com>
850 * go-gcc.cc: Include "go-c.h".
851 (class Bvariable): Define.
852 (Gcc_backend::init_statement): New function.
853 (Gcc_backend::global_variable): New function.
854 (Gcc_backend::global_variable_set_init): New function.
855 (Gcc_backend::local_variable): New function.
856 (Gcc_backend::parameter_variable): New function.
857 (tree_to_type, var_to_tree): New functions.
858 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
859 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
861 2011-04-15 Ian Lance Taylor <iant@google.com>
863 * go-gcc.cc (Gcc_backend::compound_statement): New function.
864 (Gcc_backend::assignment_statement): Use error_statement.
865 (Gcc_backend::return_statement): Likewise.
866 (Gcc_backend::if_statement): Likewise.
867 (Gcc_backend::switch_statement): Likewise.
868 (Gcc_backend::statement_list): Likewise.
870 2011-04-14 Ian Lance Taylor <iant@google.com>
872 * go-gcc.cc (Gcc_backend::error_statement): New function.
874 2011-04-13 Ian Lance Taylor <iant@google.com>
876 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
878 2011-04-13 Ian Lance Taylor <iant@google.com>
880 * Make-lang.in (GO_OBJS): Add go/runtime.o.
881 (GO_RUNTIME_H): New variable.
882 (go/runtime.o): New target.
883 (go/gogo.o): Depend on $(GO_RUNTIME_H).
884 (go/statements.o): Likewise.
886 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
888 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
891 2011-04-06 Ian Lance Taylor <iant@google.com>
893 * go-gcc.cc (if_statement): Use build3_loc.
894 (Gcc_backend::switch_statement): New function.
895 (Gcc_backend::statement_list): New function.
897 2011-04-06 Ian Lance Taylor <iant@google.com>
899 * go-gcc.cc (Gcc_backend::if_statement): New function.
900 (tree_to_stat): New function.
901 (expr_to_tree): Renamed from expression_to_tree.
902 (stat_to_tree): Renamed from statement_to_tree.
904 2011-04-06 Ian Lance Taylor <iant@google.com>
906 * go-gcc.cc (Gcc_backend::expression_statement): New function.
908 2011-04-04 Ian Lance Taylor <iant@google.com>
910 * go-gcc.c (class Blabel): Define.
911 (Gcc_backend::make_expression): New function.
912 (get_identifier_from_string): New function.
913 (Gcc_backend::label): New function.
914 (Gcc_backend::label_definition_statement): New function.
915 (Gcc_backend::goto_statement): New function.
916 (Gcc_backend::label_address): New function.
917 (expression_to_tree): New function.
918 * Make-lang.in (go/expressions.o): Depend on
919 go/gofrontend/backend.h.
920 (go/gogo.o): Likewise.
922 2011-04-04 Ian Lance Taylor <iant@google.com>
924 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
925 (class Bfunction): Define.
926 (Gcc_backend::assignment_statement): Rename from assignment.
928 (Gcc_backend::return_statement): New function.
929 (tree_to_function): New function.
930 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
931 $(GIMPLE_H), and $(GO_GOGO_H).
933 2011-04-03 Ian Lance Taylor <iant@google.com>
935 * go-gcc.cc: New file.
936 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
937 (go/go-gcc.o): New target.
938 (go/go.o): Depend on go/gofrontend/backend.h.
939 (go/statements.o): Likewise.
941 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
943 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
945 2011-02-08 Ian Lance Taylor <iant@google.com>
947 * go-lang.c (go_langhook_init_options_struct): Set
948 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
950 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
952 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
953 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
955 2011-01-21 Ian Lance Taylor <iant@google.com>
957 * go-lang.c (go_langhook_init): Omit float_type_size when calling
959 * go-c.h: Update declaration of go_create_gogo.
961 2011-01-13 Ian Lance Taylor <iant@google.com>
963 * go-backend.c: Include "rtl.h" and "target.h".
964 (go_imported_unsafe): New function.
965 * go-c.h (go_imported_unsafe): Declare.
966 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
967 (go/gogo-tree.o): Remove dependency on $(RTL_H).
968 (go/unsafe.o): Depend on $(GO_C_H).
970 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
973 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
976 2010-12-21 Ian Lance Taylor <iant@google.com>
978 * Make-lang.in (check-go): Remove.
979 (lang_checks_parallelized): Add check-go.
980 (check_go_parallelize): Set.
982 2010-12-13 Ian Lance Taylor <iant@google.com>
984 * gospec.c (lang_specific_driver): Add a -o option if not linking
985 and there is no -o option already.
987 2010-12-07 Ian Lance Taylor <iant@google.com>
989 PR tree-optimization/46805
990 PR tree-optimization/46833
991 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
993 2010-12-06 Ian Lance Taylor <iant@google.com>
997 * go-lang.c (go_char_p): Define type and vectors.
998 (go_search_dirs): New static variable.
999 (go_langhook_handle_option): Use version and version/machine
1001 (go_langhook_post_options): Add non-specific -L paths.
1002 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1003 DEFAULT_TARGET_MACHINE when compiling.
1004 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1005 (Import and Export): Don't mention -L for finding import files.
1007 2010-12-03 Ian Lance Taylor <iant@google.com>
1010 * go-backend.c: New file.
1011 * go-c.h (go_type_alignment): Declare.
1012 (go_field_alignment, go_trampoline_info): Declare.
1013 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1014 (go/go-backend.o): New target.
1015 (go/go-lang.o): Make dependencies match source file.
1016 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1017 (go/gogo-tree.o): Don't depend on $(TM_H).
1019 2010-12-03 Ian Lance Taylor <iant@google.com>
1021 * config-lang.in (build_by_default): Set to no.
1023 2010-12-02 Ian Lance Taylor <iant@google.com>
1025 Go frontend added to gcc repository.
1027 Copyright (C) 2010-2015 Free Software Foundation, Inc.
1029 Copying and distribution of this file, with or without modification,
1030 are permitted in any medium without royalty provided the copyright
1031 notice and this notice are preserved.