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