]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/go/ChangeLog
2015-06-04 Andrew MacLeod <amacleod@redhat.com>
[thirdparty/gcc.git] / gcc / go / ChangeLog
CommitLineData
f77c0292 12015-06-04 Andrew MacLeod <amacleod@redhat.com>
2
3 * go-backend.c: Adjust includes for restructured coretypes.h.
4 * go-c.h: Likewise.
5 * go-gcc.cc: Likewise.
6 * go-lang.c: Likewise.
7
d5d1c295 82015-04-30 Chris Manghane <cmang@google.com>
9
10 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
11 method.
12
b1891a46 132015-04-27 Jim Wilson <jim.wilson@linaro.org>
14
15 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
16
da244e59 172015-04-17 Chris Manghane <cmang@google.com>
18
19 * Make-lang.in (GO_OBJS): Add go/escape.o.
20
3f378015 212015-02-02 Ian Lance Taylor <iant@google.com>
22
23 PR go/64836
24 PR go/64838
25 * go-gcc.cc (Gcc_backend::type_size): Change return type to
26 int64_t.
27 (Gcc_backend::type_alignment): Likewise.
28 (Gcc_backend::type_field_alignment): Likewise.
29 (Gcc_backend::type_field_offset): Likewise.
30 (Gcc_backend::implicit_variable): Change alignment parameter type
31 to int64_t.
32
d47e3184 332015-01-23 Ian Lance Taylor <iant@google.com>
34
35 PR go/63565
36 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
37 be stripped.
38
39 * gccgo.texi (C Interoperability): Mention that people should use
40 cgo.
41
dc5b5f05 422015-01-23 Ian Lance Taylor <iant@google.com>
43
44 PR go/64595
45 * go-lang.c (go_langhook_init_options_struct): Set default
46 debug_info_level.
47 (go_langhook_post_options): If debug_info_level is still the
48 default, make sure write_symbols is set.
49 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
50
1ecc6157 512015-01-16 Richard Henderson <rth@redhat.com>
52
53 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
54 (Gcc_backend::static_chain_variable): New method.
55
dcfe52b6 562015-01-09 Ian Lance Taylor <iant@google.com>
57
58 * config-lang.in (lang_dirs): Define.
59
1f78217c 602015-01-09 Michael Collison <michael.collison@linaro.org>
61
62 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
63 input.h, alias.h, symtab.h, options.h, fold-const.h,
64 wide-int.h, and inchash.h due to flattening of tree.h.
65 * go-lang.c: Ditto.
66 * go-backend.c: Ditto.
67
6b059318 682015-01-07 Chris Manghane <cmang@google.com>
69
70 PR go/61204
71 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
72 zero-sized variable.
73
cc408b86 742015-01-06 Chris Manghane <cmang@google.com>
75
6b059318 76 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
77 initialize zero-sized fields, just evaluate the values for side
78 effects.
cc408b86 79
e3afb61d 802015-01-05 Jakub Jelinek <jakub@redhat.com>
81
d353bf18 82 Update copyright years.
83
e3afb61d 84 * gccgo.texi: Bump @copyrights-go year.
85
f932433f 862014-12-19 Chris Manghane <cmang@google.com>
87
6b059318 88 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
89 construct arrays of zero-sized values.
f932433f 90
3754d046 912014-10-29 Richard Sandiford <richard.sandiford@arm.com>
92
93 * go-lang.c: Remove redundant enum from machine_mode.
94
1140c305 952014-10-28 Andrew MacLeod <amacleod@redhat.com>
96
97 * go-gcc.cc: Adjust include files.
98
94ea8568 992014-10-27 Andrew MacLeod <amacleod@redhat.com>
100
101 * go-gcc.cc: Adjust include files.
102 * go-lang.c: Ditto.
103
fcbea5e4 1042014-10-23 Ian Lance Taylor <iant@google.com>
105
106 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
107 mpc_t parameter instead of two mpfr_t parameters.
108
eb9bd3cc 1092014-09-15 Jakub Jelinek <jakub@redhat.com>
110
111 * Make-lang.in (check_go_parallelize): Change to just an upper bound
112 number.
113
aa5ae575 1142014-09-03 Chris Manghane <cmang@google.com>
115
116 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
117 parameter. Add is_hidden parameter.
118 (Gcc_backend::implicit_variable_set_init): New method.
119 (Gcc_backend::implicit_variable_reference): New method.
120
a2990dc1 1212014-08-08 Ian Lance Taylor <iant@google.com>
122
123 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
124 NULL_TREE.
125
e07edb17 1262014-07-24 Uros Bizjak <ubizjak@gmail.com>
127
128 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
129 symtab_get_node to symtab_node::get.
130
4f31a4e7 1312014-06-13 Ian Lance Taylor <iant@google.com>
132
133 PR go/61496
134 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
135 ld, add -t option to avoid warning about common symbol changing
136 size.
137
e4c07a06 1382014-06-10 Jan Hubicka <hubicka@ucw.cz>
139
e07edb17 140 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
e4c07a06 141 symtab_get_node(var_decl)->implicit_section.
142
71e19e54 1432014-06-07 Jan Hubicka <hubicka@ucw.cz>
144
145 * go-gcc.cc (global_variable_set_init): Use
146 set_decl_section_name.
147
5892f89f 1482014-06-04 Ian Lance Taylor <iant@google.com>
149
150 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
151 alignment parameters. Permit init parameter to be NULL.
152
f7715905 1532014-06-02 Andrew MacLeod <amacleod@redhat.com>
154
155 * go-gcc.cc: Include builtins.h.
156
25a27413 1572014-05-17 Trevor Saunders <tsaunders@mozilla.com>
158
159 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
160
ea664253 1612014-05-06 Chris Manghane <cmang@google.com>
162
163 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
164 (Gcc_backend::boolean_constant_expression): New method.
165 (Gcc_backend::zero_expression): Use this->make_expression rather
166 than tree_to_expr.
167 (Gcc_backend::var_expression): Likewise.
168 (Gcc_backend::integer_constant_expression): Likewise.
169 (Gcc_backend::float_constant_expression): Likewise.
170 (Gcc_backend::complex_constant_expression): Likewise.
171 (Gcc_backend::struct_field_expression): Likewise.
172 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
173 (tree_to_function, tree_to_block): Remove functions.
174 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
175 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
176
960d5a55 1772014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
178 Mike Stump <mikestump@comcast.net>
179 Richard Sandiford <rdsandiford@googlemail.com>
180
181 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
182
5c3f3470 1832014-05-06 Chris Manghane <cmang@google.com>
184
185 * go-c.h (go_create_gogo): Update declaration to add
186 check_divide_zero and check_divide_overflow parameters.
187 * go-lang.c (go_langhook_init): Pass new arguments to
188 go_create_gogo.
189
f23d7786 1902014-05-05 Chris Manghane <cmang@google.com>
191
192 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
193 gc_root_variable. Add name and is_constant parameters.
194
9b27b43c 1952014-05-05 Chris Manghane <cmang@google.com>
196
197 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
198 parameter.
199 (Gcc_backend::temporary_variable): Check for erroneous function.
200
56368084 2012014-04-30 Chris Manghane <cmang@google.com>
202
203 * go-backend.c: #include "diagnostics.h".
204 (saw_errors): New function.
205 * go-c.h (saw_errors): Declare.
206 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
207
6d1e1dd9 2082014-04-30 Chris Manghane <cmang@google.com>
209
210 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
211 calling into Go frontend.
212 (go_langhook_type_for_mode): Likewise.
213 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
214
518151f2 2152014-04-30 Chris Manghane <cmang@google.com>
216
217 * go-gcc.cc: #include "langhooks.h".
218 (Gcc_backend::Gcc_backend): Add constructor.
219 (Gcc_backend::lookup_function): New function.
220 (Gcc_backend::define_builtin): New private function.
221 (Gcc_backend::gcc_backend): Remove.
222 (go_get_backend): Use new to create new Gcc_backend.
223
76f85fd6 2242014-04-25 Chris Manghane <cmang@google.com>
225
226 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
227 (Gcc_backend::return_statement): Push and pop function.
228 (Gcc_backend::label): Likewise.
229 (Gcc_backend::function_defer_statement): Likewise.
230 (Gcc_backend::switch_statement): Add function parameter.
231 (Gcc_backend::block): Don't permit function to be NULL.
232 (Gcc_backend::temporary_variable): Change go_assert to
233 gcc_assert.
234 (Gcc_backend::gc_root_variable): New function.
235 (Gcc_backend::write_global_definitions): New function.
236
64648b04 2372014-04-22 Chris Manghane <cmang@google.com>
238
239 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
240 call to create_tmp_var. Require that function be non-NULL.
241
f2de4532 2422014-04-17 Chris Manghane <cmang@google.com>
243
244 * go-gcc.cc (Gcc_backend::named_constant_expression): New
245 function.
246
2c809f8f 2472014-04-14 Chris Manghane <cmang@google.com>
248
249 * go-gcc.cc: Include "convert.h".
250 (Gcc_backend::string_constant_expression): New function.
251 (Gcc_backend::real_part_expression): Likewise.
252 (Gcc_backend::imag_part_expression): Likewise.
253 (Gcc_backend::complex_expression): Likewise.
254 (Gcc_backend::constructor_expression): Likewise.
255 (Gcc_backend::array_constructor_expression): Likewise.
256 (Gcc_backend::pointer_offset_expression): Likewise.
257 (Gcc_backend::array_index_expression): Likewise.
258 (Gcc_backend::call_expression): Likewise.
259 (Gcc_backend::exception_handler_statement): Likewise.
260 (Gcc_backend::function_defer_statement): Likewise.
261 (Gcc_backend::function_set_parameters): Likewise.
262 (Gcc_backend::function_set_body): Likewise.
263 (Gcc_backend::convert_expression): Handle various type
264 conversions.
265
5a16667a 2662014-03-03 Ian Lance Taylor <iant@google.com>
267
268 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
269 DECL_WEAK.
270 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
271 DECL_WEAK.
272
f9ca30f9 2732014-01-24 Chris Manghane <cmang@google.com>
274
275 * go-gcc.cc (Gcc_backend::unary_expression): New function.
276
a32698ee 2772014-01-16 Chris Manghane <cmang@google.com>
278
279 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
280 parameter.
281 (operator_to_tree_code): New static function.
282 (Gcc_backend::binary_expression): New function.
283
2387f644 2842014-01-14 Chris Manghane <cmang@google.com>
285
286 * go-gcc.cc (Gcc_backend::compound_expression): New function.
287 (Gcc_backend::conditional_expression): New function.
288
3aea1f79 2892014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
290
291 Update copyright years
292
d67510b9 2932014-01-02 Tobias Burnus <burnus@net-b.de>
fbb851c5 294
f07ffb7f 295 * gccgo.texi: Bump @copying's copyright year.
296
2972013-12-16 Chris Manghane <cmang@google.com>
298
299 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
300
3012013-12-11 Ian Lance Taylor <iant@google.com>
302
303 * go-lang.c (go_langhook_post_options): Disable sibling calls by
304 default.
305
3062013-12-10 Ian Lance Taylor <iant@google.com>
307
308 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
309 separately.
310
3112013-12-05 Ian Lance Taylor <iant@google.com>
312
313 Revert this change; no longer required.
314 2013-11-06 Ian Lance Taylor <iant@google.com>
315
316 * go-lang.c (go_langhook_post_options): If
317 -fisolate-erroneous-paths was turned on by an optimization option,
318 turn it off.
319
3202013-11-23 Ian Lance Taylor <iant@google.com>
321
322 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
323 parameter.
324
3252013-11-22 Andrew MacLeod <amacleod@redhat.com>
326
327 * go-gcc.cc: Add required include files from gimple.h.
328 * go-lang.c: Likewise
329
3302013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
331
332 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
333 tree_to_shwi throughout.
334
3352013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
336
337 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
338 tree_fits_shwi_p throughout.
339
3402013-11-14 Andrew MacLeod <amacleod@redhat.com>
341
342 * go-lang.c: Include only gimplify.h and gimple.h as needed.
343
3442013-11-14 Diego Novillo <dnovillo@google.com>
345
346 * go-backend.c: Include stor-layout.h.
347 * go-gcc.cc: Include stringpool.h.
348 Include stor-layout.h.
349 Include varasm.h.
350 * go-lang.c: Include stor-layout.h.
351
3522013-11-12 Andrew MacLeod <amacleod@redhat.com>
353
354 * go-lang.c: Include gimplify.h.
355
3562013-11-06 Ian Lance Taylor <iant@google.com>
357
358 * go-lang.c (go_langhook_post_options): If
359 -fisolate-erroneous-paths was turned on by an optimization option,
360 turn it off.
361
3622013-10-14 Chris Manghane <cmang@google.com>
363
364 * go-gcc.cc (Gcc_backend::address_expression): New function.
365
3662013-10-11 Chris Manghane <cmang@google.com>
367
368 * go-gcc.cc (Gcc_backend::function_code_expression): New
369 function.
370
3712013-10-10 Chris Manghane <cmang@google.com>
372
373 * go-gcc.cc (Gcc_backend::error_function): New function.
374 (Gcc_backend::function): New function.
375 (Gcc_backend::make_function): New function.
376 (function_to_tree): New function.
377
3782013-10-04 Chris Manghane <cmang@google.com>
379
380 * go-gcc.cc (Gcc_backend::convert_expression): New function.
381
3822013-10-02 Chris Manghane <cmang@google.com>
383
384 * go-gcc.cc: Include "real.h" and "realmpfr.h".
385 (Gcc_backend::integer_constant_expression): New function.
386 (Gcc_backend::float_constant_expression): New function.
387 (Gcc_backend::complex_constant_expression): New function.
388
3892013-09-30 Chris Manghane <cmang@google.com>
390
391 * go-gcc.cc (Gcc_backend::error_expression): New function.
392 (Gcc_backend::var_expression): New function.
393 (Gcc_backend::indirect_expression): New function.
394
3952013-09-25 Tom Tromey <tromey@redhat.com>
396
397 * Make-lang.in (gospec.o): Remove.
398 (CFLAGS-go/gospec.o): New variable.
399 (GCCGO_OBJS): Update to use go/gospec.o.
400 (go_OBJS): Define.
401 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
402 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
403 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
404 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
405 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
406 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
407 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
408 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
409 (go/unsafe.o): Remove.
410 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
411 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
412
4132013-09-25 Tom Tromey <tromey@redhat.com>
414
415 * Make-lang.in (gospec.o): Don't use subshell.
416
4172013-08-28 Ian Lance Taylor <iant@google.com>
418
419 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
420 the struct is not hidden.
421 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
422
4232013-08-06 Ian Lance Taylor <iant@google.com>
424
425 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
426 compute_reloc_for_constant.
427
4282013-08-02 Ian Lance Taylor <iant@google.com>
429
430 * go-gcc.cc (immutable_struct_set_init): Always call
431 resolve_unique_section.
432
4332013-07-24 Ian Lance Taylor <iant@google.com>
434
435 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
436 fields, recreate those fields with the first one with a non-zero
437 size.
438
4392013-07-23 Ian Lance Taylor <iant@google.com>
440
441 * go-backend.c: Don't #include "rtl.h".
442 (go_imported_unsafe): Don't call init_varasm_once.
443 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
444
4452013-07-23 Ian Lance Taylor <iant@google.com>
446
447 * go-lang.c: Don't #include "except.h".
448 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
449
4502013-06-18 Ian Lance Taylor <iant@google.com>
451
452 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
453 parameter.
454 (Gcc_backend::immutable_struct_set_init): Likewise.
455
4562013-05-16 Jason Merrill <jason@redhat.com>
457
458 * Make-lang.in (go1$(exeext)): Use link mutex.
459
4602013-01-16 Shenghou Ma <minux.ma@gmail.com>
461
462 * gospec.c: pass -u pthread_create to linker when static linking.
463
4642012-12-21 Ian Lance Taylor <iant@google.com>
465
466 PR bootstrap/54659
467 * go-system.h: Don't include <cstdio>.
468
4692012-12-18 Ian Lance Taylor <iant@google.com>
470
471 PR go/55201
472 * gospec.c: Revert last patch.
473
4742012-12-18 Andreas Schwab <schwab@linux-m68k.org>
475
476 PR go/55201
477 * gospec.c (LIBATOMIC): Define.
478 (LIBATOMIC_PROFILE): Define.
479 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
480
4812012-11-29 Ian Lance Taylor <iant@google.com>
482
483 * go-gcc.cc: Include "output.h".
484 (global_variable): Add is_unique_section parameter.
485 (global_variable_set_init): Adjust unique section if necessary.
486 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
487
4882012-11-17 Diego Novillo <dnovillo@google.com>
489
490 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
491
492 * go-lang.c: Use new vec API in vec.h.
493
4942012-11-16 Ian Lance Taylor <iant@google.com>
495
496 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
497 (go1$(exeext)): Likewise.
498
4992012-10-30 Ian Lance Taylor <iant@google.com>
500
501 * lang.opt (-fgo-relative-import-path): New option.
502 * go-lang.c (go_relative_import_path): New static variable.
503 (go_langhook_init): Pass go_relative_import_path to
504 go_create_gogo.
505 (go_langhook_handle_option): Handle -fgo-relative-import-path.
506 * go-c.h (go_create_gogo): Update declaration.
507 * gccgo.texi (Invoking gccgo): Document
508 -fgo-relative-import-path.
509
5102012-09-17 Ian Lance Taylor <iant@google.com>
511
512 * config-lang.in (target_libs): Add target-libbacktrace.
513
5142012-09-16 Ian Lance Taylor <iant@google.com>
515
516 * Make-lang.in (go/gogo.o): Depend on filenames.h.
517
5182012-08-14 Diego Novillo <dnovillo@google.com>
519
520 Merge from cxx-conversion branch. Configury.
521
522 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
523 * go-gcc.cc: Likewise.
524 * go-system.h: Likewise.
525
5262012-07-24 Uros Bizjak <ubizjak@gmail.com>
527
528 * go-lang.c (lang_decl): Add variable_size GTY option.
529
5302012-05-09 Ian Lance Taylor <iant@google.com>
531
532 * lang.opt: Add -fgo-pkgpath.
533 * go-lang.c (go_pkgpath): New static variable.
534 (go_prefix): New static variable.
535 (go_langhook_init): Pass go_pkgpath and go_prefix to
536 go_create_gogo.
537 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
538 -fgo-prefix handling to just set go_prefix.
539 * go-c.h (go_set_prefix): Don't declare.
540 (go_create_gogo): Add pkgpath and prefix to declaration.
541 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
542 to pkgpath. Don't include the package name in the asm name.
543 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
544 docs for -fgo-prefix.
545
5462012-04-23 Ian Lance Taylor <iant@google.com>
547
548 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
549
5502012-04-20 Ian Lance Taylor <iant@google.com>
551
552 * lang.opt: Add -fgo-check-divide-zero and
553 -fgo-check-divide-overflow.
554 * gccgo.texi (Invoking gccgo): Document new options.
555
5562012-04-18 Steven Bosscher <steven@gcc.gnu.org>
557
558 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
559 with NULL_TREE type instead of void_type_node.
560
5612012-03-09 Ian Lance Taylor <iant@google.com>
562
563 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
564 to the lhs type if necessary.
565
5662012-03-08 Ian Lance Taylor <iant@google.com>
567
568 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
569 zero-sized variable.
570 (go_non_zero_struct): New global variable.
571 (Gcc_backend::non_zero_size_type): New function.
572 (Gcc_backend::global_variable): Don't build an assignment for a
573 zero-sized value.
574 * go-c.h (go_non_zero_struct): Declare.
575 * config-lang.in (gtfiles): Add go-c.h.
576
5772012-02-29 Ian Lance Taylor <iant@google.com>
578
579 * go-gcc.cc (class Gcc_tree): Add set_tree method.
580 (set_placeholder_pointer_type): When setting to a pointer to
581 error, set to error_mark_node.
582
5832012-02-23 Richard Guenther <rguenther@suse.de>
584
585 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
586 build_distinct_type_copy.
587
5882012-02-17 Ian Lance Taylor <iant@google.com>
589
590 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
591
5922012-02-17 Ian Lance Taylor <iant@google.com>
593
594 * gospec.c (lang_specific_driver): If linking, and no -o option
595 was used, add one.
596
5972012-02-14 Ian Lance Taylor <iant@google.com>
598
599 PR go/48411
600 * Make-lang.in (gccgo-cross$(exeext)): New target.
601 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
602 gccgo$(exeext).
603 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
604 gccgo-cross$(exeext) does not exist.
605
6062012-02-07 Ian Lance Taylor <iant@google.com>
607
608 * gccgo.texi (Function Names): Document //extern instead of
609 __asm__.
610
6112012-02-01 Jakub Jelinek <jakub@redhat.com>
612
613 PR target/52079
614 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
615 return build_nonstandard_integer_type result if possible.
616
6172012-01-21 Ian Lance Taylor <iant@google.com>
618
619 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
620 (Gcc_backend::type_alignment): Likewise.
621 (Gcc_backend::type_field_alignment): Likewise.
622 (Gcc_backend::type_field_offset): Likewise.
623
6242012-01-20 Ian Lance Taylor <iant@google.com>
625
626 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
627 be empty.
628 (Gcc_backend::set_placeholder_struct_type): Likewise.
629
6302012-01-17 Ian Lance Taylor <iant@google.com>
631
632 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
633 BASE.s rather than -o BASE.o.
634
6352012-01-11 Ian Lance Taylor <iant@google.com>
636
637 * go-lang.c (go_langhook_init): Initialize void_list_node before
638 calling go_create_gogo.
639
6402012-01-10 Ian Lance Taylor <iant@google.com>
641
642 * go-gcc.cc (Gcc_backend::type_size): New function.
643 (Gcc_backend::type_alignment): New function.
644 (Gcc_backend::type_field_alignment): New function.
645 (Gcc_backend::type_field_offset): New function.
646 * go-backend.c (go_type_alignment): Remove.
647 * go-c.h (go_type_alignment): Don't declare.
648
6492011-12-27 Ian Lance Taylor <iant@google.com>
650
651 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
652 build_distinct_type_copy rather than build_variant_type_copy.
653 (Gcc_backend::set_placeholder_array_type): Likewise.
654 (Gcc_backend::named_type): Add special handling for builtin
655 basic types.
656
6572011-12-22 Ian Lance Taylor <iant@google.com>
658
659 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
660 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
661 (Gcc_backend::set_placeholder_struct_type): Likewise.
662 (Gcc_backend::set_placeholder_array_type): Likewise.
663 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
664
6652011-12-13 Ian Lance Taylor <iant@google.com>
666
667 * go-backend.c: #include "simple-object.h" and "intl.h".
668 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
669 (GO_EXPORT_SECTION_NAME): Likewise.
670 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
671 (go_read_export_data): New function.
672 * go-c.h (go_read_export_data): Declare.
673
6742011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
675 Ian Lance Taylor <iant@google.com>
676
677 * go-location.h: New file.
678 * go-linemap.cc: New file.
679 * go-gcc.cc: Change all uses of source_location to Location.
680 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
681 (GO_LINEMAP_H): New variable.
682 (GO_LEX_H): Use $(GO_LINEMAP_H).
683 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
684 (go/go-linemap.o): New target.
685
6862011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
687
688 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
689
6902011-08-24 Roberto Lublinerman <rluble@gmail.com>
691
692 * lang.opt: Add fgo-optimize-.
693 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
694 * go-c.h (go_enable_optimize): Declare.
695 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
696 (GO_EXPORT_H): Define.
697 (GO_IMPORT_H): Add $(GO_EXPORT_H).
698 (GO_AST_DUMP_H): Define.
699 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
700 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
701 (go/types.o): Likewise.
702 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
703 (go/go-optimize.o): New target.
704
7052011-08-24 Joseph Myers <joseph@codesourcery.com>
706
707 * Make-lang.in (CFLAGS-go/go-lang.o): New.
708 (go/go-lang.o): Remove explicit compilation rule.
709
7102011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
711
712 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
713
7142011-08-02 Roberto Lublinerman <rluble@gmail.com>
715
716 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
717 (go/ast-dump.o): New target.
718 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
719 (go/statements.o): Likewise.
720
7212011-07-06 Richard Guenther <rguenther@suse.de>
722
723 * go-lang.c (go_langhook_init):
724 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
725
7262011-06-14 Joseph Myers <joseph@codesourcery.com>
727
728 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
729 dependencies.
730 * go-backend.c: Include common/common-target.h.
731 (go_write_export_data): Use targetm_common.have_named_sections.
732 * go-lang.c: Include common/common-target.h.
733 (go_langhook_init_options_struct): Use
734 targetm_common.supports_split_stack.
735
7362011-06-13 Ian Lance Taylor <iant@google.com>
737
738 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
739
7402011-06-10 Ian Lance Taylor <iant@google.com>
741
742 * go-gcc.cc: Include "toplev.h".
743 (Gcc_backend::immutable_struct): New function.
744 (Gcc_backend::immutable_struct_set_init): New function.
745 (Gcc_backend::immutable_struct_reference): New function.
746 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
747
7482011-06-09 Ian Lance Taylor <iant@google.com>
749
750 * go-gcc.cc (Gcc_backend::zero_expression): New function.
751
7522011-06-07 Richard Guenther <rguenther@suse.de>
753
754 * go-lang.c (go_langhook_init): Do not set
755 size_type_node or call set_sizetype.
756
7572011-05-27 Ian Lance Taylor <iant@google.com>
758
759 * go-backend.c: Include "output.h".
760 (go_write_export_data): New function.
761 * go-c.h (go_write_export_data): Declare.
762 * Make-lang.in (go/go-backend.o): Depend on output.h.
763 (go/export.o): Depend on $(GO_C_H). Do not depend on
764 $(MACHMODE_H), output.h, or $(TARGET_H).
765
7662011-05-24 Joseph Myers <joseph@codesourcery.com>
767
768 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
769 (gccgo$(exeext)): Use libcommon-target.a.
770
7712011-05-20 Joseph Myers <joseph@codesourcery.com>
772
773 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
774
7752011-05-13 Ian Lance Taylor <iant@google.com>
776
777 * go-gcc.cc (Gcc_backend::function_type): When building a struct
778 for multiple results, check that all fields types have a size.
779 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
780
7812011-05-12 Ian Lance Taylor <iant@google.com>
782
783 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
784 parameter.
785 (Gcc_backend::parameter_variable): Likewise.
786
7872011-05-07 Eric Botcazou <ebotcazou@adacore.com>
788
789 * go-lang.c (global_bindings_p): Return bool and simplify.
790
7912011-05-05 Nathan Froyd <froydnj@codesourcery.com>
792
793 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
794
7952011-05-04 Ian Lance Taylor <iant@google.com>
796
797 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
798 (Gcc_backend::fill_in_struct): New function.
799 (Gcc_backend::array_type): Implement.
800 (Gcc_backend::fill_in_array): New function.
801 (Gcc_backend::placeholder_pointer_type): New function.
802 (Gcc_backend::set_placeholder_pointer_type): New function.
803 (Gcc_backend::set_placeholder_function_type): New function.
804 (Gcc_backend::placeholder_struct_type): New function.
805 (Gcc_backend::set_placeholder_struct_type): New function.
806 (Gcc_backend::placeholder_array_type): New function.
807 (Gcc_backend::set_placeholder_array_type): New function.
808 (Gcc_backend::named_type): New function.
809 (Gcc_backend::circular_pointer_type): New function.
810 (Gcc_backend::is_circular_pointer_type): New function.
811
8122011-04-26 Ian Lance Taylor <iant@google.com>
813
814 * go-gcc.cc (Gcc_backend::struct_type): Implement.
815
8162011-04-25 Ian Lance Taylor <iant@google.com>
817
818 * go-gcc.cc (Gcc_backend::error_type): Implement.
819 (Gcc_backend::string_type): Remove.
820 (Gcc_backend::function_type): Change signature and implement.
821 (Gcc_backend::struct_type): Change signature.
822 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
823 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
824 (Gcc_backend::pointer_type): Check for error.
825 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
826
8272011-04-25 Evan Shaw <edsrzf@gmail.com>
828
829 * go-gcc.c (class Gcc_tree): Make get_tree const.
830 (Gcc_backend::void_type): Implement.
831 (Gcc_backend::bool_type): Implement.
832 (Gcc_backend::integer_type): Implement.
833 (Gcc_backend::float_type): Implement.
834 (Gcc_backend::complex_type): New function.
835 (Gcc_backend::pointer_type): New function.
836 (Gcc_backend::make_type): New function.
837 (type_to_tree): New function.
838
8392011-04-21 Ian Lance Taylor <iant@google.com>
840
841 * go-system.h (go_assert, go_unreachable): Define.
842
8432011-04-19 Ian Lance Taylor <iant@google.com>
844
845 * go-system.h: Include "intl.h".
846 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
847 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
848 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
849
8502011-04-19 Ian Lance Taylor <iant@google.com>
851
852 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
853
8542011-04-19 Ian Lance Taylor <iant@google.com>
855
856 * go-gcc.cc (class Bblock): Define.
857 (Gcc_backend::if_statement): Change then_block and else_block to
858 Bblock*.
859 (Gcc_backend::block): New function.
860 (Gcc_backend::block_add_statements): New function.
861 (Gcc_backend::block_statement): New function.
862 (tree_to_block, block_to_tree): New functions.
863
8642011-04-18 Ian Lance Taylor <iant@google.com>
865
866 * go-gcc.cc: Include "go-c.h".
867 (class Bvariable): Define.
868 (Gcc_backend::init_statement): New function.
869 (Gcc_backend::global_variable): New function.
870 (Gcc_backend::global_variable_set_init): New function.
871 (Gcc_backend::local_variable): New function.
872 (Gcc_backend::parameter_variable): New function.
873 (tree_to_type, var_to_tree): New functions.
874 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
875 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
876
8772011-04-15 Ian Lance Taylor <iant@google.com>
878
879 * go-gcc.cc (Gcc_backend::compound_statement): New function.
880 (Gcc_backend::assignment_statement): Use error_statement.
881 (Gcc_backend::return_statement): Likewise.
882 (Gcc_backend::if_statement): Likewise.
883 (Gcc_backend::switch_statement): Likewise.
884 (Gcc_backend::statement_list): Likewise.
885
8862011-04-14 Ian Lance Taylor <iant@google.com>
887
888 * go-gcc.cc (Gcc_backend::error_statement): New function.
889
8902011-04-13 Ian Lance Taylor <iant@google.com>
891
892 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
893
8942011-04-13 Ian Lance Taylor <iant@google.com>
895
896 * Make-lang.in (GO_OBJS): Add go/runtime.o.
897 (GO_RUNTIME_H): New variable.
898 (go/runtime.o): New target.
899 (go/gogo.o): Depend on $(GO_RUNTIME_H).
900 (go/statements.o): Likewise.
901
9022011-04-12 Nathan Froyd <froydnj@codesourcery.com>
903
904 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
905 calling TREE_CHAIN.
906
9072011-04-06 Ian Lance Taylor <iant@google.com>
908
909 * go-gcc.cc (if_statement): Use build3_loc.
910 (Gcc_backend::switch_statement): New function.
911 (Gcc_backend::statement_list): New function.
912
9132011-04-06 Ian Lance Taylor <iant@google.com>
914
915 * go-gcc.cc (Gcc_backend::if_statement): New function.
916 (tree_to_stat): New function.
917 (expr_to_tree): Renamed from expression_to_tree.
918 (stat_to_tree): Renamed from statement_to_tree.
919
9202011-04-06 Ian Lance Taylor <iant@google.com>
921
922 * go-gcc.cc (Gcc_backend::expression_statement): New function.
923
9242011-04-04 Ian Lance Taylor <iant@google.com>
925
926 * go-gcc.c (class Blabel): Define.
927 (Gcc_backend::make_expression): New function.
928 (get_identifier_from_string): New function.
929 (Gcc_backend::label): New function.
930 (Gcc_backend::label_definition_statement): New function.
931 (Gcc_backend::goto_statement): New function.
932 (Gcc_backend::label_address): New function.
933 (expression_to_tree): New function.
934 * Make-lang.in (go/expressions.o): Depend on
935 go/gofrontend/backend.h.
936 (go/gogo.o): Likewise.
937
9382011-04-04 Ian Lance Taylor <iant@google.com>
939
940 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
941 (class Bfunction): Define.
942 (Gcc_backend::assignment_statement): Rename from assignment.
943 Check for errors.
944 (Gcc_backend::return_statement): New function.
945 (tree_to_function): New function.
946 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
947 $(GIMPLE_H), and $(GO_GOGO_H).
948
9492011-04-03 Ian Lance Taylor <iant@google.com>
950
951 * go-gcc.cc: New file.
952 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
953 (go/go-gcc.o): New target.
954 (go/go.o): Depend on go/gofrontend/backend.h.
955 (go/statements.o): Likewise.
956
9572011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
958
959 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
960
9612011-02-08 Ian Lance Taylor <iant@google.com>
962
963 * go-lang.c (go_langhook_init_options_struct): Set
964 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
965
9662011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
967
968 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
969 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
970
9712011-01-21 Ian Lance Taylor <iant@google.com>
972
973 * go-lang.c (go_langhook_init): Omit float_type_size when calling
974 go_create_gogo.
975 * go-c.h: Update declaration of go_create_gogo.
976
9772011-01-13 Ian Lance Taylor <iant@google.com>
978
979 * go-backend.c: Include "rtl.h" and "target.h".
980 (go_imported_unsafe): New function.
981 * go-c.h (go_imported_unsafe): Declare.
982 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
983 (go/gogo-tree.o): Remove dependency on $(RTL_H).
984 (go/unsafe.o): Depend on $(GO_C_H).
985
9862010-12-31 Joern Rennecke <amylaar@spamcop.net>
987
988 PR go/47113
989 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
990 variable ‘field’ .
991
9922010-12-21 Ian Lance Taylor <iant@google.com>
993
994 * Make-lang.in (check-go): Remove.
995 (lang_checks_parallelized): Add check-go.
996 (check_go_parallelize): Set.
997
9982010-12-13 Ian Lance Taylor <iant@google.com>
999
1000 * gospec.c (lang_specific_driver): Add a -o option if not linking
1001 and there is no -o option already.
1002
10032010-12-07 Ian Lance Taylor <iant@google.com>
1004
1005 PR tree-optimization/46805
1006 PR tree-optimization/46833
1007 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1008
10092010-12-06 Ian Lance Taylor <iant@google.com>
1010
1011 PR other/46789
1012 PR bootstrap/46812
1013 * go-lang.c (go_char_p): Define type and vectors.
1014 (go_search_dirs): New static variable.
1015 (go_langhook_handle_option): Use version and version/machine
1016 directories for -L.
1017 (go_langhook_post_options): Add non-specific -L paths.
1018 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1019 DEFAULT_TARGET_MACHINE when compiling.
1020 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1021 (Import and Export): Don't mention -L for finding import files.
1022
10232010-12-03 Ian Lance Taylor <iant@google.com>
1024
1025 PR bootstrap/46776
1026 * go-backend.c: New file.
1027 * go-c.h (go_type_alignment): Declare.
1028 (go_field_alignment, go_trampoline_info): Declare.
1029 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1030 (go/go-backend.o): New target.
1031 (go/go-lang.o): Make dependencies match source file.
1032 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1033 (go/gogo-tree.o): Don't depend on $(TM_H).
1034
10352010-12-03 Ian Lance Taylor <iant@google.com>
1036
1037 * config-lang.in (build_by_default): Set to no.
1038
10392010-12-02 Ian Lance Taylor <iant@google.com>
1040
1041 Go frontend added to gcc repository.
d67510b9 1042\f
e3afb61d 1043Copyright (C) 2010-2015 Free Software Foundation, Inc.
fbb851c5 1044
d67510b9 1045Copying and distribution of this file, with or without modification,
1046are permitted in any medium without royalty provided the copyright
1047notice and this notice are preserved.