1 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
3 * go-lang.c: Remove redundant enum from machine_mode.
5 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
7 * go-gcc.cc: Adjust include files.
9 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
11 * go-gcc.cc: Adjust include files.
14 2014-10-23 Ian Lance Taylor <iant@google.com>
16 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
17 mpc_t parameter instead of two mpfr_t parameters.
19 2014-09-15 Jakub Jelinek <jakub@redhat.com>
21 * Make-lang.in (check_go_parallelize): Change to just an upper bound
24 2014-09-03 Chris Manghane <cmang@google.com>
26 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
27 parameter. Add is_hidden parameter.
28 (Gcc_backend::implicit_variable_set_init): New method.
29 (Gcc_backend::implicit_variable_reference): New method.
31 2014-08-08 Ian Lance Taylor <iant@google.com>
33 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
36 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
38 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
39 symtab_get_node to symtab_node::get.
41 2014-06-13 Ian Lance Taylor <iant@google.com>
44 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
45 ld, add -t option to avoid warning about common symbol changing
48 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
50 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
51 symtab_get_node(var_decl)->implicit_section.
53 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
55 * go-gcc.cc (global_variable_set_init): Use
56 set_decl_section_name.
58 2014-06-04 Ian Lance Taylor <iant@google.com>
60 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
61 alignment parameters. Permit init parameter to be NULL.
63 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
65 * go-gcc.cc: Include builtins.h.
67 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
69 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
71 2014-05-06 Chris Manghane <cmang@google.com>
73 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
74 (Gcc_backend::boolean_constant_expression): New method.
75 (Gcc_backend::zero_expression): Use this->make_expression rather
77 (Gcc_backend::var_expression): Likewise.
78 (Gcc_backend::integer_constant_expression): Likewise.
79 (Gcc_backend::float_constant_expression): Likewise.
80 (Gcc_backend::complex_constant_expression): Likewise.
81 (Gcc_backend::struct_field_expression): Likewise.
82 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
83 (tree_to_function, tree_to_block): Remove functions.
84 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
85 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
87 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
88 Mike Stump <mikestump@comcast.net>
89 Richard Sandiford <rdsandiford@googlemail.com>
91 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
93 2014-05-06 Chris Manghane <cmang@google.com>
95 * go-c.h (go_create_gogo): Update declaration to add
96 check_divide_zero and check_divide_overflow parameters.
97 * go-lang.c (go_langhook_init): Pass new arguments to
100 2014-05-05 Chris Manghane <cmang@google.com>
102 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
103 gc_root_variable. Add name and is_constant parameters.
105 2014-05-05 Chris Manghane <cmang@google.com>
107 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
109 (Gcc_backend::temporary_variable): Check for erroneous function.
111 2014-04-30 Chris Manghane <cmang@google.com>
113 * go-backend.c: #include "diagnostics.h".
114 (saw_errors): New function.
115 * go-c.h (saw_errors): Declare.
116 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
118 2014-04-30 Chris Manghane <cmang@google.com>
120 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
121 calling into Go frontend.
122 (go_langhook_type_for_mode): Likewise.
123 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
125 2014-04-30 Chris Manghane <cmang@google.com>
127 * go-gcc.cc: #include "langhooks.h".
128 (Gcc_backend::Gcc_backend): Add constructor.
129 (Gcc_backend::lookup_function): New function.
130 (Gcc_backend::define_builtin): New private function.
131 (Gcc_backend::gcc_backend): Remove.
132 (go_get_backend): Use new to create new Gcc_backend.
134 2014-04-25 Chris Manghane <cmang@google.com>
136 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
137 (Gcc_backend::return_statement): Push and pop function.
138 (Gcc_backend::label): Likewise.
139 (Gcc_backend::function_defer_statement): Likewise.
140 (Gcc_backend::switch_statement): Add function parameter.
141 (Gcc_backend::block): Don't permit function to be NULL.
142 (Gcc_backend::temporary_variable): Change go_assert to
144 (Gcc_backend::gc_root_variable): New function.
145 (Gcc_backend::write_global_definitions): New function.
147 2014-04-22 Chris Manghane <cmang@google.com>
149 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
150 call to create_tmp_var. Require that function be non-NULL.
152 2014-04-17 Chris Manghane <cmang@google.com>
154 * go-gcc.cc (Gcc_backend::named_constant_expression): New
157 2014-04-14 Chris Manghane <cmang@google.com>
159 * go-gcc.cc: Include "convert.h".
160 (Gcc_backend::string_constant_expression): New function.
161 (Gcc_backend::real_part_expression): Likewise.
162 (Gcc_backend::imag_part_expression): Likewise.
163 (Gcc_backend::complex_expression): Likewise.
164 (Gcc_backend::constructor_expression): Likewise.
165 (Gcc_backend::array_constructor_expression): Likewise.
166 (Gcc_backend::pointer_offset_expression): Likewise.
167 (Gcc_backend::array_index_expression): Likewise.
168 (Gcc_backend::call_expression): Likewise.
169 (Gcc_backend::exception_handler_statement): Likewise.
170 (Gcc_backend::function_defer_statement): Likewise.
171 (Gcc_backend::function_set_parameters): Likewise.
172 (Gcc_backend::function_set_body): Likewise.
173 (Gcc_backend::convert_expression): Handle various type
176 2014-03-03 Ian Lance Taylor <iant@google.com>
178 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
180 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
183 2014-01-24 Chris Manghane <cmang@google.com>
185 * go-gcc.cc (Gcc_backend::unary_expression): New function.
187 2014-01-16 Chris Manghane <cmang@google.com>
189 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
191 (operator_to_tree_code): New static function.
192 (Gcc_backend::binary_expression): New function.
194 2014-01-14 Chris Manghane <cmang@google.com>
196 * go-gcc.cc (Gcc_backend::compound_expression): New function.
197 (Gcc_backend::conditional_expression): New function.
199 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
201 Update copyright years
203 2014-01-02 Tobias Burnus <burnus@net-b.de>
205 * gccgo.texi: Bump @copying's copyright year.
207 2013-12-16 Chris Manghane <cmang@google.com>
209 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
211 2013-12-11 Ian Lance Taylor <iant@google.com>
213 * go-lang.c (go_langhook_post_options): Disable sibling calls by
216 2013-12-10 Ian Lance Taylor <iant@google.com>
218 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
221 2013-12-05 Ian Lance Taylor <iant@google.com>
223 Revert this change; no longer required.
224 2013-11-06 Ian Lance Taylor <iant@google.com>
226 * go-lang.c (go_langhook_post_options): If
227 -fisolate-erroneous-paths was turned on by an optimization option,
230 2013-11-23 Ian Lance Taylor <iant@google.com>
232 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
235 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
237 * go-gcc.cc: Add required include files from gimple.h.
238 * go-lang.c: Likewise
240 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
242 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
243 tree_to_shwi throughout.
245 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
247 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
248 tree_fits_shwi_p throughout.
250 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
252 * go-lang.c: Include only gimplify.h and gimple.h as needed.
254 2013-11-14 Diego Novillo <dnovillo@google.com>
256 * go-backend.c: Include stor-layout.h.
257 * go-gcc.cc: Include stringpool.h.
258 Include stor-layout.h.
260 * go-lang.c: Include stor-layout.h.
262 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
264 * go-lang.c: Include gimplify.h.
266 2013-11-06 Ian Lance Taylor <iant@google.com>
268 * go-lang.c (go_langhook_post_options): If
269 -fisolate-erroneous-paths was turned on by an optimization option,
272 2013-10-14 Chris Manghane <cmang@google.com>
274 * go-gcc.cc (Gcc_backend::address_expression): New function.
276 2013-10-11 Chris Manghane <cmang@google.com>
278 * go-gcc.cc (Gcc_backend::function_code_expression): New
281 2013-10-10 Chris Manghane <cmang@google.com>
283 * go-gcc.cc (Gcc_backend::error_function): New function.
284 (Gcc_backend::function): New function.
285 (Gcc_backend::make_function): New function.
286 (function_to_tree): New function.
288 2013-10-04 Chris Manghane <cmang@google.com>
290 * go-gcc.cc (Gcc_backend::convert_expression): New function.
292 2013-10-02 Chris Manghane <cmang@google.com>
294 * go-gcc.cc: Include "real.h" and "realmpfr.h".
295 (Gcc_backend::integer_constant_expression): New function.
296 (Gcc_backend::float_constant_expression): New function.
297 (Gcc_backend::complex_constant_expression): New function.
299 2013-09-30 Chris Manghane <cmang@google.com>
301 * go-gcc.cc (Gcc_backend::error_expression): New function.
302 (Gcc_backend::var_expression): New function.
303 (Gcc_backend::indirect_expression): New function.
305 2013-09-25 Tom Tromey <tromey@redhat.com>
307 * Make-lang.in (gospec.o): Remove.
308 (CFLAGS-go/gospec.o): New variable.
309 (GCCGO_OBJS): Update to use go/gospec.o.
311 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
312 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
313 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
314 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
315 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
316 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
317 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
318 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
319 (go/unsafe.o): Remove.
320 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
321 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
323 2013-09-25 Tom Tromey <tromey@redhat.com>
325 * Make-lang.in (gospec.o): Don't use subshell.
327 2013-08-28 Ian Lance Taylor <iant@google.com>
329 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
330 the struct is not hidden.
331 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
333 2013-08-06 Ian Lance Taylor <iant@google.com>
335 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
336 compute_reloc_for_constant.
338 2013-08-02 Ian Lance Taylor <iant@google.com>
340 * go-gcc.cc (immutable_struct_set_init): Always call
341 resolve_unique_section.
343 2013-07-24 Ian Lance Taylor <iant@google.com>
345 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
346 fields, recreate those fields with the first one with a non-zero
349 2013-07-23 Ian Lance Taylor <iant@google.com>
351 * go-backend.c: Don't #include "rtl.h".
352 (go_imported_unsafe): Don't call init_varasm_once.
353 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
355 2013-07-23 Ian Lance Taylor <iant@google.com>
357 * go-lang.c: Don't #include "except.h".
358 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
360 2013-06-18 Ian Lance Taylor <iant@google.com>
362 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
364 (Gcc_backend::immutable_struct_set_init): Likewise.
366 2013-05-16 Jason Merrill <jason@redhat.com>
368 * Make-lang.in (go1$(exeext)): Use link mutex.
370 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
372 * gospec.c: pass -u pthread_create to linker when static linking.
374 2012-12-21 Ian Lance Taylor <iant@google.com>
377 * go-system.h: Don't include <cstdio>.
379 2012-12-18 Ian Lance Taylor <iant@google.com>
382 * gospec.c: Revert last patch.
384 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
387 * gospec.c (LIBATOMIC): Define.
388 (LIBATOMIC_PROFILE): Define.
389 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
391 2012-11-29 Ian Lance Taylor <iant@google.com>
393 * go-gcc.cc: Include "output.h".
394 (global_variable): Add is_unique_section parameter.
395 (global_variable_set_init): Adjust unique section if necessary.
396 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
398 2012-11-17 Diego Novillo <dnovillo@google.com>
400 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
402 * go-lang.c: Use new vec API in vec.h.
404 2012-11-16 Ian Lance Taylor <iant@google.com>
406 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
407 (go1$(exeext)): Likewise.
409 2012-10-30 Ian Lance Taylor <iant@google.com>
411 * lang.opt (-fgo-relative-import-path): New option.
412 * go-lang.c (go_relative_import_path): New static variable.
413 (go_langhook_init): Pass go_relative_import_path to
415 (go_langhook_handle_option): Handle -fgo-relative-import-path.
416 * go-c.h (go_create_gogo): Update declaration.
417 * gccgo.texi (Invoking gccgo): Document
418 -fgo-relative-import-path.
420 2012-09-17 Ian Lance Taylor <iant@google.com>
422 * config-lang.in (target_libs): Add target-libbacktrace.
424 2012-09-16 Ian Lance Taylor <iant@google.com>
426 * Make-lang.in (go/gogo.o): Depend on filenames.h.
428 2012-08-14 Diego Novillo <dnovillo@google.com>
430 Merge from cxx-conversion branch. Configury.
432 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
433 * go-gcc.cc: Likewise.
434 * go-system.h: Likewise.
436 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
438 * go-lang.c (lang_decl): Add variable_size GTY option.
440 2012-05-09 Ian Lance Taylor <iant@google.com>
442 * lang.opt: Add -fgo-pkgpath.
443 * go-lang.c (go_pkgpath): New static variable.
444 (go_prefix): New static variable.
445 (go_langhook_init): Pass go_pkgpath and go_prefix to
447 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
448 -fgo-prefix handling to just set go_prefix.
449 * go-c.h (go_set_prefix): Don't declare.
450 (go_create_gogo): Add pkgpath and prefix to declaration.
451 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
452 to pkgpath. Don't include the package name in the asm name.
453 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
454 docs for -fgo-prefix.
456 2012-04-23 Ian Lance Taylor <iant@google.com>
458 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
460 2012-04-20 Ian Lance Taylor <iant@google.com>
462 * lang.opt: Add -fgo-check-divide-zero and
463 -fgo-check-divide-overflow.
464 * gccgo.texi (Invoking gccgo): Document new options.
466 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
468 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
469 with NULL_TREE type instead of void_type_node.
471 2012-03-09 Ian Lance Taylor <iant@google.com>
473 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
474 to the lhs type if necessary.
476 2012-03-08 Ian Lance Taylor <iant@google.com>
478 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
480 (go_non_zero_struct): New global variable.
481 (Gcc_backend::non_zero_size_type): New function.
482 (Gcc_backend::global_variable): Don't build an assignment for a
484 * go-c.h (go_non_zero_struct): Declare.
485 * config-lang.in (gtfiles): Add go-c.h.
487 2012-02-29 Ian Lance Taylor <iant@google.com>
489 * go-gcc.cc (class Gcc_tree): Add set_tree method.
490 (set_placeholder_pointer_type): When setting to a pointer to
491 error, set to error_mark_node.
493 2012-02-23 Richard Guenther <rguenther@suse.de>
495 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
496 build_distinct_type_copy.
498 2012-02-17 Ian Lance Taylor <iant@google.com>
500 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
502 2012-02-17 Ian Lance Taylor <iant@google.com>
504 * gospec.c (lang_specific_driver): If linking, and no -o option
507 2012-02-14 Ian Lance Taylor <iant@google.com>
510 * Make-lang.in (gccgo-cross$(exeext)): New target.
511 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
513 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
514 gccgo-cross$(exeext) does not exist.
516 2012-02-07 Ian Lance Taylor <iant@google.com>
518 * gccgo.texi (Function Names): Document //extern instead of
521 2012-02-01 Jakub Jelinek <jakub@redhat.com>
524 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
525 return build_nonstandard_integer_type result if possible.
527 2012-01-21 Ian Lance Taylor <iant@google.com>
529 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
530 (Gcc_backend::type_alignment): Likewise.
531 (Gcc_backend::type_field_alignment): Likewise.
532 (Gcc_backend::type_field_offset): Likewise.
534 2012-01-20 Ian Lance Taylor <iant@google.com>
536 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
538 (Gcc_backend::set_placeholder_struct_type): Likewise.
540 2012-01-17 Ian Lance Taylor <iant@google.com>
542 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
543 BASE.s rather than -o BASE.o.
545 2012-01-11 Ian Lance Taylor <iant@google.com>
547 * go-lang.c (go_langhook_init): Initialize void_list_node before
548 calling go_create_gogo.
550 2012-01-10 Ian Lance Taylor <iant@google.com>
552 * go-gcc.cc (Gcc_backend::type_size): New function.
553 (Gcc_backend::type_alignment): New function.
554 (Gcc_backend::type_field_alignment): New function.
555 (Gcc_backend::type_field_offset): New function.
556 * go-backend.c (go_type_alignment): Remove.
557 * go-c.h (go_type_alignment): Don't declare.
559 2011-12-27 Ian Lance Taylor <iant@google.com>
561 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
562 build_distinct_type_copy rather than build_variant_type_copy.
563 (Gcc_backend::set_placeholder_array_type): Likewise.
564 (Gcc_backend::named_type): Add special handling for builtin
567 2011-12-22 Ian Lance Taylor <iant@google.com>
569 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
570 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
571 (Gcc_backend::set_placeholder_struct_type): Likewise.
572 (Gcc_backend::set_placeholder_array_type): Likewise.
573 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
575 2011-12-13 Ian Lance Taylor <iant@google.com>
577 * go-backend.c: #include "simple-object.h" and "intl.h".
578 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
579 (GO_EXPORT_SECTION_NAME): Likewise.
580 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
581 (go_read_export_data): New function.
582 * go-c.h (go_read_export_data): Declare.
584 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
585 Ian Lance Taylor <iant@google.com>
587 * go-location.h: New file.
588 * go-linemap.cc: New file.
589 * go-gcc.cc: Change all uses of source_location to Location.
590 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
591 (GO_LINEMAP_H): New variable.
592 (GO_LEX_H): Use $(GO_LINEMAP_H).
593 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
594 (go/go-linemap.o): New target.
596 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
598 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
600 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
602 * lang.opt: Add fgo-optimize-.
603 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
604 * go-c.h (go_enable_optimize): Declare.
605 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
606 (GO_EXPORT_H): Define.
607 (GO_IMPORT_H): Add $(GO_EXPORT_H).
608 (GO_AST_DUMP_H): Define.
609 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
610 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
611 (go/types.o): Likewise.
612 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
613 (go/go-optimize.o): New target.
615 2011-08-24 Joseph Myers <joseph@codesourcery.com>
617 * Make-lang.in (CFLAGS-go/go-lang.o): New.
618 (go/go-lang.o): Remove explicit compilation rule.
620 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
622 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
624 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
626 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
627 (go/ast-dump.o): New target.
628 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
629 (go/statements.o): Likewise.
631 2011-07-06 Richard Guenther <rguenther@suse.de>
633 * go-lang.c (go_langhook_init):
634 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
636 2011-06-14 Joseph Myers <joseph@codesourcery.com>
638 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
640 * go-backend.c: Include common/common-target.h.
641 (go_write_export_data): Use targetm_common.have_named_sections.
642 * go-lang.c: Include common/common-target.h.
643 (go_langhook_init_options_struct): Use
644 targetm_common.supports_split_stack.
646 2011-06-13 Ian Lance Taylor <iant@google.com>
648 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
650 2011-06-10 Ian Lance Taylor <iant@google.com>
652 * go-gcc.cc: Include "toplev.h".
653 (Gcc_backend::immutable_struct): New function.
654 (Gcc_backend::immutable_struct_set_init): New function.
655 (Gcc_backend::immutable_struct_reference): New function.
656 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
658 2011-06-09 Ian Lance Taylor <iant@google.com>
660 * go-gcc.cc (Gcc_backend::zero_expression): New function.
662 2011-06-07 Richard Guenther <rguenther@suse.de>
664 * go-lang.c (go_langhook_init): Do not set
665 size_type_node or call set_sizetype.
667 2011-05-27 Ian Lance Taylor <iant@google.com>
669 * go-backend.c: Include "output.h".
670 (go_write_export_data): New function.
671 * go-c.h (go_write_export_data): Declare.
672 * Make-lang.in (go/go-backend.o): Depend on output.h.
673 (go/export.o): Depend on $(GO_C_H). Do not depend on
674 $(MACHMODE_H), output.h, or $(TARGET_H).
676 2011-05-24 Joseph Myers <joseph@codesourcery.com>
678 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
679 (gccgo$(exeext)): Use libcommon-target.a.
681 2011-05-20 Joseph Myers <joseph@codesourcery.com>
683 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
685 2011-05-13 Ian Lance Taylor <iant@google.com>
687 * go-gcc.cc (Gcc_backend::function_type): When building a struct
688 for multiple results, check that all fields types have a size.
689 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
691 2011-05-12 Ian Lance Taylor <iant@google.com>
693 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
695 (Gcc_backend::parameter_variable): Likewise.
697 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
699 * go-lang.c (global_bindings_p): Return bool and simplify.
701 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
703 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
705 2011-05-04 Ian Lance Taylor <iant@google.com>
707 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
708 (Gcc_backend::fill_in_struct): New function.
709 (Gcc_backend::array_type): Implement.
710 (Gcc_backend::fill_in_array): New function.
711 (Gcc_backend::placeholder_pointer_type): New function.
712 (Gcc_backend::set_placeholder_pointer_type): New function.
713 (Gcc_backend::set_placeholder_function_type): New function.
714 (Gcc_backend::placeholder_struct_type): New function.
715 (Gcc_backend::set_placeholder_struct_type): New function.
716 (Gcc_backend::placeholder_array_type): New function.
717 (Gcc_backend::set_placeholder_array_type): New function.
718 (Gcc_backend::named_type): New function.
719 (Gcc_backend::circular_pointer_type): New function.
720 (Gcc_backend::is_circular_pointer_type): New function.
722 2011-04-26 Ian Lance Taylor <iant@google.com>
724 * go-gcc.cc (Gcc_backend::struct_type): Implement.
726 2011-04-25 Ian Lance Taylor <iant@google.com>
728 * go-gcc.cc (Gcc_backend::error_type): Implement.
729 (Gcc_backend::string_type): Remove.
730 (Gcc_backend::function_type): Change signature and implement.
731 (Gcc_backend::struct_type): Change signature.
732 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
733 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
734 (Gcc_backend::pointer_type): Check for error.
735 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
737 2011-04-25 Evan Shaw <edsrzf@gmail.com>
739 * go-gcc.c (class Gcc_tree): Make get_tree const.
740 (Gcc_backend::void_type): Implement.
741 (Gcc_backend::bool_type): Implement.
742 (Gcc_backend::integer_type): Implement.
743 (Gcc_backend::float_type): Implement.
744 (Gcc_backend::complex_type): New function.
745 (Gcc_backend::pointer_type): New function.
746 (Gcc_backend::make_type): New function.
747 (type_to_tree): New function.
749 2011-04-21 Ian Lance Taylor <iant@google.com>
751 * go-system.h (go_assert, go_unreachable): Define.
753 2011-04-19 Ian Lance Taylor <iant@google.com>
755 * go-system.h: Include "intl.h".
756 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
757 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
758 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
760 2011-04-19 Ian Lance Taylor <iant@google.com>
762 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
764 2011-04-19 Ian Lance Taylor <iant@google.com>
766 * go-gcc.cc (class Bblock): Define.
767 (Gcc_backend::if_statement): Change then_block and else_block to
769 (Gcc_backend::block): New function.
770 (Gcc_backend::block_add_statements): New function.
771 (Gcc_backend::block_statement): New function.
772 (tree_to_block, block_to_tree): New functions.
774 2011-04-18 Ian Lance Taylor <iant@google.com>
776 * go-gcc.cc: Include "go-c.h".
777 (class Bvariable): Define.
778 (Gcc_backend::init_statement): New function.
779 (Gcc_backend::global_variable): New function.
780 (Gcc_backend::global_variable_set_init): New function.
781 (Gcc_backend::local_variable): New function.
782 (Gcc_backend::parameter_variable): New function.
783 (tree_to_type, var_to_tree): New functions.
784 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
785 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
787 2011-04-15 Ian Lance Taylor <iant@google.com>
789 * go-gcc.cc (Gcc_backend::compound_statement): New function.
790 (Gcc_backend::assignment_statement): Use error_statement.
791 (Gcc_backend::return_statement): Likewise.
792 (Gcc_backend::if_statement): Likewise.
793 (Gcc_backend::switch_statement): Likewise.
794 (Gcc_backend::statement_list): Likewise.
796 2011-04-14 Ian Lance Taylor <iant@google.com>
798 * go-gcc.cc (Gcc_backend::error_statement): New function.
800 2011-04-13 Ian Lance Taylor <iant@google.com>
802 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
804 2011-04-13 Ian Lance Taylor <iant@google.com>
806 * Make-lang.in (GO_OBJS): Add go/runtime.o.
807 (GO_RUNTIME_H): New variable.
808 (go/runtime.o): New target.
809 (go/gogo.o): Depend on $(GO_RUNTIME_H).
810 (go/statements.o): Likewise.
812 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
814 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
817 2011-04-06 Ian Lance Taylor <iant@google.com>
819 * go-gcc.cc (if_statement): Use build3_loc.
820 (Gcc_backend::switch_statement): New function.
821 (Gcc_backend::statement_list): New function.
823 2011-04-06 Ian Lance Taylor <iant@google.com>
825 * go-gcc.cc (Gcc_backend::if_statement): New function.
826 (tree_to_stat): New function.
827 (expr_to_tree): Renamed from expression_to_tree.
828 (stat_to_tree): Renamed from statement_to_tree.
830 2011-04-06 Ian Lance Taylor <iant@google.com>
832 * go-gcc.cc (Gcc_backend::expression_statement): New function.
834 2011-04-04 Ian Lance Taylor <iant@google.com>
836 * go-gcc.c (class Blabel): Define.
837 (Gcc_backend::make_expression): New function.
838 (get_identifier_from_string): New function.
839 (Gcc_backend::label): New function.
840 (Gcc_backend::label_definition_statement): New function.
841 (Gcc_backend::goto_statement): New function.
842 (Gcc_backend::label_address): New function.
843 (expression_to_tree): New function.
844 * Make-lang.in (go/expressions.o): Depend on
845 go/gofrontend/backend.h.
846 (go/gogo.o): Likewise.
848 2011-04-04 Ian Lance Taylor <iant@google.com>
850 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
851 (class Bfunction): Define.
852 (Gcc_backend::assignment_statement): Rename from assignment.
854 (Gcc_backend::return_statement): New function.
855 (tree_to_function): New function.
856 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
857 $(GIMPLE_H), and $(GO_GOGO_H).
859 2011-04-03 Ian Lance Taylor <iant@google.com>
861 * go-gcc.cc: New file.
862 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
863 (go/go-gcc.o): New target.
864 (go/go.o): Depend on go/gofrontend/backend.h.
865 (go/statements.o): Likewise.
867 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
869 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
871 2011-02-08 Ian Lance Taylor <iant@google.com>
873 * go-lang.c (go_langhook_init_options_struct): Set
874 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
876 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
878 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
879 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
881 2011-01-21 Ian Lance Taylor <iant@google.com>
883 * go-lang.c (go_langhook_init): Omit float_type_size when calling
885 * go-c.h: Update declaration of go_create_gogo.
887 2011-01-13 Ian Lance Taylor <iant@google.com>
889 * go-backend.c: Include "rtl.h" and "target.h".
890 (go_imported_unsafe): New function.
891 * go-c.h (go_imported_unsafe): Declare.
892 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
893 (go/gogo-tree.o): Remove dependency on $(RTL_H).
894 (go/unsafe.o): Depend on $(GO_C_H).
896 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
899 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
902 2010-12-21 Ian Lance Taylor <iant@google.com>
904 * Make-lang.in (check-go): Remove.
905 (lang_checks_parallelized): Add check-go.
906 (check_go_parallelize): Set.
908 2010-12-13 Ian Lance Taylor <iant@google.com>
910 * gospec.c (lang_specific_driver): Add a -o option if not linking
911 and there is no -o option already.
913 2010-12-07 Ian Lance Taylor <iant@google.com>
915 PR tree-optimization/46805
916 PR tree-optimization/46833
917 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
919 2010-12-06 Ian Lance Taylor <iant@google.com>
923 * go-lang.c (go_char_p): Define type and vectors.
924 (go_search_dirs): New static variable.
925 (go_langhook_handle_option): Use version and version/machine
927 (go_langhook_post_options): Add non-specific -L paths.
928 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
929 DEFAULT_TARGET_MACHINE when compiling.
930 * gccgo.texi (Invoking gccgo): Only document -L for linking.
931 (Import and Export): Don't mention -L for finding import files.
933 2010-12-03 Ian Lance Taylor <iant@google.com>
936 * go-backend.c: New file.
937 * go-c.h (go_type_alignment): Declare.
938 (go_field_alignment, go_trampoline_info): Declare.
939 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
940 (go/go-backend.o): New target.
941 (go/go-lang.o): Make dependencies match source file.
942 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
943 (go/gogo-tree.o): Don't depend on $(TM_H).
945 2010-12-03 Ian Lance Taylor <iant@google.com>
947 * config-lang.in (build_by_default): Set to no.
949 2010-12-02 Ian Lance Taylor <iant@google.com>
951 Go frontend added to gcc repository.
953 Copyright (C) 2010-2014 Free Software Foundation, Inc.
955 Copying and distribution of this file, with or without modification,
956 are permitted in any medium without royalty provided the copyright
957 notice and this notice are preserved.