Daily bump.
[official-gcc.git] / gcc / go / ChangeLog
blobe540d169575bbc1820af17f1036967cb3728f956
1 2021-12-28  Martin Liska  <mliska@suse.cz>
3         * gccgo.texi: Replace http:// with https.
5 2021-11-29  Eric Gallager  <egallager@gcc.gnu.org>
7         PR other/103021
8         * Make-lang.in: Use ETAGS variable in TAGS target.
10 2021-09-27  Martin Liska  <mliska@suse.cz>
12         * go-lang.c (go_langhook_init_options_struct): Set also
13           x_flag_default_complex_method.
15 2021-06-29  Ian Lance Taylor  <iant@golang.org>
17         * go-gcc.cc (Gcc_backend::static_chain_variable): Set
18         DECL_NAMELESS on the new decl.
19         (Gcc_backend::temporary_variable): Likewise.
20         (Gcc_backend::function): Set DECL_NAMELESS on the result decl.
22 2021-05-27  Ian Lance Taylor  <iant@golang.org>
24         * gccgo.texi (Function Names): Don't HTML quote ampersand.
26 2021-05-24  Ian Lance Taylor  <iant@golang.org>
28         PR go/100537
29         * go-gcc.cc (class Gcc_backend): Update methods that create
30         variables to take a flags parameter.
32 2021-01-28  Ian Lance Taylor  <iant@golang.org>
34         * gospec.c (lang_specific_driver): Add -g if no debugging options
35         were passed.
37 2021-01-15  Ian Lance Taylor  <iant@golang.org>
39         * Make-lang.in (GO_OBJS): Add go/embed.o.
41 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
43         * lang.opt (fgo-embedcfg=): Add full stop at the end of description.
45 2021-01-05  Ian Lance Taylor  <iant@golang.org>
47         * lang.opt (fgo-embedcfg): New option.
48         * go-c.h (struct go_create_gogo_args): Add embedcfg field.
49         * go-lang.c (go_embedcfg): New static variable.
50         (go_langhook_init): Set go_create_gogo_args embedcfg field.
51         (go_langhook_handle_option): Handle OPT_fgo_embedcfg_.
52         * gccgo.texi (Invoking gccgo): Document -fgo-embedcfg.
54 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
56         * gccgo.texi: Bump @copyrights-go year.
58 2020-12-22  Ian Lance Taylor  <iant@golang.org>
60         PR go/98402
61         * go-lang.c (go_langhook_init): Force MPFR exponent range to be
62         large enough to support Go constants.
64 2020-11-20  Jakub Jelinek  <jakub@redhat.com>
66         PR other/97911
67         * Make-lang.in (go.serial): Change from goal to a variable.
68         (.PHONY): Drop go.serial and go.prev.
69         (go1$(exeext)): Depend on $(go.serial) rather than go.serial.
71 2020-11-18  Jakub Jelinek  <jakub@redhat.com>
73         * Make-lang.in (go.serial): New goal.
74         (.PHONY): Add go.serial go.prev.
75         (go1$(exeext)): Depend on go.prev.  Call LINK_PROGRESS.
77 2020-11-11  Alan Modra  <amodra@gmail.com>
79         * go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to
80         avoid ambiguous overloaded call.
82 2020-11-06  Nathan Sidwell  <nathan@acm.org>
84         * go-gcc.cc (Gcc_backend::call_expression): Rename
85         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
87 2020-11-04  Ian Lance Taylor  <iant@golang.org>
89         * go-lang.c (go_langhook_post_options): Disable
90         -fipa-icf-functions if it was not explicitly enabled.
92 2020-09-14  Jakub Jelinek  <jakub@redhat.com>
94         * go-gcc.cc (Gcc_backend::function): Adjust
95         cl_optimization_save, cl_optimization_restore and
96         build_optimization_node callers.
98 2020-08-10  Clément Chigot  <chigot.c@gmail.com>
100         * go-c.h (struct go_create_gogo_args): Add need_eqtype field.
101         * go-lang.c (go_langhook_init): Set need_eqtype.
103 2020-04-15  Ian Lance Taylor  <iant@golang.org>
105         PR go/94607
106         * go-gcc.cc (class Gcc_backend): Define builtin_const,
107         builtin_noreturn, builtin_novops.
108         (Gcc_backend::define_builtin): Change const_p and noreturn_p
109         parameters to a single flags parameter.  Change all callers.
110         (Gcc_backend::Gcc_backend): Pass novops for prefetch.
112 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
114         Update copyright years.
116         * gccgo.texi: Bump @copyrights-go year.
118 2019-11-12  Martin Liska  <mliska@suse.cz>
120         * go-lang.c (go_langhook_post_options):
121         Use SET_OPTION_IF_UNSET.
123 2019-09-04  Ian Lance Taylor  <iant@golang.org>
125         PR tree-optimization/91663
126         * go-lang.c (go_langhook_post_options): Clear
127         flag_partial_inlining.
129 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
131         PR middle-end/91283
132         * go-lang.c (go_langhook_post_options): Set flag_excess_precision
133         instead of flag_excess_precision_cmdline.
135 2019-07-02  Cherry Zhang  <cherryyz@google.com>
137         * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_memset.
139 2019-06-21  Cherry Zhang  <cherryyz@google.com>
141         * go-gcc.cc (Gcc_backend::Gcc_backend): Define math/bits
142         builtins.
144 2019-05-30  Jim Wilson  <jimw@sifive.com>
146         * go-gcc.cc (Gcc_backend::Gcc_backend): Add BUILT_IN_ATOMIC_FETCH_AND_1
147         and BUILT_IN_ATOMIC_FETCH_OR_1.
149 2019-05-16  Cherry Zhang  <cherryyz@google.com>
151         * go-gcc.cc (Gcc_backend::Gcc_backend): Define atomic builtins.
153 2019-05-08  Cherry Zhang  <cherryyz@google.com>
155         * go-gcc.cc (Gcc_backend::Gcc_backend): Define memmove builtin.
157 2019-05-07  Cherry Zhang  <cherryyz@google.com>
159         * lang.opt (-fgo-debug-optimization): New option.
160         * go-c.h (struct go_create_gogo_args): Add debug_optimization
161         field.
162         * go-lang.c (go_langhook_init): Set debug_optimization field.
163         * gccgo.texi (Invoking gccgo): Document -fgo-debug-optimization.
165 2019-03-06  Ian Lance Taylor  <iant@golang.org>
167         PR go/89227
168         * go-gcc.cc (Gcc_backend::function): Set TREE_PUBLIC for an
169         only-inline function.
171 2019-02-15  Cherry Zhang  <cherryyz@google.com>
173         * go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_dwarf_cfa
174         instead of __builtin_frame_address.
176 2019-02-14  Ian Lance Taylor  <iant@golang.org>
178         * go-backend.c (go_imported_unsafe): Update
179         optimization_default_node.
181 2019-02-13  Ian Lance Taylor  <iant@golang.org>
183         * go-gcc.cc: #include "opts.h".
184         (Gcc_backend::function): Compile thunks with -Os.
186 2019-02-05  Nikhil Benesch  <nikhil.benesch@gmail.com>
188         PR go/89019
189         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Mark
190         placeholder structs as requiring structural equality.
191         (Gcc_backend::set_placeholder_pointer_type): Propagate the
192         canonical type from the desired pointer type to the placeholder
193         pointer type.
195 2019-01-09  Ian Lance Taylor  <iant@golang.org>
197         PR go/86343
198         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Go back to
199         build_distinct_type_copy, but copy the fields so that they have
200         the right DECL_CONTEXT.
202 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
204         PR other/16615
206         * go-backend.c: Mechanically replace "can not" with "cannot".
207         * go-gcc.cc: Likewise.
209 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
211         Update copyright years.
213         * gccgo.texi: Bump @copyrights-go year.
215 2018-11-27  Ian Lance Taylor  <iant@golang.org>
217         * go-gcc.cc (Gcc_backend::function): Handle function_only_inline
218         flag.
220 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
222         * go-gcc-diagnostics.cc: Replace "source_location" with "location_t".
223         * go-gcc.cc: Likewise.
224         * go-linemap.cc: Likewise.
225         * go-location.h: Likewise.
226         * gofrontend/README: Likewise.
228 2018-10-31  Ian Lance Taylor  <iant@golang.org>
230         * go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
231         gimplify_function_tree.  Instead call allocate_struct_function if
232         necessary.
234 2018-10-29  Ian Lance Taylor  <iant@golang.org>
236         * go-gcc.cc (Gcc_backend::function): Change to use a single flags
237         parameter.
239 2018-10-29  Ian Lance Taylor  <iant@golang.org>
241         * go-linemap.cc (Gcc_linemap::location_file): New method.
243 2018-10-17  David Malcolm  <dmalcolm@redhat.com>
245         * Make-lang.in (selftest-go): New.
247 2018-09-20  Allan Sandfeld Jensen  <allan.jensen@qt.io>
249         * gospec.c (lang_specific_driver): Handle -r like -nostdlib.
251 2018-08-27  Martin Liska  <mliska@suse.cz>
253         * go-gcc.cc (Gcc_backend::call_expression): Use new function
254         fndecl_built_in_p and remove check for FUNCTION_DECL if
255         possible.
257 2018-07-20  Martin Sebor  <msebor@redhat.com>
259         PR middle-end/82063
260         * go-lang.c (go_langhook_handle_option): Change function argument
261         to HOST_WIDE_INT.
263 2018-06-28  Ian Lance Taylor  <iant@golang.org>
265         PR go/86343
266         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
267         build_variant_type_copy rather than build_distinct_type_copy.
269 2018-06-08  Cherry Zhang  <cherryyz@google.com>
271         * go-gcc.cc (class Gcc_backend): Remove
272         stack_allocation_expression method.
274 2018-02-03  Ian Lance Taylor  <iant@golang.org>
276         * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as
277         using structural equality.
279 2018-02-02  Ian Lance Taylor  <iant@golang.org>
281         * go-gcc.cc (Gcc_backend::type_size): Return 0 for
282         void_type_node.
283         (Gcc_backend::convert_expression): Don't convert if the type of
284         expr_tree is void_type_node.
285         (Gcc_backend::array_index_expression): Don't index if the type of
286         the array expression is void_type_node.
287         (Gcc_backend::init_statement): Don't initialize if the type of the
288         initializer expression is void_type_node.
289         (Gcc_backend::assignment_statement): Don't assign if the type of
290         either the left or right hand side is void_type_node.
291         (Gcc_backend::temporary_variable): Don't initialize if the type of
292         the initializer expression is void_type_node.
294 2018-02-01  Cherry Zhang  <cherryyz@google.com>
296         * lang.opt (fgo-optimize): Remove RejectNegative.
297         * go-c.h (go_enable_optimize): Update declaration to take value
298         argument.
299         * go-lang.c (go_langhook_handle_option): Pass value to
300         go_enable_optimize.
301         * gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.
303 2018-01-30  Ian Lance Taylor  <iant@golang.org>
305         * go-gcc.cc (Gcc_backend::convert_tree): New private method.
306         (Gcc_backend::constructor_expression): Call it.
307         (Gcc_backend::assignment_statement): Likewise.
308         (Gcc_backend::temporary_variable): Likewise.
310 2018-01-09  Cherry Zhang  <cherryyz@google.com>
312         * go-gcc.cc (local_variable): Add decl_var parameter.
314 2018-01-09  Cherry Zhang  <cherryyz@google.com>
316         * lang.opt (fgo-debug-escape-hash): New option.
317         * go-c.h (struct go_create_gogo_args): Add debug_escape_hash
318         field.
319         * go-lang.c (go_langhook_init): Set debug_escape_hash field.
320         * gccgo.texi (Invoking gccgo): Document -fgo-debug-escape-hash.
322 2018-01-05  Ian Lance Taylor  <iant@golang.org>
324         * go-gcc.cc (Gcc_backend::Gcc_backend): Correct
325         math_function_type_long to take one argument.
327 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
328             Alan Hayward  <alan.hayward@arm.com>
329             David Sherwood  <david.sherwood@arm.com>
331         * go-lang.c (go_langhook_type_for_mode): Handle MODE_VECTOR_BOOL.
333 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
334             Alan Hayward  <alan.hayward@arm.com>
335             David Sherwood  <david.sherwood@arm.com>
337         * go-lang.c (go_langhook_type_for_mode): Check valid_vector_subparts_p.
339 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
341         Update copyright years.
343         * gccgo.texi: Bump @copyrights-go year.
345 2017-12-12  Tony Reix  <tony.reix@atos.net>
346             Ian Lance Taylor  <iant@golang.org>
348         * go-lang.c (TARGET_AIX): Define if not defined.
349         (go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
351 2017-12-01  Ian Lance Taylor  <iant@golang.org>
353         * go-gcc.cc (Gcc_backend::Gcc_backend): Define
354         __builtin_unreachable.
355         (Gcc_backend::function): Add does_not_return parameter.
357 2017-12-01  Than McIntosh  <thanm@google.com>
359         * go-c.h (go_create_gogo_args): Add nil_check_size_threshold
360         field.
361         * go-lang.c (go_langhook_init): Set nil_check_size_threshold.
363 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
365         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
366         build2_loc instead of build3_loc.
368 2017-11-14  Than McIntosh  <thanm@google.com>
370         * go-gcc.cc (var_expression): Remove Varexpr_context parameter.
372 2017-10-11  Tony Reix  <tony.reix@atos.net>
374         * go-system.h (__STDC_FORMAT_MACROS): Define before including any
375         system header files, as is done in ../system.h.
377 2017-10-05  Ian Lance Taylor  <iant@golang.org>
379         * Make-lang.in (GO_OBJS): Add go/names.o.
381 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
382             Alan Hayward  <alan.hayward@arm.com>
383             David Sherwood  <david.sherwood@arm.com>
385         * go-lang.c (go_langhook_type_for_mode): Use is_complex_float_mode.
387 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
388             Alan Hayward  <alan.hayward@arm.com>
389             David Sherwood  <david.sherwood@arm.com>
391         * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
393 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
394             Alan Hayward  <alan.hayward@arm.com>
395             David Sherwood  <david.sherwood@arm.com>
397         * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
399 2017-08-07  Martin Liska  <mliska@suse.cz>
401         * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
402         and not __no_split_stack__.
404 2017-07-27    Tony Reix  <tony.reix@atos.net>
406         * go-backend.c (go_write_export_data): Use EXCLUDE section for
407         AIX.
409 2017-06-09  Ian Lance Taylor  <iant@golang.org>
411         * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
412         on, disable implicit -forder-blocks-and-partition.
414 2017-05-12  Than McIntosh  <thanm@google.com>
416         * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
418 2017-05-11  Ian Lance Taylor  <iant@google.com>
420         PR go/64238
421         * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
422         DECL_EXTERNAL, clear TREE_STATIC.
424 2017-05-10  Than McIntosh  <thanm@google.com>
426         * go-backend.c: Include "go-c.h".
427         * go-gcc.cc (Gcc_backend::write_export_data): New method.
429 2017-05-10  Ian Lance Taylor  <iant@google.com>
431         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
432         __builtin_prefetch.
433         * Make-lang.in (GO_OBJS): Add go/wb.o.
435 2017-03-28  Than McIntosh  <thanm@google.com>
437         PR go/80226
438         * go-gcc.cc (Gcc_backend::return_statement): Check for
439         void_type_node when checking result size.
441 2017-02-20  Ian Lance Taylor  <iant@golang.org>
443         PR go/79642
444         * lang.opt (-fgo-relative-import-path): Change space to tab.
446 2017-02-07  Richard Biener  <rguenther@suse.de>
448         PR tree-optimization/79256
449         PR middle-end/79278
450         * go-backend.c (go_field_alignment): Adjust.
452 2017-01-11  Than McIntosh  <thanm@google.com>
454         * go-gcc.cc (conditional_expression): Add Bfunction parameter.
456 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
458         Update copyright years.
460         * gccgo.texi: Bump @copyrights-go year.
462 2016-12-16  Than McIntosh  <thanm@google.com>
464         * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
465         parameter.
466         (Gcc_backend::init_statement): Likewise.
467         (Gcc_backend::assignment_statement): Likewise.
468         (Gcc_backend::if_statement): Likewise.
470 2016-12-06  Than McIntosh  <thanm@google.com>
472         * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
473         parameter.
475 2016-11-22  Than McIntosh  <thanm@google.com>
477         * go-gcc.cc (char_needs_encoding): Remove.
478         (needs_encoding, fetch_utf8_char, encode_id): Remove.
479         (Gcc_backend::global_variable): Add asm_name parameter.  Don't
480         compute asm_name here.
481         (Gcc_backend::implicit_variable): Likewise.
482         (Gcc_backend::implicit_variable_reference): Likewise.
483         (Gcc_backend::immutable_struct): Likewise.
484         (Gcc_backend::immutable_struct_reference): Likewise.
485         * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
487 2016-11-22  Ian Lance Taylor  <iant@google.com>
489         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
490         __builtin_frame_address.
492 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
494         * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
495         from result of GET_MODE_CLASS.  Minor formatting fixes.
497 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
499         * go-backend.c: Include memmodel.h.
501 2016-10-10  Than McIntosh  <thanm@google.com>
503         * go-gcc.h: New file.
504         * go-c.h (struct go_create_gogo_args): Add backend and linemap
505         fields.
506         * go-lang.c: Include "go-gcc.h".
507         (go_langhook_init): Set linemap and backend fields of args.
508         * go-gcc.cc: Include "go-gcc.h".
509         * go-linemap.cc: Include "go-gcc.h".
511 2016-10-10  Than McIntosh  <thanm@google.com>
513         * go-linemap.cc (Gcc_linemap::location_line): New method.
515 2016-10-10  Eric Botcazou  <ebotcazou@adacore.com>
517         * config-lang.in (lang_requires_boot_languages): Delete.
519 2016-10-06  Chris Manghane  <cmang@google.com>
521         * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
522         returned memory.
524 2016-09-27  Than McIntosh  <thanm@google.com>
526         * go-linemap.cc (Gcc_linemap::to_string): New method.
528 2016-09-23  Than McIntosh  <thanm@google.com>
530         * go-gcc-diagnostics.cc: New file.
531         * go-location.h (Location): Remove operator source_location.  Add
532         operator==.
533         * go-system.h: #include <sstream>.
534         * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
535         go/go-gcc-diagnostics.o.
536         (CFLAGS-go/go-gcc-diagnostics.o): New variable.
538 2016-09-23  Chris Manghane  <cmang@google.com>
540         PR go/77701
541         * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
542         to pass arguments in the correct order.
544 2016-09-22  Ian Lance Taylor  <iant@golang.org>
546         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
547         __builtin_frame_address.
549 2016-09-11  Ian Lance Taylor  <iant@golang.org>
551         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
552         ctz, ctzll, bswap32, bswap64.
554 2016-09-10  Ian Lance Taylor  <iant@golang.org>
556         * go-backend.c (go_trampoline_info): Remove.
557         * go-c.h (go_trampoline_info): Don't declare.
559 2016-09-09  Than McIntosh  <thanm@google.com>
561         * go-sha1.cc: New file.
562         * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
563         (CFLAGS-go/go-sha1.o): New variable.
565 2016-08-29  Ian Lance Taylor  <iant@google.com>
567         * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
568         * go-c.h (struct go_create_gogo_args): Define.
569         (go_create_gogo): Change declaration to take struct pointer.
570         * go-lang.c (go_c_header): New static variable.
571         (go_langhook_init): Update call to go_create_gogo.
572         * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
573         -fgo-compiling-runtime.
575 2016-08-09  Ian Lance Taylor  <iant@google.com>
577         * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
578         -fgo-debug-escae.
579         (Compiler Directives): New chapter.
580         (Function Names): Describe using //go:linkname.  Suggest using
581         -fgo-pkgpath rather than -fgo-prefix.
583 2016-08-08  Ian Lance Taylor  <iant@google.com>
585         PR go/72814
586         * go-gcc.cc (Gcc_backend::function_type): If the return type is
587         zero bytes, treat the function as returning void.
588         (return_statement): If the return type is zero bytes, don't
589         actually return any values.
591 2016-08-05  Ian Lance Taylor  <iant@google.com>
593         PR go/72812
594         * go-gcc.cc (char_needs_encoding): New static function.
595         (needs_encoding, fetch_utf8_char): New static functions.
596         (encode_id): New static function.
597         (Gcc_backend::global_variable): Set asm name if the name is not
598         simple ASCII.
599         (Gcc_backend::implicit_variable): Likewise.
600         (Gcc_backend::implicit_variable_reference): Likewise.
601         (Gcc_backend::immutable_struct): Likewise.
602         (Gcc_backend::immutable_struct_reference): Likewise.
603         (Gcc_backend::function): Likewise.
605 2016-08-02  Chris Manghane  <cmang@google.com>
607         * lang.opt: Add -fgo-debug-escape option.
608         * go-c.h (go_create_gogo): Add debug_escape_level parameter.
609         * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
610         go_create_gogo.
612 2016-05-06  Chris Manghane  <cmang@google.com>
614         * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
615         new escape.cc).
617 2016-04-29  Chris Manghane  <cmang@google.com>
619         * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
621 2016-04-18  Michael Matz  <matz@suse.de>
623         * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
625 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
627         * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
628         neighbour -> neighbor.
629         * gccgo.texi: Likewise.
631 2016-01-27  Ian Lance Taylor  <iant@google.com>
633         * go-lang.c (go_langhook_init_options_struct): Default to
634         -fkeep-gc-roots-live.
636 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
638         Update copyright years.
640         * gccgo.texi: Bump @copyrights-go year.
642 2015-12-21  Ian Lance Taylor  <iant@google.com>
644         * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class.  Add
645         t_ and orig_type_ fields.  Add new two parameter constructor.  Add
646         get_tree and get_decl methods.
647         (Gcc_backend::var_expression): Pass location to var get_tree.
648         (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR.  Use
649         two parameter constructor for Bvariable.
650         (Gcc_backend::global_variable_set_init): Don't remove
651         VIEW_CONVERT_EXPR.  Use var get_decl, not get_tree.
652         (Gcc_backend::write_global_definitions): Likewise.
653         (Gcc_backend::init_statement): Call var get_decl, not get_tree.
654         (Gcc_backend::block): Likewise.
655         (Gcc_backend::implicit_variable_set_init): Likewise.
656         (Gcc_backend::immutable_struct_set_init): Likewise.
657         (Gcc_backend::function_set_parameters): Likewise.
659 2015-12-21  Ian Lance Taylor  <iant@google.com>
661         * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
662         add a VIEW_CONVERT_EXPR to the tree.
663         (Gcc_backend::global_variable_set_init): Remove any
664         VIEW_CONVERT_EXPR.
665         (Gcc_backend::write_global_definitions): Likewise.
667 2015-11-30  Ian Lance Taylor  <iant@google.com>
669         PR go/68477
670         * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
671         TYPE_STRING_FLAG on a variant type.
673 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
675         * go-backend.c: Remove unused header files.
676         * go-gcc.cc: Likewise.
677         * go-lang.c: Likewise.
678         * gospec.c: Likewise.
680 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
682         * go-backend.c: Reorder #include's and remove duplicates.
683         * go-lang.c: Likewise.
685 2015-10-20  Alan Modra  <amodra@gmail.com>
687         PR go/66870
688         * gospec.c (saw_opt_m32): Rename to..
689         (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
690         Update uses.
691         (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
693 2015-10-01  Ian Lance Taylor  <iant@google.com>
695         PR go/66870
696         * gospec.c (lang_specific_driver): Only look for OPT_m32 if
697         TARGET_CAN_SPLIT_STACK_64BIT is defined.
699 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
701         PR target/66870
702         * gospec.c (lang_specific_driver): Set appropriate split stack
703         options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
705 2015-09-10  Chris Manghane  <cmang@google.com>
707         * go-gcc.cc (Gcc_backend::type_size): Return -1 for
708         unrepresentable size.
710 2015-08-24  Marek Polacek  <polacek@redhat.com>
712         PR tree-optimization/67284
713         * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
714         Set TREE_THIS_VOLATILE.
715         (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
716         Pass false to the rest of define_builtin calls.
718 2015-07-31  Andreas Schwab  <schwab@linux-m68k.org>
720         * go-lang.c (go_langhook_init_options_struct): Don't set
721         x_flag_split_stack.
722         (go_langhook_post_options): Set it here instead.
724 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
726         * gofrontend/backend.h: Fix double word typos.
727         * gofrontend/expressions.cc: Same.
728         * gospec.c: Same.
730 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
732         * go-backend.c: Adjust includes.
733         * go-gcc.cc: Likewise.
734         * go-lang.c: Likewise.
736 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
738         * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
740 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
742         * go-backend.c: Do not include input.h, line-map.h or is-a.h.
743         * go-gcc.cc: Likewise.
744         * go-lang.c: Likewise.
745         * go-system.h: Likewise.
747 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
749         * go-backend.c : Adjust include files.
750         * go-gcc.cc : Likewise.
751         * go-lang.c : Likewise.
753 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
755         * go-gcc.cc (write_global_definitions): Remove call to
756         finalize_compilation_unit.
757         Remove Go specific debug generation.
758         * go-lang.c (go_langhook_parse_file): Call go_write_globals.
759         (go_langhook_write_globals): Remove.
760         Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
762 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
764         * go-backend.c: Adjust includes for restructured coretypes.h.
765         * go-c.h: Likewise.
766         * go-gcc.cc: Likewise.
767         * go-lang.c: Likewise.
769 2015-04-30  Chris Manghane  <cmang@google.com>
771         * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
772         method.
774 2015-04-27  Jim Wilson  <jim.wilson@linaro.org>
776         * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
778 2015-04-17  Chris Manghane  <cmang@google.com>
780         * Make-lang.in (GO_OBJS): Add go/escape.o.
782 2015-02-02  Ian Lance Taylor  <iant@google.com>
784         PR go/64836
785         PR go/64838
786         * go-gcc.cc (Gcc_backend::type_size): Change return type to
787         int64_t.
788         (Gcc_backend::type_alignment): Likewise.
789         (Gcc_backend::type_field_alignment): Likewise.
790         (Gcc_backend::type_field_offset): Likewise.
791         (Gcc_backend::implicit_variable): Change alignment parameter type
792         to int64_t.
794 2015-01-23  Ian Lance Taylor  <iant@google.com>
796         PR go/63565
797         * gccgo.texi (Invoking gccgo): Mention that Go programs should not
798         be stripped.
800         * gccgo.texi (C Interoperability): Mention that people should use
801         cgo.
803 2015-01-23  Ian Lance Taylor  <iant@google.com>
805         PR go/64595
806         * go-lang.c (go_langhook_init_options_struct): Set default
807         debug_info_level.
808         (go_langhook_post_options): If debug_info_level is still the
809         default, make sure write_symbols is set.
810         * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
812 2015-01-16  Richard Henderson  <rth@redhat.com>
814         * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
815         (Gcc_backend::static_chain_variable): New method.
817 2015-01-09  Ian Lance Taylor  <iant@google.com>
819         * config-lang.in (lang_dirs): Define.
821 2015-01-09  Michael Collison  <michael.collison@linaro.org>
823         * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
824         input.h, alias.h, symtab.h, options.h, fold-const.h,
825         wide-int.h, and inchash.h due to flattening of tree.h.
826         * go-lang.c: Ditto.
827         * go-backend.c: Ditto.
829 2015-01-07  Chris Manghane  <cmang@google.com>
831         PR go/61204
832         * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
833         zero-sized variable.
835 2015-01-06  Chris Manghane  <cmang@google.com>
837         * go-gcc.cc (Gcc_backend::constructor_expression): Don't
838         initialize zero-sized fields, just evaluate the values for side
839         effects.
841 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
843         Update copyright years.
845         * gccgo.texi: Bump @copyrights-go year.
847 2014-12-19  Chris Manghane  <cmang@google.com>
849         * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
850         construct arrays of zero-sized values.
852 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
854         * go-lang.c: Remove redundant enum from machine_mode.
856 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
858         * go-gcc.cc: Adjust include files.
860 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
862         * go-gcc.cc: Adjust include files.
863         * go-lang.c: Ditto.
865 2014-10-23  Ian Lance Taylor  <iant@google.com>
867         * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
868         mpc_t parameter instead of two mpfr_t parameters.
870 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
872         * Make-lang.in (check_go_parallelize): Change to just an upper bound
873         number.
875 2014-09-03  Chris Manghane  <cmang@google.com>
877         * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
878         parameter.  Add is_hidden parameter.
879         (Gcc_backend::implicit_variable_set_init): New method.
880         (Gcc_backend::implicit_variable_reference): New method.
882 2014-08-08  Ian Lance Taylor  <iant@google.com>
884         * go-gcc.cc (Gcc_backend::compound_statement): Don't return
885         NULL_TREE.
887 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
889         * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
890         symtab_get_node to symtab_node::get.
892 2014-06-13  Ian Lance Taylor  <iant@google.com>
894         PR go/61496
895         * gospec.c (lang_specific_driver): On Solaris, when not using GNU
896         ld, add -t option to avoid warning about common symbol changing
897         size.
899 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
901         * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
902         symtab_get_node(var_decl)->implicit_section.
904 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
906         * go-gcc.cc (global_variable_set_init): Use
907         set_decl_section_name.
909 2014-06-04  Ian Lance Taylor  <iant@google.com>
911         * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
912         alignment parameters.  Permit init parameter to be NULL.
914 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
916         * go-gcc.cc: Include builtins.h.
918 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
920         * go-lang.c (struct GTY): Don't use variable_size gty attribute.
922 2014-05-06  Chris Manghane  <cmang@google.com>
924         * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
925         (Gcc_backend::boolean_constant_expression): New method.
926         (Gcc_backend::zero_expression): Use this->make_expression rather
927         than tree_to_expr.
928         (Gcc_backend::var_expression): Likewise.
929         (Gcc_backend::integer_constant_expression): Likewise.
930         (Gcc_backend::float_constant_expression): Likewise.
931         (Gcc_backend::complex_constant_expression): Likewise.
932         (Gcc_backend::struct_field_expression): Likewise.
933         (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
934         (tree_to_function, tree_to_block): Remove functions.
935         (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
936         (block_to_tree, var_to_tree, function_to_tree): Remove functions.
938 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
939             Mike Stump  <mikestump@comcast.net>
940             Richard Sandiford  <rdsandiford@googlemail.com>
942         * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
944 2014-05-06  Chris Manghane  <cmang@google.com>
946         * go-c.h (go_create_gogo): Update declaration to add
947         check_divide_zero and check_divide_overflow parameters.
948         * go-lang.c (go_langhook_init): Pass new arguments to
949         go_create_gogo.
951 2014-05-05  Chris Manghane  <cmang@google.com>
953         * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
954         gc_root_variable.  Add name and is_constant parameters.
956 2014-05-05  Chris Manghane  <cmang@google.com>
958         * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
959         parameter.
960         (Gcc_backend::temporary_variable): Check for erroneous function.
962 2014-04-30  Chris Manghane  <cmang@google.com>
964         * go-backend.c: #include "diagnostics.h".
965         (saw_errors): New function.
966         * go-c.h (saw_errors): Declare.
967         * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
969 2014-04-30  Chris Manghane  <cmang@google.com>
971         * go-lang.c (go_langhook_type_for_size): Do it here, rather than
972         calling into Go frontend.
973         (go_langhook_type_for_mode): Likewise.
974         * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
976 2014-04-30  Chris Manghane  <cmang@google.com>
978         * go-gcc.cc: #include "langhooks.h".
979         (Gcc_backend::Gcc_backend): Add constructor.
980         (Gcc_backend::lookup_function): New function.
981         (Gcc_backend::define_builtin): New private function.
982         (Gcc_backend::gcc_backend): Remove.
983         (go_get_backend): Use new to create new Gcc_backend.
985 2014-04-25  Chris Manghane  <cmang@google.com>
987         * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
988         (Gcc_backend::return_statement): Push and pop function.
989         (Gcc_backend::label): Likewise.
990         (Gcc_backend::function_defer_statement): Likewise.
991         (Gcc_backend::switch_statement): Add function parameter.
992         (Gcc_backend::block): Don't permit function to be NULL.
993         (Gcc_backend::temporary_variable): Change go_assert to
994         gcc_assert.
995         (Gcc_backend::gc_root_variable): New function.
996         (Gcc_backend::write_global_definitions): New function.
998 2014-04-22  Chris Manghane  <cmang@google.com>
1000         * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
1001         call to create_tmp_var.  Require that function be non-NULL.
1003 2014-04-17  Chris Manghane  <cmang@google.com>
1005         * go-gcc.cc (Gcc_backend::named_constant_expression): New
1006         function.
1008 2014-04-14  Chris Manghane  <cmang@google.com>
1010         * go-gcc.cc: Include "convert.h".
1011         (Gcc_backend::string_constant_expression): New function.
1012         (Gcc_backend::real_part_expression): Likewise.
1013         (Gcc_backend::imag_part_expression): Likewise.
1014         (Gcc_backend::complex_expression): Likewise.
1015         (Gcc_backend::constructor_expression): Likewise.
1016         (Gcc_backend::array_constructor_expression): Likewise.
1017         (Gcc_backend::pointer_offset_expression): Likewise.
1018         (Gcc_backend::array_index_expression): Likewise.
1019         (Gcc_backend::call_expression): Likewise.
1020         (Gcc_backend::exception_handler_statement): Likewise.
1021         (Gcc_backend::function_defer_statement): Likewise.
1022         (Gcc_backend::function_set_parameters): Likewise.
1023         (Gcc_backend::function_set_body): Likewise.
1024         (Gcc_backend::convert_expression): Handle various type
1025         conversions.
1027 2014-03-03  Ian Lance Taylor  <iant@google.com>
1029         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
1030         DECL_WEAK.
1031         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
1032         DECL_WEAK.
1034 2014-01-24  Chris Manghane  <cmang@google.com>
1036         * go-gcc.cc (Gcc_backend::unary_expression): New function.
1038 2014-01-16  Chris Manghane  <cmang@google.com>
1040         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
1041         parameter.
1042         (operator_to_tree_code): New static function.
1043         (Gcc_backend::binary_expression): New function.
1045 2014-01-14  Chris Manghane  <cmang@google.com>
1047         * go-gcc.cc (Gcc_backend::compound_expression): New function.
1048         (Gcc_backend::conditional_expression): New function.
1050 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1052         Update copyright years
1054 2014-01-02  Tobias Burnus  <burnus@net-b.de>
1056         * gccgo.texi: Bump @copying's copyright year.
1058 2013-12-16  Chris Manghane  <cmang@google.com>
1060         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
1062 2013-12-11  Ian Lance Taylor  <iant@google.com>
1064         * go-lang.c (go_langhook_post_options): Disable sibling calls by
1065         default.
1067 2013-12-10  Ian Lance Taylor  <iant@google.com>
1069         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
1070         separately.
1072 2013-12-05  Ian Lance Taylor  <iant@google.com>
1074         Revert this change; no longer required.
1075         2013-11-06  Ian Lance Taylor  <iant@google.com>
1077         * go-lang.c (go_langhook_post_options): If
1078         -fisolate-erroneous-paths was turned on by an optimization option,
1079         turn it off.
1081 2013-11-23  Ian Lance Taylor  <iant@google.com>
1083         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
1084         parameter.
1086 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1088         * go-gcc.cc: Add required include files from gimple.h.
1089         * go-lang.c: Likewise.
1091 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1093         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
1094         tree_to_shwi throughout.
1096 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1098         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
1099         tree_fits_shwi_p throughout.
1101 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1103         * go-lang.c: Include only gimplify.h and gimple.h as needed.
1105 2013-11-14  Diego Novillo  <dnovillo@google.com>
1107         * go-backend.c: Include stor-layout.h.
1108         * go-gcc.cc: Include stringpool.h.
1109         Include stor-layout.h.
1110         Include varasm.h.
1111         * go-lang.c: Include stor-layout.h.
1113 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1115         * go-lang.c: Include gimplify.h.
1117 2013-11-06  Ian Lance Taylor  <iant@google.com>
1119         * go-lang.c (go_langhook_post_options): If
1120         -fisolate-erroneous-paths was turned on by an optimization option,
1121         turn it off.
1123 2013-10-14  Chris Manghane  <cmang@google.com>
1125         * go-gcc.cc (Gcc_backend::address_expression): New function.
1127 2013-10-11  Chris Manghane  <cmang@google.com>
1129         * go-gcc.cc (Gcc_backend::function_code_expression): New
1130         function.
1132 2013-10-10  Chris Manghane  <cmang@google.com>
1134         * go-gcc.cc (Gcc_backend::error_function): New function.
1135         (Gcc_backend::function): New function.
1136         (Gcc_backend::make_function): New function.
1137         (function_to_tree): New function.
1139 2013-10-04  Chris Manghane  <cmang@google.com>
1141         * go-gcc.cc (Gcc_backend::convert_expression): New function.
1143 2013-10-02  Chris Manghane  <cmang@google.com>
1145         * go-gcc.cc: Include "real.h" and "realmpfr.h".
1146         (Gcc_backend::integer_constant_expression): New function.
1147         (Gcc_backend::float_constant_expression): New function.
1148         (Gcc_backend::complex_constant_expression): New function.
1150 2013-09-30  Chris Manghane  <cmang@google.com>
1152         * go-gcc.cc (Gcc_backend::error_expression): New function.
1153         (Gcc_backend::var_expression): New function.
1154         (Gcc_backend::indirect_expression): New function.
1156 2013-09-25  Tom Tromey  <tromey@redhat.com>
1158         * Make-lang.in (gospec.o): Remove.
1159         (CFLAGS-go/gospec.o): New variable.
1160         (GCCGO_OBJS): Update to use go/gospec.o.
1161         (go_OBJS): Define.
1162         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
1163         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
1164         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
1165         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
1166         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
1167         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
1168         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
1169         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
1170         (go/unsafe.o): Remove.
1171         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
1172         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
1174 2013-09-25  Tom Tromey  <tromey@redhat.com>
1176         * Make-lang.in (gospec.o): Don't use subshell.
1178 2013-08-28  Ian Lance Taylor  <iant@google.com>
1180         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
1181         the struct is not hidden.
1182         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
1184 2013-08-06  Ian Lance Taylor  <iant@google.com>
1186         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
1187         compute_reloc_for_constant.
1189 2013-08-02  Ian Lance Taylor  <iant@google.com>
1191         * go-gcc.cc (immutable_struct_set_init): Always call
1192         resolve_unique_section.
1194 2013-07-24  Ian Lance Taylor  <iant@google.com>
1196         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
1197         fields, recreate those fields with the first one with a non-zero
1198         size.
1200 2013-07-23  Ian Lance Taylor  <iant@google.com>
1202         * go-backend.c: Don't #include "rtl.h".
1203         (go_imported_unsafe): Don't call init_varasm_once.
1204         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
1206 2013-07-23  Ian Lance Taylor  <iant@google.com>
1208         * go-lang.c: Don't #include "except.h".
1209         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
1211 2013-06-18  Ian Lance Taylor  <iant@google.com>
1213         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
1214         parameter.
1215         (Gcc_backend::immutable_struct_set_init): Likewise.
1217 2013-05-16  Jason Merrill  <jason@redhat.com>
1219         * Make-lang.in (go1$(exeext)): Use link mutex.
1221 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
1223         * gospec.c: pass -u pthread_create to linker when static linking.
1225 2012-12-21  Ian Lance Taylor  <iant@google.com>
1227         PR bootstrap/54659
1228         * go-system.h: Don't include <cstdio>.
1230 2012-12-18  Ian Lance Taylor  <iant@google.com>
1232         PR go/55201
1233         * gospec.c: Revert last patch.
1235 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
1237         PR go/55201
1238         * gospec.c (LIBATOMIC): Define.
1239         (LIBATOMIC_PROFILE): Define.
1240         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
1242 2012-11-29  Ian Lance Taylor  <iant@google.com>
1244         * go-gcc.cc: Include "output.h".
1245         (global_variable): Add is_unique_section parameter.
1246         (global_variable_set_init): Adjust unique section if necessary.
1247         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
1249 2012-11-17  Diego Novillo  <dnovillo@google.com>
1251         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1253         * go-lang.c: Use new vec API in vec.h.
1255 2012-11-16  Ian Lance Taylor  <iant@google.com>
1257         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
1258         (go1$(exeext)): Likewise.
1260 2012-10-30  Ian Lance Taylor  <iant@google.com>
1262         * lang.opt (-fgo-relative-import-path): New option.
1263         * go-lang.c (go_relative_import_path): New static variable.
1264         (go_langhook_init): Pass go_relative_import_path to
1265         go_create_gogo.
1266         (go_langhook_handle_option): Handle -fgo-relative-import-path.
1267         * go-c.h (go_create_gogo): Update declaration.
1268         * gccgo.texi (Invoking gccgo): Document
1269         -fgo-relative-import-path.
1271 2012-09-17  Ian Lance Taylor  <iant@google.com>
1273         * config-lang.in (target_libs): Add target-libbacktrace.
1275 2012-09-16  Ian Lance Taylor  <iant@google.com>
1277         * Make-lang.in (go/gogo.o): Depend on filenames.h.
1279 2012-08-14   Diego Novillo  <dnovillo@google.com>
1281         Merge from cxx-conversion branch.  Configury.
1283         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
1284         * go-gcc.cc: Likewise.
1285         * go-system.h: Likewise.
1287 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
1289         * go-lang.c (lang_decl): Add variable_size GTY option.
1291 2012-05-09  Ian Lance Taylor  <iant@google.com>
1293         * lang.opt: Add -fgo-pkgpath.
1294         * go-lang.c (go_pkgpath): New static variable.
1295         (go_prefix): New static variable.
1296         (go_langhook_init): Pass go_pkgpath and go_prefix to
1297         go_create_gogo.
1298         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
1299         -fgo-prefix handling to just set go_prefix.
1300         * go-c.h (go_set_prefix): Don't declare.
1301         (go_create_gogo): Add pkgpath and prefix to declaration.
1302         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
1303         to pkgpath.  Don't include the package name in the asm name.
1304         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
1305         docs for -fgo-prefix.
1307 2012-04-23  Ian Lance Taylor  <iant@google.com>
1309         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
1311 2012-04-20  Ian Lance Taylor  <iant@google.com>
1313         * lang.opt: Add -fgo-check-divide-zero and
1314         -fgo-check-divide-overflow.
1315         * gccgo.texi (Invoking gccgo): Document new options.
1317 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1319         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
1320         with NULL_TREE type instead of void_type_node.
1322 2012-03-09  Ian Lance Taylor  <iant@google.com>
1324         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
1325         to the lhs type if necessary.
1327 2012-03-08  Ian Lance Taylor  <iant@google.com>
1329         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
1330         zero-sized variable.
1331         (go_non_zero_struct): New global variable.
1332         (Gcc_backend::non_zero_size_type): New function.
1333         (Gcc_backend::global_variable): Don't build an assignment for a
1334         zero-sized value.
1335         * go-c.h (go_non_zero_struct): Declare.
1336         * config-lang.in (gtfiles): Add go-c.h.
1338 2012-02-29  Ian Lance Taylor  <iant@google.com>
1340         * go-gcc.cc (class Gcc_tree): Add set_tree method.
1341         (set_placeholder_pointer_type): When setting to a pointer to
1342         error, set to error_mark_node.
1344 2012-02-23  Richard Guenther  <rguenther@suse.de>
1346         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
1347         build_distinct_type_copy.
1349 2012-02-17  Ian Lance Taylor  <iant@google.com>
1351         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
1353 2012-02-17  Ian Lance Taylor  <iant@google.com>
1355         * gospec.c (lang_specific_driver): If linking, and no -o option
1356         was used, add one.
1358 2012-02-14  Ian Lance Taylor  <iant@google.com>
1360         PR go/48411
1361         * Make-lang.in (gccgo-cross$(exeext)): New target.
1362         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
1363         gccgo$(exeext).
1364         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
1365         gccgo-cross$(exeext) does not exist.
1367 2012-02-07  Ian Lance Taylor  <iant@google.com>
1369         * gccgo.texi (Function Names): Document //extern instead of
1370         __asm__.
1372 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
1374         PR target/52079
1375         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
1376         return build_nonstandard_integer_type result if possible.
1378 2012-01-21  Ian Lance Taylor  <iant@google.com>
1380         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
1381         (Gcc_backend::type_alignment): Likewise.
1382         (Gcc_backend::type_field_alignment): Likewise.
1383         (Gcc_backend::type_field_offset): Likewise.
1385 2012-01-20  Ian Lance Taylor  <iant@google.com>
1387         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1388         be empty.
1389         (Gcc_backend::set_placeholder_struct_type): Likewise.
1391 2012-01-17  Ian Lance Taylor  <iant@google.com>
1393         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1394         BASE.s rather than -o BASE.o.
1396 2012-01-11  Ian Lance Taylor  <iant@google.com>
1398         * go-lang.c (go_langhook_init): Initialize void_list_node before
1399         calling go_create_gogo.
1401 2012-01-10  Ian Lance Taylor  <iant@google.com>
1403         * go-gcc.cc (Gcc_backend::type_size): New function.
1404         (Gcc_backend::type_alignment): New function.
1405         (Gcc_backend::type_field_alignment): New function.
1406         (Gcc_backend::type_field_offset): New function.
1407         * go-backend.c (go_type_alignment): Remove.
1408         * go-c.h (go_type_alignment): Don't declare.
1410 2011-12-27  Ian Lance Taylor  <iant@google.com>
1412         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1413         build_distinct_type_copy rather than build_variant_type_copy.
1414         (Gcc_backend::set_placeholder_array_type): Likewise.
1415         (Gcc_backend::named_type): Add special handling for builtin
1416         basic types.
1418 2011-12-22  Ian Lance Taylor  <iant@google.com>
1420         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1421         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1422         (Gcc_backend::set_placeholder_struct_type): Likewise.
1423         (Gcc_backend::set_placeholder_array_type): Likewise.
1424         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1426 2011-12-13  Ian Lance Taylor  <iant@google.com>
1428         * go-backend.c: #include "simple-object.h" and "intl.h".
1429         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1430         (GO_EXPORT_SECTION_NAME): Likewise.
1431         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1432         (go_read_export_data): New function.
1433         * go-c.h (go_read_export_data): Declare.
1435 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
1436             Ian Lance Taylor  <iant@google.com>
1438         * go-location.h: New file.
1439         * go-linemap.cc: New file.
1440         * go-gcc.cc: Change all uses of source_location to Location.
1441         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1442         (GO_LINEMAP_H): New variable.
1443         (GO_LEX_H): Use $(GO_LINEMAP_H).
1444         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1445         (go/go-linemap.o): New target.
1447 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1449         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1451 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
1453         * lang.opt: Add fgo-optimize-.
1454         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1455         * go-c.h (go_enable_optimize): Declare.
1456         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1457         (GO_EXPORT_H): Define.
1458         (GO_IMPORT_H): Add $(GO_EXPORT_H).
1459         (GO_AST_DUMP_H): Define.
1460         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1461         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1462         (go/types.o): Likewise.
1463         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1464         (go/go-optimize.o): New target.
1466 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1468         * Make-lang.in (CFLAGS-go/go-lang.o): New.
1469         (go/go-lang.o): Remove explicit compilation rule.
1471 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1473         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1475 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
1477         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1478         (go/ast-dump.o): New target.
1479         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1480         (go/statements.o): Likewise.
1482 2011-07-06  Richard Guenther  <rguenther@suse.de>
1484         * go-lang.c (go_langhook_init):
1485         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1487 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1489         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1490         dependencies.
1491         * go-backend.c: Include common/common-target.h.
1492         (go_write_export_data): Use targetm_common.have_named_sections.
1493         * go-lang.c: Include common/common-target.h.
1494         (go_langhook_init_options_struct): Use
1495         targetm_common.supports_split_stack.
1497 2011-06-13  Ian Lance Taylor  <iant@google.com>
1499         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1501 2011-06-10  Ian Lance Taylor  <iant@google.com>
1503         * go-gcc.cc: Include "toplev.h".
1504         (Gcc_backend::immutable_struct): New function.
1505         (Gcc_backend::immutable_struct_set_init): New function.
1506         (Gcc_backend::immutable_struct_reference): New function.
1507         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1509 2011-06-09  Ian Lance Taylor  <iant@google.com>
1511         * go-gcc.cc (Gcc_backend::zero_expression): New function.
1513 2011-06-07  Richard Guenther  <rguenther@suse.de>
1515         * go-lang.c (go_langhook_init): Do not set
1516         size_type_node or call set_sizetype.
1518 2011-05-27  Ian Lance Taylor  <iant@google.com>
1520         * go-backend.c: Include "output.h".
1521         (go_write_export_data): New function.
1522         * go-c.h (go_write_export_data): Declare.
1523         * Make-lang.in (go/go-backend.o): Depend on output.h.
1524         (go/export.o): Depend on $(GO_C_H).  Do not depend on
1525         $(MACHMODE_H), output.h, or $(TARGET_H).
1527 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1529         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1530         (gccgo$(exeext)): Use libcommon-target.a.
1532 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1534         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1536 2011-05-13  Ian Lance Taylor  <iant@google.com>
1538         * go-gcc.cc (Gcc_backend::function_type): When building a struct
1539         for multiple results, check that all fields types have a size.
1540         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1542 2011-05-12  Ian Lance Taylor  <iant@google.com>
1544         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1545         parameter.
1546         (Gcc_backend::parameter_variable): Likewise.
1548 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1550         * go-lang.c (global_bindings_p): Return bool and simplify.
1552 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1554         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1556 2011-05-04  Ian Lance Taylor  <iant@google.com>
1558         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1559         (Gcc_backend::fill_in_struct): New function.
1560         (Gcc_backend::array_type): Implement.
1561         (Gcc_backend::fill_in_array): New function.
1562         (Gcc_backend::placeholder_pointer_type): New function.
1563         (Gcc_backend::set_placeholder_pointer_type): New function.
1564         (Gcc_backend::set_placeholder_function_type): New function.
1565         (Gcc_backend::placeholder_struct_type): New function.
1566         (Gcc_backend::set_placeholder_struct_type): New function.
1567         (Gcc_backend::placeholder_array_type): New function.
1568         (Gcc_backend::set_placeholder_array_type): New function.
1569         (Gcc_backend::named_type): New function.
1570         (Gcc_backend::circular_pointer_type): New function.
1571         (Gcc_backend::is_circular_pointer_type): New function.
1573 2011-04-26  Ian Lance Taylor  <iant@google.com>
1575         * go-gcc.cc (Gcc_backend::struct_type): Implement.
1577 2011-04-25  Ian Lance Taylor  <iant@google.com>
1579         * go-gcc.cc (Gcc_backend::error_type): Implement.
1580         (Gcc_backend::string_type): Remove.
1581         (Gcc_backend::function_type): Change signature and implement.
1582         (Gcc_backend::struct_type): Change signature.
1583         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1584         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1585         (Gcc_backend::pointer_type): Check for error.
1586         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1588 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
1590         * go-gcc.c (class Gcc_tree): Make get_tree const.
1591         (Gcc_backend::void_type): Implement.
1592         (Gcc_backend::bool_type): Implement.
1593         (Gcc_backend::integer_type): Implement.
1594         (Gcc_backend::float_type): Implement.
1595         (Gcc_backend::complex_type): New function.
1596         (Gcc_backend::pointer_type): New function.
1597         (Gcc_backend::make_type): New function.
1598         (type_to_tree): New function.
1600 2011-04-21  Ian Lance Taylor  <iant@google.com>
1602         * go-system.h (go_assert, go_unreachable): Define.
1604 2011-04-19  Ian Lance Taylor  <iant@google.com>
1606         * go-system.h: Include "intl.h".
1607         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1608         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1609         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1611 2011-04-19  Ian Lance Taylor  <iant@google.com>
1613         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1615 2011-04-19  Ian Lance Taylor  <iant@google.com>
1617         * go-gcc.cc (class Bblock): Define.
1618         (Gcc_backend::if_statement): Change then_block and else_block to
1619         Bblock*.
1620         (Gcc_backend::block): New function.
1621         (Gcc_backend::block_add_statements): New function.
1622         (Gcc_backend::block_statement): New function.
1623         (tree_to_block, block_to_tree): New functions.
1625 2011-04-18  Ian Lance Taylor  <iant@google.com>
1627         * go-gcc.cc: Include "go-c.h".
1628         (class Bvariable): Define.
1629         (Gcc_backend::init_statement): New function.
1630         (Gcc_backend::global_variable): New function.
1631         (Gcc_backend::global_variable_set_init): New function.
1632         (Gcc_backend::local_variable): New function.
1633         (Gcc_backend::parameter_variable): New function.
1634         (tree_to_type, var_to_tree): New functions.
1635         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1636         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1638 2011-04-15  Ian Lance Taylor  <iant@google.com>
1640         * go-gcc.cc (Gcc_backend::compound_statement): New function.
1641         (Gcc_backend::assignment_statement): Use error_statement.
1642         (Gcc_backend::return_statement): Likewise.
1643         (Gcc_backend::if_statement): Likewise.
1644         (Gcc_backend::switch_statement): Likewise.
1645         (Gcc_backend::statement_list): Likewise.
1647 2011-04-14  Ian Lance Taylor  <iant@google.com>
1649         * go-gcc.cc (Gcc_backend::error_statement): New function.
1651 2011-04-13  Ian Lance Taylor  <iant@google.com>
1653         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1655 2011-04-13  Ian Lance Taylor  <iant@google.com>
1657         * Make-lang.in (GO_OBJS): Add go/runtime.o.
1658         (GO_RUNTIME_H): New variable.
1659         (go/runtime.o): New target.
1660         (go/gogo.o): Depend on $(GO_RUNTIME_H).
1661         (go/statements.o): Likewise.
1663 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1665         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1666         calling TREE_CHAIN.
1668 2011-04-06  Ian Lance Taylor  <iant@google.com>
1670         * go-gcc.cc (if_statement): Use build3_loc.
1671         (Gcc_backend::switch_statement): New function.
1672         (Gcc_backend::statement_list): New function.
1674 2011-04-06  Ian Lance Taylor  <iant@google.com>
1676         * go-gcc.cc (Gcc_backend::if_statement): New function.
1677         (tree_to_stat): New function.
1678         (expr_to_tree): Renamed from expression_to_tree.
1679         (stat_to_tree): Renamed from statement_to_tree.
1681 2011-04-06  Ian Lance Taylor  <iant@google.com>
1683         * go-gcc.cc (Gcc_backend::expression_statement): New function.
1685 2011-04-04  Ian Lance Taylor  <iant@google.com>
1687         * go-gcc.c (class Blabel): Define.
1688         (Gcc_backend::make_expression): New function.
1689         (get_identifier_from_string): New function.
1690         (Gcc_backend::label): New function.
1691         (Gcc_backend::label_definition_statement): New function.
1692         (Gcc_backend::goto_statement): New function.
1693         (Gcc_backend::label_address): New function.
1694         (expression_to_tree): New function.
1695         * Make-lang.in (go/expressions.o): Depend on
1696         go/gofrontend/backend.h.
1697         (go/gogo.o): Likewise.
1699 2011-04-04  Ian Lance Taylor  <iant@google.com>
1701         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1702         (class Bfunction): Define.
1703         (Gcc_backend::assignment_statement): Rename from assignment.
1704         Check for errors.
1705         (Gcc_backend::return_statement): New function.
1706         (tree_to_function): New function.
1707         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1708         $(GIMPLE_H), and $(GO_GOGO_H).
1710 2011-04-03  Ian Lance Taylor  <iant@google.com>
1712         * go-gcc.cc: New file.
1713         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1714         (go/go-gcc.o): New target.
1715         (go/go.o): Depend on go/gofrontend/backend.h.
1716         (go/statements.o): Likewise.
1718 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1720         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1722 2011-02-08  Ian Lance Taylor  <iant@google.com>
1724         * go-lang.c (go_langhook_init_options_struct): Set
1725         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
1727 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1729         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1730         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1732 2011-01-21  Ian Lance Taylor  <iant@google.com>
1734         * go-lang.c (go_langhook_init): Omit float_type_size when calling
1735         go_create_gogo.
1736         * go-c.h: Update declaration of go_create_gogo.
1738 2011-01-13  Ian Lance Taylor  <iant@google.com>
1740         * go-backend.c: Include "rtl.h" and "target.h".
1741         (go_imported_unsafe): New function.
1742         * go-c.h (go_imported_unsafe): Declare.
1743         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1744         (go/gogo-tree.o): Remove dependency on $(RTL_H).
1745         (go/unsafe.o): Depend on $(GO_C_H).
1747 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
1749         PR go/47113
1750         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1751         variable ‘field’ .
1753 2010-12-21  Ian Lance Taylor  <iant@google.com>
1755         * Make-lang.in (check-go): Remove.
1756         (lang_checks_parallelized): Add check-go.
1757         (check_go_parallelize): Set.
1759 2010-12-13  Ian Lance Taylor  <iant@google.com>
1761         * gospec.c (lang_specific_driver): Add a -o option if not linking
1762         and there is no -o option already.
1764 2010-12-07  Ian Lance Taylor  <iant@google.com>
1766         PR tree-optimization/46805
1767         PR tree-optimization/46833
1768         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1770 2010-12-06  Ian Lance Taylor  <iant@google.com>
1772         PR other/46789
1773         PR bootstrap/46812
1774         * go-lang.c (go_char_p): Define type and vectors.
1775         (go_search_dirs): New static variable.
1776         (go_langhook_handle_option): Use version and version/machine
1777         directories for -L.
1778         (go_langhook_post_options): Add non-specific -L paths.
1779         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1780         DEFAULT_TARGET_MACHINE when compiling.
1781         * gccgo.texi (Invoking gccgo): Only document -L for linking.
1782         (Import and Export): Don't mention -L for finding import files.
1784 2010-12-03  Ian Lance Taylor  <iant@google.com>
1786         PR bootstrap/46776
1787         * go-backend.c: New file.
1788         * go-c.h (go_type_alignment): Declare.
1789         (go_field_alignment, go_trampoline_info): Declare.
1790         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1791         (go/go-backend.o): New target.
1792         (go/go-lang.o): Make dependencies match source file.
1793         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1794         (go/gogo-tree.o): Don't depend on $(TM_H).
1796 2010-12-03  Ian Lance Taylor  <iant@google.com>
1798         * config-lang.in (build_by_default): Set to no.
1800 2010-12-02  Ian Lance Taylor  <iant@google.com>
1802         Go frontend added to gcc repository.
1804 Copyright (C) 2010-2021 Free Software Foundation, Inc.
1806 Copying and distribution of this file, with or without modification,
1807 are permitted in any medium without royalty provided the copyright
1808 notice and this notice are preserved.