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