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