Merged revisions 209304,209307,209332,209338-209339,209343,209346,209351,209354,20936...
[official-gcc.git] / gcc-4_9 / gcc / go / ChangeLog
blob1c1505a386c6888afa42aef77f17cb3443a7ad12
1 2014-04-22  Release Manager
3         * GCC 4.9.0 released.
5 2014-03-03  Ian Lance Taylor  <iant@google.com>
7         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
8         DECL_WEAK.
9         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
10         DECL_WEAK.
12 2014-01-24  Chris Manghane  <cmang@google.com>
14         * go-gcc.cc (Gcc_backend::unary_expression): New function.
16 2014-01-16  Chris Manghane  <cmang@google.com>
18         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
19         parameter.
20         (operator_to_tree_code): New static function.
21         (Gcc_backend::binary_expression): New function.
23 2014-01-14  Chris Manghane  <cmang@google.com>
25         * go-gcc.cc (Gcc_backend::compound_expression): New function.
26         (Gcc_backend::conditional_expression): New function.
28 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30         Update copyright years
32 2014-01-02  Tobias Burnus  <burnus@net-b.de>
34         * gccgo.texi: Bump @copying's copyright year.
36 2013-12-16  Chris Manghane  <cmang@google.com>
38         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
40 2013-12-11  Ian Lance Taylor  <iant@google.com>
42         * go-lang.c (go_langhook_post_options): Disable sibling calls by
43         default.
45 2013-12-10  Ian Lance Taylor  <iant@google.com>
47         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
48         separately.
50 2013-12-05  Ian Lance Taylor  <iant@google.com>
52         Revert this change; no longer required.
53         2013-11-06  Ian Lance Taylor  <iant@google.com>
55         * go-lang.c (go_langhook_post_options): If
56         -fisolate-erroneous-paths was turned on by an optimization option,
57         turn it off.
59 2013-11-23  Ian Lance Taylor  <iant@google.com>
61         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
62         parameter.
64 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
66         * go-gcc.cc: Add required include files from gimple.h.
67         * go-lang.c: Likewise
69 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
71         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
72         tree_to_shwi throughout.
74 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
76         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
77         tree_fits_shwi_p throughout.
79 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
81         * go-lang.c: Include only gimplify.h and gimple.h as needed.
83 2013-11-14  Diego Novillo  <dnovillo@google.com>
85         * go-backend.c: Include stor-layout.h.
86         * go-gcc.cc: Include stringpool.h.
87         Include stor-layout.h.
88         Include varasm.h.
89         * go-lang.c: Include stor-layout.h.
91 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
93         * go-lang.c: Include gimplify.h.
95 2013-11-06  Ian Lance Taylor  <iant@google.com>
97         * go-lang.c (go_langhook_post_options): If
98         -fisolate-erroneous-paths was turned on by an optimization option,
99         turn it off.
101 2013-10-14  Chris Manghane  <cmang@google.com>
103         * go-gcc.cc (Gcc_backend::address_expression): New function.
105 2013-10-11  Chris Manghane  <cmang@google.com>
107         * go-gcc.cc (Gcc_backend::function_code_expression): New
108         function.
110 2013-10-10  Chris Manghane  <cmang@google.com>
112         * go-gcc.cc (Gcc_backend::error_function): New function.
113         (Gcc_backend::function): New function.
114         (Gcc_backend::make_function): New function.
115         (function_to_tree): New function.
117 2013-10-04  Chris Manghane  <cmang@google.com>
119         * go-gcc.cc (Gcc_backend::convert_expression): New function.
121 2013-10-02  Chris Manghane  <cmang@google.com>
123         * go-gcc.cc: Include "real.h" and "realmpfr.h".
124         (Gcc_backend::integer_constant_expression): New function.
125         (Gcc_backend::float_constant_expression): New function.
126         (Gcc_backend::complex_constant_expression): New function.
128 2013-09-30  Chris Manghane  <cmang@google.com>
130         * go-gcc.cc (Gcc_backend::error_expression): New function.
131         (Gcc_backend::var_expression): New function.
132         (Gcc_backend::indirect_expression): New function.
134 2013-09-25  Tom Tromey  <tromey@redhat.com>
136         * Make-lang.in (gospec.o): Remove.
137         (CFLAGS-go/gospec.o): New variable.
138         (GCCGO_OBJS): Update to use go/gospec.o.
139         (go_OBJS): Define.
140         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
141         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
142         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
143         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
144         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
145         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
146         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
147         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
148         (go/unsafe.o): Remove.
149         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
150         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
152 2013-09-25  Tom Tromey  <tromey@redhat.com>
154         * Make-lang.in (gospec.o): Don't use subshell.
156 2013-08-28  Ian Lance Taylor  <iant@google.com>
158         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
159         the struct is not hidden.
160         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
162 2013-08-06  Ian Lance Taylor  <iant@google.com>
164         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
165         compute_reloc_for_constant.
167 2013-08-02  Ian Lance Taylor  <iant@google.com>
169         * go-gcc.cc (immutable_struct_set_init): Always call
170         resolve_unique_section.
172 2013-07-24  Ian Lance Taylor  <iant@google.com>
174         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
175         fields, recreate those fields with the first one with a non-zero
176         size.
178 2013-07-23  Ian Lance Taylor  <iant@google.com>
180         * go-backend.c: Don't #include "rtl.h".
181         (go_imported_unsafe): Don't call init_varasm_once.
182         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
184 2013-07-23  Ian Lance Taylor  <iant@google.com>
186         * go-lang.c: Don't #include "except.h".
187         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
189 2013-06-18  Ian Lance Taylor  <iant@google.com>
191         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
192         parameter.
193         (Gcc_backend::immutable_struct_set_init): Likewise.
195 2013-05-16  Jason Merrill  <jason@redhat.com>
197         * Make-lang.in (go1$(exeext)): Use link mutex.
199 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
201         * gospec.c: pass -u pthread_create to linker when static linking.
203 2012-12-21  Ian Lance Taylor  <iant@google.com>
205         PR bootstrap/54659
206         * go-system.h: Don't include <cstdio>.
208 2012-12-18  Ian Lance Taylor  <iant@google.com>
210         PR go/55201
211         * gospec.c: Revert last patch.
213 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
215         PR go/55201
216         * gospec.c (LIBATOMIC): Define.
217         (LIBATOMIC_PROFILE): Define.
218         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
220 2012-11-29  Ian Lance Taylor  <iant@google.com>
222         * go-gcc.cc: Include "output.h".
223         (global_variable): Add is_unique_section parameter.
224         (global_variable_set_init): Adjust unique section if necessary.
225         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
227 2012-11-17  Diego Novillo  <dnovillo@google.com>
229         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
231         * go-lang.c: Use new vec API in vec.h.
233 2012-11-16  Ian Lance Taylor  <iant@google.com>
235         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
236         (go1$(exeext)): Likewise.
238 2012-10-30  Ian Lance Taylor  <iant@google.com>
240         * lang.opt (-fgo-relative-import-path): New option.
241         * go-lang.c (go_relative_import_path): New static variable.
242         (go_langhook_init): Pass go_relative_import_path to
243         go_create_gogo.
244         (go_langhook_handle_option): Handle -fgo-relative-import-path.
245         * go-c.h (go_create_gogo): Update declaration.
246         * gccgo.texi (Invoking gccgo): Document
247         -fgo-relative-import-path.
249 2012-09-17  Ian Lance Taylor  <iant@google.com>
251         * config-lang.in (target_libs): Add target-libbacktrace.
253 2012-09-16  Ian Lance Taylor  <iant@google.com>
255         * Make-lang.in (go/gogo.o): Depend on filenames.h.
257 2012-08-14   Diego Novillo  <dnovillo@google.com>
259         Merge from cxx-conversion branch.  Configury.
261         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
262         * go-gcc.cc: Likewise.
263         * go-system.h: Likewise.
265 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
267         * go-lang.c (lang_decl): Add variable_size GTY option.
269 2012-05-09  Ian Lance Taylor  <iant@google.com>
271         * lang.opt: Add -fgo-pkgpath.
272         * go-lang.c (go_pkgpath): New static variable.
273         (go_prefix): New static variable.
274         (go_langhook_init): Pass go_pkgpath and go_prefix to
275         go_create_gogo.
276         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
277         -fgo-prefix handling to just set go_prefix.
278         * go-c.h (go_set_prefix): Don't declare.
279         (go_create_gogo): Add pkgpath and prefix to declaration.
280         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
281         to pkgpath.  Don't include the package name in the asm name.
282         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
283         docs for -fgo-prefix.
285 2012-04-23  Ian Lance Taylor  <iant@google.com>
287         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
289 2012-04-20  Ian Lance Taylor  <iant@google.com>
291         * lang.opt: Add -fgo-check-divide-zero and
292         -fgo-check-divide-overflow.
293         * gccgo.texi (Invoking gccgo): Document new options.
295 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
297         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
298         with NULL_TREE type instead of void_type_node.
300 2012-03-09  Ian Lance Taylor  <iant@google.com>
302         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
303         to the lhs type if necessary.
305 2012-03-08  Ian Lance Taylor  <iant@google.com>
307         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
308         zero-sized variable.
309         (go_non_zero_struct): New global variable.
310         (Gcc_backend::non_zero_size_type): New function.
311         (Gcc_backend::global_variable): Don't build an assignment for a
312         zero-sized value.
313         * go-c.h (go_non_zero_struct): Declare.
314         * config-lang.in (gtfiles): Add go-c.h.
316 2012-02-29  Ian Lance Taylor  <iant@google.com>
318         * go-gcc.cc (class Gcc_tree): Add set_tree method.
319         (set_placeholder_pointer_type): When setting to a pointer to
320         error, set to error_mark_node.
322 2012-02-23  Richard Guenther  <rguenther@suse.de>
324         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
325         build_distinct_type_copy.
327 2012-02-17  Ian Lance Taylor  <iant@google.com>
329         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
331 2012-02-17  Ian Lance Taylor  <iant@google.com>
333         * gospec.c (lang_specific_driver): If linking, and no -o option
334         was used, add one.
336 2012-02-14  Ian Lance Taylor  <iant@google.com>
338         PR go/48411
339         * Make-lang.in (gccgo-cross$(exeext)): New target.
340         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
341         gccgo$(exeext).
342         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
343         gccgo-cross$(exeext) does not exist.
345 2012-02-07  Ian Lance Taylor  <iant@google.com>
347         * gccgo.texi (Function Names): Document //extern instead of
348         __asm__.
350 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
352         PR target/52079
353         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
354         return build_nonstandard_integer_type result if possible.
356 2012-01-21  Ian Lance Taylor  <iant@google.com>
358         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
359         (Gcc_backend::type_alignment): Likewise.
360         (Gcc_backend::type_field_alignment): Likewise.
361         (Gcc_backend::type_field_offset): Likewise.
363 2012-01-20  Ian Lance Taylor  <iant@google.com>
365         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
366         be empty.
367         (Gcc_backend::set_placeholder_struct_type): Likewise.
369 2012-01-17  Ian Lance Taylor  <iant@google.com>
371         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
372         BASE.s rather than -o BASE.o.
374 2012-01-11  Ian Lance Taylor  <iant@google.com>
376         * go-lang.c (go_langhook_init): Initialize void_list_node before
377         calling go_create_gogo.
379 2012-01-10  Ian Lance Taylor  <iant@google.com>
381         * go-gcc.cc (Gcc_backend::type_size): New function.
382         (Gcc_backend::type_alignment): New function.
383         (Gcc_backend::type_field_alignment): New function.
384         (Gcc_backend::type_field_offset): New function.
385         * go-backend.c (go_type_alignment): Remove.
386         * go-c.h (go_type_alignment): Don't declare.
388 2011-12-27  Ian Lance Taylor  <iant@google.com>
390         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
391         build_distinct_type_copy rather than build_variant_type_copy.
392         (Gcc_backend::set_placeholder_array_type): Likewise.
393         (Gcc_backend::named_type): Add special handling for builtin
394         basic types.
396 2011-12-22  Ian Lance Taylor  <iant@google.com>
398         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
399         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
400         (Gcc_backend::set_placeholder_struct_type): Likewise.
401         (Gcc_backend::set_placeholder_array_type): Likewise.
402         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
404 2011-12-13  Ian Lance Taylor  <iant@google.com>
406         * go-backend.c: #include "simple-object.h" and "intl.h".
407         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
408         (GO_EXPORT_SECTION_NAME): Likewise.
409         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
410         (go_read_export_data): New function.
411         * go-c.h (go_read_export_data): Declare.
413 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
414             Ian Lance Taylor  <iant@google.com>
416         * go-location.h: New file.
417         * go-linemap.cc: New file.
418         * go-gcc.cc: Change all uses of source_location to Location.
419         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
420         (GO_LINEMAP_H): New variable.
421         (GO_LEX_H): Use $(GO_LINEMAP_H).
422         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
423         (go/go-linemap.o): New target.
425 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
427         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
429 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
431         * lang.opt: Add fgo-optimize-.
432         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
433         * go-c.h (go_enable_optimize): Declare.
434         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
435         (GO_EXPORT_H): Define.
436         (GO_IMPORT_H): Add $(GO_EXPORT_H).
437         (GO_AST_DUMP_H): Define.
438         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
439         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
440         (go/types.o): Likewise.
441         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
442         (go/go-optimize.o): New target.
444 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
446         * Make-lang.in (CFLAGS-go/go-lang.o): New.
447         (go/go-lang.o): Remove explicit compilation rule.
449 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
451         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
453 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
455         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
456         (go/ast-dump.o): New target.
457         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
458         (go/statements.o): Likewise.
460 2011-07-06  Richard Guenther  <rguenther@suse.de>
462         * go-lang.c (go_langhook_init):
463         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
465 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
467         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
468         dependencies.
469         * go-backend.c: Include common/common-target.h.
470         (go_write_export_data): Use targetm_common.have_named_sections.
471         * go-lang.c: Include common/common-target.h.
472         (go_langhook_init_options_struct): Use
473         targetm_common.supports_split_stack.
475 2011-06-13  Ian Lance Taylor  <iant@google.com>
477         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
479 2011-06-10  Ian Lance Taylor  <iant@google.com>
481         * go-gcc.cc: Include "toplev.h".
482         (Gcc_backend::immutable_struct): New function.
483         (Gcc_backend::immutable_struct_set_init): New function.
484         (Gcc_backend::immutable_struct_reference): New function.
485         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
487 2011-06-09  Ian Lance Taylor  <iant@google.com>
489         * go-gcc.cc (Gcc_backend::zero_expression): New function.
491 2011-06-07  Richard Guenther  <rguenther@suse.de>
493         * go-lang.c (go_langhook_init): Do not set
494         size_type_node or call set_sizetype.
496 2011-05-27  Ian Lance Taylor  <iant@google.com>
498         * go-backend.c: Include "output.h".
499         (go_write_export_data): New function.
500         * go-c.h (go_write_export_data): Declare.
501         * Make-lang.in (go/go-backend.o): Depend on output.h.
502         (go/export.o): Depend on $(GO_C_H).  Do not depend on
503         $(MACHMODE_H), output.h, or $(TARGET_H).
505 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
507         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
508         (gccgo$(exeext)): Use libcommon-target.a.
510 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
512         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
514 2011-05-13  Ian Lance Taylor  <iant@google.com>
516         * go-gcc.cc (Gcc_backend::function_type): When building a struct
517         for multiple results, check that all fields types have a size.
518         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
520 2011-05-12  Ian Lance Taylor  <iant@google.com>
522         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
523         parameter.
524         (Gcc_backend::parameter_variable): Likewise.
526 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
528         * go-lang.c (global_bindings_p): Return bool and simplify.
530 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
532         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
534 2011-05-04  Ian Lance Taylor  <iant@google.com>
536         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
537         (Gcc_backend::fill_in_struct): New function.
538         (Gcc_backend::array_type): Implement.
539         (Gcc_backend::fill_in_array): New function.
540         (Gcc_backend::placeholder_pointer_type): New function.
541         (Gcc_backend::set_placeholder_pointer_type): New function.
542         (Gcc_backend::set_placeholder_function_type): New function.
543         (Gcc_backend::placeholder_struct_type): New function.
544         (Gcc_backend::set_placeholder_struct_type): New function.
545         (Gcc_backend::placeholder_array_type): New function.
546         (Gcc_backend::set_placeholder_array_type): New function.
547         (Gcc_backend::named_type): New function.
548         (Gcc_backend::circular_pointer_type): New function.
549         (Gcc_backend::is_circular_pointer_type): New function.
551 2011-04-26  Ian Lance Taylor  <iant@google.com>
553         * go-gcc.cc (Gcc_backend::struct_type): Implement.
555 2011-04-25  Ian Lance Taylor  <iant@google.com>
557         * go-gcc.cc (Gcc_backend::error_type): Implement.
558         (Gcc_backend::string_type): Remove.
559         (Gcc_backend::function_type): Change signature and implement.
560         (Gcc_backend::struct_type): Change signature.
561         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
562         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
563         (Gcc_backend::pointer_type): Check for error.
564         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
566 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
568         * go-gcc.c (class Gcc_tree): Make get_tree const.
569         (Gcc_backend::void_type): Implement.
570         (Gcc_backend::bool_type): Implement.
571         (Gcc_backend::integer_type): Implement.
572         (Gcc_backend::float_type): Implement.
573         (Gcc_backend::complex_type): New function.
574         (Gcc_backend::pointer_type): New function.
575         (Gcc_backend::make_type): New function.
576         (type_to_tree): New function.
578 2011-04-21  Ian Lance Taylor  <iant@google.com>
580         * go-system.h (go_assert, go_unreachable): Define.
582 2011-04-19  Ian Lance Taylor  <iant@google.com>
584         * go-system.h: Include "intl.h".
585         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
586         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
587         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
589 2011-04-19  Ian Lance Taylor  <iant@google.com>
591         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
593 2011-04-19  Ian Lance Taylor  <iant@google.com>
595         * go-gcc.cc (class Bblock): Define.
596         (Gcc_backend::if_statement): Change then_block and else_block to
597         Bblock*.
598         (Gcc_backend::block): New function.
599         (Gcc_backend::block_add_statements): New function.
600         (Gcc_backend::block_statement): New function.
601         (tree_to_block, block_to_tree): New functions.
603 2011-04-18  Ian Lance Taylor  <iant@google.com>
605         * go-gcc.cc: Include "go-c.h".
606         (class Bvariable): Define.
607         (Gcc_backend::init_statement): New function.
608         (Gcc_backend::global_variable): New function.
609         (Gcc_backend::global_variable_set_init): New function.
610         (Gcc_backend::local_variable): New function.
611         (Gcc_backend::parameter_variable): New function.
612         (tree_to_type, var_to_tree): New functions.
613         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
614         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
616 2011-04-15  Ian Lance Taylor  <iant@google.com>
618         * go-gcc.cc (Gcc_backend::compound_statement): New function.
619         (Gcc_backend::assignment_statement): Use error_statement.
620         (Gcc_backend::return_statement): Likewise.
621         (Gcc_backend::if_statement): Likewise.
622         (Gcc_backend::switch_statement): Likewise.
623         (Gcc_backend::statement_list): Likewise.
625 2011-04-14  Ian Lance Taylor  <iant@google.com>
627         * go-gcc.cc (Gcc_backend::error_statement): New function.
629 2011-04-13  Ian Lance Taylor  <iant@google.com>
631         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
633 2011-04-13  Ian Lance Taylor  <iant@google.com>
635         * Make-lang.in (GO_OBJS): Add go/runtime.o.
636         (GO_RUNTIME_H): New variable.
637         (go/runtime.o): New target.
638         (go/gogo.o): Depend on $(GO_RUNTIME_H).
639         (go/statements.o): Likewise.
641 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
643         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
644         calling TREE_CHAIN.
646 2011-04-06  Ian Lance Taylor  <iant@google.com>
648         * go-gcc.cc (if_statement): Use build3_loc.
649         (Gcc_backend::switch_statement): New function.
650         (Gcc_backend::statement_list): New function.
652 2011-04-06  Ian Lance Taylor  <iant@google.com>
654         * go-gcc.cc (Gcc_backend::if_statement): New function.
655         (tree_to_stat): New function.
656         (expr_to_tree): Renamed from expression_to_tree.
657         (stat_to_tree): Renamed from statement_to_tree.
659 2011-04-06  Ian Lance Taylor  <iant@google.com>
661         * go-gcc.cc (Gcc_backend::expression_statement): New function.
663 2011-04-04  Ian Lance Taylor  <iant@google.com>
665         * go-gcc.c (class Blabel): Define.
666         (Gcc_backend::make_expression): New function.
667         (get_identifier_from_string): New function.
668         (Gcc_backend::label): New function.
669         (Gcc_backend::label_definition_statement): New function.
670         (Gcc_backend::goto_statement): New function.
671         (Gcc_backend::label_address): New function.
672         (expression_to_tree): New function.
673         * Make-lang.in (go/expressions.o): Depend on
674         go/gofrontend/backend.h.
675         (go/gogo.o): Likewise.
677 2011-04-04  Ian Lance Taylor  <iant@google.com>
679         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
680         (class Bfunction): Define.
681         (Gcc_backend::assignment_statement): Rename from assignment.
682         Check for errors.
683         (Gcc_backend::return_statement): New function.
684         (tree_to_function): New function.
685         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
686         $(GIMPLE_H), and $(GO_GOGO_H).
688 2011-04-03  Ian Lance Taylor  <iant@google.com>
690         * go-gcc.cc: New file.
691         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
692         (go/go-gcc.o): New target.
693         (go/go.o): Depend on go/gofrontend/backend.h.
694         (go/statements.o): Likewise.
696 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
698         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
700 2011-02-08  Ian Lance Taylor  <iant@google.com>
702         * go-lang.c (go_langhook_init_options_struct): Set
703         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
705 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
707         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
708         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
710 2011-01-21  Ian Lance Taylor  <iant@google.com>
712         * go-lang.c (go_langhook_init): Omit float_type_size when calling
713         go_create_gogo.
714         * go-c.h: Update declaration of go_create_gogo.
716 2011-01-13  Ian Lance Taylor  <iant@google.com>
718         * go-backend.c: Include "rtl.h" and "target.h".
719         (go_imported_unsafe): New function.
720         * go-c.h (go_imported_unsafe): Declare.
721         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
722         (go/gogo-tree.o): Remove dependency on $(RTL_H).
723         (go/unsafe.o): Depend on $(GO_C_H).
725 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
727         PR go/47113
728         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
729         variable ‘field’ .
731 2010-12-21  Ian Lance Taylor  <iant@google.com>
733         * Make-lang.in (check-go): Remove.
734         (lang_checks_parallelized): Add check-go.
735         (check_go_parallelize): Set.
737 2010-12-13  Ian Lance Taylor  <iant@google.com>
739         * gospec.c (lang_specific_driver): Add a -o option if not linking
740         and there is no -o option already.
742 2010-12-07  Ian Lance Taylor  <iant@google.com>
744         PR tree-optimization/46805
745         PR tree-optimization/46833
746         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
748 2010-12-06  Ian Lance Taylor  <iant@google.com>
750         PR other/46789
751         PR bootstrap/46812
752         * go-lang.c (go_char_p): Define type and vectors.
753         (go_search_dirs): New static variable.
754         (go_langhook_handle_option): Use version and version/machine
755         directories for -L.
756         (go_langhook_post_options): Add non-specific -L paths.
757         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
758         DEFAULT_TARGET_MACHINE when compiling.
759         * gccgo.texi (Invoking gccgo): Only document -L for linking.
760         (Import and Export): Don't mention -L for finding import files.
762 2010-12-03  Ian Lance Taylor  <iant@google.com>
764         PR bootstrap/46776
765         * go-backend.c: New file.
766         * go-c.h (go_type_alignment): Declare.
767         (go_field_alignment, go_trampoline_info): Declare.
768         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
769         (go/go-backend.o): New target.
770         (go/go-lang.o): Make dependencies match source file.
771         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
772         (go/gogo-tree.o): Don't depend on $(TM_H).
774 2010-12-03  Ian Lance Taylor  <iant@google.com>
776         * config-lang.in (build_by_default): Set to no.
778 2010-12-02  Ian Lance Taylor  <iant@google.com>
780         Go frontend added to gcc repository.
782 Copyright (C) 2010-2014 Free Software Foundation, Inc.
784 Copying and distribution of this file, with or without modification,
785 are permitted in any medium without royalty provided the copyright
786 notice and this notice are preserved.