decl.c, [...]: Remove redundant enum from machine_mode.
[gcc.git] / gcc / go / ChangeLog
1 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2
3 * go-lang.c: Remove redundant enum from machine_mode.
4
5 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
6
7 * go-gcc.cc: Adjust include files.
8
9 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
10
11 * go-gcc.cc: Adjust include files.
12 * go-lang.c: Ditto.
13
14 2014-10-23 Ian Lance Taylor <iant@google.com>
15
16 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
17 mpc_t parameter instead of two mpfr_t parameters.
18
19 2014-09-15 Jakub Jelinek <jakub@redhat.com>
20
21 * Make-lang.in (check_go_parallelize): Change to just an upper bound
22 number.
23
24 2014-09-03 Chris Manghane <cmang@google.com>
25
26 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
27 parameter. Add is_hidden parameter.
28 (Gcc_backend::implicit_variable_set_init): New method.
29 (Gcc_backend::implicit_variable_reference): New method.
30
31 2014-08-08 Ian Lance Taylor <iant@google.com>
32
33 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
34 NULL_TREE.
35
36 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
37
38 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
39 symtab_get_node to symtab_node::get.
40
41 2014-06-13 Ian Lance Taylor <iant@google.com>
42
43 PR go/61496
44 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
45 ld, add -t option to avoid warning about common symbol changing
46 size.
47
48 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
49
50 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
51 symtab_get_node(var_decl)->implicit_section.
52
53 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
54
55 * go-gcc.cc (global_variable_set_init): Use
56 set_decl_section_name.
57
58 2014-06-04 Ian Lance Taylor <iant@google.com>
59
60 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
61 alignment parameters. Permit init parameter to be NULL.
62
63 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
64
65 * go-gcc.cc: Include builtins.h.
66
67 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
68
69 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
70
71 2014-05-06 Chris Manghane <cmang@google.com>
72
73 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
74 (Gcc_backend::boolean_constant_expression): New method.
75 (Gcc_backend::zero_expression): Use this->make_expression rather
76 than tree_to_expr.
77 (Gcc_backend::var_expression): Likewise.
78 (Gcc_backend::integer_constant_expression): Likewise.
79 (Gcc_backend::float_constant_expression): Likewise.
80 (Gcc_backend::complex_constant_expression): Likewise.
81 (Gcc_backend::struct_field_expression): Likewise.
82 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
83 (tree_to_function, tree_to_block): Remove functions.
84 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
85 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
86
87 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
88 Mike Stump <mikestump@comcast.net>
89 Richard Sandiford <rdsandiford@googlemail.com>
90
91 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
92
93 2014-05-06 Chris Manghane <cmang@google.com>
94
95 * go-c.h (go_create_gogo): Update declaration to add
96 check_divide_zero and check_divide_overflow parameters.
97 * go-lang.c (go_langhook_init): Pass new arguments to
98 go_create_gogo.
99
100 2014-05-05 Chris Manghane <cmang@google.com>
101
102 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
103 gc_root_variable. Add name and is_constant parameters.
104
105 2014-05-05 Chris Manghane <cmang@google.com>
106
107 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
108 parameter.
109 (Gcc_backend::temporary_variable): Check for erroneous function.
110
111 2014-04-30 Chris Manghane <cmang@google.com>
112
113 * go-backend.c: #include "diagnostics.h".
114 (saw_errors): New function.
115 * go-c.h (saw_errors): Declare.
116 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
117
118 2014-04-30 Chris Manghane <cmang@google.com>
119
120 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
121 calling into Go frontend.
122 (go_langhook_type_for_mode): Likewise.
123 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
124
125 2014-04-30 Chris Manghane <cmang@google.com>
126
127 * go-gcc.cc: #include "langhooks.h".
128 (Gcc_backend::Gcc_backend): Add constructor.
129 (Gcc_backend::lookup_function): New function.
130 (Gcc_backend::define_builtin): New private function.
131 (Gcc_backend::gcc_backend): Remove.
132 (go_get_backend): Use new to create new Gcc_backend.
133
134 2014-04-25 Chris Manghane <cmang@google.com>
135
136 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
137 (Gcc_backend::return_statement): Push and pop function.
138 (Gcc_backend::label): Likewise.
139 (Gcc_backend::function_defer_statement): Likewise.
140 (Gcc_backend::switch_statement): Add function parameter.
141 (Gcc_backend::block): Don't permit function to be NULL.
142 (Gcc_backend::temporary_variable): Change go_assert to
143 gcc_assert.
144 (Gcc_backend::gc_root_variable): New function.
145 (Gcc_backend::write_global_definitions): New function.
146
147 2014-04-22 Chris Manghane <cmang@google.com>
148
149 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
150 call to create_tmp_var. Require that function be non-NULL.
151
152 2014-04-17 Chris Manghane <cmang@google.com>
153
154 * go-gcc.cc (Gcc_backend::named_constant_expression): New
155 function.
156
157 2014-04-14 Chris Manghane <cmang@google.com>
158
159 * go-gcc.cc: Include "convert.h".
160 (Gcc_backend::string_constant_expression): New function.
161 (Gcc_backend::real_part_expression): Likewise.
162 (Gcc_backend::imag_part_expression): Likewise.
163 (Gcc_backend::complex_expression): Likewise.
164 (Gcc_backend::constructor_expression): Likewise.
165 (Gcc_backend::array_constructor_expression): Likewise.
166 (Gcc_backend::pointer_offset_expression): Likewise.
167 (Gcc_backend::array_index_expression): Likewise.
168 (Gcc_backend::call_expression): Likewise.
169 (Gcc_backend::exception_handler_statement): Likewise.
170 (Gcc_backend::function_defer_statement): Likewise.
171 (Gcc_backend::function_set_parameters): Likewise.
172 (Gcc_backend::function_set_body): Likewise.
173 (Gcc_backend::convert_expression): Handle various type
174 conversions.
175
176 2014-03-03 Ian Lance Taylor <iant@google.com>
177
178 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
179 DECL_WEAK.
180 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
181 DECL_WEAK.
182
183 2014-01-24 Chris Manghane <cmang@google.com>
184
185 * go-gcc.cc (Gcc_backend::unary_expression): New function.
186
187 2014-01-16 Chris Manghane <cmang@google.com>
188
189 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
190 parameter.
191 (operator_to_tree_code): New static function.
192 (Gcc_backend::binary_expression): New function.
193
194 2014-01-14 Chris Manghane <cmang@google.com>
195
196 * go-gcc.cc (Gcc_backend::compound_expression): New function.
197 (Gcc_backend::conditional_expression): New function.
198
199 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
200
201 Update copyright years
202
203 2014-01-02 Tobias Burnus <burnus@net-b.de>
204
205 * gccgo.texi: Bump @copying's copyright year.
206
207 2013-12-16 Chris Manghane <cmang@google.com>
208
209 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
210
211 2013-12-11 Ian Lance Taylor <iant@google.com>
212
213 * go-lang.c (go_langhook_post_options): Disable sibling calls by
214 default.
215
216 2013-12-10 Ian Lance Taylor <iant@google.com>
217
218 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
219 separately.
220
221 2013-12-05 Ian Lance Taylor <iant@google.com>
222
223 Revert this change; no longer required.
224 2013-11-06 Ian Lance Taylor <iant@google.com>
225
226 * go-lang.c (go_langhook_post_options): If
227 -fisolate-erroneous-paths was turned on by an optimization option,
228 turn it off.
229
230 2013-11-23 Ian Lance Taylor <iant@google.com>
231
232 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
233 parameter.
234
235 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
236
237 * go-gcc.cc: Add required include files from gimple.h.
238 * go-lang.c: Likewise
239
240 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
241
242 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
243 tree_to_shwi throughout.
244
245 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
246
247 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
248 tree_fits_shwi_p throughout.
249
250 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
251
252 * go-lang.c: Include only gimplify.h and gimple.h as needed.
253
254 2013-11-14 Diego Novillo <dnovillo@google.com>
255
256 * go-backend.c: Include stor-layout.h.
257 * go-gcc.cc: Include stringpool.h.
258 Include stor-layout.h.
259 Include varasm.h.
260 * go-lang.c: Include stor-layout.h.
261
262 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
263
264 * go-lang.c: Include gimplify.h.
265
266 2013-11-06 Ian Lance Taylor <iant@google.com>
267
268 * go-lang.c (go_langhook_post_options): If
269 -fisolate-erroneous-paths was turned on by an optimization option,
270 turn it off.
271
272 2013-10-14 Chris Manghane <cmang@google.com>
273
274 * go-gcc.cc (Gcc_backend::address_expression): New function.
275
276 2013-10-11 Chris Manghane <cmang@google.com>
277
278 * go-gcc.cc (Gcc_backend::function_code_expression): New
279 function.
280
281 2013-10-10 Chris Manghane <cmang@google.com>
282
283 * go-gcc.cc (Gcc_backend::error_function): New function.
284 (Gcc_backend::function): New function.
285 (Gcc_backend::make_function): New function.
286 (function_to_tree): New function.
287
288 2013-10-04 Chris Manghane <cmang@google.com>
289
290 * go-gcc.cc (Gcc_backend::convert_expression): New function.
291
292 2013-10-02 Chris Manghane <cmang@google.com>
293
294 * go-gcc.cc: Include "real.h" and "realmpfr.h".
295 (Gcc_backend::integer_constant_expression): New function.
296 (Gcc_backend::float_constant_expression): New function.
297 (Gcc_backend::complex_constant_expression): New function.
298
299 2013-09-30 Chris Manghane <cmang@google.com>
300
301 * go-gcc.cc (Gcc_backend::error_expression): New function.
302 (Gcc_backend::var_expression): New function.
303 (Gcc_backend::indirect_expression): New function.
304
305 2013-09-25 Tom Tromey <tromey@redhat.com>
306
307 * Make-lang.in (gospec.o): Remove.
308 (CFLAGS-go/gospec.o): New variable.
309 (GCCGO_OBJS): Update to use go/gospec.o.
310 (go_OBJS): Define.
311 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
312 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
313 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
314 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
315 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
316 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
317 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
318 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
319 (go/unsafe.o): Remove.
320 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
321 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
322
323 2013-09-25 Tom Tromey <tromey@redhat.com>
324
325 * Make-lang.in (gospec.o): Don't use subshell.
326
327 2013-08-28 Ian Lance Taylor <iant@google.com>
328
329 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
330 the struct is not hidden.
331 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
332
333 2013-08-06 Ian Lance Taylor <iant@google.com>
334
335 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
336 compute_reloc_for_constant.
337
338 2013-08-02 Ian Lance Taylor <iant@google.com>
339
340 * go-gcc.cc (immutable_struct_set_init): Always call
341 resolve_unique_section.
342
343 2013-07-24 Ian Lance Taylor <iant@google.com>
344
345 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
346 fields, recreate those fields with the first one with a non-zero
347 size.
348
349 2013-07-23 Ian Lance Taylor <iant@google.com>
350
351 * go-backend.c: Don't #include "rtl.h".
352 (go_imported_unsafe): Don't call init_varasm_once.
353 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
354
355 2013-07-23 Ian Lance Taylor <iant@google.com>
356
357 * go-lang.c: Don't #include "except.h".
358 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
359
360 2013-06-18 Ian Lance Taylor <iant@google.com>
361
362 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
363 parameter.
364 (Gcc_backend::immutable_struct_set_init): Likewise.
365
366 2013-05-16 Jason Merrill <jason@redhat.com>
367
368 * Make-lang.in (go1$(exeext)): Use link mutex.
369
370 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
371
372 * gospec.c: pass -u pthread_create to linker when static linking.
373
374 2012-12-21 Ian Lance Taylor <iant@google.com>
375
376 PR bootstrap/54659
377 * go-system.h: Don't include <cstdio>.
378
379 2012-12-18 Ian Lance Taylor <iant@google.com>
380
381 PR go/55201
382 * gospec.c: Revert last patch.
383
384 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
385
386 PR go/55201
387 * gospec.c (LIBATOMIC): Define.
388 (LIBATOMIC_PROFILE): Define.
389 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
390
391 2012-11-29 Ian Lance Taylor <iant@google.com>
392
393 * go-gcc.cc: Include "output.h".
394 (global_variable): Add is_unique_section parameter.
395 (global_variable_set_init): Adjust unique section if necessary.
396 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
397
398 2012-11-17 Diego Novillo <dnovillo@google.com>
399
400 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
401
402 * go-lang.c: Use new vec API in vec.h.
403
404 2012-11-16 Ian Lance Taylor <iant@google.com>
405
406 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
407 (go1$(exeext)): Likewise.
408
409 2012-10-30 Ian Lance Taylor <iant@google.com>
410
411 * lang.opt (-fgo-relative-import-path): New option.
412 * go-lang.c (go_relative_import_path): New static variable.
413 (go_langhook_init): Pass go_relative_import_path to
414 go_create_gogo.
415 (go_langhook_handle_option): Handle -fgo-relative-import-path.
416 * go-c.h (go_create_gogo): Update declaration.
417 * gccgo.texi (Invoking gccgo): Document
418 -fgo-relative-import-path.
419
420 2012-09-17 Ian Lance Taylor <iant@google.com>
421
422 * config-lang.in (target_libs): Add target-libbacktrace.
423
424 2012-09-16 Ian Lance Taylor <iant@google.com>
425
426 * Make-lang.in (go/gogo.o): Depend on filenames.h.
427
428 2012-08-14 Diego Novillo <dnovillo@google.com>
429
430 Merge from cxx-conversion branch. Configury.
431
432 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
433 * go-gcc.cc: Likewise.
434 * go-system.h: Likewise.
435
436 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
437
438 * go-lang.c (lang_decl): Add variable_size GTY option.
439
440 2012-05-09 Ian Lance Taylor <iant@google.com>
441
442 * lang.opt: Add -fgo-pkgpath.
443 * go-lang.c (go_pkgpath): New static variable.
444 (go_prefix): New static variable.
445 (go_langhook_init): Pass go_pkgpath and go_prefix to
446 go_create_gogo.
447 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
448 -fgo-prefix handling to just set go_prefix.
449 * go-c.h (go_set_prefix): Don't declare.
450 (go_create_gogo): Add pkgpath and prefix to declaration.
451 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
452 to pkgpath. Don't include the package name in the asm name.
453 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
454 docs for -fgo-prefix.
455
456 2012-04-23 Ian Lance Taylor <iant@google.com>
457
458 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
459
460 2012-04-20 Ian Lance Taylor <iant@google.com>
461
462 * lang.opt: Add -fgo-check-divide-zero and
463 -fgo-check-divide-overflow.
464 * gccgo.texi (Invoking gccgo): Document new options.
465
466 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
467
468 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
469 with NULL_TREE type instead of void_type_node.
470
471 2012-03-09 Ian Lance Taylor <iant@google.com>
472
473 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
474 to the lhs type if necessary.
475
476 2012-03-08 Ian Lance Taylor <iant@google.com>
477
478 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
479 zero-sized variable.
480 (go_non_zero_struct): New global variable.
481 (Gcc_backend::non_zero_size_type): New function.
482 (Gcc_backend::global_variable): Don't build an assignment for a
483 zero-sized value.
484 * go-c.h (go_non_zero_struct): Declare.
485 * config-lang.in (gtfiles): Add go-c.h.
486
487 2012-02-29 Ian Lance Taylor <iant@google.com>
488
489 * go-gcc.cc (class Gcc_tree): Add set_tree method.
490 (set_placeholder_pointer_type): When setting to a pointer to
491 error, set to error_mark_node.
492
493 2012-02-23 Richard Guenther <rguenther@suse.de>
494
495 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
496 build_distinct_type_copy.
497
498 2012-02-17 Ian Lance Taylor <iant@google.com>
499
500 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
501
502 2012-02-17 Ian Lance Taylor <iant@google.com>
503
504 * gospec.c (lang_specific_driver): If linking, and no -o option
505 was used, add one.
506
507 2012-02-14 Ian Lance Taylor <iant@google.com>
508
509 PR go/48411
510 * Make-lang.in (gccgo-cross$(exeext)): New target.
511 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
512 gccgo$(exeext).
513 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
514 gccgo-cross$(exeext) does not exist.
515
516 2012-02-07 Ian Lance Taylor <iant@google.com>
517
518 * gccgo.texi (Function Names): Document //extern instead of
519 __asm__.
520
521 2012-02-01 Jakub Jelinek <jakub@redhat.com>
522
523 PR target/52079
524 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
525 return build_nonstandard_integer_type result if possible.
526
527 2012-01-21 Ian Lance Taylor <iant@google.com>
528
529 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
530 (Gcc_backend::type_alignment): Likewise.
531 (Gcc_backend::type_field_alignment): Likewise.
532 (Gcc_backend::type_field_offset): Likewise.
533
534 2012-01-20 Ian Lance Taylor <iant@google.com>
535
536 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
537 be empty.
538 (Gcc_backend::set_placeholder_struct_type): Likewise.
539
540 2012-01-17 Ian Lance Taylor <iant@google.com>
541
542 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
543 BASE.s rather than -o BASE.o.
544
545 2012-01-11 Ian Lance Taylor <iant@google.com>
546
547 * go-lang.c (go_langhook_init): Initialize void_list_node before
548 calling go_create_gogo.
549
550 2012-01-10 Ian Lance Taylor <iant@google.com>
551
552 * go-gcc.cc (Gcc_backend::type_size): New function.
553 (Gcc_backend::type_alignment): New function.
554 (Gcc_backend::type_field_alignment): New function.
555 (Gcc_backend::type_field_offset): New function.
556 * go-backend.c (go_type_alignment): Remove.
557 * go-c.h (go_type_alignment): Don't declare.
558
559 2011-12-27 Ian Lance Taylor <iant@google.com>
560
561 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
562 build_distinct_type_copy rather than build_variant_type_copy.
563 (Gcc_backend::set_placeholder_array_type): Likewise.
564 (Gcc_backend::named_type): Add special handling for builtin
565 basic types.
566
567 2011-12-22 Ian Lance Taylor <iant@google.com>
568
569 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
570 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
571 (Gcc_backend::set_placeholder_struct_type): Likewise.
572 (Gcc_backend::set_placeholder_array_type): Likewise.
573 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
574
575 2011-12-13 Ian Lance Taylor <iant@google.com>
576
577 * go-backend.c: #include "simple-object.h" and "intl.h".
578 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
579 (GO_EXPORT_SECTION_NAME): Likewise.
580 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
581 (go_read_export_data): New function.
582 * go-c.h (go_read_export_data): Declare.
583
584 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
585 Ian Lance Taylor <iant@google.com>
586
587 * go-location.h: New file.
588 * go-linemap.cc: New file.
589 * go-gcc.cc: Change all uses of source_location to Location.
590 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
591 (GO_LINEMAP_H): New variable.
592 (GO_LEX_H): Use $(GO_LINEMAP_H).
593 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
594 (go/go-linemap.o): New target.
595
596 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
597
598 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
599
600 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
601
602 * lang.opt: Add fgo-optimize-.
603 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
604 * go-c.h (go_enable_optimize): Declare.
605 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
606 (GO_EXPORT_H): Define.
607 (GO_IMPORT_H): Add $(GO_EXPORT_H).
608 (GO_AST_DUMP_H): Define.
609 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
610 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
611 (go/types.o): Likewise.
612 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
613 (go/go-optimize.o): New target.
614
615 2011-08-24 Joseph Myers <joseph@codesourcery.com>
616
617 * Make-lang.in (CFLAGS-go/go-lang.o): New.
618 (go/go-lang.o): Remove explicit compilation rule.
619
620 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
621
622 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
623
624 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
625
626 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
627 (go/ast-dump.o): New target.
628 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
629 (go/statements.o): Likewise.
630
631 2011-07-06 Richard Guenther <rguenther@suse.de>
632
633 * go-lang.c (go_langhook_init):
634 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
635
636 2011-06-14 Joseph Myers <joseph@codesourcery.com>
637
638 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
639 dependencies.
640 * go-backend.c: Include common/common-target.h.
641 (go_write_export_data): Use targetm_common.have_named_sections.
642 * go-lang.c: Include common/common-target.h.
643 (go_langhook_init_options_struct): Use
644 targetm_common.supports_split_stack.
645
646 2011-06-13 Ian Lance Taylor <iant@google.com>
647
648 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
649
650 2011-06-10 Ian Lance Taylor <iant@google.com>
651
652 * go-gcc.cc: Include "toplev.h".
653 (Gcc_backend::immutable_struct): New function.
654 (Gcc_backend::immutable_struct_set_init): New function.
655 (Gcc_backend::immutable_struct_reference): New function.
656 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
657
658 2011-06-09 Ian Lance Taylor <iant@google.com>
659
660 * go-gcc.cc (Gcc_backend::zero_expression): New function.
661
662 2011-06-07 Richard Guenther <rguenther@suse.de>
663
664 * go-lang.c (go_langhook_init): Do not set
665 size_type_node or call set_sizetype.
666
667 2011-05-27 Ian Lance Taylor <iant@google.com>
668
669 * go-backend.c: Include "output.h".
670 (go_write_export_data): New function.
671 * go-c.h (go_write_export_data): Declare.
672 * Make-lang.in (go/go-backend.o): Depend on output.h.
673 (go/export.o): Depend on $(GO_C_H). Do not depend on
674 $(MACHMODE_H), output.h, or $(TARGET_H).
675
676 2011-05-24 Joseph Myers <joseph@codesourcery.com>
677
678 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
679 (gccgo$(exeext)): Use libcommon-target.a.
680
681 2011-05-20 Joseph Myers <joseph@codesourcery.com>
682
683 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
684
685 2011-05-13 Ian Lance Taylor <iant@google.com>
686
687 * go-gcc.cc (Gcc_backend::function_type): When building a struct
688 for multiple results, check that all fields types have a size.
689 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
690
691 2011-05-12 Ian Lance Taylor <iant@google.com>
692
693 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
694 parameter.
695 (Gcc_backend::parameter_variable): Likewise.
696
697 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
698
699 * go-lang.c (global_bindings_p): Return bool and simplify.
700
701 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
702
703 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
704
705 2011-05-04 Ian Lance Taylor <iant@google.com>
706
707 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
708 (Gcc_backend::fill_in_struct): New function.
709 (Gcc_backend::array_type): Implement.
710 (Gcc_backend::fill_in_array): New function.
711 (Gcc_backend::placeholder_pointer_type): New function.
712 (Gcc_backend::set_placeholder_pointer_type): New function.
713 (Gcc_backend::set_placeholder_function_type): New function.
714 (Gcc_backend::placeholder_struct_type): New function.
715 (Gcc_backend::set_placeholder_struct_type): New function.
716 (Gcc_backend::placeholder_array_type): New function.
717 (Gcc_backend::set_placeholder_array_type): New function.
718 (Gcc_backend::named_type): New function.
719 (Gcc_backend::circular_pointer_type): New function.
720 (Gcc_backend::is_circular_pointer_type): New function.
721
722 2011-04-26 Ian Lance Taylor <iant@google.com>
723
724 * go-gcc.cc (Gcc_backend::struct_type): Implement.
725
726 2011-04-25 Ian Lance Taylor <iant@google.com>
727
728 * go-gcc.cc (Gcc_backend::error_type): Implement.
729 (Gcc_backend::string_type): Remove.
730 (Gcc_backend::function_type): Change signature and implement.
731 (Gcc_backend::struct_type): Change signature.
732 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
733 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
734 (Gcc_backend::pointer_type): Check for error.
735 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
736
737 2011-04-25 Evan Shaw <edsrzf@gmail.com>
738
739 * go-gcc.c (class Gcc_tree): Make get_tree const.
740 (Gcc_backend::void_type): Implement.
741 (Gcc_backend::bool_type): Implement.
742 (Gcc_backend::integer_type): Implement.
743 (Gcc_backend::float_type): Implement.
744 (Gcc_backend::complex_type): New function.
745 (Gcc_backend::pointer_type): New function.
746 (Gcc_backend::make_type): New function.
747 (type_to_tree): New function.
748
749 2011-04-21 Ian Lance Taylor <iant@google.com>
750
751 * go-system.h (go_assert, go_unreachable): Define.
752
753 2011-04-19 Ian Lance Taylor <iant@google.com>
754
755 * go-system.h: Include "intl.h".
756 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
757 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
758 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
759
760 2011-04-19 Ian Lance Taylor <iant@google.com>
761
762 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
763
764 2011-04-19 Ian Lance Taylor <iant@google.com>
765
766 * go-gcc.cc (class Bblock): Define.
767 (Gcc_backend::if_statement): Change then_block and else_block to
768 Bblock*.
769 (Gcc_backend::block): New function.
770 (Gcc_backend::block_add_statements): New function.
771 (Gcc_backend::block_statement): New function.
772 (tree_to_block, block_to_tree): New functions.
773
774 2011-04-18 Ian Lance Taylor <iant@google.com>
775
776 * go-gcc.cc: Include "go-c.h".
777 (class Bvariable): Define.
778 (Gcc_backend::init_statement): New function.
779 (Gcc_backend::global_variable): New function.
780 (Gcc_backend::global_variable_set_init): New function.
781 (Gcc_backend::local_variable): New function.
782 (Gcc_backend::parameter_variable): New function.
783 (tree_to_type, var_to_tree): New functions.
784 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
785 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
786
787 2011-04-15 Ian Lance Taylor <iant@google.com>
788
789 * go-gcc.cc (Gcc_backend::compound_statement): New function.
790 (Gcc_backend::assignment_statement): Use error_statement.
791 (Gcc_backend::return_statement): Likewise.
792 (Gcc_backend::if_statement): Likewise.
793 (Gcc_backend::switch_statement): Likewise.
794 (Gcc_backend::statement_list): Likewise.
795
796 2011-04-14 Ian Lance Taylor <iant@google.com>
797
798 * go-gcc.cc (Gcc_backend::error_statement): New function.
799
800 2011-04-13 Ian Lance Taylor <iant@google.com>
801
802 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
803
804 2011-04-13 Ian Lance Taylor <iant@google.com>
805
806 * Make-lang.in (GO_OBJS): Add go/runtime.o.
807 (GO_RUNTIME_H): New variable.
808 (go/runtime.o): New target.
809 (go/gogo.o): Depend on $(GO_RUNTIME_H).
810 (go/statements.o): Likewise.
811
812 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
813
814 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
815 calling TREE_CHAIN.
816
817 2011-04-06 Ian Lance Taylor <iant@google.com>
818
819 * go-gcc.cc (if_statement): Use build3_loc.
820 (Gcc_backend::switch_statement): New function.
821 (Gcc_backend::statement_list): New function.
822
823 2011-04-06 Ian Lance Taylor <iant@google.com>
824
825 * go-gcc.cc (Gcc_backend::if_statement): New function.
826 (tree_to_stat): New function.
827 (expr_to_tree): Renamed from expression_to_tree.
828 (stat_to_tree): Renamed from statement_to_tree.
829
830 2011-04-06 Ian Lance Taylor <iant@google.com>
831
832 * go-gcc.cc (Gcc_backend::expression_statement): New function.
833
834 2011-04-04 Ian Lance Taylor <iant@google.com>
835
836 * go-gcc.c (class Blabel): Define.
837 (Gcc_backend::make_expression): New function.
838 (get_identifier_from_string): New function.
839 (Gcc_backend::label): New function.
840 (Gcc_backend::label_definition_statement): New function.
841 (Gcc_backend::goto_statement): New function.
842 (Gcc_backend::label_address): New function.
843 (expression_to_tree): New function.
844 * Make-lang.in (go/expressions.o): Depend on
845 go/gofrontend/backend.h.
846 (go/gogo.o): Likewise.
847
848 2011-04-04 Ian Lance Taylor <iant@google.com>
849
850 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
851 (class Bfunction): Define.
852 (Gcc_backend::assignment_statement): Rename from assignment.
853 Check for errors.
854 (Gcc_backend::return_statement): New function.
855 (tree_to_function): New function.
856 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
857 $(GIMPLE_H), and $(GO_GOGO_H).
858
859 2011-04-03 Ian Lance Taylor <iant@google.com>
860
861 * go-gcc.cc: New file.
862 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
863 (go/go-gcc.o): New target.
864 (go/go.o): Depend on go/gofrontend/backend.h.
865 (go/statements.o): Likewise.
866
867 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
868
869 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
870
871 2011-02-08 Ian Lance Taylor <iant@google.com>
872
873 * go-lang.c (go_langhook_init_options_struct): Set
874 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
875
876 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
877
878 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
879 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
880
881 2011-01-21 Ian Lance Taylor <iant@google.com>
882
883 * go-lang.c (go_langhook_init): Omit float_type_size when calling
884 go_create_gogo.
885 * go-c.h: Update declaration of go_create_gogo.
886
887 2011-01-13 Ian Lance Taylor <iant@google.com>
888
889 * go-backend.c: Include "rtl.h" and "target.h".
890 (go_imported_unsafe): New function.
891 * go-c.h (go_imported_unsafe): Declare.
892 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
893 (go/gogo-tree.o): Remove dependency on $(RTL_H).
894 (go/unsafe.o): Depend on $(GO_C_H).
895
896 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
897
898 PR go/47113
899 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
900 variable ‘field’ .
901
902 2010-12-21 Ian Lance Taylor <iant@google.com>
903
904 * Make-lang.in (check-go): Remove.
905 (lang_checks_parallelized): Add check-go.
906 (check_go_parallelize): Set.
907
908 2010-12-13 Ian Lance Taylor <iant@google.com>
909
910 * gospec.c (lang_specific_driver): Add a -o option if not linking
911 and there is no -o option already.
912
913 2010-12-07 Ian Lance Taylor <iant@google.com>
914
915 PR tree-optimization/46805
916 PR tree-optimization/46833
917 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
918
919 2010-12-06 Ian Lance Taylor <iant@google.com>
920
921 PR other/46789
922 PR bootstrap/46812
923 * go-lang.c (go_char_p): Define type and vectors.
924 (go_search_dirs): New static variable.
925 (go_langhook_handle_option): Use version and version/machine
926 directories for -L.
927 (go_langhook_post_options): Add non-specific -L paths.
928 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
929 DEFAULT_TARGET_MACHINE when compiling.
930 * gccgo.texi (Invoking gccgo): Only document -L for linking.
931 (Import and Export): Don't mention -L for finding import files.
932
933 2010-12-03 Ian Lance Taylor <iant@google.com>
934
935 PR bootstrap/46776
936 * go-backend.c: New file.
937 * go-c.h (go_type_alignment): Declare.
938 (go_field_alignment, go_trampoline_info): Declare.
939 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
940 (go/go-backend.o): New target.
941 (go/go-lang.o): Make dependencies match source file.
942 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
943 (go/gogo-tree.o): Don't depend on $(TM_H).
944
945 2010-12-03 Ian Lance Taylor <iant@google.com>
946
947 * config-lang.in (build_by_default): Set to no.
948
949 2010-12-02 Ian Lance Taylor <iant@google.com>
950
951 Go frontend added to gcc repository.
952 \f
953 Copyright (C) 2010-2014 Free Software Foundation, Inc.
954
955 Copying and distribution of this file, with or without modification,
956 are permitted in any medium without royalty provided the copyright
957 notice and this notice are preserved.