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