* config/i386/i386.c (ix86_legitimize_address): Declare
[official-gcc.git] / gcc / go / ChangeLog
blob7df6cbfffd4db2ce359e2ae1ccc6336d68c143fe
1 2014-12-19  Chris Manghane  <cmang@google.com>
3         * go-gcc.cc (array_constructor_expression): Don't construct arrays
4         of zero-sized values.
6 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8         * go-lang.c: Remove redundant enum from machine_mode.
10 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
12         * go-gcc.cc: Adjust include files.
14 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
16         * go-gcc.cc: Adjust include files.
17         * go-lang.c: Ditto.
19 2014-10-23  Ian Lance Taylor  <iant@google.com>
21         * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
22         mpc_t parameter instead of two mpfr_t parameters.
24 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
26         * Make-lang.in (check_go_parallelize): Change to just an upper bound
27         number.
29 2014-09-03  Chris Manghane  <cmang@google.com>
31         * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
32         parameter.  Add is_hidden parameter.
33         (Gcc_backend::implicit_variable_set_init): New method.
34         (Gcc_backend::implicit_variable_reference): New method.
36 2014-08-08  Ian Lance Taylor  <iant@google.com>
38         * go-gcc.cc (Gcc_backend::compound_statement): Don't return
39         NULL_TREE.
41 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
43         * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
44         symtab_get_node to symtab_node::get.
46 2014-06-13  Ian Lance Taylor  <iant@google.com>
48         PR go/61496
49         * gospec.c (lang_specific_driver): On Solaris, when not using GNU
50         ld, add -t option to avoid warning about common symbol changing
51         size.
53 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
55         * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
56         symtab_get_node(var_decl)->implicit_section.
58 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
60         * go-gcc.cc (global_variable_set_init): Use
61         set_decl_section_name.
63 2014-06-04  Ian Lance Taylor  <iant@google.com>
65         * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
66         alignment parameters.  Permit init parameter to be NULL.
68 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
70         * go-gcc.cc: Include builtins.h.
72 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
74         * go-lang.c (struct GTY): Don't use variable_size gty attribute.
76 2014-05-06  Chris Manghane  <cmang@google.com>
78         * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
79         (Gcc_backend::boolean_constant_expression): New method.
80         (Gcc_backend::zero_expression): Use this->make_expression rather
81         than tree_to_expr.
82         (Gcc_backend::var_expression): Likewise.
83         (Gcc_backend::integer_constant_expression): Likewise.
84         (Gcc_backend::float_constant_expression): Likewise.
85         (Gcc_backend::complex_constant_expression): Likewise.
86         (Gcc_backend::struct_field_expression): Likewise.
87         (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
88         (tree_to_function, tree_to_block): Remove functions.
89         (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
90         (block_to_tree, var_to_tree, function_to_tree): Remove functions.
92 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
93             Mike Stump  <mikestump@comcast.net>
94             Richard Sandiford  <rdsandiford@googlemail.com>
96         * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
98 2014-05-06  Chris Manghane  <cmang@google.com>
100         * go-c.h (go_create_gogo): Update declaration to add
101         check_divide_zero and check_divide_overflow parameters.
102         * go-lang.c (go_langhook_init): Pass new arguments to
103         go_create_gogo.
105 2014-05-05  Chris Manghane  <cmang@google.com>
107         * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
108         gc_root_variable.  Add name and is_constant parameters.
110 2014-05-05  Chris Manghane  <cmang@google.com>
112         * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
113         parameter.
114         (Gcc_backend::temporary_variable): Check for erroneous function.
116 2014-04-30  Chris Manghane  <cmang@google.com>
118         * go-backend.c: #include "diagnostics.h".
119         (saw_errors): New function.
120         * go-c.h (saw_errors): Declare.
121         * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
123 2014-04-30  Chris Manghane  <cmang@google.com>
125         * go-lang.c (go_langhook_type_for_size): Do it here, rather than
126         calling into Go frontend.
127         (go_langhook_type_for_mode): Likewise.
128         * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
130 2014-04-30  Chris Manghane  <cmang@google.com>
132         * go-gcc.cc: #include "langhooks.h".
133         (Gcc_backend::Gcc_backend): Add constructor.
134         (Gcc_backend::lookup_function): New function.
135         (Gcc_backend::define_builtin): New private function.
136         (Gcc_backend::gcc_backend): Remove.
137         (go_get_backend): Use new to create new Gcc_backend.
139 2014-04-25  Chris Manghane  <cmang@google.com>
141         * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
142         (Gcc_backend::return_statement): Push and pop function.
143         (Gcc_backend::label): Likewise.
144         (Gcc_backend::function_defer_statement): Likewise.
145         (Gcc_backend::switch_statement): Add function parameter.
146         (Gcc_backend::block): Don't permit function to be NULL.
147         (Gcc_backend::temporary_variable): Change go_assert to
148         gcc_assert.
149         (Gcc_backend::gc_root_variable): New function.
150         (Gcc_backend::write_global_definitions): New function.
152 2014-04-22  Chris Manghane  <cmang@google.com>
154         * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
155         call to create_tmp_var.  Require that function be non-NULL.
157 2014-04-17  Chris Manghane  <cmang@google.com>
159         * go-gcc.cc (Gcc_backend::named_constant_expression): New
160         function.
162 2014-04-14  Chris Manghane  <cmang@google.com>
164         * go-gcc.cc: Include "convert.h".
165         (Gcc_backend::string_constant_expression): New function.
166         (Gcc_backend::real_part_expression): Likewise.
167         (Gcc_backend::imag_part_expression): Likewise.
168         (Gcc_backend::complex_expression): Likewise.
169         (Gcc_backend::constructor_expression): Likewise.
170         (Gcc_backend::array_constructor_expression): Likewise.
171         (Gcc_backend::pointer_offset_expression): Likewise.
172         (Gcc_backend::array_index_expression): Likewise.
173         (Gcc_backend::call_expression): Likewise.
174         (Gcc_backend::exception_handler_statement): Likewise.
175         (Gcc_backend::function_defer_statement): Likewise.
176         (Gcc_backend::function_set_parameters): Likewise.
177         (Gcc_backend::function_set_body): Likewise.
178         (Gcc_backend::convert_expression): Handle various type
179         conversions.
181 2014-03-03  Ian Lance Taylor  <iant@google.com>
183         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
184         DECL_WEAK.
185         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
186         DECL_WEAK.
188 2014-01-24  Chris Manghane  <cmang@google.com>
190         * go-gcc.cc (Gcc_backend::unary_expression): New function.
192 2014-01-16  Chris Manghane  <cmang@google.com>
194         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
195         parameter.
196         (operator_to_tree_code): New static function.
197         (Gcc_backend::binary_expression): New function.
199 2014-01-14  Chris Manghane  <cmang@google.com>
201         * go-gcc.cc (Gcc_backend::compound_expression): New function.
202         (Gcc_backend::conditional_expression): New function.
204 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
206         Update copyright years
208 2014-01-02  Tobias Burnus  <burnus@net-b.de>
210         * gccgo.texi: Bump @copying's copyright year.
212 2013-12-16  Chris Manghane  <cmang@google.com>
214         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
216 2013-12-11  Ian Lance Taylor  <iant@google.com>
218         * go-lang.c (go_langhook_post_options): Disable sibling calls by
219         default.
221 2013-12-10  Ian Lance Taylor  <iant@google.com>
223         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
224         separately.
226 2013-12-05  Ian Lance Taylor  <iant@google.com>
228         Revert this change; no longer required.
229         2013-11-06  Ian Lance Taylor  <iant@google.com>
231         * go-lang.c (go_langhook_post_options): If
232         -fisolate-erroneous-paths was turned on by an optimization option,
233         turn it off.
235 2013-11-23  Ian Lance Taylor  <iant@google.com>
237         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
238         parameter.
240 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
242         * go-gcc.cc: Add required include files from gimple.h.
243         * go-lang.c: Likewise
245 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
247         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
248         tree_to_shwi throughout.
250 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
252         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
253         tree_fits_shwi_p throughout.
255 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
257         * go-lang.c: Include only gimplify.h and gimple.h as needed.
259 2013-11-14  Diego Novillo  <dnovillo@google.com>
261         * go-backend.c: Include stor-layout.h.
262         * go-gcc.cc: Include stringpool.h.
263         Include stor-layout.h.
264         Include varasm.h.
265         * go-lang.c: Include stor-layout.h.
267 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
269         * go-lang.c: Include gimplify.h.
271 2013-11-06  Ian Lance Taylor  <iant@google.com>
273         * go-lang.c (go_langhook_post_options): If
274         -fisolate-erroneous-paths was turned on by an optimization option,
275         turn it off.
277 2013-10-14  Chris Manghane  <cmang@google.com>
279         * go-gcc.cc (Gcc_backend::address_expression): New function.
281 2013-10-11  Chris Manghane  <cmang@google.com>
283         * go-gcc.cc (Gcc_backend::function_code_expression): New
284         function.
286 2013-10-10  Chris Manghane  <cmang@google.com>
288         * go-gcc.cc (Gcc_backend::error_function): New function.
289         (Gcc_backend::function): New function.
290         (Gcc_backend::make_function): New function.
291         (function_to_tree): New function.
293 2013-10-04  Chris Manghane  <cmang@google.com>
295         * go-gcc.cc (Gcc_backend::convert_expression): New function.
297 2013-10-02  Chris Manghane  <cmang@google.com>
299         * go-gcc.cc: Include "real.h" and "realmpfr.h".
300         (Gcc_backend::integer_constant_expression): New function.
301         (Gcc_backend::float_constant_expression): New function.
302         (Gcc_backend::complex_constant_expression): New function.
304 2013-09-30  Chris Manghane  <cmang@google.com>
306         * go-gcc.cc (Gcc_backend::error_expression): New function.
307         (Gcc_backend::var_expression): New function.
308         (Gcc_backend::indirect_expression): New function.
310 2013-09-25  Tom Tromey  <tromey@redhat.com>
312         * Make-lang.in (gospec.o): Remove.
313         (CFLAGS-go/gospec.o): New variable.
314         (GCCGO_OBJS): Update to use go/gospec.o.
315         (go_OBJS): Define.
316         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
317         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
318         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
319         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
320         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
321         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
322         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
323         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
324         (go/unsafe.o): Remove.
325         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
326         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
328 2013-09-25  Tom Tromey  <tromey@redhat.com>
330         * Make-lang.in (gospec.o): Don't use subshell.
332 2013-08-28  Ian Lance Taylor  <iant@google.com>
334         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
335         the struct is not hidden.
336         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
338 2013-08-06  Ian Lance Taylor  <iant@google.com>
340         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
341         compute_reloc_for_constant.
343 2013-08-02  Ian Lance Taylor  <iant@google.com>
345         * go-gcc.cc (immutable_struct_set_init): Always call
346         resolve_unique_section.
348 2013-07-24  Ian Lance Taylor  <iant@google.com>
350         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
351         fields, recreate those fields with the first one with a non-zero
352         size.
354 2013-07-23  Ian Lance Taylor  <iant@google.com>
356         * go-backend.c: Don't #include "rtl.h".
357         (go_imported_unsafe): Don't call init_varasm_once.
358         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
360 2013-07-23  Ian Lance Taylor  <iant@google.com>
362         * go-lang.c: Don't #include "except.h".
363         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
365 2013-06-18  Ian Lance Taylor  <iant@google.com>
367         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
368         parameter.
369         (Gcc_backend::immutable_struct_set_init): Likewise.
371 2013-05-16  Jason Merrill  <jason@redhat.com>
373         * Make-lang.in (go1$(exeext)): Use link mutex.
375 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
377         * gospec.c: pass -u pthread_create to linker when static linking.
379 2012-12-21  Ian Lance Taylor  <iant@google.com>
381         PR bootstrap/54659
382         * go-system.h: Don't include <cstdio>.
384 2012-12-18  Ian Lance Taylor  <iant@google.com>
386         PR go/55201
387         * gospec.c: Revert last patch.
389 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
391         PR go/55201
392         * gospec.c (LIBATOMIC): Define.
393         (LIBATOMIC_PROFILE): Define.
394         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
396 2012-11-29  Ian Lance Taylor  <iant@google.com>
398         * go-gcc.cc: Include "output.h".
399         (global_variable): Add is_unique_section parameter.
400         (global_variable_set_init): Adjust unique section if necessary.
401         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
403 2012-11-17  Diego Novillo  <dnovillo@google.com>
405         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
407         * go-lang.c: Use new vec API in vec.h.
409 2012-11-16  Ian Lance Taylor  <iant@google.com>
411         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
412         (go1$(exeext)): Likewise.
414 2012-10-30  Ian Lance Taylor  <iant@google.com>
416         * lang.opt (-fgo-relative-import-path): New option.
417         * go-lang.c (go_relative_import_path): New static variable.
418         (go_langhook_init): Pass go_relative_import_path to
419         go_create_gogo.
420         (go_langhook_handle_option): Handle -fgo-relative-import-path.
421         * go-c.h (go_create_gogo): Update declaration.
422         * gccgo.texi (Invoking gccgo): Document
423         -fgo-relative-import-path.
425 2012-09-17  Ian Lance Taylor  <iant@google.com>
427         * config-lang.in (target_libs): Add target-libbacktrace.
429 2012-09-16  Ian Lance Taylor  <iant@google.com>
431         * Make-lang.in (go/gogo.o): Depend on filenames.h.
433 2012-08-14   Diego Novillo  <dnovillo@google.com>
435         Merge from cxx-conversion branch.  Configury.
437         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
438         * go-gcc.cc: Likewise.
439         * go-system.h: Likewise.
441 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
443         * go-lang.c (lang_decl): Add variable_size GTY option.
445 2012-05-09  Ian Lance Taylor  <iant@google.com>
447         * lang.opt: Add -fgo-pkgpath.
448         * go-lang.c (go_pkgpath): New static variable.
449         (go_prefix): New static variable.
450         (go_langhook_init): Pass go_pkgpath and go_prefix to
451         go_create_gogo.
452         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
453         -fgo-prefix handling to just set go_prefix.
454         * go-c.h (go_set_prefix): Don't declare.
455         (go_create_gogo): Add pkgpath and prefix to declaration.
456         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
457         to pkgpath.  Don't include the package name in the asm name.
458         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
459         docs for -fgo-prefix.
461 2012-04-23  Ian Lance Taylor  <iant@google.com>
463         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
465 2012-04-20  Ian Lance Taylor  <iant@google.com>
467         * lang.opt: Add -fgo-check-divide-zero and
468         -fgo-check-divide-overflow.
469         * gccgo.texi (Invoking gccgo): Document new options.
471 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
473         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
474         with NULL_TREE type instead of void_type_node.
476 2012-03-09  Ian Lance Taylor  <iant@google.com>
478         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
479         to the lhs type if necessary.
481 2012-03-08  Ian Lance Taylor  <iant@google.com>
483         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
484         zero-sized variable.
485         (go_non_zero_struct): New global variable.
486         (Gcc_backend::non_zero_size_type): New function.
487         (Gcc_backend::global_variable): Don't build an assignment for a
488         zero-sized value.
489         * go-c.h (go_non_zero_struct): Declare.
490         * config-lang.in (gtfiles): Add go-c.h.
492 2012-02-29  Ian Lance Taylor  <iant@google.com>
494         * go-gcc.cc (class Gcc_tree): Add set_tree method.
495         (set_placeholder_pointer_type): When setting to a pointer to
496         error, set to error_mark_node.
498 2012-02-23  Richard Guenther  <rguenther@suse.de>
500         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
501         build_distinct_type_copy.
503 2012-02-17  Ian Lance Taylor  <iant@google.com>
505         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
507 2012-02-17  Ian Lance Taylor  <iant@google.com>
509         * gospec.c (lang_specific_driver): If linking, and no -o option
510         was used, add one.
512 2012-02-14  Ian Lance Taylor  <iant@google.com>
514         PR go/48411
515         * Make-lang.in (gccgo-cross$(exeext)): New target.
516         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
517         gccgo$(exeext).
518         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
519         gccgo-cross$(exeext) does not exist.
521 2012-02-07  Ian Lance Taylor  <iant@google.com>
523         * gccgo.texi (Function Names): Document //extern instead of
524         __asm__.
526 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
528         PR target/52079
529         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
530         return build_nonstandard_integer_type result if possible.
532 2012-01-21  Ian Lance Taylor  <iant@google.com>
534         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
535         (Gcc_backend::type_alignment): Likewise.
536         (Gcc_backend::type_field_alignment): Likewise.
537         (Gcc_backend::type_field_offset): Likewise.
539 2012-01-20  Ian Lance Taylor  <iant@google.com>
541         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
542         be empty.
543         (Gcc_backend::set_placeholder_struct_type): Likewise.
545 2012-01-17  Ian Lance Taylor  <iant@google.com>
547         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
548         BASE.s rather than -o BASE.o.
550 2012-01-11  Ian Lance Taylor  <iant@google.com>
552         * go-lang.c (go_langhook_init): Initialize void_list_node before
553         calling go_create_gogo.
555 2012-01-10  Ian Lance Taylor  <iant@google.com>
557         * go-gcc.cc (Gcc_backend::type_size): New function.
558         (Gcc_backend::type_alignment): New function.
559         (Gcc_backend::type_field_alignment): New function.
560         (Gcc_backend::type_field_offset): New function.
561         * go-backend.c (go_type_alignment): Remove.
562         * go-c.h (go_type_alignment): Don't declare.
564 2011-12-27  Ian Lance Taylor  <iant@google.com>
566         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
567         build_distinct_type_copy rather than build_variant_type_copy.
568         (Gcc_backend::set_placeholder_array_type): Likewise.
569         (Gcc_backend::named_type): Add special handling for builtin
570         basic types.
572 2011-12-22  Ian Lance Taylor  <iant@google.com>
574         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
575         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
576         (Gcc_backend::set_placeholder_struct_type): Likewise.
577         (Gcc_backend::set_placeholder_array_type): Likewise.
578         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
580 2011-12-13  Ian Lance Taylor  <iant@google.com>
582         * go-backend.c: #include "simple-object.h" and "intl.h".
583         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
584         (GO_EXPORT_SECTION_NAME): Likewise.
585         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
586         (go_read_export_data): New function.
587         * go-c.h (go_read_export_data): Declare.
589 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
590             Ian Lance Taylor  <iant@google.com>
592         * go-location.h: New file.
593         * go-linemap.cc: New file.
594         * go-gcc.cc: Change all uses of source_location to Location.
595         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
596         (GO_LINEMAP_H): New variable.
597         (GO_LEX_H): Use $(GO_LINEMAP_H).
598         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
599         (go/go-linemap.o): New target.
601 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
603         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
605 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
607         * lang.opt: Add fgo-optimize-.
608         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
609         * go-c.h (go_enable_optimize): Declare.
610         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
611         (GO_EXPORT_H): Define.
612         (GO_IMPORT_H): Add $(GO_EXPORT_H).
613         (GO_AST_DUMP_H): Define.
614         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
615         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
616         (go/types.o): Likewise.
617         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
618         (go/go-optimize.o): New target.
620 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
622         * Make-lang.in (CFLAGS-go/go-lang.o): New.
623         (go/go-lang.o): Remove explicit compilation rule.
625 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
627         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
629 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
631         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
632         (go/ast-dump.o): New target.
633         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
634         (go/statements.o): Likewise.
636 2011-07-06  Richard Guenther  <rguenther@suse.de>
638         * go-lang.c (go_langhook_init):
639         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
641 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
643         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
644         dependencies.
645         * go-backend.c: Include common/common-target.h.
646         (go_write_export_data): Use targetm_common.have_named_sections.
647         * go-lang.c: Include common/common-target.h.
648         (go_langhook_init_options_struct): Use
649         targetm_common.supports_split_stack.
651 2011-06-13  Ian Lance Taylor  <iant@google.com>
653         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
655 2011-06-10  Ian Lance Taylor  <iant@google.com>
657         * go-gcc.cc: Include "toplev.h".
658         (Gcc_backend::immutable_struct): New function.
659         (Gcc_backend::immutable_struct_set_init): New function.
660         (Gcc_backend::immutable_struct_reference): New function.
661         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
663 2011-06-09  Ian Lance Taylor  <iant@google.com>
665         * go-gcc.cc (Gcc_backend::zero_expression): New function.
667 2011-06-07  Richard Guenther  <rguenther@suse.de>
669         * go-lang.c (go_langhook_init): Do not set
670         size_type_node or call set_sizetype.
672 2011-05-27  Ian Lance Taylor  <iant@google.com>
674         * go-backend.c: Include "output.h".
675         (go_write_export_data): New function.
676         * go-c.h (go_write_export_data): Declare.
677         * Make-lang.in (go/go-backend.o): Depend on output.h.
678         (go/export.o): Depend on $(GO_C_H).  Do not depend on
679         $(MACHMODE_H), output.h, or $(TARGET_H).
681 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
683         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
684         (gccgo$(exeext)): Use libcommon-target.a.
686 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
688         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
690 2011-05-13  Ian Lance Taylor  <iant@google.com>
692         * go-gcc.cc (Gcc_backend::function_type): When building a struct
693         for multiple results, check that all fields types have a size.
694         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
696 2011-05-12  Ian Lance Taylor  <iant@google.com>
698         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
699         parameter.
700         (Gcc_backend::parameter_variable): Likewise.
702 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
704         * go-lang.c (global_bindings_p): Return bool and simplify.
706 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
708         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
710 2011-05-04  Ian Lance Taylor  <iant@google.com>
712         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
713         (Gcc_backend::fill_in_struct): New function.
714         (Gcc_backend::array_type): Implement.
715         (Gcc_backend::fill_in_array): New function.
716         (Gcc_backend::placeholder_pointer_type): New function.
717         (Gcc_backend::set_placeholder_pointer_type): New function.
718         (Gcc_backend::set_placeholder_function_type): New function.
719         (Gcc_backend::placeholder_struct_type): New function.
720         (Gcc_backend::set_placeholder_struct_type): New function.
721         (Gcc_backend::placeholder_array_type): New function.
722         (Gcc_backend::set_placeholder_array_type): New function.
723         (Gcc_backend::named_type): New function.
724         (Gcc_backend::circular_pointer_type): New function.
725         (Gcc_backend::is_circular_pointer_type): New function.
727 2011-04-26  Ian Lance Taylor  <iant@google.com>
729         * go-gcc.cc (Gcc_backend::struct_type): Implement.
731 2011-04-25  Ian Lance Taylor  <iant@google.com>
733         * go-gcc.cc (Gcc_backend::error_type): Implement.
734         (Gcc_backend::string_type): Remove.
735         (Gcc_backend::function_type): Change signature and implement.
736         (Gcc_backend::struct_type): Change signature.
737         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
738         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
739         (Gcc_backend::pointer_type): Check for error.
740         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
742 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
744         * go-gcc.c (class Gcc_tree): Make get_tree const.
745         (Gcc_backend::void_type): Implement.
746         (Gcc_backend::bool_type): Implement.
747         (Gcc_backend::integer_type): Implement.
748         (Gcc_backend::float_type): Implement.
749         (Gcc_backend::complex_type): New function.
750         (Gcc_backend::pointer_type): New function.
751         (Gcc_backend::make_type): New function.
752         (type_to_tree): New function.
754 2011-04-21  Ian Lance Taylor  <iant@google.com>
756         * go-system.h (go_assert, go_unreachable): Define.
758 2011-04-19  Ian Lance Taylor  <iant@google.com>
760         * go-system.h: Include "intl.h".
761         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
762         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
763         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
765 2011-04-19  Ian Lance Taylor  <iant@google.com>
767         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
769 2011-04-19  Ian Lance Taylor  <iant@google.com>
771         * go-gcc.cc (class Bblock): Define.
772         (Gcc_backend::if_statement): Change then_block and else_block to
773         Bblock*.
774         (Gcc_backend::block): New function.
775         (Gcc_backend::block_add_statements): New function.
776         (Gcc_backend::block_statement): New function.
777         (tree_to_block, block_to_tree): New functions.
779 2011-04-18  Ian Lance Taylor  <iant@google.com>
781         * go-gcc.cc: Include "go-c.h".
782         (class Bvariable): Define.
783         (Gcc_backend::init_statement): New function.
784         (Gcc_backend::global_variable): New function.
785         (Gcc_backend::global_variable_set_init): New function.
786         (Gcc_backend::local_variable): New function.
787         (Gcc_backend::parameter_variable): New function.
788         (tree_to_type, var_to_tree): New functions.
789         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
790         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
792 2011-04-15  Ian Lance Taylor  <iant@google.com>
794         * go-gcc.cc (Gcc_backend::compound_statement): New function.
795         (Gcc_backend::assignment_statement): Use error_statement.
796         (Gcc_backend::return_statement): Likewise.
797         (Gcc_backend::if_statement): Likewise.
798         (Gcc_backend::switch_statement): Likewise.
799         (Gcc_backend::statement_list): Likewise.
801 2011-04-14  Ian Lance Taylor  <iant@google.com>
803         * go-gcc.cc (Gcc_backend::error_statement): New function.
805 2011-04-13  Ian Lance Taylor  <iant@google.com>
807         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
809 2011-04-13  Ian Lance Taylor  <iant@google.com>
811         * Make-lang.in (GO_OBJS): Add go/runtime.o.
812         (GO_RUNTIME_H): New variable.
813         (go/runtime.o): New target.
814         (go/gogo.o): Depend on $(GO_RUNTIME_H).
815         (go/statements.o): Likewise.
817 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
819         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
820         calling TREE_CHAIN.
822 2011-04-06  Ian Lance Taylor  <iant@google.com>
824         * go-gcc.cc (if_statement): Use build3_loc.
825         (Gcc_backend::switch_statement): New function.
826         (Gcc_backend::statement_list): New function.
828 2011-04-06  Ian Lance Taylor  <iant@google.com>
830         * go-gcc.cc (Gcc_backend::if_statement): New function.
831         (tree_to_stat): New function.
832         (expr_to_tree): Renamed from expression_to_tree.
833         (stat_to_tree): Renamed from statement_to_tree.
835 2011-04-06  Ian Lance Taylor  <iant@google.com>
837         * go-gcc.cc (Gcc_backend::expression_statement): New function.
839 2011-04-04  Ian Lance Taylor  <iant@google.com>
841         * go-gcc.c (class Blabel): Define.
842         (Gcc_backend::make_expression): New function.
843         (get_identifier_from_string): New function.
844         (Gcc_backend::label): New function.
845         (Gcc_backend::label_definition_statement): New function.
846         (Gcc_backend::goto_statement): New function.
847         (Gcc_backend::label_address): New function.
848         (expression_to_tree): New function.
849         * Make-lang.in (go/expressions.o): Depend on
850         go/gofrontend/backend.h.
851         (go/gogo.o): Likewise.
853 2011-04-04  Ian Lance Taylor  <iant@google.com>
855         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
856         (class Bfunction): Define.
857         (Gcc_backend::assignment_statement): Rename from assignment.
858         Check for errors.
859         (Gcc_backend::return_statement): New function.
860         (tree_to_function): New function.
861         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
862         $(GIMPLE_H), and $(GO_GOGO_H).
864 2011-04-03  Ian Lance Taylor  <iant@google.com>
866         * go-gcc.cc: New file.
867         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
868         (go/go-gcc.o): New target.
869         (go/go.o): Depend on go/gofrontend/backend.h.
870         (go/statements.o): Likewise.
872 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
874         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
876 2011-02-08  Ian Lance Taylor  <iant@google.com>
878         * go-lang.c (go_langhook_init_options_struct): Set
879         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
881 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
883         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
884         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
886 2011-01-21  Ian Lance Taylor  <iant@google.com>
888         * go-lang.c (go_langhook_init): Omit float_type_size when calling
889         go_create_gogo.
890         * go-c.h: Update declaration of go_create_gogo.
892 2011-01-13  Ian Lance Taylor  <iant@google.com>
894         * go-backend.c: Include "rtl.h" and "target.h".
895         (go_imported_unsafe): New function.
896         * go-c.h (go_imported_unsafe): Declare.
897         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
898         (go/gogo-tree.o): Remove dependency on $(RTL_H).
899         (go/unsafe.o): Depend on $(GO_C_H).
901 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
903         PR go/47113
904         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
905         variable ‘field’ .
907 2010-12-21  Ian Lance Taylor  <iant@google.com>
909         * Make-lang.in (check-go): Remove.
910         (lang_checks_parallelized): Add check-go.
911         (check_go_parallelize): Set.
913 2010-12-13  Ian Lance Taylor  <iant@google.com>
915         * gospec.c (lang_specific_driver): Add a -o option if not linking
916         and there is no -o option already.
918 2010-12-07  Ian Lance Taylor  <iant@google.com>
920         PR tree-optimization/46805
921         PR tree-optimization/46833
922         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
924 2010-12-06  Ian Lance Taylor  <iant@google.com>
926         PR other/46789
927         PR bootstrap/46812
928         * go-lang.c (go_char_p): Define type and vectors.
929         (go_search_dirs): New static variable.
930         (go_langhook_handle_option): Use version and version/machine
931         directories for -L.
932         (go_langhook_post_options): Add non-specific -L paths.
933         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
934         DEFAULT_TARGET_MACHINE when compiling.
935         * gccgo.texi (Invoking gccgo): Only document -L for linking.
936         (Import and Export): Don't mention -L for finding import files.
938 2010-12-03  Ian Lance Taylor  <iant@google.com>
940         PR bootstrap/46776
941         * go-backend.c: New file.
942         * go-c.h (go_type_alignment): Declare.
943         (go_field_alignment, go_trampoline_info): Declare.
944         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
945         (go/go-backend.o): New target.
946         (go/go-lang.o): Make dependencies match source file.
947         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
948         (go/gogo-tree.o): Don't depend on $(TM_H).
950 2010-12-03  Ian Lance Taylor  <iant@google.com>
952         * config-lang.in (build_by_default): Set to no.
954 2010-12-02  Ian Lance Taylor  <iant@google.com>
956         Go frontend added to gcc repository.
958 Copyright (C) 2010-2014 Free Software Foundation, Inc.
960 Copying and distribution of this file, with or without modification,
961 are permitted in any medium without royalty provided the copyright
962 notice and this notice are preserved.