Move some complex simplifications to match.pd
[official-gcc.git] / gcc / go / ChangeLog
blob90520ded45557af0daa35bdff644cde1a2f224ce
1 2015-08-24  Marek Polacek  <polacek@redhat.com>
3         PR tree-optimization/67284
4         * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
5         Set TREE_THIS_VOLATILE.
6         (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
7         Pass false to the rest of define_builtin calls.
9 2015-07-31  Andreas Schwab  <schwab@linux-m68k.org>
11         * go-lang.c (go_langhook_init_options_struct): Don't set
12         x_flag_split_stack.
13         (go_langhook_post_options): Set it here instead.
15 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
17         * gofrontend/backend.h: Fix double word typos.
18         * gofrontend/expressions.cc: Same.
19         * gospec.c: Same.
21 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
23         * go-backend.c: Adjust includes.
24         * go-gcc.cc: Likewise.
25         * go-lang.c: Likewise.
27 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
29         * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
31 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
33         * go-backend.c: Do not include input.h, line-map.h or is-a.h.
34         * go-gcc.cc: Likewise.
35         * go-lang.c: Likewise.
36         * go-system.h: Likewise.
38 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
40         * go-backend.c : Adjust include files.
41         * go-gcc.cc : Likewise.
42         * go-lang.c : Likewise.
44 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
46         * go-gcc.cc (write_global_definitions): Remove call to
47         finalize_compilation_unit.
48         Remove Go specific debug generation.
49         * go-lang.c (go_langhook_parse_file): Call go_write_globals.
50         (go_langhook_write_globals): Remove.
51         Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
53 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
55         * go-backend.c: Adjust includes for restructured coretypes.h.
56         * go-c.h: Likewise.
57         * go-gcc.cc: Likewise.
58         * go-lang.c: Likewise.
60 2015-04-30  Chris Manghane  <cmang@google.com>
62         * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
63         method.
65 2015-04-27  Jim Wilson  <jim.wilson@linaro.org>
67         * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
69 2015-04-17  Chris Manghane  <cmang@google.com>
71         * Make-lang.in (GO_OBJS): Add go/escape.o.
73 2015-02-02  Ian Lance Taylor  <iant@google.com>
75         PR go/64836
76         PR go/64838
77         * go-gcc.cc (Gcc_backend::type_size): Change return type to
78         int64_t.
79         (Gcc_backend::type_alignment): Likewise.
80         (Gcc_backend::type_field_alignment): Likewise.
81         (Gcc_backend::type_field_offset): Likewise.
82         (Gcc_backend::implicit_variable): Change alignment parameter type
83         to int64_t.
85 2015-01-23  Ian Lance Taylor  <iant@google.com>
87         PR go/63565
88         * gccgo.texi (Invoking gccgo): Mention that Go programs should not
89         be stripped.
91         * gccgo.texi (C Interoperability): Mention that people should use
92         cgo.
94 2015-01-23  Ian Lance Taylor  <iant@google.com>
96         PR go/64595
97         * go-lang.c (go_langhook_init_options_struct): Set default
98         debug_info_level.
99         (go_langhook_post_options): If debug_info_level is still the
100         default, make sure write_symbols is set.
101         * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
103 2015-01-16  Richard Henderson  <rth@redhat.com>
105         * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
106         (Gcc_backend::static_chain_variable): New method.
108 2015-01-09  Ian Lance Taylor  <iant@google.com>
110         * config-lang.in (lang_dirs): Define.
112 2015-01-09  Michael Collison  <michael.collison@linaro.org>
114         * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
115         input.h, alias.h, symtab.h, options.h, fold-const.h,
116         wide-int.h, and inchash.h due to flattening of tree.h.
117         * go-lang.c: Ditto.
118         * go-backend.c: Ditto.
120 2015-01-07  Chris Manghane  <cmang@google.com>
122         PR go/61204
123         * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
124         zero-sized variable.
126 2015-01-06  Chris Manghane  <cmang@google.com>
128         * go-gcc.cc (Gcc_backend::constructor_expression): Don't
129         initialize zero-sized fields, just evaluate the values for side
130         effects.
132 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
134         Update copyright years.
136         * gccgo.texi: Bump @copyrights-go year.
138 2014-12-19  Chris Manghane  <cmang@google.com>
140         * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
141         construct arrays of zero-sized values.
143 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
145         * go-lang.c: Remove redundant enum from machine_mode.
147 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
149         * go-gcc.cc: Adjust include files.
151 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
153         * go-gcc.cc: Adjust include files.
154         * go-lang.c: Ditto.
156 2014-10-23  Ian Lance Taylor  <iant@google.com>
158         * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
159         mpc_t parameter instead of two mpfr_t parameters.
161 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
163         * Make-lang.in (check_go_parallelize): Change to just an upper bound
164         number.
166 2014-09-03  Chris Manghane  <cmang@google.com>
168         * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
169         parameter.  Add is_hidden parameter.
170         (Gcc_backend::implicit_variable_set_init): New method.
171         (Gcc_backend::implicit_variable_reference): New method.
173 2014-08-08  Ian Lance Taylor  <iant@google.com>
175         * go-gcc.cc (Gcc_backend::compound_statement): Don't return
176         NULL_TREE.
178 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
180         * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
181         symtab_get_node to symtab_node::get.
183 2014-06-13  Ian Lance Taylor  <iant@google.com>
185         PR go/61496
186         * gospec.c (lang_specific_driver): On Solaris, when not using GNU
187         ld, add -t option to avoid warning about common symbol changing
188         size.
190 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
192         * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
193         symtab_get_node(var_decl)->implicit_section.
195 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
197         * go-gcc.cc (global_variable_set_init): Use
198         set_decl_section_name.
200 2014-06-04  Ian Lance Taylor  <iant@google.com>
202         * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
203         alignment parameters.  Permit init parameter to be NULL.
205 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
207         * go-gcc.cc: Include builtins.h.
209 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
211         * go-lang.c (struct GTY): Don't use variable_size gty attribute.
213 2014-05-06  Chris Manghane  <cmang@google.com>
215         * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
216         (Gcc_backend::boolean_constant_expression): New method.
217         (Gcc_backend::zero_expression): Use this->make_expression rather
218         than tree_to_expr.
219         (Gcc_backend::var_expression): Likewise.
220         (Gcc_backend::integer_constant_expression): Likewise.
221         (Gcc_backend::float_constant_expression): Likewise.
222         (Gcc_backend::complex_constant_expression): Likewise.
223         (Gcc_backend::struct_field_expression): Likewise.
224         (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
225         (tree_to_function, tree_to_block): Remove functions.
226         (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
227         (block_to_tree, var_to_tree, function_to_tree): Remove functions.
229 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
230             Mike Stump  <mikestump@comcast.net>
231             Richard Sandiford  <rdsandiford@googlemail.com>
233         * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
235 2014-05-06  Chris Manghane  <cmang@google.com>
237         * go-c.h (go_create_gogo): Update declaration to add
238         check_divide_zero and check_divide_overflow parameters.
239         * go-lang.c (go_langhook_init): Pass new arguments to
240         go_create_gogo.
242 2014-05-05  Chris Manghane  <cmang@google.com>
244         * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
245         gc_root_variable.  Add name and is_constant parameters.
247 2014-05-05  Chris Manghane  <cmang@google.com>
249         * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
250         parameter.
251         (Gcc_backend::temporary_variable): Check for erroneous function.
253 2014-04-30  Chris Manghane  <cmang@google.com>
255         * go-backend.c: #include "diagnostics.h".
256         (saw_errors): New function.
257         * go-c.h (saw_errors): Declare.
258         * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
260 2014-04-30  Chris Manghane  <cmang@google.com>
262         * go-lang.c (go_langhook_type_for_size): Do it here, rather than
263         calling into Go frontend.
264         (go_langhook_type_for_mode): Likewise.
265         * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
267 2014-04-30  Chris Manghane  <cmang@google.com>
269         * go-gcc.cc: #include "langhooks.h".
270         (Gcc_backend::Gcc_backend): Add constructor.
271         (Gcc_backend::lookup_function): New function.
272         (Gcc_backend::define_builtin): New private function.
273         (Gcc_backend::gcc_backend): Remove.
274         (go_get_backend): Use new to create new Gcc_backend.
276 2014-04-25  Chris Manghane  <cmang@google.com>
278         * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
279         (Gcc_backend::return_statement): Push and pop function.
280         (Gcc_backend::label): Likewise.
281         (Gcc_backend::function_defer_statement): Likewise.
282         (Gcc_backend::switch_statement): Add function parameter.
283         (Gcc_backend::block): Don't permit function to be NULL.
284         (Gcc_backend::temporary_variable): Change go_assert to
285         gcc_assert.
286         (Gcc_backend::gc_root_variable): New function.
287         (Gcc_backend::write_global_definitions): New function.
289 2014-04-22  Chris Manghane  <cmang@google.com>
291         * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
292         call to create_tmp_var.  Require that function be non-NULL.
294 2014-04-17  Chris Manghane  <cmang@google.com>
296         * go-gcc.cc (Gcc_backend::named_constant_expression): New
297         function.
299 2014-04-14  Chris Manghane  <cmang@google.com>
301         * go-gcc.cc: Include "convert.h".
302         (Gcc_backend::string_constant_expression): New function.
303         (Gcc_backend::real_part_expression): Likewise.
304         (Gcc_backend::imag_part_expression): Likewise.
305         (Gcc_backend::complex_expression): Likewise.
306         (Gcc_backend::constructor_expression): Likewise.
307         (Gcc_backend::array_constructor_expression): Likewise.
308         (Gcc_backend::pointer_offset_expression): Likewise.
309         (Gcc_backend::array_index_expression): Likewise.
310         (Gcc_backend::call_expression): Likewise.
311         (Gcc_backend::exception_handler_statement): Likewise.
312         (Gcc_backend::function_defer_statement): Likewise.
313         (Gcc_backend::function_set_parameters): Likewise.
314         (Gcc_backend::function_set_body): Likewise.
315         (Gcc_backend::convert_expression): Handle various type
316         conversions.
318 2014-03-03  Ian Lance Taylor  <iant@google.com>
320         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
321         DECL_WEAK.
322         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
323         DECL_WEAK.
325 2014-01-24  Chris Manghane  <cmang@google.com>
327         * go-gcc.cc (Gcc_backend::unary_expression): New function.
329 2014-01-16  Chris Manghane  <cmang@google.com>
331         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
332         parameter.
333         (operator_to_tree_code): New static function.
334         (Gcc_backend::binary_expression): New function.
336 2014-01-14  Chris Manghane  <cmang@google.com>
338         * go-gcc.cc (Gcc_backend::compound_expression): New function.
339         (Gcc_backend::conditional_expression): New function.
341 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
343         Update copyright years
345 2014-01-02  Tobias Burnus  <burnus@net-b.de>
347         * gccgo.texi: Bump @copying's copyright year.
349 2013-12-16  Chris Manghane  <cmang@google.com>
351         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
353 2013-12-11  Ian Lance Taylor  <iant@google.com>
355         * go-lang.c (go_langhook_post_options): Disable sibling calls by
356         default.
358 2013-12-10  Ian Lance Taylor  <iant@google.com>
360         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
361         separately.
363 2013-12-05  Ian Lance Taylor  <iant@google.com>
365         Revert this change; no longer required.
366         2013-11-06  Ian Lance Taylor  <iant@google.com>
368         * go-lang.c (go_langhook_post_options): If
369         -fisolate-erroneous-paths was turned on by an optimization option,
370         turn it off.
372 2013-11-23  Ian Lance Taylor  <iant@google.com>
374         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
375         parameter.
377 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
379         * go-gcc.cc: Add required include files from gimple.h.
380         * go-lang.c: Likewise
382 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
384         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
385         tree_to_shwi throughout.
387 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
389         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
390         tree_fits_shwi_p throughout.
392 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
394         * go-lang.c: Include only gimplify.h and gimple.h as needed.
396 2013-11-14  Diego Novillo  <dnovillo@google.com>
398         * go-backend.c: Include stor-layout.h.
399         * go-gcc.cc: Include stringpool.h.
400         Include stor-layout.h.
401         Include varasm.h.
402         * go-lang.c: Include stor-layout.h.
404 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
406         * go-lang.c: Include gimplify.h.
408 2013-11-06  Ian Lance Taylor  <iant@google.com>
410         * go-lang.c (go_langhook_post_options): If
411         -fisolate-erroneous-paths was turned on by an optimization option,
412         turn it off.
414 2013-10-14  Chris Manghane  <cmang@google.com>
416         * go-gcc.cc (Gcc_backend::address_expression): New function.
418 2013-10-11  Chris Manghane  <cmang@google.com>
420         * go-gcc.cc (Gcc_backend::function_code_expression): New
421         function.
423 2013-10-10  Chris Manghane  <cmang@google.com>
425         * go-gcc.cc (Gcc_backend::error_function): New function.
426         (Gcc_backend::function): New function.
427         (Gcc_backend::make_function): New function.
428         (function_to_tree): New function.
430 2013-10-04  Chris Manghane  <cmang@google.com>
432         * go-gcc.cc (Gcc_backend::convert_expression): New function.
434 2013-10-02  Chris Manghane  <cmang@google.com>
436         * go-gcc.cc: Include "real.h" and "realmpfr.h".
437         (Gcc_backend::integer_constant_expression): New function.
438         (Gcc_backend::float_constant_expression): New function.
439         (Gcc_backend::complex_constant_expression): New function.
441 2013-09-30  Chris Manghane  <cmang@google.com>
443         * go-gcc.cc (Gcc_backend::error_expression): New function.
444         (Gcc_backend::var_expression): New function.
445         (Gcc_backend::indirect_expression): New function.
447 2013-09-25  Tom Tromey  <tromey@redhat.com>
449         * Make-lang.in (gospec.o): Remove.
450         (CFLAGS-go/gospec.o): New variable.
451         (GCCGO_OBJS): Update to use go/gospec.o.
452         (go_OBJS): Define.
453         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
454         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
455         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
456         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
457         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
458         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
459         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
460         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
461         (go/unsafe.o): Remove.
462         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
463         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
465 2013-09-25  Tom Tromey  <tromey@redhat.com>
467         * Make-lang.in (gospec.o): Don't use subshell.
469 2013-08-28  Ian Lance Taylor  <iant@google.com>
471         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
472         the struct is not hidden.
473         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
475 2013-08-06  Ian Lance Taylor  <iant@google.com>
477         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
478         compute_reloc_for_constant.
480 2013-08-02  Ian Lance Taylor  <iant@google.com>
482         * go-gcc.cc (immutable_struct_set_init): Always call
483         resolve_unique_section.
485 2013-07-24  Ian Lance Taylor  <iant@google.com>
487         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
488         fields, recreate those fields with the first one with a non-zero
489         size.
491 2013-07-23  Ian Lance Taylor  <iant@google.com>
493         * go-backend.c: Don't #include "rtl.h".
494         (go_imported_unsafe): Don't call init_varasm_once.
495         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
497 2013-07-23  Ian Lance Taylor  <iant@google.com>
499         * go-lang.c: Don't #include "except.h".
500         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
502 2013-06-18  Ian Lance Taylor  <iant@google.com>
504         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
505         parameter.
506         (Gcc_backend::immutable_struct_set_init): Likewise.
508 2013-05-16  Jason Merrill  <jason@redhat.com>
510         * Make-lang.in (go1$(exeext)): Use link mutex.
512 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
514         * gospec.c: pass -u pthread_create to linker when static linking.
516 2012-12-21  Ian Lance Taylor  <iant@google.com>
518         PR bootstrap/54659
519         * go-system.h: Don't include <cstdio>.
521 2012-12-18  Ian Lance Taylor  <iant@google.com>
523         PR go/55201
524         * gospec.c: Revert last patch.
526 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
528         PR go/55201
529         * gospec.c (LIBATOMIC): Define.
530         (LIBATOMIC_PROFILE): Define.
531         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
533 2012-11-29  Ian Lance Taylor  <iant@google.com>
535         * go-gcc.cc: Include "output.h".
536         (global_variable): Add is_unique_section parameter.
537         (global_variable_set_init): Adjust unique section if necessary.
538         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
540 2012-11-17  Diego Novillo  <dnovillo@google.com>
542         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
544         * go-lang.c: Use new vec API in vec.h.
546 2012-11-16  Ian Lance Taylor  <iant@google.com>
548         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
549         (go1$(exeext)): Likewise.
551 2012-10-30  Ian Lance Taylor  <iant@google.com>
553         * lang.opt (-fgo-relative-import-path): New option.
554         * go-lang.c (go_relative_import_path): New static variable.
555         (go_langhook_init): Pass go_relative_import_path to
556         go_create_gogo.
557         (go_langhook_handle_option): Handle -fgo-relative-import-path.
558         * go-c.h (go_create_gogo): Update declaration.
559         * gccgo.texi (Invoking gccgo): Document
560         -fgo-relative-import-path.
562 2012-09-17  Ian Lance Taylor  <iant@google.com>
564         * config-lang.in (target_libs): Add target-libbacktrace.
566 2012-09-16  Ian Lance Taylor  <iant@google.com>
568         * Make-lang.in (go/gogo.o): Depend on filenames.h.
570 2012-08-14   Diego Novillo  <dnovillo@google.com>
572         Merge from cxx-conversion branch.  Configury.
574         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
575         * go-gcc.cc: Likewise.
576         * go-system.h: Likewise.
578 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
580         * go-lang.c (lang_decl): Add variable_size GTY option.
582 2012-05-09  Ian Lance Taylor  <iant@google.com>
584         * lang.opt: Add -fgo-pkgpath.
585         * go-lang.c (go_pkgpath): New static variable.
586         (go_prefix): New static variable.
587         (go_langhook_init): Pass go_pkgpath and go_prefix to
588         go_create_gogo.
589         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
590         -fgo-prefix handling to just set go_prefix.
591         * go-c.h (go_set_prefix): Don't declare.
592         (go_create_gogo): Add pkgpath and prefix to declaration.
593         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
594         to pkgpath.  Don't include the package name in the asm name.
595         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
596         docs for -fgo-prefix.
598 2012-04-23  Ian Lance Taylor  <iant@google.com>
600         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
602 2012-04-20  Ian Lance Taylor  <iant@google.com>
604         * lang.opt: Add -fgo-check-divide-zero and
605         -fgo-check-divide-overflow.
606         * gccgo.texi (Invoking gccgo): Document new options.
608 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
610         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
611         with NULL_TREE type instead of void_type_node.
613 2012-03-09  Ian Lance Taylor  <iant@google.com>
615         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
616         to the lhs type if necessary.
618 2012-03-08  Ian Lance Taylor  <iant@google.com>
620         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
621         zero-sized variable.
622         (go_non_zero_struct): New global variable.
623         (Gcc_backend::non_zero_size_type): New function.
624         (Gcc_backend::global_variable): Don't build an assignment for a
625         zero-sized value.
626         * go-c.h (go_non_zero_struct): Declare.
627         * config-lang.in (gtfiles): Add go-c.h.
629 2012-02-29  Ian Lance Taylor  <iant@google.com>
631         * go-gcc.cc (class Gcc_tree): Add set_tree method.
632         (set_placeholder_pointer_type): When setting to a pointer to
633         error, set to error_mark_node.
635 2012-02-23  Richard Guenther  <rguenther@suse.de>
637         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
638         build_distinct_type_copy.
640 2012-02-17  Ian Lance Taylor  <iant@google.com>
642         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
644 2012-02-17  Ian Lance Taylor  <iant@google.com>
646         * gospec.c (lang_specific_driver): If linking, and no -o option
647         was used, add one.
649 2012-02-14  Ian Lance Taylor  <iant@google.com>
651         PR go/48411
652         * Make-lang.in (gccgo-cross$(exeext)): New target.
653         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
654         gccgo$(exeext).
655         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
656         gccgo-cross$(exeext) does not exist.
658 2012-02-07  Ian Lance Taylor  <iant@google.com>
660         * gccgo.texi (Function Names): Document //extern instead of
661         __asm__.
663 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
665         PR target/52079
666         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
667         return build_nonstandard_integer_type result if possible.
669 2012-01-21  Ian Lance Taylor  <iant@google.com>
671         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
672         (Gcc_backend::type_alignment): Likewise.
673         (Gcc_backend::type_field_alignment): Likewise.
674         (Gcc_backend::type_field_offset): Likewise.
676 2012-01-20  Ian Lance Taylor  <iant@google.com>
678         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
679         be empty.
680         (Gcc_backend::set_placeholder_struct_type): Likewise.
682 2012-01-17  Ian Lance Taylor  <iant@google.com>
684         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
685         BASE.s rather than -o BASE.o.
687 2012-01-11  Ian Lance Taylor  <iant@google.com>
689         * go-lang.c (go_langhook_init): Initialize void_list_node before
690         calling go_create_gogo.
692 2012-01-10  Ian Lance Taylor  <iant@google.com>
694         * go-gcc.cc (Gcc_backend::type_size): New function.
695         (Gcc_backend::type_alignment): New function.
696         (Gcc_backend::type_field_alignment): New function.
697         (Gcc_backend::type_field_offset): New function.
698         * go-backend.c (go_type_alignment): Remove.
699         * go-c.h (go_type_alignment): Don't declare.
701 2011-12-27  Ian Lance Taylor  <iant@google.com>
703         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
704         build_distinct_type_copy rather than build_variant_type_copy.
705         (Gcc_backend::set_placeholder_array_type): Likewise.
706         (Gcc_backend::named_type): Add special handling for builtin
707         basic types.
709 2011-12-22  Ian Lance Taylor  <iant@google.com>
711         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
712         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
713         (Gcc_backend::set_placeholder_struct_type): Likewise.
714         (Gcc_backend::set_placeholder_array_type): Likewise.
715         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
717 2011-12-13  Ian Lance Taylor  <iant@google.com>
719         * go-backend.c: #include "simple-object.h" and "intl.h".
720         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
721         (GO_EXPORT_SECTION_NAME): Likewise.
722         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
723         (go_read_export_data): New function.
724         * go-c.h (go_read_export_data): Declare.
726 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
727             Ian Lance Taylor  <iant@google.com>
729         * go-location.h: New file.
730         * go-linemap.cc: New file.
731         * go-gcc.cc: Change all uses of source_location to Location.
732         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
733         (GO_LINEMAP_H): New variable.
734         (GO_LEX_H): Use $(GO_LINEMAP_H).
735         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
736         (go/go-linemap.o): New target.
738 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
740         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
742 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
744         * lang.opt: Add fgo-optimize-.
745         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
746         * go-c.h (go_enable_optimize): Declare.
747         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
748         (GO_EXPORT_H): Define.
749         (GO_IMPORT_H): Add $(GO_EXPORT_H).
750         (GO_AST_DUMP_H): Define.
751         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
752         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
753         (go/types.o): Likewise.
754         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
755         (go/go-optimize.o): New target.
757 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
759         * Make-lang.in (CFLAGS-go/go-lang.o): New.
760         (go/go-lang.o): Remove explicit compilation rule.
762 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
764         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
766 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
768         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
769         (go/ast-dump.o): New target.
770         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
771         (go/statements.o): Likewise.
773 2011-07-06  Richard Guenther  <rguenther@suse.de>
775         * go-lang.c (go_langhook_init):
776         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
778 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
780         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
781         dependencies.
782         * go-backend.c: Include common/common-target.h.
783         (go_write_export_data): Use targetm_common.have_named_sections.
784         * go-lang.c: Include common/common-target.h.
785         (go_langhook_init_options_struct): Use
786         targetm_common.supports_split_stack.
788 2011-06-13  Ian Lance Taylor  <iant@google.com>
790         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
792 2011-06-10  Ian Lance Taylor  <iant@google.com>
794         * go-gcc.cc: Include "toplev.h".
795         (Gcc_backend::immutable_struct): New function.
796         (Gcc_backend::immutable_struct_set_init): New function.
797         (Gcc_backend::immutable_struct_reference): New function.
798         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
800 2011-06-09  Ian Lance Taylor  <iant@google.com>
802         * go-gcc.cc (Gcc_backend::zero_expression): New function.
804 2011-06-07  Richard Guenther  <rguenther@suse.de>
806         * go-lang.c (go_langhook_init): Do not set
807         size_type_node or call set_sizetype.
809 2011-05-27  Ian Lance Taylor  <iant@google.com>
811         * go-backend.c: Include "output.h".
812         (go_write_export_data): New function.
813         * go-c.h (go_write_export_data): Declare.
814         * Make-lang.in (go/go-backend.o): Depend on output.h.
815         (go/export.o): Depend on $(GO_C_H).  Do not depend on
816         $(MACHMODE_H), output.h, or $(TARGET_H).
818 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
820         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
821         (gccgo$(exeext)): Use libcommon-target.a.
823 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
825         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
827 2011-05-13  Ian Lance Taylor  <iant@google.com>
829         * go-gcc.cc (Gcc_backend::function_type): When building a struct
830         for multiple results, check that all fields types have a size.
831         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
833 2011-05-12  Ian Lance Taylor  <iant@google.com>
835         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
836         parameter.
837         (Gcc_backend::parameter_variable): Likewise.
839 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
841         * go-lang.c (global_bindings_p): Return bool and simplify.
843 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
845         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
847 2011-05-04  Ian Lance Taylor  <iant@google.com>
849         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
850         (Gcc_backend::fill_in_struct): New function.
851         (Gcc_backend::array_type): Implement.
852         (Gcc_backend::fill_in_array): New function.
853         (Gcc_backend::placeholder_pointer_type): New function.
854         (Gcc_backend::set_placeholder_pointer_type): New function.
855         (Gcc_backend::set_placeholder_function_type): New function.
856         (Gcc_backend::placeholder_struct_type): New function.
857         (Gcc_backend::set_placeholder_struct_type): New function.
858         (Gcc_backend::placeholder_array_type): New function.
859         (Gcc_backend::set_placeholder_array_type): New function.
860         (Gcc_backend::named_type): New function.
861         (Gcc_backend::circular_pointer_type): New function.
862         (Gcc_backend::is_circular_pointer_type): New function.
864 2011-04-26  Ian Lance Taylor  <iant@google.com>
866         * go-gcc.cc (Gcc_backend::struct_type): Implement.
868 2011-04-25  Ian Lance Taylor  <iant@google.com>
870         * go-gcc.cc (Gcc_backend::error_type): Implement.
871         (Gcc_backend::string_type): Remove.
872         (Gcc_backend::function_type): Change signature and implement.
873         (Gcc_backend::struct_type): Change signature.
874         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
875         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
876         (Gcc_backend::pointer_type): Check for error.
877         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
879 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
881         * go-gcc.c (class Gcc_tree): Make get_tree const.
882         (Gcc_backend::void_type): Implement.
883         (Gcc_backend::bool_type): Implement.
884         (Gcc_backend::integer_type): Implement.
885         (Gcc_backend::float_type): Implement.
886         (Gcc_backend::complex_type): New function.
887         (Gcc_backend::pointer_type): New function.
888         (Gcc_backend::make_type): New function.
889         (type_to_tree): New function.
891 2011-04-21  Ian Lance Taylor  <iant@google.com>
893         * go-system.h (go_assert, go_unreachable): Define.
895 2011-04-19  Ian Lance Taylor  <iant@google.com>
897         * go-system.h: Include "intl.h".
898         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
899         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
900         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
902 2011-04-19  Ian Lance Taylor  <iant@google.com>
904         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
906 2011-04-19  Ian Lance Taylor  <iant@google.com>
908         * go-gcc.cc (class Bblock): Define.
909         (Gcc_backend::if_statement): Change then_block and else_block to
910         Bblock*.
911         (Gcc_backend::block): New function.
912         (Gcc_backend::block_add_statements): New function.
913         (Gcc_backend::block_statement): New function.
914         (tree_to_block, block_to_tree): New functions.
916 2011-04-18  Ian Lance Taylor  <iant@google.com>
918         * go-gcc.cc: Include "go-c.h".
919         (class Bvariable): Define.
920         (Gcc_backend::init_statement): New function.
921         (Gcc_backend::global_variable): New function.
922         (Gcc_backend::global_variable_set_init): New function.
923         (Gcc_backend::local_variable): New function.
924         (Gcc_backend::parameter_variable): New function.
925         (tree_to_type, var_to_tree): New functions.
926         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
927         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
929 2011-04-15  Ian Lance Taylor  <iant@google.com>
931         * go-gcc.cc (Gcc_backend::compound_statement): New function.
932         (Gcc_backend::assignment_statement): Use error_statement.
933         (Gcc_backend::return_statement): Likewise.
934         (Gcc_backend::if_statement): Likewise.
935         (Gcc_backend::switch_statement): Likewise.
936         (Gcc_backend::statement_list): Likewise.
938 2011-04-14  Ian Lance Taylor  <iant@google.com>
940         * go-gcc.cc (Gcc_backend::error_statement): New function.
942 2011-04-13  Ian Lance Taylor  <iant@google.com>
944         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
946 2011-04-13  Ian Lance Taylor  <iant@google.com>
948         * Make-lang.in (GO_OBJS): Add go/runtime.o.
949         (GO_RUNTIME_H): New variable.
950         (go/runtime.o): New target.
951         (go/gogo.o): Depend on $(GO_RUNTIME_H).
952         (go/statements.o): Likewise.
954 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
956         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
957         calling TREE_CHAIN.
959 2011-04-06  Ian Lance Taylor  <iant@google.com>
961         * go-gcc.cc (if_statement): Use build3_loc.
962         (Gcc_backend::switch_statement): New function.
963         (Gcc_backend::statement_list): New function.
965 2011-04-06  Ian Lance Taylor  <iant@google.com>
967         * go-gcc.cc (Gcc_backend::if_statement): New function.
968         (tree_to_stat): New function.
969         (expr_to_tree): Renamed from expression_to_tree.
970         (stat_to_tree): Renamed from statement_to_tree.
972 2011-04-06  Ian Lance Taylor  <iant@google.com>
974         * go-gcc.cc (Gcc_backend::expression_statement): New function.
976 2011-04-04  Ian Lance Taylor  <iant@google.com>
978         * go-gcc.c (class Blabel): Define.
979         (Gcc_backend::make_expression): New function.
980         (get_identifier_from_string): New function.
981         (Gcc_backend::label): New function.
982         (Gcc_backend::label_definition_statement): New function.
983         (Gcc_backend::goto_statement): New function.
984         (Gcc_backend::label_address): New function.
985         (expression_to_tree): New function.
986         * Make-lang.in (go/expressions.o): Depend on
987         go/gofrontend/backend.h.
988         (go/gogo.o): Likewise.
990 2011-04-04  Ian Lance Taylor  <iant@google.com>
992         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
993         (class Bfunction): Define.
994         (Gcc_backend::assignment_statement): Rename from assignment.
995         Check for errors.
996         (Gcc_backend::return_statement): New function.
997         (tree_to_function): New function.
998         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
999         $(GIMPLE_H), and $(GO_GOGO_H).
1001 2011-04-03  Ian Lance Taylor  <iant@google.com>
1003         * go-gcc.cc: New file.
1004         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1005         (go/go-gcc.o): New target.
1006         (go/go.o): Depend on go/gofrontend/backend.h.
1007         (go/statements.o): Likewise.
1009 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1011         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1013 2011-02-08  Ian Lance Taylor  <iant@google.com>
1015         * go-lang.c (go_langhook_init_options_struct): Set
1016         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
1018 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1020         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1021         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1023 2011-01-21  Ian Lance Taylor  <iant@google.com>
1025         * go-lang.c (go_langhook_init): Omit float_type_size when calling
1026         go_create_gogo.
1027         * go-c.h: Update declaration of go_create_gogo.
1029 2011-01-13  Ian Lance Taylor  <iant@google.com>
1031         * go-backend.c: Include "rtl.h" and "target.h".
1032         (go_imported_unsafe): New function.
1033         * go-c.h (go_imported_unsafe): Declare.
1034         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1035         (go/gogo-tree.o): Remove dependency on $(RTL_H).
1036         (go/unsafe.o): Depend on $(GO_C_H).
1038 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
1040         PR go/47113
1041         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1042         variable ‘field’ .
1044 2010-12-21  Ian Lance Taylor  <iant@google.com>
1046         * Make-lang.in (check-go): Remove.
1047         (lang_checks_parallelized): Add check-go.
1048         (check_go_parallelize): Set.
1050 2010-12-13  Ian Lance Taylor  <iant@google.com>
1052         * gospec.c (lang_specific_driver): Add a -o option if not linking
1053         and there is no -o option already.
1055 2010-12-07  Ian Lance Taylor  <iant@google.com>
1057         PR tree-optimization/46805
1058         PR tree-optimization/46833
1059         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1061 2010-12-06  Ian Lance Taylor  <iant@google.com>
1063         PR other/46789
1064         PR bootstrap/46812
1065         * go-lang.c (go_char_p): Define type and vectors.
1066         (go_search_dirs): New static variable.
1067         (go_langhook_handle_option): Use version and version/machine
1068         directories for -L.
1069         (go_langhook_post_options): Add non-specific -L paths.
1070         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1071         DEFAULT_TARGET_MACHINE when compiling.
1072         * gccgo.texi (Invoking gccgo): Only document -L for linking.
1073         (Import and Export): Don't mention -L for finding import files.
1075 2010-12-03  Ian Lance Taylor  <iant@google.com>
1077         PR bootstrap/46776
1078         * go-backend.c: New file.
1079         * go-c.h (go_type_alignment): Declare.
1080         (go_field_alignment, go_trampoline_info): Declare.
1081         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1082         (go/go-backend.o): New target.
1083         (go/go-lang.o): Make dependencies match source file.
1084         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1085         (go/gogo-tree.o): Don't depend on $(TM_H).
1087 2010-12-03  Ian Lance Taylor  <iant@google.com>
1089         * config-lang.in (build_by_default): Set to no.
1091 2010-12-02  Ian Lance Taylor  <iant@google.com>
1093         Go frontend added to gcc repository.
1095 Copyright (C) 2010-2015 Free Software Foundation, Inc.
1097 Copying and distribution of this file, with or without modification,
1098 are permitted in any medium without royalty provided the copyright
1099 notice and this notice are preserved.