[20/77] Replace MODE_INT checks with is_int_mode
[official-gcc.git] / gcc / go / ChangeLog
blobea47870590d99a0038ed01a4e7a4389d31b76259
1 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
2             Alan Hayward  <alan.hayward@arm.com>
3             David Sherwood  <david.sherwood@arm.com>
5         * go-lang.c (go_langhook_type_for_mode): Use is_int_mode.
7 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8             Alan Hayward  <alan.hayward@arm.com>
9             David Sherwood  <david.sherwood@arm.com>
11         * go-lang.c (go_langhook_type_for_mode): Use is_float_mode.
13 2017-08-07  Martin Liska  <mliska@suse.cz>
15         * go-gcc.cc (Gcc_backend::function): Look up for no_split_stack
16         and not __no_split_stack__.
18 2017-07-27    Tony Reix  <tony.reix@atos.net>
20         * go-backend.c (go_write_export_data): Use EXCLUDE section for
21         AIX.
23 2017-06-09  Ian Lance Taylor  <iant@golang.org>
25         * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
26         on, disable implicit -forder-blocks-and-partition.
28 2017-05-12  Than McIntosh  <thanm@google.com>
30         * go-gcc.cc (Gcc_backend::call_expression): Add caller parameter.
32 2017-05-11  Ian Lance Taylor  <iant@google.com>
34         PR go/64238
35         * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
36         DECL_EXTERNAL, clear TREE_STATIC.
38 2017-05-10  Than McIntosh  <thanm@google.com>
40         * go-backend.c: Include "go-c.h".
41         * go-gcc.cc (Gcc_backend::write_export_data): New method.
43 2017-05-10  Ian Lance Taylor  <iant@google.com>
45         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
46         __builtin_prefetch.
47         * Make-lang.in (GO_OBJS): Add go/wb.o.
49 2017-03-28  Than McIntosh  <thanm@google.com>
51         PR go/80226
52         * go-gcc.cc (Gcc_backend::return_statement): Check for
53         void_type_node when checking result size.
55 2017-02-20  Ian Lance Taylor  <iant@golang.org>
57         PR go/79642
58         * lang.opt (-fgo-relative-import-path): Change space to tab.
60 2017-02-07  Richard Biener  <rguenther@suse.de>
62         PR tree-optimization/79256
63         PR middle-end/79278
64         * go-backend.c (go_field_alignment): Adjust.
66 2017-01-11  Than McIntosh  <thanm@google.com>
68         * go-gcc.cc (conditional_expression): Add Bfunction parameter.
70 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
72         Update copyright years.
74         * gccgo.texi: Bump @copyrights-go year.
76 2016-12-16  Than McIntosh  <thanm@google.com>
78         * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
79         parameter.
80         (Gcc_backend::init_statement): Likewise.
81         (Gcc_backend::assignment_statement): Likewise.
82         (Gcc_backend::if_statement): Likewise.
84 2016-12-06  Than McIntosh  <thanm@google.com>
86         * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
87         parameter.
89 2016-11-22  Than McIntosh  <thanm@google.com>
91         * go-gcc.cc (char_needs_encoding): Remove.
92         (needs_encoding, fetch_utf8_char, encode_id): Remove.
93         (Gcc_backend::global_variable): Add asm_name parameter.  Don't
94         compute asm_name here.
95         (Gcc_backend::implicit_variable): Likewise.
96         (Gcc_backend::implicit_variable_reference): Likewise.
97         (Gcc_backend::immutable_struct): Likewise.
98         (Gcc_backend::immutable_struct_reference): Likewise.
99         * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
101 2016-11-22  Ian Lance Taylor  <iant@google.com>
103         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
104         __builtin_frame_address.
106 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
108         * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
109         from result of GET_MODE_CLASS.  Minor formatting fixes.
111 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
113         * go-backend.c: Include memmodel.h.
115 2016-10-10  Than McIntosh  <thanm@google.com>
117         * go-gcc.h: New file.
118         * go-c.h (struct go_create_gogo_args): Add backend and linemap
119         fields.
120         * go-lang.c: Include "go-gcc.h".
121         (go_langhook_init): Set linemap and backend fields of args.
122         * go-gcc.cc: Include "go-gcc.h".
123         * go-linemap.cc: Include "go-gcc.h".
125 2016-10-10  Than McIntosh  <thanm@google.com>
127         * go-linemap.cc (Gcc_linemap::location_line): New method.
129 2016-10-10  Eric Botcazou  <ebotcazou@adacore.com>
131         * config-lang.in (lang_requires_boot_languages): Delete.
133 2016-10-06  Chris Manghane  <cmang@google.com>
135         * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
136         returned memory.
138 2016-09-27  Than McIntosh  <thanm@google.com>
140         * go-linemap.cc (Gcc_linemap::to_string): New method.
142 2016-09-23  Than McIntosh  <thanm@google.com>
144         * go-gcc-diagnostics.cc: New file.
145         * go-location.h (Location): Remove operator source_location.  Add
146         operator==.
147         * go-system.h: #include <sstream>.
148         * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
149         go/go-gcc-diagnostics.o.
150         (CFLAGS-go/go-gcc-diagnostics.o): New variable.
152 2016-09-23  Chris Manghane  <cmang@google.com>
154         PR go/77701
155         * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
156         to pass arguments in the correct order.
158 2016-09-22  Ian Lance Taylor  <iant@golang.org>
160         * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
161         __builtin_frame_address.
163 2016-09-11  Ian Lance Taylor  <iant@golang.org>
165         * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
166         ctz, ctzll, bswap32, bswap64.
168 2016-09-10  Ian Lance Taylor  <iant@golang.org>
170         * go-backend.c (go_trampoline_info): Remove.
171         * go-c.h (go_trampoline_info): Don't declare.
173 2016-09-09  Than McIntosh  <thanm@google.com>
175         * go-sha1.cc: New file.
176         * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
177         (CFLAGS-go/go-sha1.o): New variable.
179 2016-08-29  Ian Lance Taylor  <iant@google.com>
181         * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
182         * go-c.h (struct go_create_gogo_args): Define.
183         (go_create_gogo): Change declaration to take struct pointer.
184         * go-lang.c (go_c_header): New static variable.
185         (go_langhook_init): Update call to go_create_gogo.
186         * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
187         -fgo-compiling-runtime.
189 2016-08-09  Ian Lance Taylor  <iant@google.com>
191         * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
192         -fgo-debug-escae.
193         (Compiler Directives): New chapter.
194         (Function Names): Describe using //go:linkname.  Suggest using
195         -fgo-pkgpath rather than -fgo-prefix.
197 2016-08-08  Ian Lance Taylor  <iant@google.com>
199         PR go/72814
200         * go-gcc.cc (Gcc_backend::function_type): If the return type is
201         zero bytes, treat the function as returning void.
202         (return_statement): If the return type is zero bytes, don't
203         actually return any values.
205 2016-08-05  Ian Lance Taylor  <iant@google.com>
207         PR go/72812
208         * go-gcc.cc (char_needs_encoding): New static function.
209         (needs_encoding, fetch_utf8_char): New static functions.
210         (encode_id): New static function.
211         (Gcc_backend::global_variable): Set asm name if the name is not
212         simple ASCII.
213         (Gcc_backend::implicit_variable): Likewise.
214         (Gcc_backend::implicit_variable_reference): Likewise.
215         (Gcc_backend::immutable_struct): Likewise.
216         (Gcc_backend::immutable_struct_reference): Likewise.
217         (Gcc_backend::function): Likewise.
219 2016-08-02  Chris Manghane  <cmang@google.com>
221         * lang.opt: Add -fgo-debug-escape option.
222         * go-c.h (go_create_gogo): Add debug_escape_level parameter.
223         * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
224         go_create_gogo.
226 2016-05-06  Chris Manghane  <cmang@google.com>
228         * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
229         new escape.cc).
231 2016-04-29  Chris Manghane  <cmang@google.com>
233         * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
235 2016-04-18  Michael Matz  <matz@suse.de>
237         * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
239 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
241         * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
242         neighbour -> neighbor.
243         * gccgo.texi: Likewise.
245 2016-01-27  Ian Lance Taylor  <iant@google.com>
247         * go-lang.c (go_langhook_init_options_struct): Default to
248         -fkeep-gc-roots-live.
250 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
252         Update copyright years.
254         * gccgo.texi: Bump @copyrights-go year.
256 2015-12-21  Ian Lance Taylor  <iant@google.com>
258         * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class.  Add
259         t_ and orig_type_ fields.  Add new two parameter constructor.  Add
260         get_tree and get_decl methods.
261         (Gcc_backend::var_expression): Pass location to var get_tree.
262         (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR.  Use
263         two parameter constructor for Bvariable.
264         (Gcc_backend::global_variable_set_init): Don't remove
265         VIEW_CONVERT_EXPR.  Use var get_decl, not get_tree.
266         (Gcc_backend::write_global_definitions): Likewise.
267         (Gcc_backend::init_statement): Call var get_decl, not get_tree.
268         (Gcc_backend::block): Likewise.
269         (Gcc_backend::implicit_variable_set_init): Likewise.
270         (Gcc_backend::immutable_struct_set_init): Likewise.
271         (Gcc_backend::function_set_parameters): Likewise.
273 2015-12-21  Ian Lance Taylor  <iant@google.com>
275         * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
276         add a VIEW_CONVERT_EXPR to the tree.
277         (Gcc_backend::global_variable_set_init): Remove any
278         VIEW_CONVERT_EXPR.
279         (Gcc_backend::write_global_definitions): Likewise.
281 2015-11-30  Ian Lance Taylor  <iant@google.com>
283         PR go/68477
284         * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
285         TYPE_STRING_FLAG on a variant type.
287 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
289         * go-backend.c: Remove unused header files.
290         * go-gcc.cc: Likewise.
291         * go-lang.c: Likewise.
292         * gospec.c: Likewise.
294 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
296         * go-backend.c: Reorder #include's and remove duplicates.
297         * go-lang.c: Likewise.
299 2015-10-20  Alan Modra  <amodra@gmail.com>
301         PR go/66870
302         * gospec.c (saw_opt_m32): Rename to..
303         (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
304         Update uses.
305         (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
307 2015-10-01  Ian Lance Taylor  <iant@google.com>
309         PR go/66870
310         * gospec.c (lang_specific_driver): Only look for OPT_m32 if
311         TARGET_CAN_SPLIT_STACK_64BIT is defined.
313 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
315         PR target/66870
316         * gospec.c (lang_specific_driver): Set appropriate split stack
317         options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
319 2015-09-10  Chris Manghane  <cmang@google.com>
321         * go-gcc.cc (Gcc_backend::type_size): Return -1 for
322         unrepresentable size.
324 2015-08-24  Marek Polacek  <polacek@redhat.com>
326         PR tree-optimization/67284
327         * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
328         Set TREE_THIS_VOLATILE.
329         (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
330         Pass false to the rest of define_builtin calls.
332 2015-07-31  Andreas Schwab  <schwab@linux-m68k.org>
334         * go-lang.c (go_langhook_init_options_struct): Don't set
335         x_flag_split_stack.
336         (go_langhook_post_options): Set it here instead.
338 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
340         * gofrontend/backend.h: Fix double word typos.
341         * gofrontend/expressions.cc: Same.
342         * gospec.c: Same.
344 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
346         * go-backend.c: Adjust includes.
347         * go-gcc.cc: Likewise.
348         * go-lang.c: Likewise.
350 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
352         * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
354 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
356         * go-backend.c: Do not include input.h, line-map.h or is-a.h.
357         * go-gcc.cc: Likewise.
358         * go-lang.c: Likewise.
359         * go-system.h: Likewise.
361 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
363         * go-backend.c : Adjust include files.
364         * go-gcc.cc : Likewise.
365         * go-lang.c : Likewise.
367 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
369         * go-gcc.cc (write_global_definitions): Remove call to
370         finalize_compilation_unit.
371         Remove Go specific debug generation.
372         * go-lang.c (go_langhook_parse_file): Call go_write_globals.
373         (go_langhook_write_globals): Remove.
374         Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
376 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
378         * go-backend.c: Adjust includes for restructured coretypes.h.
379         * go-c.h: Likewise.
380         * go-gcc.cc: Likewise.
381         * go-lang.c: Likewise.
383 2015-04-30  Chris Manghane  <cmang@google.com>
385         * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
386         method.
388 2015-04-27  Jim Wilson  <jim.wilson@linaro.org>
390         * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
392 2015-04-17  Chris Manghane  <cmang@google.com>
394         * Make-lang.in (GO_OBJS): Add go/escape.o.
396 2015-02-02  Ian Lance Taylor  <iant@google.com>
398         PR go/64836
399         PR go/64838
400         * go-gcc.cc (Gcc_backend::type_size): Change return type to
401         int64_t.
402         (Gcc_backend::type_alignment): Likewise.
403         (Gcc_backend::type_field_alignment): Likewise.
404         (Gcc_backend::type_field_offset): Likewise.
405         (Gcc_backend::implicit_variable): Change alignment parameter type
406         to int64_t.
408 2015-01-23  Ian Lance Taylor  <iant@google.com>
410         PR go/63565
411         * gccgo.texi (Invoking gccgo): Mention that Go programs should not
412         be stripped.
414         * gccgo.texi (C Interoperability): Mention that people should use
415         cgo.
417 2015-01-23  Ian Lance Taylor  <iant@google.com>
419         PR go/64595
420         * go-lang.c (go_langhook_init_options_struct): Set default
421         debug_info_level.
422         (go_langhook_post_options): If debug_info_level is still the
423         default, make sure write_symbols is set.
424         * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
426 2015-01-16  Richard Henderson  <rth@redhat.com>
428         * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
429         (Gcc_backend::static_chain_variable): New method.
431 2015-01-09  Ian Lance Taylor  <iant@google.com>
433         * config-lang.in (lang_dirs): Define.
435 2015-01-09  Michael Collison  <michael.collison@linaro.org>
437         * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
438         input.h, alias.h, symtab.h, options.h, fold-const.h,
439         wide-int.h, and inchash.h due to flattening of tree.h.
440         * go-lang.c: Ditto.
441         * go-backend.c: Ditto.
443 2015-01-07  Chris Manghane  <cmang@google.com>
445         PR go/61204
446         * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
447         zero-sized variable.
449 2015-01-06  Chris Manghane  <cmang@google.com>
451         * go-gcc.cc (Gcc_backend::constructor_expression): Don't
452         initialize zero-sized fields, just evaluate the values for side
453         effects.
455 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
457         Update copyright years.
459         * gccgo.texi: Bump @copyrights-go year.
461 2014-12-19  Chris Manghane  <cmang@google.com>
463         * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
464         construct arrays of zero-sized values.
466 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
468         * go-lang.c: Remove redundant enum from machine_mode.
470 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
472         * go-gcc.cc: Adjust include files.
474 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
476         * go-gcc.cc: Adjust include files.
477         * go-lang.c: Ditto.
479 2014-10-23  Ian Lance Taylor  <iant@google.com>
481         * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
482         mpc_t parameter instead of two mpfr_t parameters.
484 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
486         * Make-lang.in (check_go_parallelize): Change to just an upper bound
487         number.
489 2014-09-03  Chris Manghane  <cmang@google.com>
491         * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
492         parameter.  Add is_hidden parameter.
493         (Gcc_backend::implicit_variable_set_init): New method.
494         (Gcc_backend::implicit_variable_reference): New method.
496 2014-08-08  Ian Lance Taylor  <iant@google.com>
498         * go-gcc.cc (Gcc_backend::compound_statement): Don't return
499         NULL_TREE.
501 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
503         * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
504         symtab_get_node to symtab_node::get.
506 2014-06-13  Ian Lance Taylor  <iant@google.com>
508         PR go/61496
509         * gospec.c (lang_specific_driver): On Solaris, when not using GNU
510         ld, add -t option to avoid warning about common symbol changing
511         size.
513 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
515         * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
516         symtab_get_node(var_decl)->implicit_section.
518 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
520         * go-gcc.cc (global_variable_set_init): Use
521         set_decl_section_name.
523 2014-06-04  Ian Lance Taylor  <iant@google.com>
525         * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
526         alignment parameters.  Permit init parameter to be NULL.
528 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
530         * go-gcc.cc: Include builtins.h.
532 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
534         * go-lang.c (struct GTY): Don't use variable_size gty attribute.
536 2014-05-06  Chris Manghane  <cmang@google.com>
538         * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
539         (Gcc_backend::boolean_constant_expression): New method.
540         (Gcc_backend::zero_expression): Use this->make_expression rather
541         than tree_to_expr.
542         (Gcc_backend::var_expression): Likewise.
543         (Gcc_backend::integer_constant_expression): Likewise.
544         (Gcc_backend::float_constant_expression): Likewise.
545         (Gcc_backend::complex_constant_expression): Likewise.
546         (Gcc_backend::struct_field_expression): Likewise.
547         (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
548         (tree_to_function, tree_to_block): Remove functions.
549         (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
550         (block_to_tree, var_to_tree, function_to_tree): Remove functions.
552 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
553             Mike Stump  <mikestump@comcast.net>
554             Richard Sandiford  <rdsandiford@googlemail.com>
556         * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
558 2014-05-06  Chris Manghane  <cmang@google.com>
560         * go-c.h (go_create_gogo): Update declaration to add
561         check_divide_zero and check_divide_overflow parameters.
562         * go-lang.c (go_langhook_init): Pass new arguments to
563         go_create_gogo.
565 2014-05-05  Chris Manghane  <cmang@google.com>
567         * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
568         gc_root_variable.  Add name and is_constant parameters.
570 2014-05-05  Chris Manghane  <cmang@google.com>
572         * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
573         parameter.
574         (Gcc_backend::temporary_variable): Check for erroneous function.
576 2014-04-30  Chris Manghane  <cmang@google.com>
578         * go-backend.c: #include "diagnostics.h".
579         (saw_errors): New function.
580         * go-c.h (saw_errors): Declare.
581         * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
583 2014-04-30  Chris Manghane  <cmang@google.com>
585         * go-lang.c (go_langhook_type_for_size): Do it here, rather than
586         calling into Go frontend.
587         (go_langhook_type_for_mode): Likewise.
588         * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
590 2014-04-30  Chris Manghane  <cmang@google.com>
592         * go-gcc.cc: #include "langhooks.h".
593         (Gcc_backend::Gcc_backend): Add constructor.
594         (Gcc_backend::lookup_function): New function.
595         (Gcc_backend::define_builtin): New private function.
596         (Gcc_backend::gcc_backend): Remove.
597         (go_get_backend): Use new to create new Gcc_backend.
599 2014-04-25  Chris Manghane  <cmang@google.com>
601         * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
602         (Gcc_backend::return_statement): Push and pop function.
603         (Gcc_backend::label): Likewise.
604         (Gcc_backend::function_defer_statement): Likewise.
605         (Gcc_backend::switch_statement): Add function parameter.
606         (Gcc_backend::block): Don't permit function to be NULL.
607         (Gcc_backend::temporary_variable): Change go_assert to
608         gcc_assert.
609         (Gcc_backend::gc_root_variable): New function.
610         (Gcc_backend::write_global_definitions): New function.
612 2014-04-22  Chris Manghane  <cmang@google.com>
614         * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
615         call to create_tmp_var.  Require that function be non-NULL.
617 2014-04-17  Chris Manghane  <cmang@google.com>
619         * go-gcc.cc (Gcc_backend::named_constant_expression): New
620         function.
622 2014-04-14  Chris Manghane  <cmang@google.com>
624         * go-gcc.cc: Include "convert.h".
625         (Gcc_backend::string_constant_expression): New function.
626         (Gcc_backend::real_part_expression): Likewise.
627         (Gcc_backend::imag_part_expression): Likewise.
628         (Gcc_backend::complex_expression): Likewise.
629         (Gcc_backend::constructor_expression): Likewise.
630         (Gcc_backend::array_constructor_expression): Likewise.
631         (Gcc_backend::pointer_offset_expression): Likewise.
632         (Gcc_backend::array_index_expression): Likewise.
633         (Gcc_backend::call_expression): Likewise.
634         (Gcc_backend::exception_handler_statement): Likewise.
635         (Gcc_backend::function_defer_statement): Likewise.
636         (Gcc_backend::function_set_parameters): Likewise.
637         (Gcc_backend::function_set_body): Likewise.
638         (Gcc_backend::convert_expression): Handle various type
639         conversions.
641 2014-03-03  Ian Lance Taylor  <iant@google.com>
643         * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
644         DECL_WEAK.
645         (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
646         DECL_WEAK.
648 2014-01-24  Chris Manghane  <cmang@google.com>
650         * go-gcc.cc (Gcc_backend::unary_expression): New function.
652 2014-01-16  Chris Manghane  <cmang@google.com>
654         * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
655         parameter.
656         (operator_to_tree_code): New static function.
657         (Gcc_backend::binary_expression): New function.
659 2014-01-14  Chris Manghane  <cmang@google.com>
661         * go-gcc.cc (Gcc_backend::compound_expression): New function.
662         (Gcc_backend::conditional_expression): New function.
664 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
666         Update copyright years
668 2014-01-02  Tobias Burnus  <burnus@net-b.de>
670         * gccgo.texi: Bump @copying's copyright year.
672 2013-12-16  Chris Manghane  <cmang@google.com>
674         * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
676 2013-12-11  Ian Lance Taylor  <iant@google.com>
678         * go-lang.c (go_langhook_post_options): Disable sibling calls by
679         default.
681 2013-12-10  Ian Lance Taylor  <iant@google.com>
683         * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
684         separately.
686 2013-12-05  Ian Lance Taylor  <iant@google.com>
688         Revert this change; no longer required.
689         2013-11-06  Ian Lance Taylor  <iant@google.com>
691         * go-lang.c (go_langhook_post_options): If
692         -fisolate-erroneous-paths was turned on by an optimization option,
693         turn it off.
695 2013-11-23  Ian Lance Taylor  <iant@google.com>
697         * go-gcc.cc (Gcc_backend::function_type): Add result_struct
698         parameter.
700 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
702         * go-gcc.cc: Add required include files from gimple.h.
703         * go-lang.c: Likewise
705 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
707         * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
708         tree_to_shwi throughout.
710 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
712         * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
713         tree_fits_shwi_p throughout.
715 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
717         * go-lang.c: Include only gimplify.h and gimple.h as needed.
719 2013-11-14  Diego Novillo  <dnovillo@google.com>
721         * go-backend.c: Include stor-layout.h.
722         * go-gcc.cc: Include stringpool.h.
723         Include stor-layout.h.
724         Include varasm.h.
725         * go-lang.c: Include stor-layout.h.
727 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
729         * go-lang.c: Include gimplify.h.
731 2013-11-06  Ian Lance Taylor  <iant@google.com>
733         * go-lang.c (go_langhook_post_options): If
734         -fisolate-erroneous-paths was turned on by an optimization option,
735         turn it off.
737 2013-10-14  Chris Manghane  <cmang@google.com>
739         * go-gcc.cc (Gcc_backend::address_expression): New function.
741 2013-10-11  Chris Manghane  <cmang@google.com>
743         * go-gcc.cc (Gcc_backend::function_code_expression): New
744         function.
746 2013-10-10  Chris Manghane  <cmang@google.com>
748         * go-gcc.cc (Gcc_backend::error_function): New function.
749         (Gcc_backend::function): New function.
750         (Gcc_backend::make_function): New function.
751         (function_to_tree): New function.
753 2013-10-04  Chris Manghane  <cmang@google.com>
755         * go-gcc.cc (Gcc_backend::convert_expression): New function.
757 2013-10-02  Chris Manghane  <cmang@google.com>
759         * go-gcc.cc: Include "real.h" and "realmpfr.h".
760         (Gcc_backend::integer_constant_expression): New function.
761         (Gcc_backend::float_constant_expression): New function.
762         (Gcc_backend::complex_constant_expression): New function.
764 2013-09-30  Chris Manghane  <cmang@google.com>
766         * go-gcc.cc (Gcc_backend::error_expression): New function.
767         (Gcc_backend::var_expression): New function.
768         (Gcc_backend::indirect_expression): New function.
770 2013-09-25  Tom Tromey  <tromey@redhat.com>
772         * Make-lang.in (gospec.o): Remove.
773         (CFLAGS-go/gospec.o): New variable.
774         (GCCGO_OBJS): Update to use go/gospec.o.
775         (go_OBJS): Define.
776         (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
777         (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
778         (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
779         (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
780         (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
781         (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
782         (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
783         (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
784         (go/unsafe.o): Remove.
785         (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
786         (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
788 2013-09-25  Tom Tromey  <tromey@redhat.com>
790         * Make-lang.in (gospec.o): Don't use subshell.
792 2013-08-28  Ian Lance Taylor  <iant@google.com>
794         * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
795         the struct is not hidden.
796         (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
798 2013-08-06  Ian Lance Taylor  <iant@google.com>
800         * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
801         compute_reloc_for_constant.
803 2013-08-02  Ian Lance Taylor  <iant@google.com>
805         * go-gcc.cc (immutable_struct_set_init): Always call
806         resolve_unique_section.
808 2013-07-24  Ian Lance Taylor  <iant@google.com>
810         * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
811         fields, recreate those fields with the first one with a non-zero
812         size.
814 2013-07-23  Ian Lance Taylor  <iant@google.com>
816         * go-backend.c: Don't #include "rtl.h".
817         (go_imported_unsafe): Don't call init_varasm_once.
818         * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
820 2013-07-23  Ian Lance Taylor  <iant@google.com>
822         * go-lang.c: Don't #include "except.h".
823         * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
825 2013-06-18  Ian Lance Taylor  <iant@google.com>
827         * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
828         parameter.
829         (Gcc_backend::immutable_struct_set_init): Likewise.
831 2013-05-16  Jason Merrill  <jason@redhat.com>
833         * Make-lang.in (go1$(exeext)): Use link mutex.
835 2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
837         * gospec.c: pass -u pthread_create to linker when static linking.
839 2012-12-21  Ian Lance Taylor  <iant@google.com>
841         PR bootstrap/54659
842         * go-system.h: Don't include <cstdio>.
844 2012-12-18  Ian Lance Taylor  <iant@google.com>
846         PR go/55201
847         * gospec.c: Revert last patch.
849 2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
851         PR go/55201
852         * gospec.c (LIBATOMIC): Define.
853         (LIBATOMIC_PROFILE): Define.
854         (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
856 2012-11-29  Ian Lance Taylor  <iant@google.com>
858         * go-gcc.cc: Include "output.h".
859         (global_variable): Add is_unique_section parameter.
860         (global_variable_set_init): Adjust unique section if necessary.
861         * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
863 2012-11-17  Diego Novillo  <dnovillo@google.com>
865         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
867         * go-lang.c: Use new vec API in vec.h.
869 2012-11-16  Ian Lance Taylor  <iant@google.com>
871         * Make-lang.in (gccgo$(exeext)): Add + at start of command.
872         (go1$(exeext)): Likewise.
874 2012-10-30  Ian Lance Taylor  <iant@google.com>
876         * lang.opt (-fgo-relative-import-path): New option.
877         * go-lang.c (go_relative_import_path): New static variable.
878         (go_langhook_init): Pass go_relative_import_path to
879         go_create_gogo.
880         (go_langhook_handle_option): Handle -fgo-relative-import-path.
881         * go-c.h (go_create_gogo): Update declaration.
882         * gccgo.texi (Invoking gccgo): Document
883         -fgo-relative-import-path.
885 2012-09-17  Ian Lance Taylor  <iant@google.com>
887         * config-lang.in (target_libs): Add target-libbacktrace.
889 2012-09-16  Ian Lance Taylor  <iant@google.com>
891         * Make-lang.in (go/gogo.o): Depend on filenames.h.
893 2012-08-14   Diego Novillo  <dnovillo@google.com>
895         Merge from cxx-conversion branch.  Configury.
897         * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
898         * go-gcc.cc: Likewise.
899         * go-system.h: Likewise.
901 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
903         * go-lang.c (lang_decl): Add variable_size GTY option.
905 2012-05-09  Ian Lance Taylor  <iant@google.com>
907         * lang.opt: Add -fgo-pkgpath.
908         * go-lang.c (go_pkgpath): New static variable.
909         (go_prefix): New static variable.
910         (go_langhook_init): Pass go_pkgpath and go_prefix to
911         go_create_gogo.
912         (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
913         -fgo-prefix handling to just set go_prefix.
914         * go-c.h (go_set_prefix): Don't declare.
915         (go_create_gogo): Add pkgpath and prefix to declaration.
916         * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
917         to pkgpath.  Don't include the package name in the asm name.
918         * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
919         docs for -fgo-prefix.
921 2012-04-23  Ian Lance Taylor  <iant@google.com>
923         * go-lang.c (go_langhook_init): Set MPFR precision to 256.
925 2012-04-20  Ian Lance Taylor  <iant@google.com>
927         * lang.opt: Add -fgo-check-divide-zero and
928         -fgo-check-divide-overflow.
929         * gccgo.texi (Invoking gccgo): Document new options.
931 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
933         * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
934         with NULL_TREE type instead of void_type_node.
936 2012-03-09  Ian Lance Taylor  <iant@google.com>
938         * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
939         to the lhs type if necessary.
941 2012-03-08  Ian Lance Taylor  <iant@google.com>
943         * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
944         zero-sized variable.
945         (go_non_zero_struct): New global variable.
946         (Gcc_backend::non_zero_size_type): New function.
947         (Gcc_backend::global_variable): Don't build an assignment for a
948         zero-sized value.
949         * go-c.h (go_non_zero_struct): Declare.
950         * config-lang.in (gtfiles): Add go-c.h.
952 2012-02-29  Ian Lance Taylor  <iant@google.com>
954         * go-gcc.cc (class Gcc_tree): Add set_tree method.
955         (set_placeholder_pointer_type): When setting to a pointer to
956         error, set to error_mark_node.
958 2012-02-23  Richard Guenther  <rguenther@suse.de>
960         * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
961         build_distinct_type_copy.
963 2012-02-17  Ian Lance Taylor  <iant@google.com>
965         * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
967 2012-02-17  Ian Lance Taylor  <iant@google.com>
969         * gospec.c (lang_specific_driver): If linking, and no -o option
970         was used, add one.
972 2012-02-14  Ian Lance Taylor  <iant@google.com>
974         PR go/48411
975         * Make-lang.in (gccgo-cross$(exeext)): New target.
976         (go.all.cross): Depend on gccgo-cross$(exeext) instead of
977         gccgo$(exeext).
978         (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
979         gccgo-cross$(exeext) does not exist.
981 2012-02-07  Ian Lance Taylor  <iant@google.com>
983         * gccgo.texi (Function Names): Document //extern instead of
984         __asm__.
986 2012-02-01  Jakub Jelinek  <jakub@redhat.com>
988         PR target/52079
989         * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
990         return build_nonstandard_integer_type result if possible.
992 2012-01-21  Ian Lance Taylor  <iant@google.com>
994         * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
995         (Gcc_backend::type_alignment): Likewise.
996         (Gcc_backend::type_field_alignment): Likewise.
997         (Gcc_backend::type_field_offset): Likewise.
999 2012-01-20  Ian Lance Taylor  <iant@google.com>
1001         * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
1002         be empty.
1003         (Gcc_backend::set_placeholder_struct_type): Likewise.
1005 2012-01-17  Ian Lance Taylor  <iant@google.com>
1007         * gospec.c (lang_specific_driver): If we see -S without -o, add -o
1008         BASE.s rather than -o BASE.o.
1010 2012-01-11  Ian Lance Taylor  <iant@google.com>
1012         * go-lang.c (go_langhook_init): Initialize void_list_node before
1013         calling go_create_gogo.
1015 2012-01-10  Ian Lance Taylor  <iant@google.com>
1017         * go-gcc.cc (Gcc_backend::type_size): New function.
1018         (Gcc_backend::type_alignment): New function.
1019         (Gcc_backend::type_field_alignment): New function.
1020         (Gcc_backend::type_field_offset): New function.
1021         * go-backend.c (go_type_alignment): Remove.
1022         * go-c.h (go_type_alignment): Don't declare.
1024 2011-12-27  Ian Lance Taylor  <iant@google.com>
1026         * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
1027         build_distinct_type_copy rather than build_variant_type_copy.
1028         (Gcc_backend::set_placeholder_array_type): Likewise.
1029         (Gcc_backend::named_type): Add special handling for builtin
1030         basic types.
1032 2011-12-22  Ian Lance Taylor  <iant@google.com>
1034         * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
1035         for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
1036         (Gcc_backend::set_placeholder_struct_type): Likewise.
1037         (Gcc_backend::set_placeholder_array_type): Likewise.
1038         (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
1040 2011-12-13  Ian Lance Taylor  <iant@google.com>
1042         * go-backend.c: #include "simple-object.h" and "intl.h".
1043         (GO_EXPORT_SEGMENT_NAME): Define if not defined.
1044         (GO_EXPORT_SECTION_NAME): Likewise.
1045         (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
1046         (go_read_export_data): New function.
1047         * go-c.h (go_read_export_data): Declare.
1049 2011-11-29  Sanjoy Das  <thedigitalangel@gmail.com>
1050             Ian Lance Taylor  <iant@google.com>
1052         * go-location.h: New file.
1053         * go-linemap.cc: New file.
1054         * go-gcc.cc: Change all uses of source_location to Location.
1055         * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
1056         (GO_LINEMAP_H): New variable.
1057         (GO_LEX_H): Use $(GO_LINEMAP_H).
1058         (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
1059         (go/go-linemap.o): New target.
1061 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1063         * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
1065 2011-08-24  Roberto Lublinerman  <rluble@gmail.com>
1067         * lang.opt: Add fgo-optimize-.
1068         * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1069         * go-c.h (go_enable_optimize): Declare.
1070         * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1071         (GO_EXPORT_H): Define.
1072         (GO_IMPORT_H): Add $(GO_EXPORT_H).
1073         (GO_AST_DUMP_H): Define.
1074         (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1075         (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1076         (go/types.o): Likewise.
1077         (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1078         (go/go-optimize.o): New target.
1080 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1082         * Make-lang.in (CFLAGS-go/go-lang.o): New.
1083         (go/go-lang.o): Remove explicit compilation rule.
1085 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1087         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1089 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
1091         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1092         (go/ast-dump.o): New target.
1093         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1094         (go/statements.o): Likewise.
1096 2011-07-06  Richard Guenther  <rguenther@suse.de>
1098         * go-lang.c (go_langhook_init):
1099         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1101 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1103         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1104         dependencies.
1105         * go-backend.c: Include common/common-target.h.
1106         (go_write_export_data): Use targetm_common.have_named_sections.
1107         * go-lang.c: Include common/common-target.h.
1108         (go_langhook_init_options_struct): Use
1109         targetm_common.supports_split_stack.
1111 2011-06-13  Ian Lance Taylor  <iant@google.com>
1113         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1115 2011-06-10  Ian Lance Taylor  <iant@google.com>
1117         * go-gcc.cc: Include "toplev.h".
1118         (Gcc_backend::immutable_struct): New function.
1119         (Gcc_backend::immutable_struct_set_init): New function.
1120         (Gcc_backend::immutable_struct_reference): New function.
1121         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1123 2011-06-09  Ian Lance Taylor  <iant@google.com>
1125         * go-gcc.cc (Gcc_backend::zero_expression): New function.
1127 2011-06-07  Richard Guenther  <rguenther@suse.de>
1129         * go-lang.c (go_langhook_init): Do not set
1130         size_type_node or call set_sizetype.
1132 2011-05-27  Ian Lance Taylor  <iant@google.com>
1134         * go-backend.c: Include "output.h".
1135         (go_write_export_data): New function.
1136         * go-c.h (go_write_export_data): Declare.
1137         * Make-lang.in (go/go-backend.o): Depend on output.h.
1138         (go/export.o): Depend on $(GO_C_H).  Do not depend on
1139         $(MACHMODE_H), output.h, or $(TARGET_H).
1141 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1143         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1144         (gccgo$(exeext)): Use libcommon-target.a.
1146 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1148         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1150 2011-05-13  Ian Lance Taylor  <iant@google.com>
1152         * go-gcc.cc (Gcc_backend::function_type): When building a struct
1153         for multiple results, check that all fields types have a size.
1154         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1156 2011-05-12  Ian Lance Taylor  <iant@google.com>
1158         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1159         parameter.
1160         (Gcc_backend::parameter_variable): Likewise.
1162 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1164         * go-lang.c (global_bindings_p): Return bool and simplify.
1166 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1168         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1170 2011-05-04  Ian Lance Taylor  <iant@google.com>
1172         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1173         (Gcc_backend::fill_in_struct): New function.
1174         (Gcc_backend::array_type): Implement.
1175         (Gcc_backend::fill_in_array): New function.
1176         (Gcc_backend::placeholder_pointer_type): New function.
1177         (Gcc_backend::set_placeholder_pointer_type): New function.
1178         (Gcc_backend::set_placeholder_function_type): New function.
1179         (Gcc_backend::placeholder_struct_type): New function.
1180         (Gcc_backend::set_placeholder_struct_type): New function.
1181         (Gcc_backend::placeholder_array_type): New function.
1182         (Gcc_backend::set_placeholder_array_type): New function.
1183         (Gcc_backend::named_type): New function.
1184         (Gcc_backend::circular_pointer_type): New function.
1185         (Gcc_backend::is_circular_pointer_type): New function.
1187 2011-04-26  Ian Lance Taylor  <iant@google.com>
1189         * go-gcc.cc (Gcc_backend::struct_type): Implement.
1191 2011-04-25  Ian Lance Taylor  <iant@google.com>
1193         * go-gcc.cc (Gcc_backend::error_type): Implement.
1194         (Gcc_backend::string_type): Remove.
1195         (Gcc_backend::function_type): Change signature and implement.
1196         (Gcc_backend::struct_type): Change signature.
1197         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1198         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1199         (Gcc_backend::pointer_type): Check for error.
1200         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1202 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
1204         * go-gcc.c (class Gcc_tree): Make get_tree const.
1205         (Gcc_backend::void_type): Implement.
1206         (Gcc_backend::bool_type): Implement.
1207         (Gcc_backend::integer_type): Implement.
1208         (Gcc_backend::float_type): Implement.
1209         (Gcc_backend::complex_type): New function.
1210         (Gcc_backend::pointer_type): New function.
1211         (Gcc_backend::make_type): New function.
1212         (type_to_tree): New function.
1214 2011-04-21  Ian Lance Taylor  <iant@google.com>
1216         * go-system.h (go_assert, go_unreachable): Define.
1218 2011-04-19  Ian Lance Taylor  <iant@google.com>
1220         * go-system.h: Include "intl.h".
1221         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1222         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1223         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1225 2011-04-19  Ian Lance Taylor  <iant@google.com>
1227         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1229 2011-04-19  Ian Lance Taylor  <iant@google.com>
1231         * go-gcc.cc (class Bblock): Define.
1232         (Gcc_backend::if_statement): Change then_block and else_block to
1233         Bblock*.
1234         (Gcc_backend::block): New function.
1235         (Gcc_backend::block_add_statements): New function.
1236         (Gcc_backend::block_statement): New function.
1237         (tree_to_block, block_to_tree): New functions.
1239 2011-04-18  Ian Lance Taylor  <iant@google.com>
1241         * go-gcc.cc: Include "go-c.h".
1242         (class Bvariable): Define.
1243         (Gcc_backend::init_statement): New function.
1244         (Gcc_backend::global_variable): New function.
1245         (Gcc_backend::global_variable_set_init): New function.
1246         (Gcc_backend::local_variable): New function.
1247         (Gcc_backend::parameter_variable): New function.
1248         (tree_to_type, var_to_tree): New functions.
1249         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1250         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1252 2011-04-15  Ian Lance Taylor  <iant@google.com>
1254         * go-gcc.cc (Gcc_backend::compound_statement): New function.
1255         (Gcc_backend::assignment_statement): Use error_statement.
1256         (Gcc_backend::return_statement): Likewise.
1257         (Gcc_backend::if_statement): Likewise.
1258         (Gcc_backend::switch_statement): Likewise.
1259         (Gcc_backend::statement_list): Likewise.
1261 2011-04-14  Ian Lance Taylor  <iant@google.com>
1263         * go-gcc.cc (Gcc_backend::error_statement): New function.
1265 2011-04-13  Ian Lance Taylor  <iant@google.com>
1267         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1269 2011-04-13  Ian Lance Taylor  <iant@google.com>
1271         * Make-lang.in (GO_OBJS): Add go/runtime.o.
1272         (GO_RUNTIME_H): New variable.
1273         (go/runtime.o): New target.
1274         (go/gogo.o): Depend on $(GO_RUNTIME_H).
1275         (go/statements.o): Likewise.
1277 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1279         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1280         calling TREE_CHAIN.
1282 2011-04-06  Ian Lance Taylor  <iant@google.com>
1284         * go-gcc.cc (if_statement): Use build3_loc.
1285         (Gcc_backend::switch_statement): New function.
1286         (Gcc_backend::statement_list): New function.
1288 2011-04-06  Ian Lance Taylor  <iant@google.com>
1290         * go-gcc.cc (Gcc_backend::if_statement): New function.
1291         (tree_to_stat): New function.
1292         (expr_to_tree): Renamed from expression_to_tree.
1293         (stat_to_tree): Renamed from statement_to_tree.
1295 2011-04-06  Ian Lance Taylor  <iant@google.com>
1297         * go-gcc.cc (Gcc_backend::expression_statement): New function.
1299 2011-04-04  Ian Lance Taylor  <iant@google.com>
1301         * go-gcc.c (class Blabel): Define.
1302         (Gcc_backend::make_expression): New function.
1303         (get_identifier_from_string): New function.
1304         (Gcc_backend::label): New function.
1305         (Gcc_backend::label_definition_statement): New function.
1306         (Gcc_backend::goto_statement): New function.
1307         (Gcc_backend::label_address): New function.
1308         (expression_to_tree): New function.
1309         * Make-lang.in (go/expressions.o): Depend on
1310         go/gofrontend/backend.h.
1311         (go/gogo.o): Likewise.
1313 2011-04-04  Ian Lance Taylor  <iant@google.com>
1315         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1316         (class Bfunction): Define.
1317         (Gcc_backend::assignment_statement): Rename from assignment.
1318         Check for errors.
1319         (Gcc_backend::return_statement): New function.
1320         (tree_to_function): New function.
1321         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1322         $(GIMPLE_H), and $(GO_GOGO_H).
1324 2011-04-03  Ian Lance Taylor  <iant@google.com>
1326         * go-gcc.cc: New file.
1327         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1328         (go/go-gcc.o): New target.
1329         (go/go.o): Depend on go/gofrontend/backend.h.
1330         (go/statements.o): Likewise.
1332 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1334         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1336 2011-02-08  Ian Lance Taylor  <iant@google.com>
1338         * go-lang.c (go_langhook_init_options_struct): Set
1339         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
1341 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1343         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1344         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1346 2011-01-21  Ian Lance Taylor  <iant@google.com>
1348         * go-lang.c (go_langhook_init): Omit float_type_size when calling
1349         go_create_gogo.
1350         * go-c.h: Update declaration of go_create_gogo.
1352 2011-01-13  Ian Lance Taylor  <iant@google.com>
1354         * go-backend.c: Include "rtl.h" and "target.h".
1355         (go_imported_unsafe): New function.
1356         * go-c.h (go_imported_unsafe): Declare.
1357         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1358         (go/gogo-tree.o): Remove dependency on $(RTL_H).
1359         (go/unsafe.o): Depend on $(GO_C_H).
1361 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
1363         PR go/47113
1364         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1365         variable ‘field’ .
1367 2010-12-21  Ian Lance Taylor  <iant@google.com>
1369         * Make-lang.in (check-go): Remove.
1370         (lang_checks_parallelized): Add check-go.
1371         (check_go_parallelize): Set.
1373 2010-12-13  Ian Lance Taylor  <iant@google.com>
1375         * gospec.c (lang_specific_driver): Add a -o option if not linking
1376         and there is no -o option already.
1378 2010-12-07  Ian Lance Taylor  <iant@google.com>
1380         PR tree-optimization/46805
1381         PR tree-optimization/46833
1382         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1384 2010-12-06  Ian Lance Taylor  <iant@google.com>
1386         PR other/46789
1387         PR bootstrap/46812
1388         * go-lang.c (go_char_p): Define type and vectors.
1389         (go_search_dirs): New static variable.
1390         (go_langhook_handle_option): Use version and version/machine
1391         directories for -L.
1392         (go_langhook_post_options): Add non-specific -L paths.
1393         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1394         DEFAULT_TARGET_MACHINE when compiling.
1395         * gccgo.texi (Invoking gccgo): Only document -L for linking.
1396         (Import and Export): Don't mention -L for finding import files.
1398 2010-12-03  Ian Lance Taylor  <iant@google.com>
1400         PR bootstrap/46776
1401         * go-backend.c: New file.
1402         * go-c.h (go_type_alignment): Declare.
1403         (go_field_alignment, go_trampoline_info): Declare.
1404         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1405         (go/go-backend.o): New target.
1406         (go/go-lang.o): Make dependencies match source file.
1407         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1408         (go/gogo-tree.o): Don't depend on $(TM_H).
1410 2010-12-03  Ian Lance Taylor  <iant@google.com>
1412         * config-lang.in (build_by_default): Set to no.
1414 2010-12-02  Ian Lance Taylor  <iant@google.com>
1416         Go frontend added to gcc repository.
1418 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1420 Copying and distribution of this file, with or without modification,
1421 are permitted in any medium without royalty provided the copyright
1422 notice and this notice are preserved.