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