1 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
3 * go-gcc.cc (global_variable_set_init): Use
6 2014-06-04 Ian Lance Taylor <iant@google.com>
8 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
9 alignment parameters. Permit init parameter to be NULL.
11 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13 * go-gcc.cc: Include builtins.h.
15 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
19 2014-05-06 Chris Manghane <cmang@google.com>
21 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
22 (Gcc_backend::boolean_constant_expression): New method.
23 (Gcc_backend::zero_expression): Use this->make_expression rather
25 (Gcc_backend::var_expression): Likewise.
26 (Gcc_backend::integer_constant_expression): Likewise.
27 (Gcc_backend::float_constant_expression): Likewise.
28 (Gcc_backend::complex_constant_expression): Likewise.
29 (Gcc_backend::struct_field_expression): Likewise.
30 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
31 (tree_to_function, tree_to_block): Remove functions.
32 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
33 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
35 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
36 Mike Stump <mikestump@comcast.net>
37 Richard Sandiford <rdsandiford@googlemail.com>
39 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
41 2014-05-06 Chris Manghane <cmang@google.com>
43 * go-c.h (go_create_gogo): Update declaration to add
44 check_divide_zero and check_divide_overflow parameters.
45 * go-lang.c (go_langhook_init): Pass new arguments to
48 2014-05-05 Chris Manghane <cmang@google.com>
50 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
51 gc_root_variable. Add name and is_constant parameters.
53 2014-05-05 Chris Manghane <cmang@google.com>
55 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
57 (Gcc_backend::temporary_variable): Check for erroneous function.
59 2014-04-30 Chris Manghane <cmang@google.com>
61 * go-backend.c: #include "diagnostics.h".
62 (saw_errors): New function.
63 * go-c.h (saw_errors): Declare.
64 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
66 2014-04-30 Chris Manghane <cmang@google.com>
68 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
69 calling into Go frontend.
70 (go_langhook_type_for_mode): Likewise.
71 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
73 2014-04-30 Chris Manghane <cmang@google.com>
75 * go-gcc.cc: #include "langhooks.h".
76 (Gcc_backend::Gcc_backend): Add constructor.
77 (Gcc_backend::lookup_function): New function.
78 (Gcc_backend::define_builtin): New private function.
79 (Gcc_backend::gcc_backend): Remove.
80 (go_get_backend): Use new to create new Gcc_backend.
82 2014-04-25 Chris Manghane <cmang@google.com>
84 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
85 (Gcc_backend::return_statement): Push and pop function.
86 (Gcc_backend::label): Likewise.
87 (Gcc_backend::function_defer_statement): Likewise.
88 (Gcc_backend::switch_statement): Add function parameter.
89 (Gcc_backend::block): Don't permit function to be NULL.
90 (Gcc_backend::temporary_variable): Change go_assert to
92 (Gcc_backend::gc_root_variable): New function.
93 (Gcc_backend::write_global_definitions): New function.
95 2014-04-22 Chris Manghane <cmang@google.com>
97 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
98 call to create_tmp_var. Require that function be non-NULL.
100 2014-04-17 Chris Manghane <cmang@google.com>
102 * go-gcc.cc (Gcc_backend::named_constant_expression): New
105 2014-04-14 Chris Manghane <cmang@google.com>
107 * go-gcc.cc: Include "convert.h".
108 (Gcc_backend::string_constant_expression): New function.
109 (Gcc_backend::real_part_expression): Likewise.
110 (Gcc_backend::imag_part_expression): Likewise.
111 (Gcc_backend::complex_expression): Likewise.
112 (Gcc_backend::constructor_expression): Likewise.
113 (Gcc_backend::array_constructor_expression): Likewise.
114 (Gcc_backend::pointer_offset_expression): Likewise.
115 (Gcc_backend::array_index_expression): Likewise.
116 (Gcc_backend::call_expression): Likewise.
117 (Gcc_backend::exception_handler_statement): Likewise.
118 (Gcc_backend::function_defer_statement): Likewise.
119 (Gcc_backend::function_set_parameters): Likewise.
120 (Gcc_backend::function_set_body): Likewise.
121 (Gcc_backend::convert_expression): Handle various type
124 2014-03-03 Ian Lance Taylor <iant@google.com>
126 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
128 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
131 2014-01-24 Chris Manghane <cmang@google.com>
133 * go-gcc.cc (Gcc_backend::unary_expression): New function.
135 2014-01-16 Chris Manghane <cmang@google.com>
137 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
139 (operator_to_tree_code): New static function.
140 (Gcc_backend::binary_expression): New function.
142 2014-01-14 Chris Manghane <cmang@google.com>
144 * go-gcc.cc (Gcc_backend::compound_expression): New function.
145 (Gcc_backend::conditional_expression): New function.
147 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
149 Update copyright years
151 2014-01-02 Tobias Burnus <burnus@net-b.de>
153 * gccgo.texi: Bump @copying's copyright year.
155 2013-12-16 Chris Manghane <cmang@google.com>
157 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
159 2013-12-11 Ian Lance Taylor <iant@google.com>
161 * go-lang.c (go_langhook_post_options): Disable sibling calls by
164 2013-12-10 Ian Lance Taylor <iant@google.com>
166 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
169 2013-12-05 Ian Lance Taylor <iant@google.com>
171 Revert this change; no longer required.
172 2013-11-06 Ian Lance Taylor <iant@google.com>
174 * go-lang.c (go_langhook_post_options): If
175 -fisolate-erroneous-paths was turned on by an optimization option,
178 2013-11-23 Ian Lance Taylor <iant@google.com>
180 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
183 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
185 * go-gcc.cc: Add required include files from gimple.h.
186 * go-lang.c: Likewise
188 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
190 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
191 tree_to_shwi throughout.
193 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
195 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
196 tree_fits_shwi_p throughout.
198 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
200 * go-lang.c: Include only gimplify.h and gimple.h as needed.
202 2013-11-14 Diego Novillo <dnovillo@google.com>
204 * go-backend.c: Include stor-layout.h.
205 * go-gcc.cc: Include stringpool.h.
206 Include stor-layout.h.
208 * go-lang.c: Include stor-layout.h.
210 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
212 * go-lang.c: Include gimplify.h.
214 2013-11-06 Ian Lance Taylor <iant@google.com>
216 * go-lang.c (go_langhook_post_options): If
217 -fisolate-erroneous-paths was turned on by an optimization option,
220 2013-10-14 Chris Manghane <cmang@google.com>
222 * go-gcc.cc (Gcc_backend::address_expression): New function.
224 2013-10-11 Chris Manghane <cmang@google.com>
226 * go-gcc.cc (Gcc_backend::function_code_expression): New
229 2013-10-10 Chris Manghane <cmang@google.com>
231 * go-gcc.cc (Gcc_backend::error_function): New function.
232 (Gcc_backend::function): New function.
233 (Gcc_backend::make_function): New function.
234 (function_to_tree): New function.
236 2013-10-04 Chris Manghane <cmang@google.com>
238 * go-gcc.cc (Gcc_backend::convert_expression): New function.
240 2013-10-02 Chris Manghane <cmang@google.com>
242 * go-gcc.cc: Include "real.h" and "realmpfr.h".
243 (Gcc_backend::integer_constant_expression): New function.
244 (Gcc_backend::float_constant_expression): New function.
245 (Gcc_backend::complex_constant_expression): New function.
247 2013-09-30 Chris Manghane <cmang@google.com>
249 * go-gcc.cc (Gcc_backend::error_expression): New function.
250 (Gcc_backend::var_expression): New function.
251 (Gcc_backend::indirect_expression): New function.
253 2013-09-25 Tom Tromey <tromey@redhat.com>
255 * Make-lang.in (gospec.o): Remove.
256 (CFLAGS-go/gospec.o): New variable.
257 (GCCGO_OBJS): Update to use go/gospec.o.
259 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
260 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
261 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
262 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
263 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
264 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
265 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
266 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
267 (go/unsafe.o): Remove.
268 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
269 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
271 2013-09-25 Tom Tromey <tromey@redhat.com>
273 * Make-lang.in (gospec.o): Don't use subshell.
275 2013-08-28 Ian Lance Taylor <iant@google.com>
277 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
278 the struct is not hidden.
279 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
281 2013-08-06 Ian Lance Taylor <iant@google.com>
283 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
284 compute_reloc_for_constant.
286 2013-08-02 Ian Lance Taylor <iant@google.com>
288 * go-gcc.cc (immutable_struct_set_init): Always call
289 resolve_unique_section.
291 2013-07-24 Ian Lance Taylor <iant@google.com>
293 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
294 fields, recreate those fields with the first one with a non-zero
297 2013-07-23 Ian Lance Taylor <iant@google.com>
299 * go-backend.c: Don't #include "rtl.h".
300 (go_imported_unsafe): Don't call init_varasm_once.
301 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
303 2013-07-23 Ian Lance Taylor <iant@google.com>
305 * go-lang.c: Don't #include "except.h".
306 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
308 2013-06-18 Ian Lance Taylor <iant@google.com>
310 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
312 (Gcc_backend::immutable_struct_set_init): Likewise.
314 2013-05-16 Jason Merrill <jason@redhat.com>
316 * Make-lang.in (go1$(exeext)): Use link mutex.
318 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
320 * gospec.c: pass -u pthread_create to linker when static linking.
322 2012-12-21 Ian Lance Taylor <iant@google.com>
325 * go-system.h: Don't include <cstdio>.
327 2012-12-18 Ian Lance Taylor <iant@google.com>
330 * gospec.c: Revert last patch.
332 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
335 * gospec.c (LIBATOMIC): Define.
336 (LIBATOMIC_PROFILE): Define.
337 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
339 2012-11-29 Ian Lance Taylor <iant@google.com>
341 * go-gcc.cc: Include "output.h".
342 (global_variable): Add is_unique_section parameter.
343 (global_variable_set_init): Adjust unique section if necessary.
344 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
346 2012-11-17 Diego Novillo <dnovillo@google.com>
348 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
350 * go-lang.c: Use new vec API in vec.h.
352 2012-11-16 Ian Lance Taylor <iant@google.com>
354 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
355 (go1$(exeext)): Likewise.
357 2012-10-30 Ian Lance Taylor <iant@google.com>
359 * lang.opt (-fgo-relative-import-path): New option.
360 * go-lang.c (go_relative_import_path): New static variable.
361 (go_langhook_init): Pass go_relative_import_path to
363 (go_langhook_handle_option): Handle -fgo-relative-import-path.
364 * go-c.h (go_create_gogo): Update declaration.
365 * gccgo.texi (Invoking gccgo): Document
366 -fgo-relative-import-path.
368 2012-09-17 Ian Lance Taylor <iant@google.com>
370 * config-lang.in (target_libs): Add target-libbacktrace.
372 2012-09-16 Ian Lance Taylor <iant@google.com>
374 * Make-lang.in (go/gogo.o): Depend on filenames.h.
376 2012-08-14 Diego Novillo <dnovillo@google.com>
378 Merge from cxx-conversion branch. Configury.
380 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
381 * go-gcc.cc: Likewise.
382 * go-system.h: Likewise.
384 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
386 * go-lang.c (lang_decl): Add variable_size GTY option.
388 2012-05-09 Ian Lance Taylor <iant@google.com>
390 * lang.opt: Add -fgo-pkgpath.
391 * go-lang.c (go_pkgpath): New static variable.
392 (go_prefix): New static variable.
393 (go_langhook_init): Pass go_pkgpath and go_prefix to
395 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
396 -fgo-prefix handling to just set go_prefix.
397 * go-c.h (go_set_prefix): Don't declare.
398 (go_create_gogo): Add pkgpath and prefix to declaration.
399 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
400 to pkgpath. Don't include the package name in the asm name.
401 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
402 docs for -fgo-prefix.
404 2012-04-23 Ian Lance Taylor <iant@google.com>
406 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
408 2012-04-20 Ian Lance Taylor <iant@google.com>
410 * lang.opt: Add -fgo-check-divide-zero and
411 -fgo-check-divide-overflow.
412 * gccgo.texi (Invoking gccgo): Document new options.
414 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
416 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
417 with NULL_TREE type instead of void_type_node.
419 2012-03-09 Ian Lance Taylor <iant@google.com>
421 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
422 to the lhs type if necessary.
424 2012-03-08 Ian Lance Taylor <iant@google.com>
426 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
428 (go_non_zero_struct): New global variable.
429 (Gcc_backend::non_zero_size_type): New function.
430 (Gcc_backend::global_variable): Don't build an assignment for a
432 * go-c.h (go_non_zero_struct): Declare.
433 * config-lang.in (gtfiles): Add go-c.h.
435 2012-02-29 Ian Lance Taylor <iant@google.com>
437 * go-gcc.cc (class Gcc_tree): Add set_tree method.
438 (set_placeholder_pointer_type): When setting to a pointer to
439 error, set to error_mark_node.
441 2012-02-23 Richard Guenther <rguenther@suse.de>
443 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
444 build_distinct_type_copy.
446 2012-02-17 Ian Lance Taylor <iant@google.com>
448 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
450 2012-02-17 Ian Lance Taylor <iant@google.com>
452 * gospec.c (lang_specific_driver): If linking, and no -o option
455 2012-02-14 Ian Lance Taylor <iant@google.com>
458 * Make-lang.in (gccgo-cross$(exeext)): New target.
459 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
461 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
462 gccgo-cross$(exeext) does not exist.
464 2012-02-07 Ian Lance Taylor <iant@google.com>
466 * gccgo.texi (Function Names): Document //extern instead of
469 2012-02-01 Jakub Jelinek <jakub@redhat.com>
472 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
473 return build_nonstandard_integer_type result if possible.
475 2012-01-21 Ian Lance Taylor <iant@google.com>
477 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
478 (Gcc_backend::type_alignment): Likewise.
479 (Gcc_backend::type_field_alignment): Likewise.
480 (Gcc_backend::type_field_offset): Likewise.
482 2012-01-20 Ian Lance Taylor <iant@google.com>
484 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
486 (Gcc_backend::set_placeholder_struct_type): Likewise.
488 2012-01-17 Ian Lance Taylor <iant@google.com>
490 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
491 BASE.s rather than -o BASE.o.
493 2012-01-11 Ian Lance Taylor <iant@google.com>
495 * go-lang.c (go_langhook_init): Initialize void_list_node before
496 calling go_create_gogo.
498 2012-01-10 Ian Lance Taylor <iant@google.com>
500 * go-gcc.cc (Gcc_backend::type_size): New function.
501 (Gcc_backend::type_alignment): New function.
502 (Gcc_backend::type_field_alignment): New function.
503 (Gcc_backend::type_field_offset): New function.
504 * go-backend.c (go_type_alignment): Remove.
505 * go-c.h (go_type_alignment): Don't declare.
507 2011-12-27 Ian Lance Taylor <iant@google.com>
509 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
510 build_distinct_type_copy rather than build_variant_type_copy.
511 (Gcc_backend::set_placeholder_array_type): Likewise.
512 (Gcc_backend::named_type): Add special handling for builtin
515 2011-12-22 Ian Lance Taylor <iant@google.com>
517 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
518 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
519 (Gcc_backend::set_placeholder_struct_type): Likewise.
520 (Gcc_backend::set_placeholder_array_type): Likewise.
521 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
523 2011-12-13 Ian Lance Taylor <iant@google.com>
525 * go-backend.c: #include "simple-object.h" and "intl.h".
526 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
527 (GO_EXPORT_SECTION_NAME): Likewise.
528 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
529 (go_read_export_data): New function.
530 * go-c.h (go_read_export_data): Declare.
532 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
533 Ian Lance Taylor <iant@google.com>
535 * go-location.h: New file.
536 * go-linemap.cc: New file.
537 * go-gcc.cc: Change all uses of source_location to Location.
538 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
539 (GO_LINEMAP_H): New variable.
540 (GO_LEX_H): Use $(GO_LINEMAP_H).
541 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
542 (go/go-linemap.o): New target.
544 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
546 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
548 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
550 * lang.opt: Add fgo-optimize-.
551 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
552 * go-c.h (go_enable_optimize): Declare.
553 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
554 (GO_EXPORT_H): Define.
555 (GO_IMPORT_H): Add $(GO_EXPORT_H).
556 (GO_AST_DUMP_H): Define.
557 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
558 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
559 (go/types.o): Likewise.
560 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
561 (go/go-optimize.o): New target.
563 2011-08-24 Joseph Myers <joseph@codesourcery.com>
565 * Make-lang.in (CFLAGS-go/go-lang.o): New.
566 (go/go-lang.o): Remove explicit compilation rule.
568 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
570 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
572 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
574 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
575 (go/ast-dump.o): New target.
576 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
577 (go/statements.o): Likewise.
579 2011-07-06 Richard Guenther <rguenther@suse.de>
581 * go-lang.c (go_langhook_init):
582 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
584 2011-06-14 Joseph Myers <joseph@codesourcery.com>
586 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
588 * go-backend.c: Include common/common-target.h.
589 (go_write_export_data): Use targetm_common.have_named_sections.
590 * go-lang.c: Include common/common-target.h.
591 (go_langhook_init_options_struct): Use
592 targetm_common.supports_split_stack.
594 2011-06-13 Ian Lance Taylor <iant@google.com>
596 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
598 2011-06-10 Ian Lance Taylor <iant@google.com>
600 * go-gcc.cc: Include "toplev.h".
601 (Gcc_backend::immutable_struct): New function.
602 (Gcc_backend::immutable_struct_set_init): New function.
603 (Gcc_backend::immutable_struct_reference): New function.
604 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
606 2011-06-09 Ian Lance Taylor <iant@google.com>
608 * go-gcc.cc (Gcc_backend::zero_expression): New function.
610 2011-06-07 Richard Guenther <rguenther@suse.de>
612 * go-lang.c (go_langhook_init): Do not set
613 size_type_node or call set_sizetype.
615 2011-05-27 Ian Lance Taylor <iant@google.com>
617 * go-backend.c: Include "output.h".
618 (go_write_export_data): New function.
619 * go-c.h (go_write_export_data): Declare.
620 * Make-lang.in (go/go-backend.o): Depend on output.h.
621 (go/export.o): Depend on $(GO_C_H). Do not depend on
622 $(MACHMODE_H), output.h, or $(TARGET_H).
624 2011-05-24 Joseph Myers <joseph@codesourcery.com>
626 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
627 (gccgo$(exeext)): Use libcommon-target.a.
629 2011-05-20 Joseph Myers <joseph@codesourcery.com>
631 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
633 2011-05-13 Ian Lance Taylor <iant@google.com>
635 * go-gcc.cc (Gcc_backend::function_type): When building a struct
636 for multiple results, check that all fields types have a size.
637 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
639 2011-05-12 Ian Lance Taylor <iant@google.com>
641 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
643 (Gcc_backend::parameter_variable): Likewise.
645 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
647 * go-lang.c (global_bindings_p): Return bool and simplify.
649 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
651 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
653 2011-05-04 Ian Lance Taylor <iant@google.com>
655 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
656 (Gcc_backend::fill_in_struct): New function.
657 (Gcc_backend::array_type): Implement.
658 (Gcc_backend::fill_in_array): New function.
659 (Gcc_backend::placeholder_pointer_type): New function.
660 (Gcc_backend::set_placeholder_pointer_type): New function.
661 (Gcc_backend::set_placeholder_function_type): New function.
662 (Gcc_backend::placeholder_struct_type): New function.
663 (Gcc_backend::set_placeholder_struct_type): New function.
664 (Gcc_backend::placeholder_array_type): New function.
665 (Gcc_backend::set_placeholder_array_type): New function.
666 (Gcc_backend::named_type): New function.
667 (Gcc_backend::circular_pointer_type): New function.
668 (Gcc_backend::is_circular_pointer_type): New function.
670 2011-04-26 Ian Lance Taylor <iant@google.com>
672 * go-gcc.cc (Gcc_backend::struct_type): Implement.
674 2011-04-25 Ian Lance Taylor <iant@google.com>
676 * go-gcc.cc (Gcc_backend::error_type): Implement.
677 (Gcc_backend::string_type): Remove.
678 (Gcc_backend::function_type): Change signature and implement.
679 (Gcc_backend::struct_type): Change signature.
680 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
681 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
682 (Gcc_backend::pointer_type): Check for error.
683 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
685 2011-04-25 Evan Shaw <edsrzf@gmail.com>
687 * go-gcc.c (class Gcc_tree): Make get_tree const.
688 (Gcc_backend::void_type): Implement.
689 (Gcc_backend::bool_type): Implement.
690 (Gcc_backend::integer_type): Implement.
691 (Gcc_backend::float_type): Implement.
692 (Gcc_backend::complex_type): New function.
693 (Gcc_backend::pointer_type): New function.
694 (Gcc_backend::make_type): New function.
695 (type_to_tree): New function.
697 2011-04-21 Ian Lance Taylor <iant@google.com>
699 * go-system.h (go_assert, go_unreachable): Define.
701 2011-04-19 Ian Lance Taylor <iant@google.com>
703 * go-system.h: Include "intl.h".
704 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
705 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
706 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
708 2011-04-19 Ian Lance Taylor <iant@google.com>
710 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
712 2011-04-19 Ian Lance Taylor <iant@google.com>
714 * go-gcc.cc (class Bblock): Define.
715 (Gcc_backend::if_statement): Change then_block and else_block to
717 (Gcc_backend::block): New function.
718 (Gcc_backend::block_add_statements): New function.
719 (Gcc_backend::block_statement): New function.
720 (tree_to_block, block_to_tree): New functions.
722 2011-04-18 Ian Lance Taylor <iant@google.com>
724 * go-gcc.cc: Include "go-c.h".
725 (class Bvariable): Define.
726 (Gcc_backend::init_statement): New function.
727 (Gcc_backend::global_variable): New function.
728 (Gcc_backend::global_variable_set_init): New function.
729 (Gcc_backend::local_variable): New function.
730 (Gcc_backend::parameter_variable): New function.
731 (tree_to_type, var_to_tree): New functions.
732 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
733 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
735 2011-04-15 Ian Lance Taylor <iant@google.com>
737 * go-gcc.cc (Gcc_backend::compound_statement): New function.
738 (Gcc_backend::assignment_statement): Use error_statement.
739 (Gcc_backend::return_statement): Likewise.
740 (Gcc_backend::if_statement): Likewise.
741 (Gcc_backend::switch_statement): Likewise.
742 (Gcc_backend::statement_list): Likewise.
744 2011-04-14 Ian Lance Taylor <iant@google.com>
746 * go-gcc.cc (Gcc_backend::error_statement): New function.
748 2011-04-13 Ian Lance Taylor <iant@google.com>
750 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
752 2011-04-13 Ian Lance Taylor <iant@google.com>
754 * Make-lang.in (GO_OBJS): Add go/runtime.o.
755 (GO_RUNTIME_H): New variable.
756 (go/runtime.o): New target.
757 (go/gogo.o): Depend on $(GO_RUNTIME_H).
758 (go/statements.o): Likewise.
760 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
762 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
765 2011-04-06 Ian Lance Taylor <iant@google.com>
767 * go-gcc.cc (if_statement): Use build3_loc.
768 (Gcc_backend::switch_statement): New function.
769 (Gcc_backend::statement_list): New function.
771 2011-04-06 Ian Lance Taylor <iant@google.com>
773 * go-gcc.cc (Gcc_backend::if_statement): New function.
774 (tree_to_stat): New function.
775 (expr_to_tree): Renamed from expression_to_tree.
776 (stat_to_tree): Renamed from statement_to_tree.
778 2011-04-06 Ian Lance Taylor <iant@google.com>
780 * go-gcc.cc (Gcc_backend::expression_statement): New function.
782 2011-04-04 Ian Lance Taylor <iant@google.com>
784 * go-gcc.c (class Blabel): Define.
785 (Gcc_backend::make_expression): New function.
786 (get_identifier_from_string): New function.
787 (Gcc_backend::label): New function.
788 (Gcc_backend::label_definition_statement): New function.
789 (Gcc_backend::goto_statement): New function.
790 (Gcc_backend::label_address): New function.
791 (expression_to_tree): New function.
792 * Make-lang.in (go/expressions.o): Depend on
793 go/gofrontend/backend.h.
794 (go/gogo.o): Likewise.
796 2011-04-04 Ian Lance Taylor <iant@google.com>
798 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
799 (class Bfunction): Define.
800 (Gcc_backend::assignment_statement): Rename from assignment.
802 (Gcc_backend::return_statement): New function.
803 (tree_to_function): New function.
804 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
805 $(GIMPLE_H), and $(GO_GOGO_H).
807 2011-04-03 Ian Lance Taylor <iant@google.com>
809 * go-gcc.cc: New file.
810 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
811 (go/go-gcc.o): New target.
812 (go/go.o): Depend on go/gofrontend/backend.h.
813 (go/statements.o): Likewise.
815 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
817 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
819 2011-02-08 Ian Lance Taylor <iant@google.com>
821 * go-lang.c (go_langhook_init_options_struct): Set
822 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
824 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
826 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
827 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
829 2011-01-21 Ian Lance Taylor <iant@google.com>
831 * go-lang.c (go_langhook_init): Omit float_type_size when calling
833 * go-c.h: Update declaration of go_create_gogo.
835 2011-01-13 Ian Lance Taylor <iant@google.com>
837 * go-backend.c: Include "rtl.h" and "target.h".
838 (go_imported_unsafe): New function.
839 * go-c.h (go_imported_unsafe): Declare.
840 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
841 (go/gogo-tree.o): Remove dependency on $(RTL_H).
842 (go/unsafe.o): Depend on $(GO_C_H).
844 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
847 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
850 2010-12-21 Ian Lance Taylor <iant@google.com>
852 * Make-lang.in (check-go): Remove.
853 (lang_checks_parallelized): Add check-go.
854 (check_go_parallelize): Set.
856 2010-12-13 Ian Lance Taylor <iant@google.com>
858 * gospec.c (lang_specific_driver): Add a -o option if not linking
859 and there is no -o option already.
861 2010-12-07 Ian Lance Taylor <iant@google.com>
863 PR tree-optimization/46805
864 PR tree-optimization/46833
865 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
867 2010-12-06 Ian Lance Taylor <iant@google.com>
871 * go-lang.c (go_char_p): Define type and vectors.
872 (go_search_dirs): New static variable.
873 (go_langhook_handle_option): Use version and version/machine
875 (go_langhook_post_options): Add non-specific -L paths.
876 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
877 DEFAULT_TARGET_MACHINE when compiling.
878 * gccgo.texi (Invoking gccgo): Only document -L for linking.
879 (Import and Export): Don't mention -L for finding import files.
881 2010-12-03 Ian Lance Taylor <iant@google.com>
884 * go-backend.c: New file.
885 * go-c.h (go_type_alignment): Declare.
886 (go_field_alignment, go_trampoline_info): Declare.
887 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
888 (go/go-backend.o): New target.
889 (go/go-lang.o): Make dependencies match source file.
890 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
891 (go/gogo-tree.o): Don't depend on $(TM_H).
893 2010-12-03 Ian Lance Taylor <iant@google.com>
895 * config-lang.in (build_by_default): Set to no.
897 2010-12-02 Ian Lance Taylor <iant@google.com>
899 Go frontend added to gcc repository.
901 Copyright (C) 2010-2014 Free Software Foundation, Inc.
903 Copying and distribution of this file, with or without modification,
904 are permitted in any medium without royalty provided the copyright
905 notice and this notice are preserved.