]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/go/ChangeLog
gcc.c (process_command): Update copyright notice dates.
[thirdparty/gcc.git] / gcc / go / ChangeLog
CommitLineData
c1a9c369
JJ
12017-01-01 Jakub Jelinek <jakub@redhat.com>
2
3 * gccgo.texi: Bump @copyrights-go year.
4
8220e3f9
TM
52016-12-16 Than McIntosh <thanm@google.com>
6
7 * go-gcc.cc (Gcc_backend::expression_statement): Add Bfunction*
8 parameter.
9 (Gcc_backend::init_statement): Likewise.
10 (Gcc_backend::assignment_statement): Likewise.
11 (Gcc_backend::if_statement): Likewise.
12
a5a56d88
TM
132016-12-06 Than McIntosh <thanm@google.com>
14
15 * go-gcc.cc (Gcc_backend::var_expression): Add Varexpr_context
16 parameter.
17
f3878205
TM
182016-11-22 Than McIntosh <thanm@google.com>
19
20 * go-gcc.cc (char_needs_encoding): Remove.
21 (needs_encoding, fetch_utf8_char, encode_id): Remove.
22 (Gcc_backend::global_variable): Add asm_name parameter. Don't
23 compute asm_name here.
24 (Gcc_backend::implicit_variable): Likewise.
25 (Gcc_backend::implicit_variable_reference): Likewise.
26 (Gcc_backend::immutable_struct): Likewise.
27 (Gcc_backend::immutable_struct_reference): Likewise.
28 * Make-lang.in (GO_OBJS): Add go/go-encode-id.o.
29
9d1e3afb
ILT
302016-11-22 Ian Lance Taylor <iant@google.com>
31
32 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin function
33 __builtin_frame_address.
34
4b3aaca6
DM
352016-10-25 David Malcolm <dmalcolm@redhat.com>
36
37 * go-lang.c (go_langhook_type_for_mode): Remove redundant cast
38 from result of GET_MODE_CLASS. Minor formatting fixes.
39
4d0cdd0c
TP
402016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
41
42 * go-backend.c: Include memmodel.h.
43
3c061ac0
TM
442016-10-10 Than McIntosh <thanm@google.com>
45
46 * go-gcc.h: New file.
47 * go-c.h (struct go_create_gogo_args): Add backend and linemap
48 fields.
49 * go-lang.c: Include "go-gcc.h".
50 (go_langhook_init): Set linemap and backend fields of args.
51 * go-gcc.cc: Include "go-gcc.h".
52 * go-linemap.cc: Include "go-gcc.h".
53
71543388
TM
542016-10-10 Than McIntosh <thanm@google.com>
55
56 * go-linemap.cc (Gcc_linemap::location_line): New method.
57
f47ef399
EB
582016-10-10 Eric Botcazou <ebotcazou@adacore.com>
59
60 * config-lang.in (lang_requires_boot_languages): Delete.
61
4c4430e3
CM
622016-10-06 Chris Manghane <cmang@google.com>
63
64 * go-gcc.cc (Gcc_backend::stack_allocation_expression): Clear the
65 returned memory.
66
437018ea
TM
672016-09-27 Than McIntosh <thanm@google.com>
68
69 * go-linemap.cc (Gcc_linemap::to_string): New method.
70
56bafc49
TM
712016-09-23 Than McIntosh <thanm@google.com>
72
73 * go-gcc-diagnostics.cc: New file.
74 * go-location.h (Location): Remove operator source_location. Add
75 operator==.
76 * go-system.h: #include <sstream>.
77 * Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
78 go/go-gcc-diagnostics.o.
79 (CFLAGS-go/go-gcc-diagnostics.o): New variable.
80
fdbda43d
CM
812016-09-23 Chris Manghane <cmang@google.com>
82
83 PR go/77701
84 * go-gcc.cc (Gcc_backend::Gcc_backend): Fix calls to integer_type
85 to pass arguments in the correct order.
86
0cb904af
ILT
872016-09-22 Ian Lance Taylor <iant@golang.org>
88
89 * go-gcc.cc (Gcc_backend::Gcc_backend): Declare
90 __builtin_frame_address.
91
a8464243
ILT
922016-09-11 Ian Lance Taylor <iant@golang.org>
93
94 * go-gcc.cc (Gcc_backend::Gcc_backend): Add builtin versions of
95 ctz, ctzll, bswap32, bswap64.
96
ec1ea9cf
ILT
972016-09-10 Ian Lance Taylor <iant@golang.org>
98
99 * go-backend.c (go_trampoline_info): Remove.
100 * go-c.h (go_trampoline_info): Don't declare.
101
34144b6e
TM
1022016-09-09 Than McIntosh <thanm@google.com>
103
104 * go-sha1.cc: New file.
105 * Make-lang.in (GO_OBJS): Add go/go-sha1.o.
106 (CFLAGS-go/go-sha1.o): New variable.
107
2adb671d
ILT
1082016-08-29 Ian Lance Taylor <iant@google.com>
109
110 * lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
111 * go-c.h (struct go_create_gogo_args): Define.
112 (go_create_gogo): Change declaration to take struct pointer.
113 * go-lang.c (go_c_header): New static variable.
114 (go_langhook_init): Update call to go_create_gogo.
115 * gccgo.texi (Invoking gccgo): Document -fgo-c-header and
116 -fgo-compiling-runtime.
117
6bbd9810
ILT
1182016-08-09 Ian Lance Taylor <iant@google.com>
119
120 * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and
121 -fgo-debug-escae.
122 (Compiler Directives): New chapter.
123 (Function Names): Describe using //go:linkname. Suggest using
124 -fgo-pkgpath rather than -fgo-prefix.
125
f432d128
ILT
1262016-08-08 Ian Lance Taylor <iant@google.com>
127
128 PR go/72814
129 * go-gcc.cc (Gcc_backend::function_type): If the return type is
130 zero bytes, treat the function as returning void.
131 (return_statement): If the return type is zero bytes, don't
132 actually return any values.
133
9dcd84ec
ILT
1342016-08-05 Ian Lance Taylor <iant@google.com>
135
136 PR go/72812
137 * go-gcc.cc (char_needs_encoding): New static function.
138 (needs_encoding, fetch_utf8_char): New static functions.
139 (encode_id): New static function.
140 (Gcc_backend::global_variable): Set asm name if the name is not
141 simple ASCII.
142 (Gcc_backend::implicit_variable): Likewise.
143 (Gcc_backend::implicit_variable_reference): Likewise.
144 (Gcc_backend::immutable_struct): Likewise.
145 (Gcc_backend::immutable_struct_reference): Likewise.
146 (Gcc_backend::function): Likewise.
147
7295570d
CM
1482016-08-02 Chris Manghane <cmang@google.com>
149
150 * lang.opt: Add -fgo-debug-escape option.
151 * go-c.h (go_create_gogo): Add debug_escape_level parameter.
152 * go-lang.c (go_langhook_init): Pass go_debug_escape_level to
153 go_create_gogo.
154
2a30f87f
CM
1552016-05-06 Chris Manghane <cmang@google.com>
156
157 * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely
158 new escape.cc).
159
e49aacaf
CM
1602016-04-29 Chris Manghane <cmang@google.com>
161
162 * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o.
163
fe37c7af
MM
1642016-04-18 Michael Matz <matz@suse.de>
165
166 * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN.
167
9c582551
JJ
1682016-02-12 Jakub Jelinek <jakub@redhat.com>
169
170 * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and
171 neighbour -> neighbor.
172 * gccgo.texi: Likewise.
173
ede67376
ILT
1742016-01-27 Ian Lance Taylor <iant@google.com>
175
176 * go-lang.c (go_langhook_init_options_struct): Default to
177 -fkeep-gc-roots-live.
178
21fa2a29
JJ
1792016-01-04 Jakub Jelinek <jakub@redhat.com>
180
818ab71a
JJ
181 Update copyright years.
182
21fa2a29
JJ
183 * gccgo.texi: Bump @copyrights-go year.
184
399f5feb
ILT
1852015-12-21 Ian Lance Taylor <iant@google.com>
186
187 * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add
188 t_ and orig_type_ fields. Add new two parameter constructor. Add
189 get_tree and get_decl methods.
190 (Gcc_backend::var_expression): Pass location to var get_tree.
191 (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use
192 two parameter constructor for Bvariable.
193 (Gcc_backend::global_variable_set_init): Don't remove
194 VIEW_CONVERT_EXPR. Use var get_decl, not get_tree.
195 (Gcc_backend::write_global_definitions): Likewise.
196 (Gcc_backend::init_statement): Call var get_decl, not get_tree.
197 (Gcc_backend::block): Likewise.
198 (Gcc_backend::implicit_variable_set_init): Likewise.
199 (Gcc_backend::immutable_struct_set_init): Likewise.
200 (Gcc_backend::function_set_parameters): Likewise.
201
8fd41e92
ILT
2022015-12-21 Ian Lance Taylor <iant@google.com>
203
204 * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
205 add a VIEW_CONVERT_EXPR to the tree.
206 (Gcc_backend::global_variable_set_init): Remove any
207 VIEW_CONVERT_EXPR.
208 (Gcc_backend::write_global_definitions): Likewise.
209
6ea98dee
ILT
2102015-11-30 Ian Lance Taylor <iant@google.com>
211
212 PR go/68477
213 * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
214 TYPE_STRING_FLAG on a variant type.
215
69f293c9
AM
2162015-11-11 Andrew MacLeod <amacleod@redhat.com>
217
218 * go-backend.c: Remove unused header files.
219 * go-gcc.cc: Likewise.
220 * go-lang.c: Likewise.
221 * gospec.c: Likewise.
222
2adfab87
AM
2232015-10-29 Andrew MacLeod <amacleod@redhat.com>
224
225 * go-backend.c: Reorder #include's and remove duplicates.
226 * go-lang.c: Likewise.
227
b2e4c071
AM
2282015-10-20 Alan Modra <amodra@gmail.com>
229
230 PR go/66870
231 * gospec.c (saw_opt_m32): Rename to..
232 (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT.
233 Update uses.
234 (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32.
235
209919e2
ILT
2362015-10-01 Ian Lance Taylor <iant@google.com>
237
238 PR go/66870
239 * gospec.c (lang_specific_driver): Only look for OPT_m32 if
240 TARGET_CAN_SPLIT_STACK_64BIT is defined.
241
402565b6
LB
2422015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
243
244 PR target/66870
245 * gospec.c (lang_specific_driver): Set appropriate split stack
246 options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT.
247
ec23e5b3
CM
2482015-09-10 Chris Manghane <cmang@google.com>
249
250 * go-gcc.cc (Gcc_backend::type_size): Return -1 for
251 unrepresentable size.
252
2021ff27
MP
2532015-08-24 Marek Polacek <polacek@redhat.com>
254
255 PR tree-optimization/67284
256 * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter.
257 Set TREE_THIS_VOLATILE.
258 (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call.
259 Pass false to the rest of define_builtin calls.
260
cb3306e5
AS
2612015-07-31 Andreas Schwab <schwab@linux-m68k.org>
262
263 * go-lang.c (go_langhook_init_options_struct): Don't set
264 x_flag_split_stack.
265 (go_langhook_post_options): Set it here instead.
266
026c3cfd
AH
2672015-07-12 Aldy Hernandez <aldyh@redhat.com>
268
269 * gofrontend/backend.h: Fix double word typos.
270 * gofrontend/expressions.cc: Same.
271 * gospec.c: Same.
272
c7131fb2
AM
2732015-07-07 Andrew MacLeod <amacleod@redhat.com>
274
275 * go-backend.c: Adjust includes.
276 * go-gcc.cc: Likewise.
277 * go-lang.c: Likewise.
278
f0889939
AM
2792015-06-25 Andrew MacLeod <amacleod@redhat.com>
280
281 * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list.
282
abb226c9
AM
2832015-06-17 Andrew MacLeod <amacleod@redhat.com>
284
285 * go-backend.c: Do not include input.h, line-map.h or is-a.h.
286 * go-gcc.cc: Likewise.
287 * go-lang.c: Likewise.
288 * go-system.h: Likewise.
289
13fdf2e2
AM
2902015-06-08 Andrew MacLeod <amacleod@redhat.com>
291
292 * go-backend.c : Adjust include files.
293 * go-gcc.cc : Likewise.
294 * go-lang.c : Likewise.
295
d7438551
AH
2962015-06-05 Aldy Hernandez <aldyh@redhat.com>
297
298 * go-gcc.cc (write_global_definitions): Remove call to
299 finalize_compilation_unit.
300 Remove Go specific debug generation.
301 * go-lang.c (go_langhook_parse_file): Call go_write_globals.
302 (go_langhook_write_globals): Remove.
303 Remove LANG_HOOKS_WRITE_GLOBALS everywhere.
304
ecb9f223
AM
3052015-06-04 Andrew MacLeod <amacleod@redhat.com>
306
307 * go-backend.c: Adjust includes for restructured coretypes.h.
308 * go-c.h: Likewise.
309 * go-gcc.cc: Likewise.
310 * go-lang.c: Likewise.
311
4f576c83
CM
3122015-04-30 Chris Manghane <cmang@google.com>
313
314 * go-gcc.cc (Gcc_backend::stack_allocation_expression): New
315 method.
316
46bf0b0a
JW
3172015-04-27 Jim Wilson <jim.wilson@linaro.org>
318
319 * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
320
b496063d
CM
3212015-04-17 Chris Manghane <cmang@google.com>
322
323 * Make-lang.in (GO_OBJS): Add go/escape.o.
324
18fbd1ec
ILT
3252015-02-02 Ian Lance Taylor <iant@google.com>
326
327 PR go/64836
328 PR go/64838
329 * go-gcc.cc (Gcc_backend::type_size): Change return type to
330 int64_t.
331 (Gcc_backend::type_alignment): Likewise.
332 (Gcc_backend::type_field_alignment): Likewise.
333 (Gcc_backend::type_field_offset): Likewise.
334 (Gcc_backend::implicit_variable): Change alignment parameter type
335 to int64_t.
336
1aaecd3b
ILT
3372015-01-23 Ian Lance Taylor <iant@google.com>
338
339 PR go/63565
340 * gccgo.texi (Invoking gccgo): Mention that Go programs should not
341 be stripped.
342
343 * gccgo.texi (C Interoperability): Mention that people should use
344 cgo.
345
818424b2
ILT
3462015-01-23 Ian Lance Taylor <iant@google.com>
347
348 PR go/64595
349 * go-lang.c (go_langhook_init_options_struct): Set default
350 debug_info_level.
351 (go_langhook_post_options): If debug_info_level is still the
352 default, make sure write_symbols is set.
353 * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
354
38bf819a
RH
3552015-01-16 Richard Henderson <rth@redhat.com>
356
357 * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
358 (Gcc_backend::static_chain_variable): New method.
359
bf1de3f0
ILT
3602015-01-09 Ian Lance Taylor <iant@google.com>
361
362 * config-lang.in (lang_dirs): Define.
363
adfac8df
JJ
3642015-01-09 Michael Collison <michael.collison@linaro.org>
365
366 * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
367 input.h, alias.h, symtab.h, options.h, fold-const.h,
368 wide-int.h, and inchash.h due to flattening of tree.h.
369 * go-lang.c: Ditto.
370 * go-backend.c: Ditto.
371
dd373780
CM
3722015-01-07 Chris Manghane <cmang@google.com>
373
374 PR go/61204
375 * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
376 zero-sized variable.
377
861393ac
CM
3782015-01-06 Chris Manghane <cmang@google.com>
379
dd373780
CM
380 * go-gcc.cc (Gcc_backend::constructor_expression): Don't
381 initialize zero-sized fields, just evaluate the values for side
382 effects.
861393ac 383
b67cd4e3
JJ
3842015-01-05 Jakub Jelinek <jakub@redhat.com>
385
5624e564
JJ
386 Update copyright years.
387
b67cd4e3
JJ
388 * gccgo.texi: Bump @copyrights-go year.
389
943cf9cf
CM
3902014-12-19 Chris Manghane <cmang@google.com>
391
dd373780
CM
392 * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
393 construct arrays of zero-sized values.
943cf9cf 394
ef4bddc2
RS
3952014-10-29 Richard Sandiford <richard.sandiford@arm.com>
396
397 * go-lang.c: Remove redundant enum from machine_mode.
398
c582198b
AM
3992014-10-28 Andrew MacLeod <amacleod@redhat.com>
400
401 * go-gcc.cc: Adjust include files.
402
60393bbc
AM
4032014-10-27 Andrew MacLeod <amacleod@redhat.com>
404
405 * go-gcc.cc: Adjust include files.
406 * go-lang.c: Ditto.
407
5eda5bad
ILT
4082014-10-23 Ian Lance Taylor <iant@google.com>
409
410 * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
411 mpc_t parameter instead of two mpfr_t parameters.
412
717c4789
JJ
4132014-09-15 Jakub Jelinek <jakub@redhat.com>
414
415 * Make-lang.in (check_go_parallelize): Change to just an upper bound
416 number.
417
f1d2ac4f
CM
4182014-09-03 Chris Manghane <cmang@google.com>
419
420 * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
421 parameter. Add is_hidden parameter.
422 (Gcc_backend::implicit_variable_set_init): New method.
423 (Gcc_backend::implicit_variable_reference): New method.
424
ff09769f
ILT
4252014-08-08 Ian Lance Taylor <iant@google.com>
426
427 * go-gcc.cc (Gcc_backend::compound_statement): Don't return
428 NULL_TREE.
429
0ffc395f
UB
4302014-07-24 Uros Bizjak <ubizjak@gmail.com>
431
432 * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
433 symtab_get_node to symtab_node::get.
434
bbeaf05d
ILT
4352014-06-13 Ian Lance Taylor <iant@google.com>
436
437 PR go/61496
438 * gospec.c (lang_specific_driver): On Solaris, when not using GNU
439 ld, add -t option to avoid warning about common symbol changing
440 size.
441
e257a17c
JH
4422014-06-10 Jan Hubicka <hubicka@ucw.cz>
443
0ffc395f 444 * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
e257a17c
JH
445 symtab_get_node(var_decl)->implicit_section.
446
24d047a3
JH
4472014-06-07 Jan Hubicka <hubicka@ucw.cz>
448
449 * go-gcc.cc (global_variable_set_init): Use
450 set_decl_section_name.
451
bae90c98
ILT
4522014-06-04 Ian Lance Taylor <iant@google.com>
453
454 * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
455 alignment parameters. Permit init parameter to be NULL.
456
9b2b7279
AM
4572014-06-02 Andrew MacLeod <amacleod@redhat.com>
458
459 * go-gcc.cc: Include builtins.h.
460
766090c2
TS
4612014-05-17 Trevor Saunders <tsaunders@mozilla.com>
462
463 * go-lang.c (struct GTY): Don't use variable_size gty attribute.
464
6f7e0b57
CM
4652014-05-06 Chris Manghane <cmang@google.com>
466
467 * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
468 (Gcc_backend::boolean_constant_expression): New method.
469 (Gcc_backend::zero_expression): Use this->make_expression rather
470 than tree_to_expr.
471 (Gcc_backend::var_expression): Likewise.
472 (Gcc_backend::integer_constant_expression): Likewise.
473 (Gcc_backend::float_constant_expression): Likewise.
474 (Gcc_backend::complex_constant_expression): Likewise.
475 (Gcc_backend::struct_field_expression): Likewise.
476 (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
477 (tree_to_function, tree_to_block): Remove functions.
478 (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
479 (block_to_tree, var_to_tree, function_to_tree): Remove functions.
480
1d60af08
KZ
4812014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
482 Mike Stump <mikestump@comcast.net>
483 Richard Sandiford <rdsandiford@googlemail.com>
484
485 * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
486
6122336c
CM
4872014-05-06 Chris Manghane <cmang@google.com>
488
489 * go-c.h (go_create_gogo): Update declaration to add
490 check_divide_zero and check_divide_overflow parameters.
491 * go-lang.c (go_langhook_init): Pass new arguments to
492 go_create_gogo.
493
fb930306
CM
4942014-05-05 Chris Manghane <cmang@google.com>
495
496 * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
497 gc_root_variable. Add name and is_constant parameters.
498
3e7b0938
CM
4992014-05-05 Chris Manghane <cmang@google.com>
500
501 * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
502 parameter.
503 (Gcc_backend::temporary_variable): Check for erroneous function.
504
d2d9bc36
CM
5052014-04-30 Chris Manghane <cmang@google.com>
506
507 * go-backend.c: #include "diagnostics.h".
508 (saw_errors): New function.
509 * go-c.h (saw_errors): Declare.
510 * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
511
ad5b68e0
CM
5122014-04-30 Chris Manghane <cmang@google.com>
513
514 * go-lang.c (go_langhook_type_for_size): Do it here, rather than
515 calling into Go frontend.
516 (go_langhook_type_for_mode): Likewise.
517 * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
518
90cbaa29
CM
5192014-04-30 Chris Manghane <cmang@google.com>
520
521 * go-gcc.cc: #include "langhooks.h".
522 (Gcc_backend::Gcc_backend): Add constructor.
523 (Gcc_backend::lookup_function): New function.
524 (Gcc_backend::define_builtin): New private function.
525 (Gcc_backend::gcc_backend): Remove.
526 (go_get_backend): Use new to create new Gcc_backend.
527
036165d8
CM
5282014-04-25 Chris Manghane <cmang@google.com>
529
530 * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
531 (Gcc_backend::return_statement): Push and pop function.
532 (Gcc_backend::label): Likewise.
533 (Gcc_backend::function_defer_statement): Likewise.
534 (Gcc_backend::switch_statement): Add function parameter.
535 (Gcc_backend::block): Don't permit function to be NULL.
536 (Gcc_backend::temporary_variable): Change go_assert to
537 gcc_assert.
538 (Gcc_backend::gc_root_variable): New function.
539 (Gcc_backend::write_global_definitions): New function.
540
aa492920
CM
5412014-04-22 Chris Manghane <cmang@google.com>
542
543 * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
544 call to create_tmp_var. Require that function be non-NULL.
545
e85baec7
CM
5462014-04-17 Chris Manghane <cmang@google.com>
547
548 * go-gcc.cc (Gcc_backend::named_constant_expression): New
549 function.
550
7035307e
CM
5512014-04-14 Chris Manghane <cmang@google.com>
552
553 * go-gcc.cc: Include "convert.h".
554 (Gcc_backend::string_constant_expression): New function.
555 (Gcc_backend::real_part_expression): Likewise.
556 (Gcc_backend::imag_part_expression): Likewise.
557 (Gcc_backend::complex_expression): Likewise.
558 (Gcc_backend::constructor_expression): Likewise.
559 (Gcc_backend::array_constructor_expression): Likewise.
560 (Gcc_backend::pointer_offset_expression): Likewise.
561 (Gcc_backend::array_index_expression): Likewise.
562 (Gcc_backend::call_expression): Likewise.
563 (Gcc_backend::exception_handler_statement): Likewise.
564 (Gcc_backend::function_defer_statement): Likewise.
565 (Gcc_backend::function_set_parameters): Likewise.
566 (Gcc_backend::function_set_body): Likewise.
567 (Gcc_backend::convert_expression): Handle various type
568 conversions.
569
915182a0
ILT
5702014-03-03 Ian Lance Taylor <iant@google.com>
571
572 * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
573 DECL_WEAK.
574 (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
575 DECL_WEAK.
576
8a35e18d
CM
5772014-01-24 Chris Manghane <cmang@google.com>
578
579 * go-gcc.cc (Gcc_backend::unary_expression): New function.
580
b5407ad1
CM
5812014-01-16 Chris Manghane <cmang@google.com>
582
583 * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
584 parameter.
585 (operator_to_tree_code): New static function.
586 (Gcc_backend::binary_expression): New function.
587
eb6eb862
CM
5882014-01-14 Chris Manghane <cmang@google.com>
589
590 * go-gcc.cc (Gcc_backend::compound_expression): New function.
591 (Gcc_backend::conditional_expression): New function.
592
23a5b65a
RS
5932014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
594
595 Update copyright years
596
98db73df 5972014-01-02 Tobias Burnus <burnus@net-b.de>
71eba7a0 598
0ffc0b3b
JJ
599 * gccgo.texi: Bump @copying's copyright year.
600
6012013-12-16 Chris Manghane <cmang@google.com>
602
603 * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
604
6052013-12-11 Ian Lance Taylor <iant@google.com>
606
607 * go-lang.c (go_langhook_post_options): Disable sibling calls by
608 default.
609
6102013-12-10 Ian Lance Taylor <iant@google.com>
611
612 * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
613 separately.
614
6152013-12-05 Ian Lance Taylor <iant@google.com>
616
617 Revert this change; no longer required.
618 2013-11-06 Ian Lance Taylor <iant@google.com>
619
620 * go-lang.c (go_langhook_post_options): If
621 -fisolate-erroneous-paths was turned on by an optimization option,
622 turn it off.
623
6242013-11-23 Ian Lance Taylor <iant@google.com>
625
626 * go-gcc.cc (Gcc_backend::function_type): Add result_struct
627 parameter.
628
6292013-11-22 Andrew MacLeod <amacleod@redhat.com>
630
631 * go-gcc.cc: Add required include files from gimple.h.
632 * go-lang.c: Likewise
633
6342013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
635
636 * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
637 tree_to_shwi throughout.
638
6392013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
640
641 * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
642 tree_fits_shwi_p throughout.
643
6442013-11-14 Andrew MacLeod <amacleod@redhat.com>
645
646 * go-lang.c: Include only gimplify.h and gimple.h as needed.
647
6482013-11-14 Diego Novillo <dnovillo@google.com>
649
650 * go-backend.c: Include stor-layout.h.
651 * go-gcc.cc: Include stringpool.h.
652 Include stor-layout.h.
653 Include varasm.h.
654 * go-lang.c: Include stor-layout.h.
655
6562013-11-12 Andrew MacLeod <amacleod@redhat.com>
657
658 * go-lang.c: Include gimplify.h.
659
6602013-11-06 Ian Lance Taylor <iant@google.com>
661
662 * go-lang.c (go_langhook_post_options): If
663 -fisolate-erroneous-paths was turned on by an optimization option,
664 turn it off.
665
6662013-10-14 Chris Manghane <cmang@google.com>
667
668 * go-gcc.cc (Gcc_backend::address_expression): New function.
669
6702013-10-11 Chris Manghane <cmang@google.com>
671
672 * go-gcc.cc (Gcc_backend::function_code_expression): New
673 function.
674
6752013-10-10 Chris Manghane <cmang@google.com>
676
677 * go-gcc.cc (Gcc_backend::error_function): New function.
678 (Gcc_backend::function): New function.
679 (Gcc_backend::make_function): New function.
680 (function_to_tree): New function.
681
6822013-10-04 Chris Manghane <cmang@google.com>
683
684 * go-gcc.cc (Gcc_backend::convert_expression): New function.
685
6862013-10-02 Chris Manghane <cmang@google.com>
687
688 * go-gcc.cc: Include "real.h" and "realmpfr.h".
689 (Gcc_backend::integer_constant_expression): New function.
690 (Gcc_backend::float_constant_expression): New function.
691 (Gcc_backend::complex_constant_expression): New function.
692
6932013-09-30 Chris Manghane <cmang@google.com>
694
695 * go-gcc.cc (Gcc_backend::error_expression): New function.
696 (Gcc_backend::var_expression): New function.
697 (Gcc_backend::indirect_expression): New function.
698
6992013-09-25 Tom Tromey <tromey@redhat.com>
700
701 * Make-lang.in (gospec.o): Remove.
702 (CFLAGS-go/gospec.o): New variable.
703 (GCCGO_OBJS): Update to use go/gospec.o.
704 (go_OBJS): Define.
705 (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
706 (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
707 (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
708 (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
709 (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
710 (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
711 (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
712 (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
713 (go/unsafe.o): Remove.
714 (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
715 (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
716
7172013-09-25 Tom Tromey <tromey@redhat.com>
718
719 * Make-lang.in (gospec.o): Don't use subshell.
720
7212013-08-28 Ian Lance Taylor <iant@google.com>
722
723 * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
724 the struct is not hidden.
725 (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
726
7272013-08-06 Ian Lance Taylor <iant@google.com>
728
729 * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
730 compute_reloc_for_constant.
731
7322013-08-02 Ian Lance Taylor <iant@google.com>
733
734 * go-gcc.cc (immutable_struct_set_init): Always call
735 resolve_unique_section.
736
7372013-07-24 Ian Lance Taylor <iant@google.com>
738
739 * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
740 fields, recreate those fields with the first one with a non-zero
741 size.
742
7432013-07-23 Ian Lance Taylor <iant@google.com>
744
745 * go-backend.c: Don't #include "rtl.h".
746 (go_imported_unsafe): Don't call init_varasm_once.
747 * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
748
7492013-07-23 Ian Lance Taylor <iant@google.com>
750
751 * go-lang.c: Don't #include "except.h".
752 * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
753
7542013-06-18 Ian Lance Taylor <iant@google.com>
755
756 * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
757 parameter.
758 (Gcc_backend::immutable_struct_set_init): Likewise.
759
7602013-05-16 Jason Merrill <jason@redhat.com>
761
762 * Make-lang.in (go1$(exeext)): Use link mutex.
763
7642013-01-16 Shenghou Ma <minux.ma@gmail.com>
765
766 * gospec.c: pass -u pthread_create to linker when static linking.
767
7682012-12-21 Ian Lance Taylor <iant@google.com>
769
770 PR bootstrap/54659
771 * go-system.h: Don't include <cstdio>.
772
7732012-12-18 Ian Lance Taylor <iant@google.com>
774
775 PR go/55201
776 * gospec.c: Revert last patch.
777
7782012-12-18 Andreas Schwab <schwab@linux-m68k.org>
779
780 PR go/55201
781 * gospec.c (LIBATOMIC): Define.
782 (LIBATOMIC_PROFILE): Define.
783 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
784
7852012-11-29 Ian Lance Taylor <iant@google.com>
786
787 * go-gcc.cc: Include "output.h".
788 (global_variable): Add is_unique_section parameter.
789 (global_variable_set_init): Adjust unique section if necessary.
790 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
791
7922012-11-17 Diego Novillo <dnovillo@google.com>
793
794 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
795
796 * go-lang.c: Use new vec API in vec.h.
797
7982012-11-16 Ian Lance Taylor <iant@google.com>
799
800 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
801 (go1$(exeext)): Likewise.
802
8032012-10-30 Ian Lance Taylor <iant@google.com>
804
805 * lang.opt (-fgo-relative-import-path): New option.
806 * go-lang.c (go_relative_import_path): New static variable.
807 (go_langhook_init): Pass go_relative_import_path to
808 go_create_gogo.
809 (go_langhook_handle_option): Handle -fgo-relative-import-path.
810 * go-c.h (go_create_gogo): Update declaration.
811 * gccgo.texi (Invoking gccgo): Document
812 -fgo-relative-import-path.
813
8142012-09-17 Ian Lance Taylor <iant@google.com>
815
816 * config-lang.in (target_libs): Add target-libbacktrace.
817
8182012-09-16 Ian Lance Taylor <iant@google.com>
819
820 * Make-lang.in (go/gogo.o): Depend on filenames.h.
821
8222012-08-14 Diego Novillo <dnovillo@google.com>
823
824 Merge from cxx-conversion branch. Configury.
825
826 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
827 * go-gcc.cc: Likewise.
828 * go-system.h: Likewise.
829
8302012-07-24 Uros Bizjak <ubizjak@gmail.com>
831
832 * go-lang.c (lang_decl): Add variable_size GTY option.
833
8342012-05-09 Ian Lance Taylor <iant@google.com>
835
836 * lang.opt: Add -fgo-pkgpath.
837 * go-lang.c (go_pkgpath): New static variable.
838 (go_prefix): New static variable.
839 (go_langhook_init): Pass go_pkgpath and go_prefix to
840 go_create_gogo.
841 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
842 -fgo-prefix handling to just set go_prefix.
843 * go-c.h (go_set_prefix): Don't declare.
844 (go_create_gogo): Add pkgpath and prefix to declaration.
845 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
846 to pkgpath. Don't include the package name in the asm name.
847 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
848 docs for -fgo-prefix.
849
8502012-04-23 Ian Lance Taylor <iant@google.com>
851
852 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
853
8542012-04-20 Ian Lance Taylor <iant@google.com>
855
856 * lang.opt: Add -fgo-check-divide-zero and
857 -fgo-check-divide-overflow.
858 * gccgo.texi (Invoking gccgo): Document new options.
859
8602012-04-18 Steven Bosscher <steven@gcc.gnu.org>
861
862 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
863 with NULL_TREE type instead of void_type_node.
864
8652012-03-09 Ian Lance Taylor <iant@google.com>
866
867 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
868 to the lhs type if necessary.
869
8702012-03-08 Ian Lance Taylor <iant@google.com>
871
872 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
873 zero-sized variable.
874 (go_non_zero_struct): New global variable.
875 (Gcc_backend::non_zero_size_type): New function.
876 (Gcc_backend::global_variable): Don't build an assignment for a
877 zero-sized value.
878 * go-c.h (go_non_zero_struct): Declare.
879 * config-lang.in (gtfiles): Add go-c.h.
880
8812012-02-29 Ian Lance Taylor <iant@google.com>
882
883 * go-gcc.cc (class Gcc_tree): Add set_tree method.
884 (set_placeholder_pointer_type): When setting to a pointer to
885 error, set to error_mark_node.
886
8872012-02-23 Richard Guenther <rguenther@suse.de>
888
889 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
890 build_distinct_type_copy.
891
8922012-02-17 Ian Lance Taylor <iant@google.com>
893
894 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
895
8962012-02-17 Ian Lance Taylor <iant@google.com>
897
898 * gospec.c (lang_specific_driver): If linking, and no -o option
899 was used, add one.
900
9012012-02-14 Ian Lance Taylor <iant@google.com>
902
903 PR go/48411
904 * Make-lang.in (gccgo-cross$(exeext)): New target.
905 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
906 gccgo$(exeext).
907 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
908 gccgo-cross$(exeext) does not exist.
909
9102012-02-07 Ian Lance Taylor <iant@google.com>
911
912 * gccgo.texi (Function Names): Document //extern instead of
913 __asm__.
914
9152012-02-01 Jakub Jelinek <jakub@redhat.com>
916
917 PR target/52079
918 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
919 return build_nonstandard_integer_type result if possible.
920
9212012-01-21 Ian Lance Taylor <iant@google.com>
922
923 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
924 (Gcc_backend::type_alignment): Likewise.
925 (Gcc_backend::type_field_alignment): Likewise.
926 (Gcc_backend::type_field_offset): Likewise.
927
9282012-01-20 Ian Lance Taylor <iant@google.com>
929
930 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
931 be empty.
932 (Gcc_backend::set_placeholder_struct_type): Likewise.
933
9342012-01-17 Ian Lance Taylor <iant@google.com>
935
936 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
937 BASE.s rather than -o BASE.o.
938
9392012-01-11 Ian Lance Taylor <iant@google.com>
940
941 * go-lang.c (go_langhook_init): Initialize void_list_node before
942 calling go_create_gogo.
943
9442012-01-10 Ian Lance Taylor <iant@google.com>
945
946 * go-gcc.cc (Gcc_backend::type_size): New function.
947 (Gcc_backend::type_alignment): New function.
948 (Gcc_backend::type_field_alignment): New function.
949 (Gcc_backend::type_field_offset): New function.
950 * go-backend.c (go_type_alignment): Remove.
951 * go-c.h (go_type_alignment): Don't declare.
952
9532011-12-27 Ian Lance Taylor <iant@google.com>
954
955 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
956 build_distinct_type_copy rather than build_variant_type_copy.
957 (Gcc_backend::set_placeholder_array_type): Likewise.
958 (Gcc_backend::named_type): Add special handling for builtin
959 basic types.
960
9612011-12-22 Ian Lance Taylor <iant@google.com>
962
963 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
964 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
965 (Gcc_backend::set_placeholder_struct_type): Likewise.
966 (Gcc_backend::set_placeholder_array_type): Likewise.
967 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
968
9692011-12-13 Ian Lance Taylor <iant@google.com>
970
971 * go-backend.c: #include "simple-object.h" and "intl.h".
972 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
973 (GO_EXPORT_SECTION_NAME): Likewise.
974 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
975 (go_read_export_data): New function.
976 * go-c.h (go_read_export_data): Declare.
977
9782011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
979 Ian Lance Taylor <iant@google.com>
980
981 * go-location.h: New file.
982 * go-linemap.cc: New file.
983 * go-gcc.cc: Change all uses of source_location to Location.
984 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
985 (GO_LINEMAP_H): New variable.
986 (GO_LEX_H): Use $(GO_LINEMAP_H).
987 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
988 (go/go-linemap.o): New target.
989
9902011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
991
992 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
993
9942011-08-24 Roberto Lublinerman <rluble@gmail.com>
995
996 * lang.opt: Add fgo-optimize-.
997 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
998 * go-c.h (go_enable_optimize): Declare.
999 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
1000 (GO_EXPORT_H): Define.
1001 (GO_IMPORT_H): Add $(GO_EXPORT_H).
1002 (GO_AST_DUMP_H): Define.
1003 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
1004 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
1005 (go/types.o): Likewise.
1006 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
1007 (go/go-optimize.o): New target.
1008
10092011-08-24 Joseph Myers <joseph@codesourcery.com>
1010
1011 * Make-lang.in (CFLAGS-go/go-lang.o): New.
1012 (go/go-lang.o): Remove explicit compilation rule.
1013
10142011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1015
1016 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
1017
10182011-08-02 Roberto Lublinerman <rluble@gmail.com>
1019
1020 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
1021 (go/ast-dump.o): New target.
1022 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
1023 (go/statements.o): Likewise.
1024
10252011-07-06 Richard Guenther <rguenther@suse.de>
1026
1027 * go-lang.c (go_langhook_init):
1028 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1029
10302011-06-14 Joseph Myers <joseph@codesourcery.com>
1031
1032 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
1033 dependencies.
1034 * go-backend.c: Include common/common-target.h.
1035 (go_write_export_data): Use targetm_common.have_named_sections.
1036 * go-lang.c: Include common/common-target.h.
1037 (go_langhook_init_options_struct): Use
1038 targetm_common.supports_split_stack.
1039
10402011-06-13 Ian Lance Taylor <iant@google.com>
1041
1042 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
1043
10442011-06-10 Ian Lance Taylor <iant@google.com>
1045
1046 * go-gcc.cc: Include "toplev.h".
1047 (Gcc_backend::immutable_struct): New function.
1048 (Gcc_backend::immutable_struct_set_init): New function.
1049 (Gcc_backend::immutable_struct_reference): New function.
1050 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
1051
10522011-06-09 Ian Lance Taylor <iant@google.com>
1053
1054 * go-gcc.cc (Gcc_backend::zero_expression): New function.
1055
10562011-06-07 Richard Guenther <rguenther@suse.de>
1057
1058 * go-lang.c (go_langhook_init): Do not set
1059 size_type_node or call set_sizetype.
1060
10612011-05-27 Ian Lance Taylor <iant@google.com>
1062
1063 * go-backend.c: Include "output.h".
1064 (go_write_export_data): New function.
1065 * go-c.h (go_write_export_data): Declare.
1066 * Make-lang.in (go/go-backend.o): Depend on output.h.
1067 (go/export.o): Depend on $(GO_C_H). Do not depend on
1068 $(MACHMODE_H), output.h, or $(TARGET_H).
1069
10702011-05-24 Joseph Myers <joseph@codesourcery.com>
1071
1072 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
1073 (gccgo$(exeext)): Use libcommon-target.a.
1074
10752011-05-20 Joseph Myers <joseph@codesourcery.com>
1076
1077 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
1078
10792011-05-13 Ian Lance Taylor <iant@google.com>
1080
1081 * go-gcc.cc (Gcc_backend::function_type): When building a struct
1082 for multiple results, check that all fields types have a size.
1083 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
1084
10852011-05-12 Ian Lance Taylor <iant@google.com>
1086
1087 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
1088 parameter.
1089 (Gcc_backend::parameter_variable): Likewise.
1090
10912011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1092
1093 * go-lang.c (global_bindings_p): Return bool and simplify.
1094
10952011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1096
1097 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
1098
10992011-05-04 Ian Lance Taylor <iant@google.com>
1100
1101 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
1102 (Gcc_backend::fill_in_struct): New function.
1103 (Gcc_backend::array_type): Implement.
1104 (Gcc_backend::fill_in_array): New function.
1105 (Gcc_backend::placeholder_pointer_type): New function.
1106 (Gcc_backend::set_placeholder_pointer_type): New function.
1107 (Gcc_backend::set_placeholder_function_type): New function.
1108 (Gcc_backend::placeholder_struct_type): New function.
1109 (Gcc_backend::set_placeholder_struct_type): New function.
1110 (Gcc_backend::placeholder_array_type): New function.
1111 (Gcc_backend::set_placeholder_array_type): New function.
1112 (Gcc_backend::named_type): New function.
1113 (Gcc_backend::circular_pointer_type): New function.
1114 (Gcc_backend::is_circular_pointer_type): New function.
1115
11162011-04-26 Ian Lance Taylor <iant@google.com>
1117
1118 * go-gcc.cc (Gcc_backend::struct_type): Implement.
1119
11202011-04-25 Ian Lance Taylor <iant@google.com>
1121
1122 * go-gcc.cc (Gcc_backend::error_type): Implement.
1123 (Gcc_backend::string_type): Remove.
1124 (Gcc_backend::function_type): Change signature and implement.
1125 (Gcc_backend::struct_type): Change signature.
1126 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
1127 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
1128 (Gcc_backend::pointer_type): Check for error.
1129 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
1130
11312011-04-25 Evan Shaw <edsrzf@gmail.com>
1132
1133 * go-gcc.c (class Gcc_tree): Make get_tree const.
1134 (Gcc_backend::void_type): Implement.
1135 (Gcc_backend::bool_type): Implement.
1136 (Gcc_backend::integer_type): Implement.
1137 (Gcc_backend::float_type): Implement.
1138 (Gcc_backend::complex_type): New function.
1139 (Gcc_backend::pointer_type): New function.
1140 (Gcc_backend::make_type): New function.
1141 (type_to_tree): New function.
1142
11432011-04-21 Ian Lance Taylor <iant@google.com>
1144
1145 * go-system.h (go_assert, go_unreachable): Define.
1146
11472011-04-19 Ian Lance Taylor <iant@google.com>
1148
1149 * go-system.h: Include "intl.h".
1150 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
1151 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
1152 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
1153
11542011-04-19 Ian Lance Taylor <iant@google.com>
1155
1156 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
1157
11582011-04-19 Ian Lance Taylor <iant@google.com>
1159
1160 * go-gcc.cc (class Bblock): Define.
1161 (Gcc_backend::if_statement): Change then_block and else_block to
1162 Bblock*.
1163 (Gcc_backend::block): New function.
1164 (Gcc_backend::block_add_statements): New function.
1165 (Gcc_backend::block_statement): New function.
1166 (tree_to_block, block_to_tree): New functions.
1167
11682011-04-18 Ian Lance Taylor <iant@google.com>
1169
1170 * go-gcc.cc: Include "go-c.h".
1171 (class Bvariable): Define.
1172 (Gcc_backend::init_statement): New function.
1173 (Gcc_backend::global_variable): New function.
1174 (Gcc_backend::global_variable_set_init): New function.
1175 (Gcc_backend::local_variable): New function.
1176 (Gcc_backend::parameter_variable): New function.
1177 (tree_to_type, var_to_tree): New functions.
1178 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
1179 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
1180
11812011-04-15 Ian Lance Taylor <iant@google.com>
1182
1183 * go-gcc.cc (Gcc_backend::compound_statement): New function.
1184 (Gcc_backend::assignment_statement): Use error_statement.
1185 (Gcc_backend::return_statement): Likewise.
1186 (Gcc_backend::if_statement): Likewise.
1187 (Gcc_backend::switch_statement): Likewise.
1188 (Gcc_backend::statement_list): Likewise.
1189
11902011-04-14 Ian Lance Taylor <iant@google.com>
1191
1192 * go-gcc.cc (Gcc_backend::error_statement): New function.
1193
11942011-04-13 Ian Lance Taylor <iant@google.com>
1195
1196 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
1197
11982011-04-13 Ian Lance Taylor <iant@google.com>
1199
1200 * Make-lang.in (GO_OBJS): Add go/runtime.o.
1201 (GO_RUNTIME_H): New variable.
1202 (go/runtime.o): New target.
1203 (go/gogo.o): Depend on $(GO_RUNTIME_H).
1204 (go/statements.o): Likewise.
1205
12062011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1207
1208 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
1209 calling TREE_CHAIN.
1210
12112011-04-06 Ian Lance Taylor <iant@google.com>
1212
1213 * go-gcc.cc (if_statement): Use build3_loc.
1214 (Gcc_backend::switch_statement): New function.
1215 (Gcc_backend::statement_list): New function.
1216
12172011-04-06 Ian Lance Taylor <iant@google.com>
1218
1219 * go-gcc.cc (Gcc_backend::if_statement): New function.
1220 (tree_to_stat): New function.
1221 (expr_to_tree): Renamed from expression_to_tree.
1222 (stat_to_tree): Renamed from statement_to_tree.
1223
12242011-04-06 Ian Lance Taylor <iant@google.com>
1225
1226 * go-gcc.cc (Gcc_backend::expression_statement): New function.
1227
12282011-04-04 Ian Lance Taylor <iant@google.com>
1229
1230 * go-gcc.c (class Blabel): Define.
1231 (Gcc_backend::make_expression): New function.
1232 (get_identifier_from_string): New function.
1233 (Gcc_backend::label): New function.
1234 (Gcc_backend::label_definition_statement): New function.
1235 (Gcc_backend::goto_statement): New function.
1236 (Gcc_backend::label_address): New function.
1237 (expression_to_tree): New function.
1238 * Make-lang.in (go/expressions.o): Depend on
1239 go/gofrontend/backend.h.
1240 (go/gogo.o): Likewise.
1241
12422011-04-04 Ian Lance Taylor <iant@google.com>
1243
1244 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
1245 (class Bfunction): Define.
1246 (Gcc_backend::assignment_statement): Rename from assignment.
1247 Check for errors.
1248 (Gcc_backend::return_statement): New function.
1249 (tree_to_function): New function.
1250 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
1251 $(GIMPLE_H), and $(GO_GOGO_H).
1252
12532011-04-03 Ian Lance Taylor <iant@google.com>
1254
1255 * go-gcc.cc: New file.
1256 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
1257 (go/go-gcc.o): New target.
1258 (go/go.o): Depend on go/gofrontend/backend.h.
1259 (go/statements.o): Likewise.
1260
12612011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1262
1263 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1264
12652011-02-08 Ian Lance Taylor <iant@google.com>
1266
1267 * go-lang.c (go_langhook_init_options_struct): Set
1268 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
1269
12702011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1271
1272 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
1273 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
1274
12752011-01-21 Ian Lance Taylor <iant@google.com>
1276
1277 * go-lang.c (go_langhook_init): Omit float_type_size when calling
1278 go_create_gogo.
1279 * go-c.h: Update declaration of go_create_gogo.
1280
12812011-01-13 Ian Lance Taylor <iant@google.com>
1282
1283 * go-backend.c: Include "rtl.h" and "target.h".
1284 (go_imported_unsafe): New function.
1285 * go-c.h (go_imported_unsafe): Declare.
1286 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
1287 (go/gogo-tree.o): Remove dependency on $(RTL_H).
1288 (go/unsafe.o): Depend on $(GO_C_H).
1289
12902010-12-31 Joern Rennecke <amylaar@spamcop.net>
1291
1292 PR go/47113
1293 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
1294 variable ‘field’ .
1295
12962010-12-21 Ian Lance Taylor <iant@google.com>
1297
1298 * Make-lang.in (check-go): Remove.
1299 (lang_checks_parallelized): Add check-go.
1300 (check_go_parallelize): Set.
1301
13022010-12-13 Ian Lance Taylor <iant@google.com>
1303
1304 * gospec.c (lang_specific_driver): Add a -o option if not linking
1305 and there is no -o option already.
1306
13072010-12-07 Ian Lance Taylor <iant@google.com>
1308
1309 PR tree-optimization/46805
1310 PR tree-optimization/46833
1311 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
1312
13132010-12-06 Ian Lance Taylor <iant@google.com>
1314
1315 PR other/46789
1316 PR bootstrap/46812
1317 * go-lang.c (go_char_p): Define type and vectors.
1318 (go_search_dirs): New static variable.
1319 (go_langhook_handle_option): Use version and version/machine
1320 directories for -L.
1321 (go_langhook_post_options): Add non-specific -L paths.
1322 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
1323 DEFAULT_TARGET_MACHINE when compiling.
1324 * gccgo.texi (Invoking gccgo): Only document -L for linking.
1325 (Import and Export): Don't mention -L for finding import files.
1326
13272010-12-03 Ian Lance Taylor <iant@google.com>
1328
1329 PR bootstrap/46776
1330 * go-backend.c: New file.
1331 * go-c.h (go_type_alignment): Declare.
1332 (go_field_alignment, go_trampoline_info): Declare.
1333 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
1334 (go/go-backend.o): New target.
1335 (go/go-lang.o): Make dependencies match source file.
1336 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
1337 (go/gogo-tree.o): Don't depend on $(TM_H).
1338
13392010-12-03 Ian Lance Taylor <iant@google.com>
1340
1341 * config-lang.in (build_by_default): Set to no.
1342
13432010-12-02 Ian Lance Taylor <iant@google.com>
1344
1345 Go frontend added to gcc repository.
98db73df 1346\f
c1a9c369 1347Copyright (C) 2010-2017 Free Software Foundation, Inc.
71eba7a0 1348
98db73df
TB
1349Copying and distribution of this file, with or without modification,
1350are permitted in any medium without royalty provided the copyright
1351notice and this notice are preserved.