1 2013-10-14 Chris Manghane <cmang@google.com>
3 * go-gcc.cc (Gcc_backend::address_expression): New function.
5 2013-10-11 Chris Manghane <cmang@google.com>
7 * go-gcc.cc (Gcc_backend::function_code_expression): New
10 2013-10-10 Chris Manghane <cmang@google.com>
12 * go-gcc.cc (Gcc_backend::error_function): New function.
13 (Gcc_backend::function): New function.
14 (Gcc_backend::make_function): New function.
15 (function_to_tree): New function.
17 2013-10-04 Chris Manghane <cmang@google.com>
19 * go-gcc.cc (Gcc_backend::convert_expression): New function.
21 2013-10-02 Chris Manghane <cmang@google.com>
23 * go-gcc.cc: Include "real.h" and "realmpfr.h".
24 (Gcc_backend::integer_constant_expression): New function.
25 (Gcc_backend::float_constant_expression): New function.
26 (Gcc_backend::complex_constant_expression): New function.
28 2013-09-30 Chris Manghane <cmang@google.com>
30 * go-gcc.cc (Gcc_backend::error_expression): New function.
31 (Gcc_backend::var_expression): New function.
32 (Gcc_backend::indirect_expression): New function.
34 2013-09-25 Tom Tromey <tromey@redhat.com>
36 * Make-lang.in (gospec.o): Remove.
37 (CFLAGS-go/gospec.o): New variable.
38 (GCCGO_OBJS): Update to use go/gospec.o.
40 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
41 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
42 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
43 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
44 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
45 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
46 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
47 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
48 (go/unsafe.o): Remove.
49 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
50 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
52 2013-09-25 Tom Tromey <tromey@redhat.com>
54 * Make-lang.in (gospec.o): Don't use subshell.
56 2013-08-28 Ian Lance Taylor <iant@google.com>
58 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
59 the struct is not hidden.
60 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
62 2013-08-06 Ian Lance Taylor <iant@google.com>
64 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
65 compute_reloc_for_constant.
67 2013-08-02 Ian Lance Taylor <iant@google.com>
69 * go-gcc.cc (immutable_struct_set_init): Always call
70 resolve_unique_section.
72 2013-07-24 Ian Lance Taylor <iant@google.com>
74 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
75 fields, recreate those fields with the first one with a non-zero
78 2013-07-23 Ian Lance Taylor <iant@google.com>
80 * go-backend.c: Don't #include "rtl.h".
81 (go_imported_unsafe): Don't call init_varasm_once.
82 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
84 2013-07-23 Ian Lance Taylor <iant@google.com>
86 * go-lang.c: Don't #include "except.h".
87 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
89 2013-06-18 Ian Lance Taylor <iant@google.com>
91 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
93 (Gcc_backend::immutable_struct_set_init): Likewise.
95 2013-05-16 Jason Merrill <jason@redhat.com>
97 * Make-lang.in (go1$(exeext)): Use link mutex.
99 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
101 * gospec.c: pass -u pthread_create to linker when static linking.
103 2012-12-21 Ian Lance Taylor <iant@google.com>
106 * go-system.h: Don't include <cstdio>.
108 2012-12-18 Ian Lance Taylor <iant@google.com>
111 * gospec.c: Revert last patch.
113 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
116 * gospec.c (LIBATOMIC): Define.
117 (LIBATOMIC_PROFILE): Define.
118 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
120 2012-11-29 Ian Lance Taylor <iant@google.com>
122 * go-gcc.cc: Include "output.h".
123 (global_variable): Add is_unique_section parameter.
124 (global_variable_set_init): Adjust unique section if necessary.
125 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
127 2012-11-17 Diego Novillo <dnovillo@google.com>
129 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
131 * go-lang.c: Use new vec API in vec.h.
133 2012-11-16 Ian Lance Taylor <iant@google.com>
135 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
136 (go1$(exeext)): Likewise.
138 2012-10-30 Ian Lance Taylor <iant@google.com>
140 * lang.opt (-fgo-relative-import-path): New option.
141 * go-lang.c (go_relative_import_path): New static variable.
142 (go_langhook_init): Pass go_relative_import_path to
144 (go_langhook_handle_option): Handle -fgo-relative-import-path.
145 * go-c.h (go_create_gogo): Update declaration.
146 * gccgo.texi (Invoking gccgo): Document
147 -fgo-relative-import-path.
149 2012-09-17 Ian Lance Taylor <iant@google.com>
151 * config-lang.in (target_libs): Add target-libbacktrace.
153 2012-09-16 Ian Lance Taylor <iant@google.com>
155 * Make-lang.in (go/gogo.o): Depend on filenames.h.
157 2012-08-14 Diego Novillo <dnovillo@google.com>
159 Merge from cxx-conversion branch. Configury.
161 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
162 * go-gcc.cc: Likewise.
163 * go-system.h: Likewise.
165 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
167 * go-lang.c (lang_decl): Add variable_size GTY option.
169 2012-05-09 Ian Lance Taylor <iant@google.com>
171 * lang.opt: Add -fgo-pkgpath.
172 * go-lang.c (go_pkgpath): New static variable.
173 (go_prefix): New static variable.
174 (go_langhook_init): Pass go_pkgpath and go_prefix to
176 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
177 -fgo-prefix handling to just set go_prefix.
178 * go-c.h (go_set_prefix): Don't declare.
179 (go_create_gogo): Add pkgpath and prefix to declaration.
180 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
181 to pkgpath. Don't include the package name in the asm name.
182 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
183 docs for -fgo-prefix.
185 2012-04-23 Ian Lance Taylor <iant@google.com>
187 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
189 2012-04-20 Ian Lance Taylor <iant@google.com>
191 * lang.opt: Add -fgo-check-divide-zero and
192 -fgo-check-divide-overflow.
193 * gccgo.texi (Invoking gccgo): Document new options.
195 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
197 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
198 with NULL_TREE type instead of void_type_node.
200 2012-03-09 Ian Lance Taylor <iant@google.com>
202 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
203 to the lhs type if necessary.
205 2012-03-08 Ian Lance Taylor <iant@google.com>
207 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
209 (go_non_zero_struct): New global variable.
210 (Gcc_backend::non_zero_size_type): New function.
211 (Gcc_backend::global_variable): Don't build an assignment for a
213 * go-c.h (go_non_zero_struct): Declare.
214 * config-lang.in (gtfiles): Add go-c.h.
216 2012-02-29 Ian Lance Taylor <iant@google.com>
218 * go-gcc.cc (class Gcc_tree): Add set_tree method.
219 (set_placeholder_pointer_type): When setting to a pointer to
220 error, set to error_mark_node.
222 2012-02-23 Richard Guenther <rguenther@suse.de>
224 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
225 build_distinct_type_copy.
227 2012-02-17 Ian Lance Taylor <iant@google.com>
229 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
231 2012-02-17 Ian Lance Taylor <iant@google.com>
233 * gospec.c (lang_specific_driver): If linking, and no -o option
236 2012-02-14 Ian Lance Taylor <iant@google.com>
239 * Make-lang.in (gccgo-cross$(exeext)): New target.
240 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
242 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
243 gccgo-cross$(exeext) does not exist.
245 2012-02-07 Ian Lance Taylor <iant@google.com>
247 * gccgo.texi (Function Names): Document //extern instead of
250 2012-02-01 Jakub Jelinek <jakub@redhat.com>
253 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
254 return build_nonstandard_integer_type result if possible.
256 2012-01-21 Ian Lance Taylor <iant@google.com>
258 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
259 (Gcc_backend::type_alignment): Likewise.
260 (Gcc_backend::type_field_alignment): Likewise.
261 (Gcc_backend::type_field_offset): Likewise.
263 2012-01-20 Ian Lance Taylor <iant@google.com>
265 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
267 (Gcc_backend::set_placeholder_struct_type): Likewise.
269 2012-01-17 Ian Lance Taylor <iant@google.com>
271 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
272 BASE.s rather than -o BASE.o.
274 2012-01-11 Ian Lance Taylor <iant@google.com>
276 * go-lang.c (go_langhook_init): Initialize void_list_node before
277 calling go_create_gogo.
279 2012-01-10 Ian Lance Taylor <iant@google.com>
281 * go-gcc.cc (Gcc_backend::type_size): New function.
282 (Gcc_backend::type_alignment): New function.
283 (Gcc_backend::type_field_alignment): New function.
284 (Gcc_backend::type_field_offset): New function.
285 * go-backend.c (go_type_alignment): Remove.
286 * go-c.h (go_type_alignment): Don't declare.
288 2011-12-27 Ian Lance Taylor <iant@google.com>
290 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
291 build_distinct_type_copy rather than build_variant_type_copy.
292 (Gcc_backend::set_placeholder_array_type): Likewise.
293 (Gcc_backend::named_type): Add special handling for builtin
296 2011-12-22 Ian Lance Taylor <iant@google.com>
298 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
299 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
300 (Gcc_backend::set_placeholder_struct_type): Likewise.
301 (Gcc_backend::set_placeholder_array_type): Likewise.
302 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
304 2011-12-13 Ian Lance Taylor <iant@google.com>
306 * go-backend.c: #include "simple-object.h" and "intl.h".
307 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
308 (GO_EXPORT_SECTION_NAME): Likewise.
309 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
310 (go_read_export_data): New function.
311 * go-c.h (go_read_export_data): Declare.
313 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
314 Ian Lance Taylor <iant@google.com>
316 * go-location.h: New file.
317 * go-linemap.cc: New file.
318 * go-gcc.cc: Change all uses of source_location to Location.
319 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
320 (GO_LINEMAP_H): New variable.
321 (GO_LEX_H): Use $(GO_LINEMAP_H).
322 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
323 (go/go-linemap.o): New target.
325 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
327 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
329 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
331 * lang.opt: Add fgo-optimize-.
332 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
333 * go-c.h (go_enable_optimize): Declare.
334 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
335 (GO_EXPORT_H): Define.
336 (GO_IMPORT_H): Add $(GO_EXPORT_H).
337 (GO_AST_DUMP_H): Define.
338 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
339 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
340 (go/types.o): Likewise.
341 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
342 (go/go-optimize.o): New target.
344 2011-08-24 Joseph Myers <joseph@codesourcery.com>
346 * Make-lang.in (CFLAGS-go/go-lang.o): New.
347 (go/go-lang.o): Remove explicit compilation rule.
349 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
351 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
353 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
355 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
356 (go/ast-dump.o): New target.
357 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
358 (go/statements.o): Likewise.
360 2011-07-06 Richard Guenther <rguenther@suse.de>
362 * go-lang.c (go_langhook_init):
363 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
365 2011-06-14 Joseph Myers <joseph@codesourcery.com>
367 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
369 * go-backend.c: Include common/common-target.h.
370 (go_write_export_data): Use targetm_common.have_named_sections.
371 * go-lang.c: Include common/common-target.h.
372 (go_langhook_init_options_struct): Use
373 targetm_common.supports_split_stack.
375 2011-06-13 Ian Lance Taylor <iant@google.com>
377 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
379 2011-06-10 Ian Lance Taylor <iant@google.com>
381 * go-gcc.cc: Include "toplev.h".
382 (Gcc_backend::immutable_struct): New function.
383 (Gcc_backend::immutable_struct_set_init): New function.
384 (Gcc_backend::immutable_struct_reference): New function.
385 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
387 2011-06-09 Ian Lance Taylor <iant@google.com>
389 * go-gcc.cc (Gcc_backend::zero_expression): New function.
391 2011-06-07 Richard Guenther <rguenther@suse.de>
393 * go-lang.c (go_langhook_init): Do not set
394 size_type_node or call set_sizetype.
396 2011-05-27 Ian Lance Taylor <iant@google.com>
398 * go-backend.c: Include "output.h".
399 (go_write_export_data): New function.
400 * go-c.h (go_write_export_data): Declare.
401 * Make-lang.in (go/go-backend.o): Depend on output.h.
402 (go/export.o): Depend on $(GO_C_H). Do not depend on
403 $(MACHMODE_H), output.h, or $(TARGET_H).
405 2011-05-24 Joseph Myers <joseph@codesourcery.com>
407 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
408 (gccgo$(exeext)): Use libcommon-target.a.
410 2011-05-20 Joseph Myers <joseph@codesourcery.com>
412 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
414 2011-05-13 Ian Lance Taylor <iant@google.com>
416 * go-gcc.cc (Gcc_backend::function_type): When building a struct
417 for multiple results, check that all fields types have a size.
418 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
420 2011-05-12 Ian Lance Taylor <iant@google.com>
422 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
424 (Gcc_backend::parameter_variable): Likewise.
426 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
428 * go-lang.c (global_bindings_p): Return bool and simplify.
430 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
432 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
434 2011-05-04 Ian Lance Taylor <iant@google.com>
436 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
437 (Gcc_backend::fill_in_struct): New function.
438 (Gcc_backend::array_type): Implement.
439 (Gcc_backend::fill_in_array): New function.
440 (Gcc_backend::placeholder_pointer_type): New function.
441 (Gcc_backend::set_placeholder_pointer_type): New function.
442 (Gcc_backend::set_placeholder_function_type): New function.
443 (Gcc_backend::placeholder_struct_type): New function.
444 (Gcc_backend::set_placeholder_struct_type): New function.
445 (Gcc_backend::placeholder_array_type): New function.
446 (Gcc_backend::set_placeholder_array_type): New function.
447 (Gcc_backend::named_type): New function.
448 (Gcc_backend::circular_pointer_type): New function.
449 (Gcc_backend::is_circular_pointer_type): New function.
451 2011-04-26 Ian Lance Taylor <iant@google.com>
453 * go-gcc.cc (Gcc_backend::struct_type): Implement.
455 2011-04-25 Ian Lance Taylor <iant@google.com>
457 * go-gcc.cc (Gcc_backend::error_type): Implement.
458 (Gcc_backend::string_type): Remove.
459 (Gcc_backend::function_type): Change signature and implement.
460 (Gcc_backend::struct_type): Change signature.
461 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
462 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
463 (Gcc_backend::pointer_type): Check for error.
464 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
466 2011-04-25 Evan Shaw <edsrzf@gmail.com>
468 * go-gcc.c (class Gcc_tree): Make get_tree const.
469 (Gcc_backend::void_type): Implement.
470 (Gcc_backend::bool_type): Implement.
471 (Gcc_backend::integer_type): Implement.
472 (Gcc_backend::float_type): Implement.
473 (Gcc_backend::complex_type): New function.
474 (Gcc_backend::pointer_type): New function.
475 (Gcc_backend::make_type): New function.
476 (type_to_tree): New function.
478 2011-04-21 Ian Lance Taylor <iant@google.com>
480 * go-system.h (go_assert, go_unreachable): Define.
482 2011-04-19 Ian Lance Taylor <iant@google.com>
484 * go-system.h: Include "intl.h".
485 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
486 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
487 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
489 2011-04-19 Ian Lance Taylor <iant@google.com>
491 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
493 2011-04-19 Ian Lance Taylor <iant@google.com>
495 * go-gcc.cc (class Bblock): Define.
496 (Gcc_backend::if_statement): Change then_block and else_block to
498 (Gcc_backend::block): New function.
499 (Gcc_backend::block_add_statements): New function.
500 (Gcc_backend::block_statement): New function.
501 (tree_to_block, block_to_tree): New functions.
503 2011-04-18 Ian Lance Taylor <iant@google.com>
505 * go-gcc.cc: Include "go-c.h".
506 (class Bvariable): Define.
507 (Gcc_backend::init_statement): New function.
508 (Gcc_backend::global_variable): New function.
509 (Gcc_backend::global_variable_set_init): New function.
510 (Gcc_backend::local_variable): New function.
511 (Gcc_backend::parameter_variable): New function.
512 (tree_to_type, var_to_tree): New functions.
513 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
514 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
516 2011-04-15 Ian Lance Taylor <iant@google.com>
518 * go-gcc.cc (Gcc_backend::compound_statement): New function.
519 (Gcc_backend::assignment_statement): Use error_statement.
520 (Gcc_backend::return_statement): Likewise.
521 (Gcc_backend::if_statement): Likewise.
522 (Gcc_backend::switch_statement): Likewise.
523 (Gcc_backend::statement_list): Likewise.
525 2011-04-14 Ian Lance Taylor <iant@google.com>
527 * go-gcc.cc (Gcc_backend::error_statement): New function.
529 2011-04-13 Ian Lance Taylor <iant@google.com>
531 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
533 2011-04-13 Ian Lance Taylor <iant@google.com>
535 * Make-lang.in (GO_OBJS): Add go/runtime.o.
536 (GO_RUNTIME_H): New variable.
537 (go/runtime.o): New target.
538 (go/gogo.o): Depend on $(GO_RUNTIME_H).
539 (go/statements.o): Likewise.
541 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
543 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
546 2011-04-06 Ian Lance Taylor <iant@google.com>
548 * go-gcc.cc (if_statement): Use build3_loc.
549 (Gcc_backend::switch_statement): New function.
550 (Gcc_backend::statement_list): New function.
552 2011-04-06 Ian Lance Taylor <iant@google.com>
554 * go-gcc.cc (Gcc_backend::if_statement): New function.
555 (tree_to_stat): New function.
556 (expr_to_tree): Renamed from expression_to_tree.
557 (stat_to_tree): Renamed from statement_to_tree.
559 2011-04-06 Ian Lance Taylor <iant@google.com>
561 * go-gcc.cc (Gcc_backend::expression_statement): New function.
563 2011-04-04 Ian Lance Taylor <iant@google.com>
565 * go-gcc.c (class Blabel): Define.
566 (Gcc_backend::make_expression): New function.
567 (get_identifier_from_string): New function.
568 (Gcc_backend::label): New function.
569 (Gcc_backend::label_definition_statement): New function.
570 (Gcc_backend::goto_statement): New function.
571 (Gcc_backend::label_address): New function.
572 (expression_to_tree): New function.
573 * Make-lang.in (go/expressions.o): Depend on
574 go/gofrontend/backend.h.
575 (go/gogo.o): Likewise.
577 2011-04-04 Ian Lance Taylor <iant@google.com>
579 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
580 (class Bfunction): Define.
581 (Gcc_backend::assignment_statement): Rename from assignment.
583 (Gcc_backend::return_statement): New function.
584 (tree_to_function): New function.
585 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
586 $(GIMPLE_H), and $(GO_GOGO_H).
588 2011-04-03 Ian Lance Taylor <iant@google.com>
590 * go-gcc.cc: New file.
591 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
592 (go/go-gcc.o): New target.
593 (go/go.o): Depend on go/gofrontend/backend.h.
594 (go/statements.o): Likewise.
596 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
598 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
600 2011-02-08 Ian Lance Taylor <iant@google.com>
602 * go-lang.c (go_langhook_init_options_struct): Set
603 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
605 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
607 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
608 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
610 2011-01-21 Ian Lance Taylor <iant@google.com>
612 * go-lang.c (go_langhook_init): Omit float_type_size when calling
614 * go-c.h: Update declaration of go_create_gogo.
616 2011-01-13 Ian Lance Taylor <iant@google.com>
618 * go-backend.c: Include "rtl.h" and "target.h".
619 (go_imported_unsafe): New function.
620 * go-c.h (go_imported_unsafe): Declare.
621 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
622 (go/gogo-tree.o): Remove dependency on $(RTL_H).
623 (go/unsafe.o): Depend on $(GO_C_H).
625 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
628 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
631 2010-12-21 Ian Lance Taylor <iant@google.com>
633 * Make-lang.in (check-go): Remove.
634 (lang_checks_parallelized): Add check-go.
635 (check_go_parallelize): Set.
637 2010-12-13 Ian Lance Taylor <iant@google.com>
639 * gospec.c (lang_specific_driver): Add a -o option if not linking
640 and there is no -o option already.
642 2010-12-07 Ian Lance Taylor <iant@google.com>
644 PR tree-optimization/46805
645 PR tree-optimization/46833
646 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
648 2010-12-06 Ian Lance Taylor <iant@google.com>
652 * go-lang.c (go_char_p): Define type and vectors.
653 (go_search_dirs): New static variable.
654 (go_langhook_handle_option): Use version and version/machine
656 (go_langhook_post_options): Add non-specific -L paths.
657 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
658 DEFAULT_TARGET_MACHINE when compiling.
659 * gccgo.texi (Invoking gccgo): Only document -L for linking.
660 (Import and Export): Don't mention -L for finding import files.
662 2010-12-03 Ian Lance Taylor <iant@google.com>
665 * go-backend.c: New file.
666 * go-c.h (go_type_alignment): Declare.
667 (go_field_alignment, go_trampoline_info): Declare.
668 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
669 (go/go-backend.o): New target.
670 (go/go-lang.o): Make dependencies match source file.
671 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
672 (go/gogo-tree.o): Don't depend on $(TM_H).
674 2010-12-03 Ian Lance Taylor <iant@google.com>
676 * config-lang.in (build_by_default): Set to no.
678 2010-12-02 Ian Lance Taylor <iant@google.com>
680 Go frontend added to gcc repository.