1 2014-01-14 Chris Manghane <cmang@google.com>
3 * go-gcc.cc (Gcc_backend::compound_expression): New function.
4 (Gcc_backend::conditional_expression): New function.
6 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10 2014-01-02 Tobias Burnus <burnus@net-b.de>
12 * gccgo.texi: Bump @copying's copyright year.
14 2013-12-16 Chris Manghane <cmang@google.com>
16 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
18 2013-12-11 Ian Lance Taylor <iant@google.com>
20 * go-lang.c (go_langhook_post_options): Disable sibling calls by
23 2013-12-10 Ian Lance Taylor <iant@google.com>
25 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
28 2013-12-05 Ian Lance Taylor <iant@google.com>
30 Revert this change; no longer required.
31 2013-11-06 Ian Lance Taylor <iant@google.com>
33 * go-lang.c (go_langhook_post_options): If
34 -fisolate-erroneous-paths was turned on by an optimization option,
37 2013-11-23 Ian Lance Taylor <iant@google.com>
39 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
42 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
44 * go-gcc.cc: Add required include files from gimple.h.
47 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
49 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
50 tree_to_shwi throughout.
52 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
54 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
55 tree_fits_shwi_p throughout.
57 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
59 * go-lang.c: Include only gimplify.h and gimple.h as needed.
61 2013-11-14 Diego Novillo <dnovillo@google.com>
63 * go-backend.c: Include stor-layout.h.
64 * go-gcc.cc: Include stringpool.h.
65 Include stor-layout.h.
67 * go-lang.c: Include stor-layout.h.
69 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
71 * go-lang.c: Include gimplify.h.
73 2013-11-06 Ian Lance Taylor <iant@google.com>
75 * go-lang.c (go_langhook_post_options): If
76 -fisolate-erroneous-paths was turned on by an optimization option,
79 2013-10-14 Chris Manghane <cmang@google.com>
81 * go-gcc.cc (Gcc_backend::address_expression): New function.
83 2013-10-11 Chris Manghane <cmang@google.com>
85 * go-gcc.cc (Gcc_backend::function_code_expression): New
88 2013-10-10 Chris Manghane <cmang@google.com>
90 * go-gcc.cc (Gcc_backend::error_function): New function.
91 (Gcc_backend::function): New function.
92 (Gcc_backend::make_function): New function.
93 (function_to_tree): New function.
95 2013-10-04 Chris Manghane <cmang@google.com>
97 * go-gcc.cc (Gcc_backend::convert_expression): New function.
99 2013-10-02 Chris Manghane <cmang@google.com>
101 * go-gcc.cc: Include "real.h" and "realmpfr.h".
102 (Gcc_backend::integer_constant_expression): New function.
103 (Gcc_backend::float_constant_expression): New function.
104 (Gcc_backend::complex_constant_expression): New function.
106 2013-09-30 Chris Manghane <cmang@google.com>
108 * go-gcc.cc (Gcc_backend::error_expression): New function.
109 (Gcc_backend::var_expression): New function.
110 (Gcc_backend::indirect_expression): New function.
112 2013-09-25 Tom Tromey <tromey@redhat.com>
114 * Make-lang.in (gospec.o): Remove.
115 (CFLAGS-go/gospec.o): New variable.
116 (GCCGO_OBJS): Update to use go/gospec.o.
118 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
119 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
120 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
121 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
122 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
123 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
124 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
125 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
126 (go/unsafe.o): Remove.
127 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
128 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
130 2013-09-25 Tom Tromey <tromey@redhat.com>
132 * Make-lang.in (gospec.o): Don't use subshell.
134 2013-08-28 Ian Lance Taylor <iant@google.com>
136 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
137 the struct is not hidden.
138 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
140 2013-08-06 Ian Lance Taylor <iant@google.com>
142 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
143 compute_reloc_for_constant.
145 2013-08-02 Ian Lance Taylor <iant@google.com>
147 * go-gcc.cc (immutable_struct_set_init): Always call
148 resolve_unique_section.
150 2013-07-24 Ian Lance Taylor <iant@google.com>
152 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
153 fields, recreate those fields with the first one with a non-zero
156 2013-07-23 Ian Lance Taylor <iant@google.com>
158 * go-backend.c: Don't #include "rtl.h".
159 (go_imported_unsafe): Don't call init_varasm_once.
160 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
162 2013-07-23 Ian Lance Taylor <iant@google.com>
164 * go-lang.c: Don't #include "except.h".
165 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
167 2013-06-18 Ian Lance Taylor <iant@google.com>
169 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
171 (Gcc_backend::immutable_struct_set_init): Likewise.
173 2013-05-16 Jason Merrill <jason@redhat.com>
175 * Make-lang.in (go1$(exeext)): Use link mutex.
177 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
179 * gospec.c: pass -u pthread_create to linker when static linking.
181 2012-12-21 Ian Lance Taylor <iant@google.com>
184 * go-system.h: Don't include <cstdio>.
186 2012-12-18 Ian Lance Taylor <iant@google.com>
189 * gospec.c: Revert last patch.
191 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
194 * gospec.c (LIBATOMIC): Define.
195 (LIBATOMIC_PROFILE): Define.
196 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
198 2012-11-29 Ian Lance Taylor <iant@google.com>
200 * go-gcc.cc: Include "output.h".
201 (global_variable): Add is_unique_section parameter.
202 (global_variable_set_init): Adjust unique section if necessary.
203 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
205 2012-11-17 Diego Novillo <dnovillo@google.com>
207 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
209 * go-lang.c: Use new vec API in vec.h.
211 2012-11-16 Ian Lance Taylor <iant@google.com>
213 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
214 (go1$(exeext)): Likewise.
216 2012-10-30 Ian Lance Taylor <iant@google.com>
218 * lang.opt (-fgo-relative-import-path): New option.
219 * go-lang.c (go_relative_import_path): New static variable.
220 (go_langhook_init): Pass go_relative_import_path to
222 (go_langhook_handle_option): Handle -fgo-relative-import-path.
223 * go-c.h (go_create_gogo): Update declaration.
224 * gccgo.texi (Invoking gccgo): Document
225 -fgo-relative-import-path.
227 2012-09-17 Ian Lance Taylor <iant@google.com>
229 * config-lang.in (target_libs): Add target-libbacktrace.
231 2012-09-16 Ian Lance Taylor <iant@google.com>
233 * Make-lang.in (go/gogo.o): Depend on filenames.h.
235 2012-08-14 Diego Novillo <dnovillo@google.com>
237 Merge from cxx-conversion branch. Configury.
239 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
240 * go-gcc.cc: Likewise.
241 * go-system.h: Likewise.
243 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
245 * go-lang.c (lang_decl): Add variable_size GTY option.
247 2012-05-09 Ian Lance Taylor <iant@google.com>
249 * lang.opt: Add -fgo-pkgpath.
250 * go-lang.c (go_pkgpath): New static variable.
251 (go_prefix): New static variable.
252 (go_langhook_init): Pass go_pkgpath and go_prefix to
254 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
255 -fgo-prefix handling to just set go_prefix.
256 * go-c.h (go_set_prefix): Don't declare.
257 (go_create_gogo): Add pkgpath and prefix to declaration.
258 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
259 to pkgpath. Don't include the package name in the asm name.
260 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
261 docs for -fgo-prefix.
263 2012-04-23 Ian Lance Taylor <iant@google.com>
265 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
267 2012-04-20 Ian Lance Taylor <iant@google.com>
269 * lang.opt: Add -fgo-check-divide-zero and
270 -fgo-check-divide-overflow.
271 * gccgo.texi (Invoking gccgo): Document new options.
273 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
275 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
276 with NULL_TREE type instead of void_type_node.
278 2012-03-09 Ian Lance Taylor <iant@google.com>
280 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
281 to the lhs type if necessary.
283 2012-03-08 Ian Lance Taylor <iant@google.com>
285 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
287 (go_non_zero_struct): New global variable.
288 (Gcc_backend::non_zero_size_type): New function.
289 (Gcc_backend::global_variable): Don't build an assignment for a
291 * go-c.h (go_non_zero_struct): Declare.
292 * config-lang.in (gtfiles): Add go-c.h.
294 2012-02-29 Ian Lance Taylor <iant@google.com>
296 * go-gcc.cc (class Gcc_tree): Add set_tree method.
297 (set_placeholder_pointer_type): When setting to a pointer to
298 error, set to error_mark_node.
300 2012-02-23 Richard Guenther <rguenther@suse.de>
302 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
303 build_distinct_type_copy.
305 2012-02-17 Ian Lance Taylor <iant@google.com>
307 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
309 2012-02-17 Ian Lance Taylor <iant@google.com>
311 * gospec.c (lang_specific_driver): If linking, and no -o option
314 2012-02-14 Ian Lance Taylor <iant@google.com>
317 * Make-lang.in (gccgo-cross$(exeext)): New target.
318 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
320 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
321 gccgo-cross$(exeext) does not exist.
323 2012-02-07 Ian Lance Taylor <iant@google.com>
325 * gccgo.texi (Function Names): Document //extern instead of
328 2012-02-01 Jakub Jelinek <jakub@redhat.com>
331 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
332 return build_nonstandard_integer_type result if possible.
334 2012-01-21 Ian Lance Taylor <iant@google.com>
336 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
337 (Gcc_backend::type_alignment): Likewise.
338 (Gcc_backend::type_field_alignment): Likewise.
339 (Gcc_backend::type_field_offset): Likewise.
341 2012-01-20 Ian Lance Taylor <iant@google.com>
343 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
345 (Gcc_backend::set_placeholder_struct_type): Likewise.
347 2012-01-17 Ian Lance Taylor <iant@google.com>
349 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
350 BASE.s rather than -o BASE.o.
352 2012-01-11 Ian Lance Taylor <iant@google.com>
354 * go-lang.c (go_langhook_init): Initialize void_list_node before
355 calling go_create_gogo.
357 2012-01-10 Ian Lance Taylor <iant@google.com>
359 * go-gcc.cc (Gcc_backend::type_size): New function.
360 (Gcc_backend::type_alignment): New function.
361 (Gcc_backend::type_field_alignment): New function.
362 (Gcc_backend::type_field_offset): New function.
363 * go-backend.c (go_type_alignment): Remove.
364 * go-c.h (go_type_alignment): Don't declare.
366 2011-12-27 Ian Lance Taylor <iant@google.com>
368 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
369 build_distinct_type_copy rather than build_variant_type_copy.
370 (Gcc_backend::set_placeholder_array_type): Likewise.
371 (Gcc_backend::named_type): Add special handling for builtin
374 2011-12-22 Ian Lance Taylor <iant@google.com>
376 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
377 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
378 (Gcc_backend::set_placeholder_struct_type): Likewise.
379 (Gcc_backend::set_placeholder_array_type): Likewise.
380 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
382 2011-12-13 Ian Lance Taylor <iant@google.com>
384 * go-backend.c: #include "simple-object.h" and "intl.h".
385 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
386 (GO_EXPORT_SECTION_NAME): Likewise.
387 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
388 (go_read_export_data): New function.
389 * go-c.h (go_read_export_data): Declare.
391 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
392 Ian Lance Taylor <iant@google.com>
394 * go-location.h: New file.
395 * go-linemap.cc: New file.
396 * go-gcc.cc: Change all uses of source_location to Location.
397 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
398 (GO_LINEMAP_H): New variable.
399 (GO_LEX_H): Use $(GO_LINEMAP_H).
400 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
401 (go/go-linemap.o): New target.
403 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
405 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
407 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
409 * lang.opt: Add fgo-optimize-.
410 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
411 * go-c.h (go_enable_optimize): Declare.
412 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
413 (GO_EXPORT_H): Define.
414 (GO_IMPORT_H): Add $(GO_EXPORT_H).
415 (GO_AST_DUMP_H): Define.
416 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
417 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
418 (go/types.o): Likewise.
419 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
420 (go/go-optimize.o): New target.
422 2011-08-24 Joseph Myers <joseph@codesourcery.com>
424 * Make-lang.in (CFLAGS-go/go-lang.o): New.
425 (go/go-lang.o): Remove explicit compilation rule.
427 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
429 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
431 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
433 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
434 (go/ast-dump.o): New target.
435 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
436 (go/statements.o): Likewise.
438 2011-07-06 Richard Guenther <rguenther@suse.de>
440 * go-lang.c (go_langhook_init):
441 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
443 2011-06-14 Joseph Myers <joseph@codesourcery.com>
445 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
447 * go-backend.c: Include common/common-target.h.
448 (go_write_export_data): Use targetm_common.have_named_sections.
449 * go-lang.c: Include common/common-target.h.
450 (go_langhook_init_options_struct): Use
451 targetm_common.supports_split_stack.
453 2011-06-13 Ian Lance Taylor <iant@google.com>
455 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
457 2011-06-10 Ian Lance Taylor <iant@google.com>
459 * go-gcc.cc: Include "toplev.h".
460 (Gcc_backend::immutable_struct): New function.
461 (Gcc_backend::immutable_struct_set_init): New function.
462 (Gcc_backend::immutable_struct_reference): New function.
463 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
465 2011-06-09 Ian Lance Taylor <iant@google.com>
467 * go-gcc.cc (Gcc_backend::zero_expression): New function.
469 2011-06-07 Richard Guenther <rguenther@suse.de>
471 * go-lang.c (go_langhook_init): Do not set
472 size_type_node or call set_sizetype.
474 2011-05-27 Ian Lance Taylor <iant@google.com>
476 * go-backend.c: Include "output.h".
477 (go_write_export_data): New function.
478 * go-c.h (go_write_export_data): Declare.
479 * Make-lang.in (go/go-backend.o): Depend on output.h.
480 (go/export.o): Depend on $(GO_C_H). Do not depend on
481 $(MACHMODE_H), output.h, or $(TARGET_H).
483 2011-05-24 Joseph Myers <joseph@codesourcery.com>
485 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
486 (gccgo$(exeext)): Use libcommon-target.a.
488 2011-05-20 Joseph Myers <joseph@codesourcery.com>
490 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
492 2011-05-13 Ian Lance Taylor <iant@google.com>
494 * go-gcc.cc (Gcc_backend::function_type): When building a struct
495 for multiple results, check that all fields types have a size.
496 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
498 2011-05-12 Ian Lance Taylor <iant@google.com>
500 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
502 (Gcc_backend::parameter_variable): Likewise.
504 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
506 * go-lang.c (global_bindings_p): Return bool and simplify.
508 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
510 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
512 2011-05-04 Ian Lance Taylor <iant@google.com>
514 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
515 (Gcc_backend::fill_in_struct): New function.
516 (Gcc_backend::array_type): Implement.
517 (Gcc_backend::fill_in_array): New function.
518 (Gcc_backend::placeholder_pointer_type): New function.
519 (Gcc_backend::set_placeholder_pointer_type): New function.
520 (Gcc_backend::set_placeholder_function_type): New function.
521 (Gcc_backend::placeholder_struct_type): New function.
522 (Gcc_backend::set_placeholder_struct_type): New function.
523 (Gcc_backend::placeholder_array_type): New function.
524 (Gcc_backend::set_placeholder_array_type): New function.
525 (Gcc_backend::named_type): New function.
526 (Gcc_backend::circular_pointer_type): New function.
527 (Gcc_backend::is_circular_pointer_type): New function.
529 2011-04-26 Ian Lance Taylor <iant@google.com>
531 * go-gcc.cc (Gcc_backend::struct_type): Implement.
533 2011-04-25 Ian Lance Taylor <iant@google.com>
535 * go-gcc.cc (Gcc_backend::error_type): Implement.
536 (Gcc_backend::string_type): Remove.
537 (Gcc_backend::function_type): Change signature and implement.
538 (Gcc_backend::struct_type): Change signature.
539 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
540 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
541 (Gcc_backend::pointer_type): Check for error.
542 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
544 2011-04-25 Evan Shaw <edsrzf@gmail.com>
546 * go-gcc.c (class Gcc_tree): Make get_tree const.
547 (Gcc_backend::void_type): Implement.
548 (Gcc_backend::bool_type): Implement.
549 (Gcc_backend::integer_type): Implement.
550 (Gcc_backend::float_type): Implement.
551 (Gcc_backend::complex_type): New function.
552 (Gcc_backend::pointer_type): New function.
553 (Gcc_backend::make_type): New function.
554 (type_to_tree): New function.
556 2011-04-21 Ian Lance Taylor <iant@google.com>
558 * go-system.h (go_assert, go_unreachable): Define.
560 2011-04-19 Ian Lance Taylor <iant@google.com>
562 * go-system.h: Include "intl.h".
563 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
564 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
565 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
567 2011-04-19 Ian Lance Taylor <iant@google.com>
569 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
571 2011-04-19 Ian Lance Taylor <iant@google.com>
573 * go-gcc.cc (class Bblock): Define.
574 (Gcc_backend::if_statement): Change then_block and else_block to
576 (Gcc_backend::block): New function.
577 (Gcc_backend::block_add_statements): New function.
578 (Gcc_backend::block_statement): New function.
579 (tree_to_block, block_to_tree): New functions.
581 2011-04-18 Ian Lance Taylor <iant@google.com>
583 * go-gcc.cc: Include "go-c.h".
584 (class Bvariable): Define.
585 (Gcc_backend::init_statement): New function.
586 (Gcc_backend::global_variable): New function.
587 (Gcc_backend::global_variable_set_init): New function.
588 (Gcc_backend::local_variable): New function.
589 (Gcc_backend::parameter_variable): New function.
590 (tree_to_type, var_to_tree): New functions.
591 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
592 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
594 2011-04-15 Ian Lance Taylor <iant@google.com>
596 * go-gcc.cc (Gcc_backend::compound_statement): New function.
597 (Gcc_backend::assignment_statement): Use error_statement.
598 (Gcc_backend::return_statement): Likewise.
599 (Gcc_backend::if_statement): Likewise.
600 (Gcc_backend::switch_statement): Likewise.
601 (Gcc_backend::statement_list): Likewise.
603 2011-04-14 Ian Lance Taylor <iant@google.com>
605 * go-gcc.cc (Gcc_backend::error_statement): New function.
607 2011-04-13 Ian Lance Taylor <iant@google.com>
609 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
611 2011-04-13 Ian Lance Taylor <iant@google.com>
613 * Make-lang.in (GO_OBJS): Add go/runtime.o.
614 (GO_RUNTIME_H): New variable.
615 (go/runtime.o): New target.
616 (go/gogo.o): Depend on $(GO_RUNTIME_H).
617 (go/statements.o): Likewise.
619 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
621 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
624 2011-04-06 Ian Lance Taylor <iant@google.com>
626 * go-gcc.cc (if_statement): Use build3_loc.
627 (Gcc_backend::switch_statement): New function.
628 (Gcc_backend::statement_list): New function.
630 2011-04-06 Ian Lance Taylor <iant@google.com>
632 * go-gcc.cc (Gcc_backend::if_statement): New function.
633 (tree_to_stat): New function.
634 (expr_to_tree): Renamed from expression_to_tree.
635 (stat_to_tree): Renamed from statement_to_tree.
637 2011-04-06 Ian Lance Taylor <iant@google.com>
639 * go-gcc.cc (Gcc_backend::expression_statement): New function.
641 2011-04-04 Ian Lance Taylor <iant@google.com>
643 * go-gcc.c (class Blabel): Define.
644 (Gcc_backend::make_expression): New function.
645 (get_identifier_from_string): New function.
646 (Gcc_backend::label): New function.
647 (Gcc_backend::label_definition_statement): New function.
648 (Gcc_backend::goto_statement): New function.
649 (Gcc_backend::label_address): New function.
650 (expression_to_tree): New function.
651 * Make-lang.in (go/expressions.o): Depend on
652 go/gofrontend/backend.h.
653 (go/gogo.o): Likewise.
655 2011-04-04 Ian Lance Taylor <iant@google.com>
657 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
658 (class Bfunction): Define.
659 (Gcc_backend::assignment_statement): Rename from assignment.
661 (Gcc_backend::return_statement): New function.
662 (tree_to_function): New function.
663 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
664 $(GIMPLE_H), and $(GO_GOGO_H).
666 2011-04-03 Ian Lance Taylor <iant@google.com>
668 * go-gcc.cc: New file.
669 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
670 (go/go-gcc.o): New target.
671 (go/go.o): Depend on go/gofrontend/backend.h.
672 (go/statements.o): Likewise.
674 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
676 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
678 2011-02-08 Ian Lance Taylor <iant@google.com>
680 * go-lang.c (go_langhook_init_options_struct): Set
681 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
683 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
685 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
686 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
688 2011-01-21 Ian Lance Taylor <iant@google.com>
690 * go-lang.c (go_langhook_init): Omit float_type_size when calling
692 * go-c.h: Update declaration of go_create_gogo.
694 2011-01-13 Ian Lance Taylor <iant@google.com>
696 * go-backend.c: Include "rtl.h" and "target.h".
697 (go_imported_unsafe): New function.
698 * go-c.h (go_imported_unsafe): Declare.
699 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
700 (go/gogo-tree.o): Remove dependency on $(RTL_H).
701 (go/unsafe.o): Depend on $(GO_C_H).
703 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
706 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
709 2010-12-21 Ian Lance Taylor <iant@google.com>
711 * Make-lang.in (check-go): Remove.
712 (lang_checks_parallelized): Add check-go.
713 (check_go_parallelize): Set.
715 2010-12-13 Ian Lance Taylor <iant@google.com>
717 * gospec.c (lang_specific_driver): Add a -o option if not linking
718 and there is no -o option already.
720 2010-12-07 Ian Lance Taylor <iant@google.com>
722 PR tree-optimization/46805
723 PR tree-optimization/46833
724 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
726 2010-12-06 Ian Lance Taylor <iant@google.com>
730 * go-lang.c (go_char_p): Define type and vectors.
731 (go_search_dirs): New static variable.
732 (go_langhook_handle_option): Use version and version/machine
734 (go_langhook_post_options): Add non-specific -L paths.
735 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
736 DEFAULT_TARGET_MACHINE when compiling.
737 * gccgo.texi (Invoking gccgo): Only document -L for linking.
738 (Import and Export): Don't mention -L for finding import files.
740 2010-12-03 Ian Lance Taylor <iant@google.com>
743 * go-backend.c: New file.
744 * go-c.h (go_type_alignment): Declare.
745 (go_field_alignment, go_trampoline_info): Declare.
746 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
747 (go/go-backend.o): New target.
748 (go/go-lang.o): Make dependencies match source file.
749 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
750 (go/gogo-tree.o): Don't depend on $(TM_H).
752 2010-12-03 Ian Lance Taylor <iant@google.com>
754 * config-lang.in (build_by_default): Set to no.
756 2010-12-02 Ian Lance Taylor <iant@google.com>
758 Go frontend added to gcc repository.
760 Copyright (C) 2010-2014 Free Software Foundation, Inc.
762 Copying and distribution of this file, with or without modification,
763 are permitted in any medium without royalty provided the copyright
764 notice and this notice are preserved.