]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/go/ChangeLog
Update copyright years.
[thirdparty/gcc.git] / gcc / go / ChangeLog
1 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2
3 Update copyright years.
4
5 * gccgo.texi: Bump @copyrights-go year.
6
7 2016-12-16 Than McIntosh <thanm@google.com>
8
9 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
10 parameter.
11 (Gcc_backend::init_statement): Likewise.
12 (Gcc_backend::assignment_statement): Likewise.
13 (Gcc_backend::if_statement): Likewise.
14
15 2016-12-06 Than McIntosh <thanm@google.com>
16
17 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
18 parameter.
19
20 2016-11-22 Than McIntosh <thanm@google.com>
21
22 * go-gcc.cc (char_needs_encoding): Remove.
23 (needs_encoding, fetch_utf8_char, encode_id): Remove.
24 (Gcc_backend::global_variable): Add asm_name parameter. Don't
25 compute asm_name here.
26 (Gcc_backend::implicit_variable): Likewise.
27 (Gcc_backend::implicit_variable_reference): Likewise.
28 (Gcc_backend::immutable_struct): Likewise.
29 (Gcc_backend::immutable_struct_reference): Likewise.
30 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
31
32 2016-11-22 Ian Lance Taylor <iant@google.com>
33
34 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
35 __builtin_frame_address.
36
37 2016-10-25 David Malcolm <dmalcolm@redhat.com>
38
39 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
40 from result of GET_MODE_CLASS. Minor formatting fixes.
41
42 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
43
44 * go-backend.c: Include memmodel.h.
45
46 2016-10-10 Than McIntosh <thanm@google.com>
47
48 * go-gcc.h: New file.
49 * go-c.h (struct go_create_gogo_args): Add backend and linemap
50 fields.
51 * go-lang.c: Include "go-gcc.h".
52 (go_langhook_init): Set linemap and backend fields of args.
53 * go-gcc.cc: Include "go-gcc.h".
54 * go-linemap.cc: Include "go-gcc.h".
55
56 2016-10-10 Than McIntosh <thanm@google.com>
57
58 * go-linemap.cc (Gcc_linemap::location_line): New method.
59
60 2016-10-10 Eric Botcazou <ebotcazou@adacore.com>
61
62 * config-lang.in (lang_requires_boot_languages): Delete.
63
64 2016-10-06 Chris Manghane <cmang@google.com>
65
66 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
67 returned memory.
68
69 2016-09-27 Than McIntosh <thanm@google.com>
70
71 * go-linemap.cc (Gcc_linemap::to_string): New method.
72
73 2016-09-23 Than McIntosh <thanm@google.com>
74
75 * go-gcc-diagnostics.cc: New file.
76 * go-location.h (Location): Remove operator source_location. Add
77 operator==.
78 * go-system.h: #include <sstream>.
79 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
80 go/go-gcc-diagnostics.o.
81 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
82
83 2016-09-23 Chris Manghane <cmang@google.com>
84
85 PR go/77701
86 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
87 to pass arguments in the correct order.
88
89 2016-09-22 Ian Lance Taylor <iant@golang.org>
90
91 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
92 __builtin_frame_address.
93
94 2016-09-11 Ian Lance Taylor <iant@golang.org>
95
96 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
97 ctz, ctzll, bswap32, bswap64.
98
99 2016-09-10 Ian Lance Taylor <iant@golang.org>
100
101 * go-backend.c (go_trampoline_info): Remove.
102 * go-c.h (go_trampoline_info): Don't declare.
103
104 2016-09-09 Than McIntosh <thanm@google.com>
105
106 * go-sha1.cc: New file.
107 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
108 (CFLAGS-go/go-sha1.o): New variable.
109
110 2016-08-29 Ian Lance Taylor <iant@google.com>
111
112 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
113 * go-c.h (struct go_create_gogo_args): Define.
114 (go_create_gogo): Change declaration to take struct pointer.
115 * go-lang.c (go_c_header): New static variable.
116 (go_langhook_init): Update call to go_create_gogo.
117 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
118 -fgo-compiling-runtime.
119
120 2016-08-09 Ian Lance Taylor <iant@google.com>
121
122 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
123 -fgo-debug-escae.
124 (Compiler Directives): New chapter.
125 (Function Names): Describe using //go:linkname. Suggest using
126 -fgo-pkgpath rather than -fgo-prefix.
127
128 2016-08-08 Ian Lance Taylor <iant@google.com>
129
130 PR go/72814
131 * go-gcc.cc (Gcc_backend::function_type): If the return type is
132 zero bytes, treat the function as returning void.
133 (return_statement): If the return type is zero bytes, don't
134 actually return any values.
135
136 2016-08-05 Ian Lance Taylor <iant@google.com>
137
138 PR go/72812
139 * go-gcc.cc (char_needs_encoding): New static function.
140 (needs_encoding, fetch_utf8_char): New static functions.
141 (encode_id): New static function.
142 (Gcc_backend::global_variable): Set asm name if the name is not
143 simple ASCII.
144 (Gcc_backend::implicit_variable): Likewise.
145 (Gcc_backend::implicit_variable_reference): Likewise.
146 (Gcc_backend::immutable_struct): Likewise.
147 (Gcc_backend::immutable_struct_reference): Likewise.
148 (Gcc_backend::function): Likewise.
149
150 2016-08-02 Chris Manghane <cmang@google.com>
151
152 * lang.opt: Add -fgo-debug-escape option.
153 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
154 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
155 go_create_gogo.
156
157 2016-05-06 Chris Manghane <cmang@google.com>
158
159 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
160 new escape.cc).
161
162 2016-04-29 Chris Manghane <cmang@google.com>
163
164 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
165
166 2016-04-18 Michael Matz <matz@suse.de>
167
168 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
169
170 2016-02-12 Jakub Jelinek <jakub@redhat.com>
171
172 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
173 neighbour -> neighbor.
174 * gccgo.texi: Likewise.
175
176 2016-01-27 Ian Lance Taylor <iant@google.com>
177
178 * go-lang.c (go_langhook_init_options_struct): Default to
179 -fkeep-gc-roots-live.
180
181 2016-01-04 Jakub Jelinek <jakub@redhat.com>
182
183 Update copyright years.
184
185 * gccgo.texi: Bump @copyrights-go year.
186
187 2015-12-21 Ian Lance Taylor <iant@google.com>
188
189 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
190 t_ and orig_type_ fields. Add new two parameter constructor. Add
191 get_tree and get_decl methods.
192 (Gcc_backend::var_expression): Pass location to var get_tree.
193 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
194 two parameter constructor for Bvariable.
195 (Gcc_backend::global_variable_set_init): Don't remove
196 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
197 (Gcc_backend::write_global_definitions): Likewise.
198 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
199 (Gcc_backend::block): Likewise.
200 (Gcc_backend::implicit_variable_set_init): Likewise.
201 (Gcc_backend::immutable_struct_set_init): Likewise.
202 (Gcc_backend::function_set_parameters): Likewise.
203
204 2015-12-21 Ian Lance Taylor <iant@google.com>
205
206 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
207 add a VIEW_CONVERT_EXPR to the tree.
208 (Gcc_backend::global_variable_set_init): Remove any
209 VIEW_CONVERT_EXPR.
210 (Gcc_backend::write_global_definitions): Likewise.
211
212 2015-11-30 Ian Lance Taylor <iant@google.com>
213
214 PR go/68477
215 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
216 TYPE_STRING_FLAG on a variant type.
217
218 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
219
220 * go-backend.c: Remove unused header files.
221 * go-gcc.cc: Likewise.
222 * go-lang.c: Likewise.
223 * gospec.c: Likewise.
224
225 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
226
227 * go-backend.c: Reorder #include's and remove duplicates.
228 * go-lang.c: Likewise.
229
230 2015-10-20 Alan Modra <amodra@gmail.com>
231
232 PR go/66870
233 * gospec.c (saw_opt_m32): Rename to..
234 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
235 Update uses.
236 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
237
238 2015-10-01 Ian Lance Taylor <iant@google.com>
239
240 PR go/66870
241 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
242 TARGET_CAN_SPLIT_STACK_64BIT is defined.
243
244 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
245
246 PR target/66870
247 * gospec.c (lang_specific_driver): Set appropriate split stack
248 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
249
250 2015-09-10 Chris Manghane <cmang@google.com>
251
252 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
253 unrepresentable size.
254
255 2015-08-24 Marek Polacek <polacek@redhat.com>
256
257 PR tree-optimization/67284
258 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
259 Set TREE_THIS_VOLATILE.
260 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
261 Pass false to the rest of define_builtin calls.
262
263 2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
264
265 * go-lang.c (go_langhook_init_options_struct): Don't set
266 x_flag_split_stack.
267 (go_langhook_post_options): Set it here instead.
268
269 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
270
271 * gofrontend/backend.h: Fix double word typos.
272 * gofrontend/expressions.cc: Same.
273 * gospec.c: Same.
274
275 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
276
277 * go-backend.c: Adjust includes.
278 * go-gcc.cc: Likewise.
279 * go-lang.c: Likewise.
280
281 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
282
283 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
284
285 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
286
287 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
288 * go-gcc.cc: Likewise.
289 * go-lang.c: Likewise.
290 * go-system.h: Likewise.
291
292 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
293
294 * go-backend.c : Adjust include files.
295 * go-gcc.cc : Likewise.
296 * go-lang.c : Likewise.
297
298 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
299
300 * go-gcc.cc (write_global_definitions): Remove call to
301 finalize_compilation_unit.
302 Remove Go specific debug generation.
303 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
304 (go_langhook_write_globals): Remove.
305 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
306
307 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
308
309 * go-backend.c: Adjust includes for restructured coretypes.h.
310 * go-c.h: Likewise.
311 * go-gcc.cc: Likewise.
312 * go-lang.c: Likewise.
313
314 2015-04-30 Chris Manghane <cmang@google.com>
315
316 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
317 method.
318
319 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
320
321 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
322
323 2015-04-17 Chris Manghane <cmang@google.com>
324
325 * Make-lang.in (GO_OBJS): Add go/escape.o.
326
327 2015-02-02 Ian Lance Taylor <iant@google.com>
328
329 PR go/64836
330 PR go/64838
331 * go-gcc.cc (Gcc_backend::type_size): Change return type to
332 int64_t.
333 (Gcc_backend::type_alignment): Likewise.
334 (Gcc_backend::type_field_alignment): Likewise.
335 (Gcc_backend::type_field_offset): Likewise.
336 (Gcc_backend::implicit_variable): Change alignment parameter type
337 to int64_t.
338
339 2015-01-23 Ian Lance Taylor <iant@google.com>
340
341 PR go/63565
342 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
343 be stripped.
344
345 * gccgo.texi (C Interoperability): Mention that people should use
346 cgo.
347
348 2015-01-23 Ian Lance Taylor <iant@google.com>
349
350 PR go/64595
351 * go-lang.c (go_langhook_init_options_struct): Set default
352 debug_info_level.
353 (go_langhook_post_options): If debug_info_level is still the
354 default, make sure write_symbols is set.
355 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
356
357 2015-01-16 Richard Henderson <rth@redhat.com>
358
359 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
360 (Gcc_backend::static_chain_variable): New method.
361
362 2015-01-09 Ian Lance Taylor <iant@google.com>
363
364 * config-lang.in (lang_dirs): Define.
365
366 2015-01-09 Michael Collison <michael.collison@linaro.org>
367
368 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
369 input.h, alias.h, symtab.h, options.h, fold-const.h,
370 wide-int.h, and inchash.h due to flattening of tree.h.
371 * go-lang.c: Ditto.
372 * go-backend.c: Ditto.
373
374 2015-01-07 Chris Manghane <cmang@google.com>
375
376 PR go/61204
377 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
378 zero-sized variable.
379
380 2015-01-06 Chris Manghane <cmang@google.com>
381
382 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
383 initialize zero-sized fields, just evaluate the values for side
384 effects.
385
386 2015-01-05 Jakub Jelinek <jakub@redhat.com>
387
388 Update copyright years.
389
390 * gccgo.texi: Bump @copyrights-go year.
391
392 2014-12-19 Chris Manghane <cmang@google.com>
393
394 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
395 construct arrays of zero-sized values.
396
397 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
398
399 * go-lang.c: Remove redundant enum from machine_mode.
400
401 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
402
403 * go-gcc.cc: Adjust include files.
404
405 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
406
407 * go-gcc.cc: Adjust include files.
408 * go-lang.c: Ditto.
409
410 2014-10-23 Ian Lance Taylor <iant@google.com>
411
412 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
413 mpc_t parameter instead of two mpfr_t parameters.
414
415 2014-09-15 Jakub Jelinek <jakub@redhat.com>
416
417 * Make-lang.in (check_go_parallelize): Change to just an upper bound
418 number.
419
420 2014-09-03 Chris Manghane <cmang@google.com>
421
422 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
423 parameter. Add is_hidden parameter.
424 (Gcc_backend::implicit_variable_set_init): New method.
425 (Gcc_backend::implicit_variable_reference): New method.
426
427 2014-08-08 Ian Lance Taylor <iant@google.com>
428
429 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
430 NULL_TREE.
431
432 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
433
434 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
435 symtab_get_node to symtab_node::get.
436
437 2014-06-13 Ian Lance Taylor <iant@google.com>
438
439 PR go/61496
440 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
441 ld, add -t option to avoid warning about common symbol changing
442 size.
443
444 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
445
446 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
447 symtab_get_node(var_decl)->implicit_section.
448
449 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
450
451 * go-gcc.cc (global_variable_set_init): Use
452 set_decl_section_name.
453
454 2014-06-04 Ian Lance Taylor <iant@google.com>
455
456 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
457 alignment parameters. Permit init parameter to be NULL.
458
459 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
460
461 * go-gcc.cc: Include builtins.h.
462
463 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
464
465 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
466
467 2014-05-06 Chris Manghane <cmang@google.com>
468
469 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
470 (Gcc_backend::boolean_constant_expression): New method.
471 (Gcc_backend::zero_expression): Use this->make_expression rather
472 than tree_to_expr.
473 (Gcc_backend::var_expression): Likewise.
474 (Gcc_backend::integer_constant_expression): Likewise.
475 (Gcc_backend::float_constant_expression): Likewise.
476 (Gcc_backend::complex_constant_expression): Likewise.
477 (Gcc_backend::struct_field_expression): Likewise.
478 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
479 (tree_to_function, tree_to_block): Remove functions.
480 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
481 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
482
483 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
484 Mike Stump <mikestump@comcast.net>
485 Richard Sandiford <rdsandiford@googlemail.com>
486
487 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
488
489 2014-05-06 Chris Manghane <cmang@google.com>
490
491 * go-c.h (go_create_gogo): Update declaration to add
492 check_divide_zero and check_divide_overflow parameters.
493 * go-lang.c (go_langhook_init): Pass new arguments to
494 go_create_gogo.
495
496 2014-05-05 Chris Manghane <cmang@google.com>
497
498 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
499 gc_root_variable. Add name and is_constant parameters.
500
501 2014-05-05 Chris Manghane <cmang@google.com>
502
503 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
504 parameter.
505 (Gcc_backend::temporary_variable): Check for erroneous function.
506
507 2014-04-30 Chris Manghane <cmang@google.com>
508
509 * go-backend.c: #include "diagnostics.h".
510 (saw_errors): New function.
511 * go-c.h (saw_errors): Declare.
512 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
513
514 2014-04-30 Chris Manghane <cmang@google.com>
515
516 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
517 calling into Go frontend.
518 (go_langhook_type_for_mode): Likewise.
519 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
520
521 2014-04-30 Chris Manghane <cmang@google.com>
522
523 * go-gcc.cc: #include "langhooks.h".
524 (Gcc_backend::Gcc_backend): Add constructor.
525 (Gcc_backend::lookup_function): New function.
526 (Gcc_backend::define_builtin): New private function.
527 (Gcc_backend::gcc_backend): Remove.
528 (go_get_backend): Use new to create new Gcc_backend.
529
530 2014-04-25 Chris Manghane <cmang@google.com>
531
532 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
533 (Gcc_backend::return_statement): Push and pop function.
534 (Gcc_backend::label): Likewise.
535 (Gcc_backend::function_defer_statement): Likewise.
536 (Gcc_backend::switch_statement): Add function parameter.
537 (Gcc_backend::block): Don't permit function to be NULL.
538 (Gcc_backend::temporary_variable): Change go_assert to
539 gcc_assert.
540 (Gcc_backend::gc_root_variable): New function.
541 (Gcc_backend::write_global_definitions): New function.
542
543 2014-04-22 Chris Manghane <cmang@google.com>
544
545 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
546 call to create_tmp_var. Require that function be non-NULL.
547
548 2014-04-17 Chris Manghane <cmang@google.com>
549
550 * go-gcc.cc (Gcc_backend::named_constant_expression): New
551 function.
552
553 2014-04-14 Chris Manghane <cmang@google.com>
554
555 * go-gcc.cc: Include "convert.h".
556 (Gcc_backend::string_constant_expression): New function.
557 (Gcc_backend::real_part_expression): Likewise.
558 (Gcc_backend::imag_part_expression): Likewise.
559 (Gcc_backend::complex_expression): Likewise.
560 (Gcc_backend::constructor_expression): Likewise.
561 (Gcc_backend::array_constructor_expression): Likewise.
562 (Gcc_backend::pointer_offset_expression): Likewise.
563 (Gcc_backend::array_index_expression): Likewise.
564 (Gcc_backend::call_expression): Likewise.
565 (Gcc_backend::exception_handler_statement): Likewise.
566 (Gcc_backend::function_defer_statement): Likewise.
567 (Gcc_backend::function_set_parameters): Likewise.
568 (Gcc_backend::function_set_body): Likewise.
569 (Gcc_backend::convert_expression): Handle various type
570 conversions.
571
572 2014-03-03 Ian Lance Taylor <iant@google.com>
573
574 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
575 DECL_WEAK.
576 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
577 DECL_WEAK.
578
579 2014-01-24 Chris Manghane <cmang@google.com>
580
581 * go-gcc.cc (Gcc_backend::unary_expression): New function.
582
583 2014-01-16 Chris Manghane <cmang@google.com>
584
585 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
586 parameter.
587 (operator_to_tree_code): New static function.
588 (Gcc_backend::binary_expression): New function.
589
590 2014-01-14 Chris Manghane <cmang@google.com>
591
592 * go-gcc.cc (Gcc_backend::compound_expression): New function.
593 (Gcc_backend::conditional_expression): New function.
594
595 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
596
597 Update copyright years
598
599 2014-01-02 Tobias Burnus <burnus@net-b.de>
600
601 * gccgo.texi: Bump @copying's copyright year.
602
603 2013-12-16 Chris Manghane <cmang@google.com>
604
605 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
606
607 2013-12-11 Ian Lance Taylor <iant@google.com>
608
609 * go-lang.c (go_langhook_post_options): Disable sibling calls by
610 default.
611
612 2013-12-10 Ian Lance Taylor <iant@google.com>
613
614 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
615 separately.
616
617 2013-12-05 Ian Lance Taylor <iant@google.com>
618
619 Revert this change; no longer required.
620 2013-11-06 Ian Lance Taylor <iant@google.com>
621
622 * go-lang.c (go_langhook_post_options): If
623 -fisolate-erroneous-paths was turned on by an optimization option,
624 turn it off.
625
626 2013-11-23 Ian Lance Taylor <iant@google.com>
627
628 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
629 parameter.
630
631 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
632
633 * go-gcc.cc: Add required include files from gimple.h.
634 * go-lang.c: Likewise
635
636 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
637
638 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
639 tree_to_shwi throughout.
640
641 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
642
643 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
644 tree_fits_shwi_p throughout.
645
646 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
647
648 * go-lang.c: Include only gimplify.h and gimple.h as needed.
649
650 2013-11-14 Diego Novillo <dnovillo@google.com>
651
652 * go-backend.c: Include stor-layout.h.
653 * go-gcc.cc: Include stringpool.h.
654 Include stor-layout.h.
655 Include varasm.h.
656 * go-lang.c: Include stor-layout.h.
657
658 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
659
660 * go-lang.c: Include gimplify.h.
661
662 2013-11-06 Ian Lance Taylor <iant@google.com>
663
664 * go-lang.c (go_langhook_post_options): If
665 -fisolate-erroneous-paths was turned on by an optimization option,
666 turn it off.
667
668 2013-10-14 Chris Manghane <cmang@google.com>
669
670 * go-gcc.cc (Gcc_backend::address_expression): New function.
671
672 2013-10-11 Chris Manghane <cmang@google.com>
673
674 * go-gcc.cc (Gcc_backend::function_code_expression): New
675 function.
676
677 2013-10-10 Chris Manghane <cmang@google.com>
678
679 * go-gcc.cc (Gcc_backend::error_function): New function.
680 (Gcc_backend::function): New function.
681 (Gcc_backend::make_function): New function.
682 (function_to_tree): New function.
683
684 2013-10-04 Chris Manghane <cmang@google.com>
685
686 * go-gcc.cc (Gcc_backend::convert_expression): New function.
687
688 2013-10-02 Chris Manghane <cmang@google.com>
689
690 * go-gcc.cc: Include "real.h" and "realmpfr.h".
691 (Gcc_backend::integer_constant_expression): New function.
692 (Gcc_backend::float_constant_expression): New function.
693 (Gcc_backend::complex_constant_expression): New function.
694
695 2013-09-30 Chris Manghane <cmang@google.com>
696
697 * go-gcc.cc (Gcc_backend::error_expression): New function.
698 (Gcc_backend::var_expression): New function.
699 (Gcc_backend::indirect_expression): New function.
700
701 2013-09-25 Tom Tromey <tromey@redhat.com>
702
703 * Make-lang.in (gospec.o): Remove.
704 (CFLAGS-go/gospec.o): New variable.
705 (GCCGO_OBJS): Update to use go/gospec.o.
706 (go_OBJS): Define.
707 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
708 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
709 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
710 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
711 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
712 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
713 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
714 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
715 (go/unsafe.o): Remove.
716 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
717 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
718
719 2013-09-25 Tom Tromey <tromey@redhat.com>
720
721 * Make-lang.in (gospec.o): Don't use subshell.
722
723 2013-08-28 Ian Lance Taylor <iant@google.com>
724
725 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
726 the struct is not hidden.
727 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
728
729 2013-08-06 Ian Lance Taylor <iant@google.com>
730
731 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
732 compute_reloc_for_constant.
733
734 2013-08-02 Ian Lance Taylor <iant@google.com>
735
736 * go-gcc.cc (immutable_struct_set_init): Always call
737 resolve_unique_section.
738
739 2013-07-24 Ian Lance Taylor <iant@google.com>
740
741 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
742 fields, recreate those fields with the first one with a non-zero
743 size.
744
745 2013-07-23 Ian Lance Taylor <iant@google.com>
746
747 * go-backend.c: Don't #include "rtl.h".
748 (go_imported_unsafe): Don't call init_varasm_once.
749 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
750
751 2013-07-23 Ian Lance Taylor <iant@google.com>
752
753 * go-lang.c: Don't #include "except.h".
754 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
755
756 2013-06-18 Ian Lance Taylor <iant@google.com>
757
758 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
759 parameter.
760 (Gcc_backend::immutable_struct_set_init): Likewise.
761
762 2013-05-16 Jason Merrill <jason@redhat.com>
763
764 * Make-lang.in (go1$(exeext)): Use link mutex.
765
766 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
767
768 * gospec.c: pass -u pthread_create to linker when static linking.
769
770 2012-12-21 Ian Lance Taylor <iant@google.com>
771
772 PR bootstrap/54659
773 * go-system.h: Don't include <cstdio>.
774
775 2012-12-18 Ian Lance Taylor <iant@google.com>
776
777 PR go/55201
778 * gospec.c: Revert last patch.
779
780 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
781
782 PR go/55201
783 * gospec.c (LIBATOMIC): Define.
784 (LIBATOMIC_PROFILE): Define.
785 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
786
787 2012-11-29 Ian Lance Taylor <iant@google.com>
788
789 * go-gcc.cc: Include "output.h".
790 (global_variable): Add is_unique_section parameter.
791 (global_variable_set_init): Adjust unique section if necessary.
792 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
793
794 2012-11-17 Diego Novillo <dnovillo@google.com>
795
796 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
797
798 * go-lang.c: Use new vec API in vec.h.
799
800 2012-11-16 Ian Lance Taylor <iant@google.com>
801
802 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
803 (go1$(exeext)): Likewise.
804
805 2012-10-30 Ian Lance Taylor <iant@google.com>
806
807 * lang.opt (-fgo-relative-import-path): New option.
808 * go-lang.c (go_relative_import_path): New static variable.
809 (go_langhook_init): Pass go_relative_import_path to
810 go_create_gogo.
811 (go_langhook_handle_option): Handle -fgo-relative-import-path.
812 * go-c.h (go_create_gogo): Update declaration.
813 * gccgo.texi (Invoking gccgo): Document
814 -fgo-relative-import-path.
815
816 2012-09-17 Ian Lance Taylor <iant@google.com>
817
818 * config-lang.in (target_libs): Add target-libbacktrace.
819
820 2012-09-16 Ian Lance Taylor <iant@google.com>
821
822 * Make-lang.in (go/gogo.o): Depend on filenames.h.
823
824 2012-08-14 Diego Novillo <dnovillo@google.com>
825
826 Merge from cxx-conversion branch. Configury.
827
828 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
829 * go-gcc.cc: Likewise.
830 * go-system.h: Likewise.
831
832 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
833
834 * go-lang.c (lang_decl): Add variable_size GTY option.
835
836 2012-05-09 Ian Lance Taylor <iant@google.com>
837
838 * lang.opt: Add -fgo-pkgpath.
839 * go-lang.c (go_pkgpath): New static variable.
840 (go_prefix): New static variable.
841 (go_langhook_init): Pass go_pkgpath and go_prefix to
842 go_create_gogo.
843 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
844 -fgo-prefix handling to just set go_prefix.
845 * go-c.h (go_set_prefix): Don't declare.
846 (go_create_gogo): Add pkgpath and prefix to declaration.
847 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
848 to pkgpath. Don't include the package name in the asm name.
849 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
850 docs for -fgo-prefix.
851
852 2012-04-23 Ian Lance Taylor <iant@google.com>
853
854 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
855
856 2012-04-20 Ian Lance Taylor <iant@google.com>
857
858 * lang.opt: Add -fgo-check-divide-zero and
859 -fgo-check-divide-overflow.
860 * gccgo.texi (Invoking gccgo): Document new options.
861
862 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
863
864 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
865 with NULL_TREE type instead of void_type_node.
866
867 2012-03-09 Ian Lance Taylor <iant@google.com>
868
869 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
870 to the lhs type if necessary.
871
872 2012-03-08 Ian Lance Taylor <iant@google.com>
873
874 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
875 zero-sized variable.
876 (go_non_zero_struct): New global variable.
877 (Gcc_backend::non_zero_size_type): New function.
878 (Gcc_backend::global_variable): Don't build an assignment for a
879 zero-sized value.
880 * go-c.h (go_non_zero_struct): Declare.
881 * config-lang.in (gtfiles): Add go-c.h.
882
883 2012-02-29 Ian Lance Taylor <iant@google.com>
884
885 * go-gcc.cc (class Gcc_tree): Add set_tree method.
886 (set_placeholder_pointer_type): When setting to a pointer to
887 error, set to error_mark_node.
888
889 2012-02-23 Richard Guenther <rguenther@suse.de>
890
891 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
892 build_distinct_type_copy.
893
894 2012-02-17 Ian Lance Taylor <iant@google.com>
895
896 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
897
898 2012-02-17 Ian Lance Taylor <iant@google.com>
899
900 * gospec.c (lang_specific_driver): If linking, and no -o option
901 was used, add one.
902
903 2012-02-14 Ian Lance Taylor <iant@google.com>
904
905 PR go/48411
906 * Make-lang.in (gccgo-cross$(exeext)): New target.
907 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
908 gccgo$(exeext).
909 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
910 gccgo-cross$(exeext) does not exist.
911
912 2012-02-07 Ian Lance Taylor <iant@google.com>
913
914 * gccgo.texi (Function Names): Document //extern instead of
915 __asm__.
916
917 2012-02-01 Jakub Jelinek <jakub@redhat.com>
918
919 PR target/52079
920 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
921 return build_nonstandard_integer_type result if possible.
922
923 2012-01-21 Ian Lance Taylor <iant@google.com>
924
925 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
926 (Gcc_backend::type_alignment): Likewise.
927 (Gcc_backend::type_field_alignment): Likewise.
928 (Gcc_backend::type_field_offset): Likewise.
929
930 2012-01-20 Ian Lance Taylor <iant@google.com>
931
932 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
933 be empty.
934 (Gcc_backend::set_placeholder_struct_type): Likewise.
935
936 2012-01-17 Ian Lance Taylor <iant@google.com>
937
938 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
939 BASE.s rather than -o BASE.o.
940
941 2012-01-11 Ian Lance Taylor <iant@google.com>
942
943 * go-lang.c (go_langhook_init): Initialize void_list_node before
944 calling go_create_gogo.
945
946 2012-01-10 Ian Lance Taylor <iant@google.com>
947
948 * go-gcc.cc (Gcc_backend::type_size): New function.
949 (Gcc_backend::type_alignment): New function.
950 (Gcc_backend::type_field_alignment): New function.
951 (Gcc_backend::type_field_offset): New function.
952 * go-backend.c (go_type_alignment): Remove.
953 * go-c.h (go_type_alignment): Don't declare.
954
955 2011-12-27 Ian Lance Taylor <iant@google.com>
956
957 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
958 build_distinct_type_copy rather than build_variant_type_copy.
959 (Gcc_backend::set_placeholder_array_type): Likewise.
960 (Gcc_backend::named_type): Add special handling for builtin
961 basic types.
962
963 2011-12-22 Ian Lance Taylor <iant@google.com>
964
965 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
966 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
967 (Gcc_backend::set_placeholder_struct_type): Likewise.
968 (Gcc_backend::set_placeholder_array_type): Likewise.
969 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
970
971 2011-12-13 Ian Lance Taylor <iant@google.com>
972
973 * go-backend.c: #include "simple-object.h" and "intl.h".
974 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
975 (GO_EXPORT_SECTION_NAME): Likewise.
976 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
977 (go_read_export_data): New function.
978 * go-c.h (go_read_export_data): Declare.
979
980 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
981 Ian Lance Taylor <iant@google.com>
982
983 * go-location.h: New file.
984 * go-linemap.cc: New file.
985 * go-gcc.cc: Change all uses of source_location to Location.
986 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
987 (GO_LINEMAP_H): New variable.
988 (GO_LEX_H): Use $(GO_LINEMAP_H).
989 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
990 (go/go-linemap.o): New target.
991
992 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
993
994 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
995
996 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
997
998 * lang.opt: Add fgo-optimize-.
999 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
1000 * go-c.h (go_enable_optimize): Declare.
1001 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1002 (GO_EXPORT_H): Define.
1003 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1004 (GO_AST_DUMP_H): Define.
1005 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1006 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1007 (go/types.o): Likewise.
1008 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1009 (go/go-optimize.o): New target.
1010
1011 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1012
1013 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1014 (go/go-lang.o): Remove explicit compilation rule.
1015
1016 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1017
1018 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1019
1020 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
1021
1022 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1023 (go/ast-dump.o): New target.
1024 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1025 (go/statements.o): Likewise.
1026
1027 2011-07-06 Richard Guenther <rguenther@suse.de>
1028
1029 * go-lang.c (go_langhook_init):
1030 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1031
1032 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1033
1034 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1035 dependencies.
1036 * go-backend.c: Include common/common-target.h.
1037 (go_write_export_data): Use targetm_common.have_named_sections.
1038 * go-lang.c: Include common/common-target.h.
1039 (go_langhook_init_options_struct): Use
1040 targetm_common.supports_split_stack.
1041
1042 2011-06-13 Ian Lance Taylor <iant@google.com>
1043
1044 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1045
1046 2011-06-10 Ian Lance Taylor <iant@google.com>
1047
1048 * go-gcc.cc: Include "toplev.h".
1049 (Gcc_backend::immutable_struct): New function.
1050 (Gcc_backend::immutable_struct_set_init): New function.
1051 (Gcc_backend::immutable_struct_reference): New function.
1052 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1053
1054 2011-06-09 Ian Lance Taylor <iant@google.com>
1055
1056 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1057
1058 2011-06-07 Richard Guenther <rguenther@suse.de>
1059
1060 * go-lang.c (go_langhook_init): Do not set
1061 size_type_node or call set_sizetype.
1062
1063 2011-05-27 Ian Lance Taylor <iant@google.com>
1064
1065 * go-backend.c: Include "output.h".
1066 (go_write_export_data): New function.
1067 * go-c.h (go_write_export_data): Declare.
1068 * Make-lang.in (go/go-backend.o): Depend on output.h.
1069 (go/export.o): Depend on $(GO_C_H). Do not depend on
1070 $(MACHMODE_H), output.h, or $(TARGET_H).
1071
1072 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1073
1074 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1075 (gccgo$(exeext)): Use libcommon-target.a.
1076
1077 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1078
1079 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1080
1081 2011-05-13 Ian Lance Taylor <iant@google.com>
1082
1083 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1084 for multiple results, check that all fields types have a size.
1085 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1086
1087 2011-05-12 Ian Lance Taylor <iant@google.com>
1088
1089 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1090 parameter.
1091 (Gcc_backend::parameter_variable): Likewise.
1092
1093 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1094
1095 * go-lang.c (global_bindings_p): Return bool and simplify.
1096
1097 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1098
1099 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1100
1101 2011-05-04 Ian Lance Taylor <iant@google.com>
1102
1103 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1104 (Gcc_backend::fill_in_struct): New function.
1105 (Gcc_backend::array_type): Implement.
1106 (Gcc_backend::fill_in_array): New function.
1107 (Gcc_backend::placeholder_pointer_type): New function.
1108 (Gcc_backend::set_placeholder_pointer_type): New function.
1109 (Gcc_backend::set_placeholder_function_type): New function.
1110 (Gcc_backend::placeholder_struct_type): New function.
1111 (Gcc_backend::set_placeholder_struct_type): New function.
1112 (Gcc_backend::placeholder_array_type): New function.
1113 (Gcc_backend::set_placeholder_array_type): New function.
1114 (Gcc_backend::named_type): New function.
1115 (Gcc_backend::circular_pointer_type): New function.
1116 (Gcc_backend::is_circular_pointer_type): New function.
1117
1118 2011-04-26 Ian Lance Taylor <iant@google.com>
1119
1120 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1121
1122 2011-04-25 Ian Lance Taylor <iant@google.com>
1123
1124 * go-gcc.cc (Gcc_backend::error_type): Implement.
1125 (Gcc_backend::string_type): Remove.
1126 (Gcc_backend::function_type): Change signature and implement.
1127 (Gcc_backend::struct_type): Change signature.
1128 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1129 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1130 (Gcc_backend::pointer_type): Check for error.
1131 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1132
1133 2011-04-25 Evan Shaw <edsrzf@gmail.com>
1134
1135 * go-gcc.c (class Gcc_tree): Make get_tree const.
1136 (Gcc_backend::void_type): Implement.
1137 (Gcc_backend::bool_type): Implement.
1138 (Gcc_backend::integer_type): Implement.
1139 (Gcc_backend::float_type): Implement.
1140 (Gcc_backend::complex_type): New function.
1141 (Gcc_backend::pointer_type): New function.
1142 (Gcc_backend::make_type): New function.
1143 (type_to_tree): New function.
1144
1145 2011-04-21 Ian Lance Taylor <iant@google.com>
1146
1147 * go-system.h (go_assert, go_unreachable): Define.
1148
1149 2011-04-19 Ian Lance Taylor <iant@google.com>
1150
1151 * go-system.h: Include "intl.h".
1152 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1153 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1154 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1155
1156 2011-04-19 Ian Lance Taylor <iant@google.com>
1157
1158 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1159
1160 2011-04-19 Ian Lance Taylor <iant@google.com>
1161
1162 * go-gcc.cc (class Bblock): Define.
1163 (Gcc_backend::if_statement): Change then_block and else_block to
1164 Bblock*.
1165 (Gcc_backend::block): New function.
1166 (Gcc_backend::block_add_statements): New function.
1167 (Gcc_backend::block_statement): New function.
1168 (tree_to_block, block_to_tree): New functions.
1169
1170 2011-04-18 Ian Lance Taylor <iant@google.com>
1171
1172 * go-gcc.cc: Include "go-c.h".
1173 (class Bvariable): Define.
1174 (Gcc_backend::init_statement): New function.
1175 (Gcc_backend::global_variable): New function.
1176 (Gcc_backend::global_variable_set_init): New function.
1177 (Gcc_backend::local_variable): New function.
1178 (Gcc_backend::parameter_variable): New function.
1179 (tree_to_type, var_to_tree): New functions.
1180 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1181 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1182
1183 2011-04-15 Ian Lance Taylor <iant@google.com>
1184
1185 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1186 (Gcc_backend::assignment_statement): Use error_statement.
1187 (Gcc_backend::return_statement): Likewise.
1188 (Gcc_backend::if_statement): Likewise.
1189 (Gcc_backend::switch_statement): Likewise.
1190 (Gcc_backend::statement_list): Likewise.
1191
1192 2011-04-14 Ian Lance Taylor <iant@google.com>
1193
1194 * go-gcc.cc (Gcc_backend::error_statement): New function.
1195
1196 2011-04-13 Ian Lance Taylor <iant@google.com>
1197
1198 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1199
1200 2011-04-13 Ian Lance Taylor <iant@google.com>
1201
1202 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1203 (GO_RUNTIME_H): New variable.
1204 (go/runtime.o): New target.
1205 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1206 (go/statements.o): Likewise.
1207
1208 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1209
1210 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1211 calling TREE_CHAIN.
1212
1213 2011-04-06 Ian Lance Taylor <iant@google.com>
1214
1215 * go-gcc.cc (if_statement): Use build3_loc.
1216 (Gcc_backend::switch_statement): New function.
1217 (Gcc_backend::statement_list): New function.
1218
1219 2011-04-06 Ian Lance Taylor <iant@google.com>
1220
1221 * go-gcc.cc (Gcc_backend::if_statement): New function.
1222 (tree_to_stat): New function.
1223 (expr_to_tree): Renamed from expression_to_tree.
1224 (stat_to_tree): Renamed from statement_to_tree.
1225
1226 2011-04-06 Ian Lance Taylor <iant@google.com>
1227
1228 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1229
1230 2011-04-04 Ian Lance Taylor <iant@google.com>
1231
1232 * go-gcc.c (class Blabel): Define.
1233 (Gcc_backend::make_expression): New function.
1234 (get_identifier_from_string): New function.
1235 (Gcc_backend::label): New function.
1236 (Gcc_backend::label_definition_statement): New function.
1237 (Gcc_backend::goto_statement): New function.
1238 (Gcc_backend::label_address): New function.
1239 (expression_to_tree): New function.
1240 * Make-lang.in (go/expressions.o): Depend on
1241 go/gofrontend/backend.h.
1242 (go/gogo.o): Likewise.
1243
1244 2011-04-04 Ian Lance Taylor <iant@google.com>
1245
1246 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1247 (class Bfunction): Define.
1248 (Gcc_backend::assignment_statement): Rename from assignment.
1249 Check for errors.
1250 (Gcc_backend::return_statement): New function.
1251 (tree_to_function): New function.
1252 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1253 $(GIMPLE_H), and $(GO_GOGO_H).
1254
1255 2011-04-03 Ian Lance Taylor <iant@google.com>
1256
1257 * go-gcc.cc: New file.
1258 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1259 (go/go-gcc.o): New target.
1260 (go/go.o): Depend on go/gofrontend/backend.h.
1261 (go/statements.o): Likewise.
1262
1263 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1264
1265 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1266
1267 2011-02-08 Ian Lance Taylor <iant@google.com>
1268
1269 * go-lang.c (go_langhook_init_options_struct): Set
1270 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1271
1272 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1273
1274 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1275 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1276
1277 2011-01-21 Ian Lance Taylor <iant@google.com>
1278
1279 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1280 go_create_gogo.
1281 * go-c.h: Update declaration of go_create_gogo.
1282
1283 2011-01-13 Ian Lance Taylor <iant@google.com>
1284
1285 * go-backend.c: Include "rtl.h" and "target.h".
1286 (go_imported_unsafe): New function.
1287 * go-c.h (go_imported_unsafe): Declare.
1288 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1289 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1290 (go/unsafe.o): Depend on $(GO_C_H).
1291
1292 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
1293
1294 PR go/47113
1295 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1296 variable ‘field’ .
1297
1298 2010-12-21 Ian Lance Taylor <iant@google.com>
1299
1300 * Make-lang.in (check-go): Remove.
1301 (lang_checks_parallelized): Add check-go.
1302 (check_go_parallelize): Set.
1303
1304 2010-12-13 Ian Lance Taylor <iant@google.com>
1305
1306 * gospec.c (lang_specific_driver): Add a -o option if not linking
1307 and there is no -o option already.
1308
1309 2010-12-07 Ian Lance Taylor <iant@google.com>
1310
1311 PR tree-optimization/46805
1312 PR tree-optimization/46833
1313 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1314
1315 2010-12-06 Ian Lance Taylor <iant@google.com>
1316
1317 PR other/46789
1318 PR bootstrap/46812
1319 * go-lang.c (go_char_p): Define type and vectors.
1320 (go_search_dirs): New static variable.
1321 (go_langhook_handle_option): Use version and version/machine
1322 directories for -L.
1323 (go_langhook_post_options): Add non-specific -L paths.
1324 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1325 DEFAULT_TARGET_MACHINE when compiling.
1326 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1327 (Import and Export): Don't mention -L for finding import files.
1328
1329 2010-12-03 Ian Lance Taylor <iant@google.com>
1330
1331 PR bootstrap/46776
1332 * go-backend.c: New file.
1333 * go-c.h (go_type_alignment): Declare.
1334 (go_field_alignment, go_trampoline_info): Declare.
1335 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1336 (go/go-backend.o): New target.
1337 (go/go-lang.o): Make dependencies match source file.
1338 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1339 (go/gogo-tree.o): Don't depend on $(TM_H).
1340
1341 2010-12-03 Ian Lance Taylor <iant@google.com>
1342
1343 * config-lang.in (build_by_default): Set to no.
1344
1345 2010-12-02 Ian Lance Taylor <iant@google.com>
1346
1347 Go frontend added to gcc repository.
1348 \f
1349 Copyright (C) 2010-2017 Free Software Foundation, Inc.
1350
1351 Copying and distribution of this file, with or without modification,
1352 are permitted in any medium without royalty provided the copyright
1353 notice and this notice are preserved.