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