Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / go / ChangeLog
blob689578e2064608342b4c24ca0e21a854f3cf5364
1 2014-03-03  Ian Lance Taylor  <iant@google.com>
3         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
4         DECL_WEAK.
5         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
6         DECL_WEAK.
8 2014-01-24  Chris Manghane  <cmang@google.com>
10         * go-gcc.cc (Gcc_backend::unary_expression): New function.
12 2014-01-16  Chris Manghane  <cmang@google.com>
14         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
15         parameter.
16         (operator_to_tree_code): New static function.
17         (Gcc_backend::binary_expression): New function.
19 2014-01-14  Chris Manghane  <cmang@google.com>
21         * go-gcc.cc (Gcc_backend::compound_expression): New function.
22         (Gcc_backend::conditional_expression): New function.
24 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
26         Update copyright years
28 2014-01-02  Tobias Burnus  <burnus@net-b.de>
30         * gccgo.texi: Bump @copying's copyright year.
32 2013-12-16  Chris Manghane  <cmang@google.com>
34         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
36 2013-12-11  Ian Lance Taylor  <iant@google.com>
38         * go-lang.c (go_langhook_post_options): Disable sibling calls by
39         default.
41 2013-12-10  Ian Lance Taylor  <iant@google.com>
43         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
44         separately.
46 2013-12-05  Ian Lance Taylor  <iant@google.com>
48         Revert this change; no longer required.
49         2013-11-06  Ian Lance Taylor  <iant@google.com>
51         * go-lang.c (go_langhook_post_options): If
52         -fisolate-erroneous-paths was turned on by an optimization option,
53         turn it off.
55 2013-11-23  Ian Lance Taylor  <iant@google.com>
57         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
58         parameter.
60 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
62         * go-gcc.cc: Add required include files from gimple.h.
63         * go-lang.c: Likewise
65 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
67         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
68         tree_to_shwi throughout.
70 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
72         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
73         tree_fits_shwi_p throughout.
75 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
77         * go-lang.c: Include only gimplify.h and gimple.h as needed.
79 2013-11-14  Diego Novillo  <dnovillo@google.com>
81         * go-backend.c: Include stor-layout.h.
82         * go-gcc.cc: Include stringpool.h.
83         Include stor-layout.h.
84         Include varasm.h.
85         * go-lang.c: Include stor-layout.h.
87 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
89         * go-lang.c: Include gimplify.h.
91 2013-11-06  Ian Lance Taylor  <iant@google.com>
93         * go-lang.c (go_langhook_post_options): If
94         -fisolate-erroneous-paths was turned on by an optimization option,
95         turn it off.
97 2013-10-14  Chris Manghane  <cmang@google.com>
99         * go-gcc.cc (Gcc_backend::address_expression): New function.
101 2013-10-11  Chris Manghane  <cmang@google.com>
103         * go-gcc.cc (Gcc_backend::function_code_expression): New
104         function.
106 2013-10-10  Chris Manghane  <cmang@google.com>
108         * go-gcc.cc (Gcc_backend::error_function): New function.
109         (Gcc_backend::function): New function.
110         (Gcc_backend::make_function): New function.
111         (function_to_tree): New function.
113 2013-10-04  Chris Manghane  <cmang@google.com>
115         * go-gcc.cc (Gcc_backend::convert_expression): New function.
117 2013-10-02  Chris Manghane  <cmang@google.com>
119         * go-gcc.cc: Include "real.h" and "realmpfr.h".
120         (Gcc_backend::integer_constant_expression): New function.
121         (Gcc_backend::float_constant_expression): New function.
122         (Gcc_backend::complex_constant_expression): New function.
124 2013-09-30  Chris Manghane  <cmang@google.com>
126         * go-gcc.cc (Gcc_backend::error_expression): New function.
127         (Gcc_backend::var_expression): New function.
128         (Gcc_backend::indirect_expression): New function.
130 2013-09-25  Tom Tromey  <tromey@redhat.com>
132         * Make-lang.in (gospec.o): Remove.
133         (CFLAGS-go/gospec.o): New variable.
134         (GCCGO_OBJS): Update to use go/gospec.o.
135         (go_OBJS): Define.
136         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
137         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
138         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
139         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
140         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
141         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
142         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
143         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
144         (go/unsafe.o): Remove.
145         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
146         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
148 2013-09-25  Tom Tromey  <tromey@redhat.com>
150         * Make-lang.in (gospec.o): Don't use subshell.
152 2013-08-28  Ian Lance Taylor  <iant@google.com>
154         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
155         the struct is not hidden.
156         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
158 2013-08-06  Ian Lance Taylor  <iant@google.com>
160         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
161         compute_reloc_for_constant.
163 2013-08-02  Ian Lance Taylor  <iant@google.com>
165         * go-gcc.cc (immutable_struct_set_init): Always call
166         resolve_unique_section.
168 2013-07-24  Ian Lance Taylor  <iant@google.com>
170         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
171         fields, recreate those fields with the first one with a non-zero
172         size.
174 2013-07-23  Ian Lance Taylor  <iant@google.com>
176         * go-backend.c: Don't #include "rtl.h".
177         (go_imported_unsafe): Don't call init_varasm_once.
178         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
180 2013-07-23  Ian Lance Taylor  <iant@google.com>
182         * go-lang.c: Don't #include "except.h".
183         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
185 2013-06-18  Ian Lance Taylor  <iant@google.com>
187         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
188         parameter.
189         (Gcc_backend::immutable_struct_set_init): Likewise.
191 2013-05-16  Jason Merrill  <jason@redhat.com>
193         * Make-lang.in (go1$(exeext)): Use link mutex.
195 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
197         * gospec.c: pass -u pthread_create to linker when static linking.
199 2012-12-21  Ian Lance Taylor  <iant@google.com>
201         PR bootstrap/54659
202         * go-system.h: Don't include <cstdio>.
204 2012-12-18  Ian Lance Taylor  <iant@google.com>
206         PR go/55201
207         * gospec.c: Revert last patch.
209 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
211         PR go/55201
212         * gospec.c (LIBATOMIC): Define.
213         (LIBATOMIC_PROFILE): Define.
214         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
216 2012-11-29  Ian Lance Taylor  <iant@google.com>
218         * go-gcc.cc: Include "output.h".
219         (global_variable): Add is_unique_section parameter.
220         (global_variable_set_init): Adjust unique section if necessary.
221         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
223 2012-11-17  Diego Novillo  <dnovillo@google.com>
225         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
227         * go-lang.c: Use new vec API in vec.h.
229 2012-11-16  Ian Lance Taylor  <iant@google.com>
231         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
232         (go1$(exeext)): Likewise.
234 2012-10-30  Ian Lance Taylor  <iant@google.com>
236         * lang.opt (-fgo-relative-import-path): New option.
237         * go-lang.c (go_relative_import_path): New static variable.
238         (go_langhook_init): Pass go_relative_import_path to
239         go_create_gogo.
240         (go_langhook_handle_option): Handle -fgo-relative-import-path.
241         * go-c.h (go_create_gogo): Update declaration.
242         * gccgo.texi (Invoking gccgo): Document
243         -fgo-relative-import-path.
245 2012-09-17  Ian Lance Taylor  <iant@google.com>
247         * config-lang.in (target_libs): Add target-libbacktrace.
249 2012-09-16  Ian Lance Taylor  <iant@google.com>
251         * Make-lang.in (go/gogo.o): Depend on filenames.h.
253 2012-08-14   Diego Novillo  <dnovillo@google.com>
255         Merge from cxx-conversion branch.  Configury.
257         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
258         * go-gcc.cc: Likewise.
259         * go-system.h: Likewise.
261 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
263         * go-lang.c (lang_decl): Add variable_size GTY option.
265 2012-05-09  Ian Lance Taylor  <iant@google.com>
267         * lang.opt: Add -fgo-pkgpath.
268         * go-lang.c (go_pkgpath): New static variable.
269         (go_prefix): New static variable.
270         (go_langhook_init): Pass go_pkgpath and go_prefix to
271         go_create_gogo.
272         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
273         -fgo-prefix handling to just set go_prefix.
274         * go-c.h (go_set_prefix): Don't declare.
275         (go_create_gogo): Add pkgpath and prefix to declaration.
276         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
277         to pkgpath.  Don't include the package name in the asm name.
278         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
279         docs for -fgo-prefix.
281 2012-04-23  Ian Lance Taylor  <iant@google.com>
283         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
285 2012-04-20  Ian Lance Taylor  <iant@google.com>
287         * lang.opt: Add -fgo-check-divide-zero and
288         -fgo-check-divide-overflow.
289         * gccgo.texi (Invoking gccgo): Document new options.
291 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
293         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
294         with NULL_TREE type instead of void_type_node.
296 2012-03-09  Ian Lance Taylor  <iant@google.com>
298         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
299         to the lhs type if necessary.
301 2012-03-08  Ian Lance Taylor  <iant@google.com>
303         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
304         zero-sized variable.
305         (go_non_zero_struct): New global variable.
306         (Gcc_backend::non_zero_size_type): New function.
307         (Gcc_backend::global_variable): Don't build an assignment for a
308         zero-sized value.
309         * go-c.h (go_non_zero_struct): Declare.
310         * config-lang.in (gtfiles): Add go-c.h.
312 2012-02-29  Ian Lance Taylor  <iant@google.com>
314         * go-gcc.cc (class Gcc_tree): Add set_tree method.
315         (set_placeholder_pointer_type): When setting to a pointer to
316         error, set to error_mark_node.
318 2012-02-23  Richard Guenther  <rguenther@suse.de>
320         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
321         build_distinct_type_copy.
323 2012-02-17  Ian Lance Taylor  <iant@google.com>
325         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
327 2012-02-17  Ian Lance Taylor  <iant@google.com>
329         * gospec.c (lang_specific_driver): If linking, and no -o option
330         was used, add one.
332 2012-02-14  Ian Lance Taylor  <iant@google.com>
334         PR go/48411
335         * Make-lang.in (gccgo-cross$(exeext)): New target.
336         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
337         gccgo$(exeext).
338         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
339         gccgo-cross$(exeext) does not exist.
341 2012-02-07  Ian Lance Taylor  <iant@google.com>
343         * gccgo.texi (Function Names): Document //extern instead of
344         __asm__.
346 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
348         PR target/52079
349         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
350         return build_nonstandard_integer_type result if possible.
352 2012-01-21  Ian Lance Taylor  <iant@google.com>
354         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
355         (Gcc_backend::type_alignment): Likewise.
356         (Gcc_backend::type_field_alignment): Likewise.
357         (Gcc_backend::type_field_offset): Likewise.
359 2012-01-20  Ian Lance Taylor  <iant@google.com>
361         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
362         be empty.
363         (Gcc_backend::set_placeholder_struct_type): Likewise.
365 2012-01-17  Ian Lance Taylor  <iant@google.com>
367         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
368         BASE.s rather than -o BASE.o.
370 2012-01-11  Ian Lance Taylor  <iant@google.com>
372         * go-lang.c (go_langhook_init): Initialize void_list_node before
373         calling go_create_gogo.
375 2012-01-10  Ian Lance Taylor  <iant@google.com>
377         * go-gcc.cc (Gcc_backend::type_size): New function.
378         (Gcc_backend::type_alignment): New function.
379         (Gcc_backend::type_field_alignment): New function.
380         (Gcc_backend::type_field_offset): New function.
381         * go-backend.c (go_type_alignment): Remove.
382         * go-c.h (go_type_alignment): Don't declare.
384 2011-12-27  Ian Lance Taylor  <iant@google.com>
386         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
387         build_distinct_type_copy rather than build_variant_type_copy.
388         (Gcc_backend::set_placeholder_array_type): Likewise.
389         (Gcc_backend::named_type): Add special handling for builtin
390         basic types.
392 2011-12-22  Ian Lance Taylor  <iant@google.com>
394         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
395         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
396         (Gcc_backend::set_placeholder_struct_type): Likewise.
397         (Gcc_backend::set_placeholder_array_type): Likewise.
398         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
400 2011-12-13  Ian Lance Taylor  <iant@google.com>
402         * go-backend.c: #include "simple-object.h" and "intl.h".
403         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
404         (GO_EXPORT_SECTION_NAME): Likewise.
405         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
406         (go_read_export_data): New function.
407         * go-c.h (go_read_export_data): Declare.
409 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
410             Ian Lance Taylor  <iant@google.com>
412         * go-location.h: New file.
413         * go-linemap.cc: New file.
414         * go-gcc.cc: Change all uses of source_location to Location.
415         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
416         (GO_LINEMAP_H): New variable.
417         (GO_LEX_H): Use $(GO_LINEMAP_H).
418         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
419         (go/go-linemap.o): New target.
421 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
423         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
425 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
427         * lang.opt: Add fgo-optimize-.
428         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
429         * go-c.h (go_enable_optimize): Declare.
430         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
431         (GO_EXPORT_H): Define.
432         (GO_IMPORT_H): Add $(GO_EXPORT_H).
433         (GO_AST_DUMP_H): Define.
434         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
435         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
436         (go/types.o): Likewise.
437         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
438         (go/go-optimize.o): New target.
440 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
442         * Make-lang.in (CFLAGS-go/go-lang.o): New.
443         (go/go-lang.o): Remove explicit compilation rule.
445 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
447         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
449 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
451         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
452         (go/ast-dump.o): New target.
453         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
454         (go/statements.o): Likewise.
456 2011-07-06  Richard Guenther  <rguenther@suse.de>
458         * go-lang.c (go_langhook_init):
459         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
461 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
463         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
464         dependencies.
465         * go-backend.c: Include common/common-target.h.
466         (go_write_export_data): Use targetm_common.have_named_sections.
467         * go-lang.c: Include common/common-target.h.
468         (go_langhook_init_options_struct): Use
469         targetm_common.supports_split_stack.
471 2011-06-13  Ian Lance Taylor  <iant@google.com>
473         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
475 2011-06-10  Ian Lance Taylor  <iant@google.com>
477         * go-gcc.cc: Include "toplev.h".
478         (Gcc_backend::immutable_struct): New function.
479         (Gcc_backend::immutable_struct_set_init): New function.
480         (Gcc_backend::immutable_struct_reference): New function.
481         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
483 2011-06-09  Ian Lance Taylor  <iant@google.com>
485         * go-gcc.cc (Gcc_backend::zero_expression): New function.
487 2011-06-07  Richard Guenther  <rguenther@suse.de>
489         * go-lang.c (go_langhook_init): Do not set
490         size_type_node or call set_sizetype.
492 2011-05-27  Ian Lance Taylor  <iant@google.com>
494         * go-backend.c: Include "output.h".
495         (go_write_export_data): New function.
496         * go-c.h (go_write_export_data): Declare.
497         * Make-lang.in (go/go-backend.o): Depend on output.h.
498         (go/export.o): Depend on $(GO_C_H).  Do not depend on
499         $(MACHMODE_H), output.h, or $(TARGET_H).
501 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
503         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
504         (gccgo$(exeext)): Use libcommon-target.a.
506 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
508         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
510 2011-05-13  Ian Lance Taylor  <iant@google.com>
512         * go-gcc.cc (Gcc_backend::function_type): When building a struct
513         for multiple results, check that all fields types have a size.
514         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
516 2011-05-12  Ian Lance Taylor  <iant@google.com>
518         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
519         parameter.
520         (Gcc_backend::parameter_variable): Likewise.
522 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
524         * go-lang.c (global_bindings_p): Return bool and simplify.
526 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
528         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
530 2011-05-04  Ian Lance Taylor  <iant@google.com>
532         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
533         (Gcc_backend::fill_in_struct): New function.
534         (Gcc_backend::array_type): Implement.
535         (Gcc_backend::fill_in_array): New function.
536         (Gcc_backend::placeholder_pointer_type): New function.
537         (Gcc_backend::set_placeholder_pointer_type): New function.
538         (Gcc_backend::set_placeholder_function_type): New function.
539         (Gcc_backend::placeholder_struct_type): New function.
540         (Gcc_backend::set_placeholder_struct_type): New function.
541         (Gcc_backend::placeholder_array_type): New function.
542         (Gcc_backend::set_placeholder_array_type): New function.
543         (Gcc_backend::named_type): New function.
544         (Gcc_backend::circular_pointer_type): New function.
545         (Gcc_backend::is_circular_pointer_type): New function.
547 2011-04-26  Ian Lance Taylor  <iant@google.com>
549         * go-gcc.cc (Gcc_backend::struct_type): Implement.
551 2011-04-25  Ian Lance Taylor  <iant@google.com>
553         * go-gcc.cc (Gcc_backend::error_type): Implement.
554         (Gcc_backend::string_type): Remove.
555         (Gcc_backend::function_type): Change signature and implement.
556         (Gcc_backend::struct_type): Change signature.
557         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
558         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
559         (Gcc_backend::pointer_type): Check for error.
560         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
562 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
564         * go-gcc.c (class Gcc_tree): Make get_tree const.
565         (Gcc_backend::void_type): Implement.
566         (Gcc_backend::bool_type): Implement.
567         (Gcc_backend::integer_type): Implement.
568         (Gcc_backend::float_type): Implement.
569         (Gcc_backend::complex_type): New function.
570         (Gcc_backend::pointer_type): New function.
571         (Gcc_backend::make_type): New function.
572         (type_to_tree): New function.
574 2011-04-21  Ian Lance Taylor  <iant@google.com>
576         * go-system.h (go_assert, go_unreachable): Define.
578 2011-04-19  Ian Lance Taylor  <iant@google.com>
580         * go-system.h: Include "intl.h".
581         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
582         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
583         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
585 2011-04-19  Ian Lance Taylor  <iant@google.com>
587         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
589 2011-04-19  Ian Lance Taylor  <iant@google.com>
591         * go-gcc.cc (class Bblock): Define.
592         (Gcc_backend::if_statement): Change then_block and else_block to
593         Bblock*.
594         (Gcc_backend::block): New function.
595         (Gcc_backend::block_add_statements): New function.
596         (Gcc_backend::block_statement): New function.
597         (tree_to_block, block_to_tree): New functions.
599 2011-04-18  Ian Lance Taylor  <iant@google.com>
601         * go-gcc.cc: Include "go-c.h".
602         (class Bvariable): Define.
603         (Gcc_backend::init_statement): New function.
604         (Gcc_backend::global_variable): New function.
605         (Gcc_backend::global_variable_set_init): New function.
606         (Gcc_backend::local_variable): New function.
607         (Gcc_backend::parameter_variable): New function.
608         (tree_to_type, var_to_tree): New functions.
609         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
610         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
612 2011-04-15  Ian Lance Taylor  <iant@google.com>
614         * go-gcc.cc (Gcc_backend::compound_statement): New function.
615         (Gcc_backend::assignment_statement): Use error_statement.
616         (Gcc_backend::return_statement): Likewise.
617         (Gcc_backend::if_statement): Likewise.
618         (Gcc_backend::switch_statement): Likewise.
619         (Gcc_backend::statement_list): Likewise.
621 2011-04-14  Ian Lance Taylor  <iant@google.com>
623         * go-gcc.cc (Gcc_backend::error_statement): New function.
625 2011-04-13  Ian Lance Taylor  <iant@google.com>
627         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
629 2011-04-13  Ian Lance Taylor  <iant@google.com>
631         * Make-lang.in (GO_OBJS): Add go/runtime.o.
632         (GO_RUNTIME_H): New variable.
633         (go/runtime.o): New target.
634         (go/gogo.o): Depend on $(GO_RUNTIME_H).
635         (go/statements.o): Likewise.
637 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
639         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
640         calling TREE_CHAIN.
642 2011-04-06  Ian Lance Taylor  <iant@google.com>
644         * go-gcc.cc (if_statement): Use build3_loc.
645         (Gcc_backend::switch_statement): New function.
646         (Gcc_backend::statement_list): New function.
648 2011-04-06  Ian Lance Taylor  <iant@google.com>
650         * go-gcc.cc (Gcc_backend::if_statement): New function.
651         (tree_to_stat): New function.
652         (expr_to_tree): Renamed from expression_to_tree.
653         (stat_to_tree): Renamed from statement_to_tree.
655 2011-04-06  Ian Lance Taylor  <iant@google.com>
657         * go-gcc.cc (Gcc_backend::expression_statement): New function.
659 2011-04-04  Ian Lance Taylor  <iant@google.com>
661         * go-gcc.c (class Blabel): Define.
662         (Gcc_backend::make_expression): New function.
663         (get_identifier_from_string): New function.
664         (Gcc_backend::label): New function.
665         (Gcc_backend::label_definition_statement): New function.
666         (Gcc_backend::goto_statement): New function.
667         (Gcc_backend::label_address): New function.
668         (expression_to_tree): New function.
669         * Make-lang.in (go/expressions.o): Depend on
670         go/gofrontend/backend.h.
671         (go/gogo.o): Likewise.
673 2011-04-04  Ian Lance Taylor  <iant@google.com>
675         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
676         (class Bfunction): Define.
677         (Gcc_backend::assignment_statement): Rename from assignment.
678         Check for errors.
679         (Gcc_backend::return_statement): New function.
680         (tree_to_function): New function.
681         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
682         $(GIMPLE_H), and $(GO_GOGO_H).
684 2011-04-03  Ian Lance Taylor  <iant@google.com>
686         * go-gcc.cc: New file.
687         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
688         (go/go-gcc.o): New target.
689         (go/go.o): Depend on go/gofrontend/backend.h.
690         (go/statements.o): Likewise.
692 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
694         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
696 2011-02-08  Ian Lance Taylor  <iant@google.com>
698         * go-lang.c (go_langhook_init_options_struct): Set
699         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
701 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
703         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
704         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
706 2011-01-21  Ian Lance Taylor  <iant@google.com>
708         * go-lang.c (go_langhook_init): Omit float_type_size when calling
709         go_create_gogo.
710         * go-c.h: Update declaration of go_create_gogo.
712 2011-01-13  Ian Lance Taylor  <iant@google.com>
714         * go-backend.c: Include "rtl.h" and "target.h".
715         (go_imported_unsafe): New function.
716         * go-c.h (go_imported_unsafe): Declare.
717         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
718         (go/gogo-tree.o): Remove dependency on $(RTL_H).
719         (go/unsafe.o): Depend on $(GO_C_H).
721 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
723         PR go/47113
724         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
725         variable ‘field’ .
727 2010-12-21  Ian Lance Taylor  <iant@google.com>
729         * Make-lang.in (check-go): Remove.
730         (lang_checks_parallelized): Add check-go.
731         (check_go_parallelize): Set.
733 2010-12-13  Ian Lance Taylor  <iant@google.com>
735         * gospec.c (lang_specific_driver): Add a -o option if not linking
736         and there is no -o option already.
738 2010-12-07  Ian Lance Taylor  <iant@google.com>
740         PR tree-optimization/46805
741         PR tree-optimization/46833
742         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
744 2010-12-06  Ian Lance Taylor  <iant@google.com>
746         PR other/46789
747         PR bootstrap/46812
748         * go-lang.c (go_char_p): Define type and vectors.
749         (go_search_dirs): New static variable.
750         (go_langhook_handle_option): Use version and version/machine
751         directories for -L.
752         (go_langhook_post_options): Add non-specific -L paths.
753         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
754         DEFAULT_TARGET_MACHINE when compiling.
755         * gccgo.texi (Invoking gccgo): Only document -L for linking.
756         (Import and Export): Don't mention -L for finding import files.
758 2010-12-03  Ian Lance Taylor  <iant@google.com>
760         PR bootstrap/46776
761         * go-backend.c: New file.
762         * go-c.h (go_type_alignment): Declare.
763         (go_field_alignment, go_trampoline_info): Declare.
764         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
765         (go/go-backend.o): New target.
766         (go/go-lang.o): Make dependencies match source file.
767         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
768         (go/gogo-tree.o): Don't depend on $(TM_H).
770 2010-12-03  Ian Lance Taylor  <iant@google.com>
772         * config-lang.in (build_by_default): Set to no.
774 2010-12-02  Ian Lance Taylor  <iant@google.com>
776         Go frontend added to gcc repository.
778 Copyright (C) 2010-2014 Free Software Foundation, Inc.
780 Copying and distribution of this file, with or without modification,
781 are permitted in any medium without royalty provided the copyright
782 notice and this notice are preserved.