]>
Commit | Line | Data |
---|---|---|
3d7b83b6 MS |
1 | 2016-09-01 Martin Sebor <msebor@redhat.com> |
2 | ||
3 | * gofrontend/expressions.cc: Increase buffer size to guarantee | |
4 | it fits the output of the formatted function regardless of its | |
5 | arguments. | |
6 | ||
2adb671d ILT |
7 | 2016-08-29 Ian Lance Taylor <iant@google.com> |
8 | ||
9 | * lang.opt (fgo-c-header, fgo-compiling-runtime): New options. | |
10 | * go-c.h (struct go_create_gogo_args): Define. | |
11 | (go_create_gogo): Change declaration to take struct pointer. | |
12 | * go-lang.c (go_c_header): New static variable. | |
13 | (go_langhook_init): Update call to go_create_gogo. | |
14 | * gccgo.texi (Invoking gccgo): Document -fgo-c-header and | |
15 | -fgo-compiling-runtime. | |
16 | ||
6bbd9810 ILT |
17 | 2016-08-09 Ian Lance Taylor <iant@google.com> |
18 | ||
19 | * gccgo.texi (Invoking gccgo): Document -fgo-optimize-allocs and | |
20 | -fgo-debug-escae. | |
21 | (Compiler Directives): New chapter. | |
22 | (Function Names): Describe using //go:linkname. Suggest using | |
23 | -fgo-pkgpath rather than -fgo-prefix. | |
24 | ||
f432d128 ILT |
25 | 2016-08-08 Ian Lance Taylor <iant@google.com> |
26 | ||
27 | PR go/72814 | |
28 | * go-gcc.cc (Gcc_backend::function_type): If the return type is | |
29 | zero bytes, treat the function as returning void. | |
30 | (return_statement): If the return type is zero bytes, don't | |
31 | actually return any values. | |
32 | ||
9dcd84ec ILT |
33 | 2016-08-05 Ian Lance Taylor <iant@google.com> |
34 | ||
35 | PR go/72812 | |
36 | * go-gcc.cc (char_needs_encoding): New static function. | |
37 | (needs_encoding, fetch_utf8_char): New static functions. | |
38 | (encode_id): New static function. | |
39 | (Gcc_backend::global_variable): Set asm name if the name is not | |
40 | simple ASCII. | |
41 | (Gcc_backend::implicit_variable): Likewise. | |
42 | (Gcc_backend::implicit_variable_reference): Likewise. | |
43 | (Gcc_backend::immutable_struct): Likewise. | |
44 | (Gcc_backend::immutable_struct_reference): Likewise. | |
45 | (Gcc_backend::function): Likewise. | |
46 | ||
7295570d CM |
47 | 2016-08-02 Chris Manghane <cmang@google.com> |
48 | ||
49 | * lang.opt: Add -fgo-debug-escape option. | |
50 | * go-c.h (go_create_gogo): Add debug_escape_level parameter. | |
51 | * go-lang.c (go_langhook_init): Pass go_debug_escape_level to | |
52 | go_create_gogo. | |
53 | ||
2a30f87f CM |
54 | 2016-05-06 Chris Manghane <cmang@google.com> |
55 | ||
56 | * Make-lang.in (GO_OBJS): Add go/escape.o (based on an entirely | |
57 | new escape.cc). | |
58 | ||
e49aacaf CM |
59 | 2016-04-29 Chris Manghane <cmang@google.com> |
60 | ||
61 | * Make-lang.in (GO_OBJS): Remove go/dataflow.o, go/escape.o. | |
62 | ||
fe37c7af MM |
63 | 2016-04-18 Michael Matz <matz@suse.de> |
64 | ||
65 | * go-gcc.cc (Gcc_backend::implicit_variable): Use SET_DECL_ALIGN. | |
66 | ||
9c582551 JJ |
67 | 2016-02-12 Jakub Jelinek <jakub@redhat.com> |
68 | ||
69 | * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and | |
70 | neighbour -> neighbor. | |
71 | * gccgo.texi: Likewise. | |
72 | ||
ede67376 ILT |
73 | 2016-01-27 Ian Lance Taylor <iant@google.com> |
74 | ||
75 | * go-lang.c (go_langhook_init_options_struct): Default to | |
76 | -fkeep-gc-roots-live. | |
77 | ||
21fa2a29 JJ |
78 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
79 | ||
818ab71a JJ |
80 | Update copyright years. |
81 | ||
21fa2a29 JJ |
82 | * gccgo.texi: Bump @copyrights-go year. |
83 | ||
399f5feb ILT |
84 | 2015-12-21 Ian Lance Taylor <iant@google.com> |
85 | ||
86 | * go-gcc.cc (class Bvariable): Remove Gcc_tree parent class. Add | |
87 | t_ and orig_type_ fields. Add new two parameter constructor. Add | |
88 | get_tree and get_decl methods. | |
89 | (Gcc_backend::var_expression): Pass location to var get_tree. | |
90 | (Gcc_backend::global_variable): Don't add VIEW_CONVERT_EXPR. Use | |
91 | two parameter constructor for Bvariable. | |
92 | (Gcc_backend::global_variable_set_init): Don't remove | |
93 | VIEW_CONVERT_EXPR. Use var get_decl, not get_tree. | |
94 | (Gcc_backend::write_global_definitions): Likewise. | |
95 | (Gcc_backend::init_statement): Call var get_decl, not get_tree. | |
96 | (Gcc_backend::block): Likewise. | |
97 | (Gcc_backend::implicit_variable_set_init): Likewise. | |
98 | (Gcc_backend::immutable_struct_set_init): Likewise. | |
99 | (Gcc_backend::function_set_parameters): Likewise. | |
100 | ||
8fd41e92 ILT |
101 | 2015-12-21 Ian Lance Taylor <iant@google.com> |
102 | ||
103 | * go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized, | |
104 | add a VIEW_CONVERT_EXPR to the tree. | |
105 | (Gcc_backend::global_variable_set_init): Remove any | |
106 | VIEW_CONVERT_EXPR. | |
107 | (Gcc_backend::write_global_definitions): Likewise. | |
108 | ||
6ea98dee ILT |
109 | 2015-11-30 Ian Lance Taylor <iant@google.com> |
110 | ||
111 | PR go/68477 | |
112 | * go-gcc.cc (Gcc_backend::string_constant_expression): Don't set | |
113 | TYPE_STRING_FLAG on a variant type. | |
114 | ||
69f293c9 AM |
115 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
116 | ||
117 | * go-backend.c: Remove unused header files. | |
118 | * go-gcc.cc: Likewise. | |
119 | * go-lang.c: Likewise. | |
120 | * gospec.c: Likewise. | |
121 | ||
2adfab87 AM |
122 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
123 | ||
124 | * go-backend.c: Reorder #include's and remove duplicates. | |
125 | * go-lang.c: Likewise. | |
126 | ||
b2e4c071 AM |
127 | 2015-10-20 Alan Modra <amodra@gmail.com> |
128 | ||
129 | PR go/66870 | |
130 | * gospec.c (saw_opt_m32): Rename to.. | |
131 | (is_m64): ..this, initialised by TARGET_CAN_SPLIT_STACK_64BIT. | |
132 | Update uses. | |
133 | (lang_specific_driver): Set is_m64 if OPT_m64, clear if OPT_m32. | |
134 | ||
209919e2 ILT |
135 | 2015-10-01 Ian Lance Taylor <iant@google.com> |
136 | ||
137 | PR go/66870 | |
138 | * gospec.c (lang_specific_driver): Only look for OPT_m32 if | |
139 | TARGET_CAN_SPLIT_STACK_64BIT is defined. | |
140 | ||
402565b6 LB |
141 | 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com> |
142 | ||
143 | PR target/66870 | |
144 | * gospec.c (lang_specific_driver): Set appropriate split stack | |
145 | options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT. | |
146 | ||
ec23e5b3 CM |
147 | 2015-09-10 Chris Manghane <cmang@google.com> |
148 | ||
149 | * go-gcc.cc (Gcc_backend::type_size): Return -1 for | |
150 | unrepresentable size. | |
151 | ||
2021ff27 MP |
152 | 2015-08-24 Marek Polacek <polacek@redhat.com> |
153 | ||
154 | PR tree-optimization/67284 | |
155 | * go-gcc.cc (Gcc_backend::define_builtin): Add NORETURN_P parameter. | |
156 | Set TREE_THIS_VOLATILE. | |
157 | (Gcc_backend::Gcc_backend): Mark __builtin_trap as a noreturn call. | |
158 | Pass false to the rest of define_builtin calls. | |
159 | ||
cb3306e5 AS |
160 | 2015-07-31 Andreas Schwab <schwab@linux-m68k.org> |
161 | ||
162 | * go-lang.c (go_langhook_init_options_struct): Don't set | |
163 | x_flag_split_stack. | |
164 | (go_langhook_post_options): Set it here instead. | |
165 | ||
026c3cfd AH |
166 | 2015-07-12 Aldy Hernandez <aldyh@redhat.com> |
167 | ||
168 | * gofrontend/backend.h: Fix double word typos. | |
169 | * gofrontend/expressions.cc: Same. | |
170 | * gospec.c: Same. | |
171 | ||
c7131fb2 AM |
172 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
173 | ||
174 | * go-backend.c: Adjust includes. | |
175 | * go-gcc.cc: Likewise. | |
176 | * go-lang.c: Likewise. | |
177 | ||
f0889939 AM |
178 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
179 | ||
180 | * go-gcc.cc: Remove ipa-ref.h and plugin-api.h from include list. | |
181 | ||
abb226c9 AM |
182 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
183 | ||
184 | * go-backend.c: Do not include input.h, line-map.h or is-a.h. | |
185 | * go-gcc.cc: Likewise. | |
186 | * go-lang.c: Likewise. | |
187 | * go-system.h: Likewise. | |
188 | ||
13fdf2e2 AM |
189 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
190 | ||
191 | * go-backend.c : Adjust include files. | |
192 | * go-gcc.cc : Likewise. | |
193 | * go-lang.c : Likewise. | |
194 | ||
d7438551 AH |
195 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
196 | ||
197 | * go-gcc.cc (write_global_definitions): Remove call to | |
198 | finalize_compilation_unit. | |
199 | Remove Go specific debug generation. | |
200 | * go-lang.c (go_langhook_parse_file): Call go_write_globals. | |
201 | (go_langhook_write_globals): Remove. | |
202 | Remove LANG_HOOKS_WRITE_GLOBALS everywhere. | |
203 | ||
ecb9f223 AM |
204 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
205 | ||
206 | * go-backend.c: Adjust includes for restructured coretypes.h. | |
207 | * go-c.h: Likewise. | |
208 | * go-gcc.cc: Likewise. | |
209 | * go-lang.c: Likewise. | |
210 | ||
4f576c83 CM |
211 | 2015-04-30 Chris Manghane <cmang@google.com> |
212 | ||
213 | * go-gcc.cc (Gcc_backend::stack_allocation_expression): New | |
214 | method. | |
215 | ||
46bf0b0a JW |
216 | 2015-04-27 Jim Wilson <jim.wilson@linaro.org> |
217 | ||
218 | * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1. | |
219 | ||
b496063d CM |
220 | 2015-04-17 Chris Manghane <cmang@google.com> |
221 | ||
222 | * Make-lang.in (GO_OBJS): Add go/escape.o. | |
223 | ||
18fbd1ec ILT |
224 | 2015-02-02 Ian Lance Taylor <iant@google.com> |
225 | ||
226 | PR go/64836 | |
227 | PR go/64838 | |
228 | * go-gcc.cc (Gcc_backend::type_size): Change return type to | |
229 | int64_t. | |
230 | (Gcc_backend::type_alignment): Likewise. | |
231 | (Gcc_backend::type_field_alignment): Likewise. | |
232 | (Gcc_backend::type_field_offset): Likewise. | |
233 | (Gcc_backend::implicit_variable): Change alignment parameter type | |
234 | to int64_t. | |
235 | ||
1aaecd3b ILT |
236 | 2015-01-23 Ian Lance Taylor <iant@google.com> |
237 | ||
238 | PR go/63565 | |
239 | * gccgo.texi (Invoking gccgo): Mention that Go programs should not | |
240 | be stripped. | |
241 | ||
242 | * gccgo.texi (C Interoperability): Mention that people should use | |
243 | cgo. | |
244 | ||
818424b2 ILT |
245 | 2015-01-23 Ian Lance Taylor <iant@google.com> |
246 | ||
247 | PR go/64595 | |
248 | * go-lang.c (go_langhook_init_options_struct): Set default | |
249 | debug_info_level. | |
250 | (go_langhook_post_options): If debug_info_level is still the | |
251 | default, make sure write_symbols is set. | |
252 | * gccgo.texi (Invoking gccgo): Document that -g1 is the default. | |
253 | ||
38bf819a RH |
254 | 2015-01-16 Richard Henderson <rth@redhat.com> |
255 | ||
256 | * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument. | |
257 | (Gcc_backend::static_chain_variable): New method. | |
258 | ||
bf1de3f0 ILT |
259 | 2015-01-09 Ian Lance Taylor <iant@google.com> |
260 | ||
261 | * config-lang.in (lang_dirs): Define. | |
262 | ||
adfac8df JJ |
263 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
264 | ||
265 | * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h, | |
266 | input.h, alias.h, symtab.h, options.h, fold-const.h, | |
267 | wide-int.h, and inchash.h due to flattening of tree.h. | |
268 | * go-lang.c: Ditto. | |
269 | * go-backend.c: Ditto. | |
270 | ||
dd373780 CM |
271 | 2015-01-07 Chris Manghane <cmang@google.com> |
272 | ||
273 | PR go/61204 | |
274 | * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize | |
275 | zero-sized variable. | |
276 | ||
861393ac CM |
277 | 2015-01-06 Chris Manghane <cmang@google.com> |
278 | ||
dd373780 CM |
279 | * go-gcc.cc (Gcc_backend::constructor_expression): Don't |
280 | initialize zero-sized fields, just evaluate the values for side | |
281 | effects. | |
861393ac | 282 | |
b67cd4e3 JJ |
283 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
284 | ||
5624e564 JJ |
285 | Update copyright years. |
286 | ||
b67cd4e3 JJ |
287 | * gccgo.texi: Bump @copyrights-go year. |
288 | ||
943cf9cf CM |
289 | 2014-12-19 Chris Manghane <cmang@google.com> |
290 | ||
dd373780 CM |
291 | * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't |
292 | construct arrays of zero-sized values. | |
943cf9cf | 293 | |
ef4bddc2 RS |
294 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
295 | ||
296 | * go-lang.c: Remove redundant enum from machine_mode. | |
297 | ||
c582198b AM |
298 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
299 | ||
300 | * go-gcc.cc: Adjust include files. | |
301 | ||
60393bbc AM |
302 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
303 | ||
304 | * go-gcc.cc: Adjust include files. | |
305 | * go-lang.c: Ditto. | |
306 | ||
5eda5bad ILT |
307 | 2014-10-23 Ian Lance Taylor <iant@google.com> |
308 | ||
309 | * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one | |
310 | mpc_t parameter instead of two mpfr_t parameters. | |
311 | ||
717c4789 JJ |
312 | 2014-09-15 Jakub Jelinek <jakub@redhat.com> |
313 | ||
314 | * Make-lang.in (check_go_parallelize): Change to just an upper bound | |
315 | number. | |
316 | ||
f1d2ac4f CM |
317 | 2014-09-03 Chris Manghane <cmang@google.com> |
318 | ||
319 | * go-gcc.cc (Gcc_backend::implicit_variable): Remove init | |
320 | parameter. Add is_hidden parameter. | |
321 | (Gcc_backend::implicit_variable_set_init): New method. | |
322 | (Gcc_backend::implicit_variable_reference): New method. | |
323 | ||
ff09769f ILT |
324 | 2014-08-08 Ian Lance Taylor <iant@google.com> |
325 | ||
326 | * go-gcc.cc (Gcc_backend::compound_statement): Don't return | |
327 | NULL_TREE. | |
328 | ||
0ffc395f UB |
329 | 2014-07-24 Uros Bizjak <ubizjak@gmail.com> |
330 | ||
331 | * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename | |
332 | symtab_get_node to symtab_node::get. | |
333 | ||
bbeaf05d ILT |
334 | 2014-06-13 Ian Lance Taylor <iant@google.com> |
335 | ||
336 | PR go/61496 | |
337 | * gospec.c (lang_specific_driver): On Solaris, when not using GNU | |
338 | ld, add -t option to avoid warning about common symbol changing | |
339 | size. | |
340 | ||
e257a17c JH |
341 | 2014-06-10 Jan Hubicka <hubicka@ucw.cz> |
342 | ||
0ffc395f | 343 | * go-gcc.cc (Gcc_backend::global_variable_set_init): Use |
e257a17c JH |
344 | symtab_get_node(var_decl)->implicit_section. |
345 | ||
24d047a3 JH |
346 | 2014-06-07 Jan Hubicka <hubicka@ucw.cz> |
347 | ||
348 | * go-gcc.cc (global_variable_set_init): Use | |
349 | set_decl_section_name. | |
350 | ||
bae90c98 ILT |
351 | 2014-06-04 Ian Lance Taylor <iant@google.com> |
352 | ||
353 | * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and | |
354 | alignment parameters. Permit init parameter to be NULL. | |
355 | ||
9b2b7279 AM |
356 | 2014-06-02 Andrew MacLeod <amacleod@redhat.com> |
357 | ||
358 | * go-gcc.cc: Include builtins.h. | |
359 | ||
766090c2 TS |
360 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
361 | ||
362 | * go-lang.c (struct GTY): Don't use variable_size gty attribute. | |
363 | ||
6f7e0b57 CM |
364 | 2014-05-06 Chris Manghane <cmang@google.com> |
365 | ||
366 | * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method. | |
367 | (Gcc_backend::boolean_constant_expression): New method. | |
368 | (Gcc_backend::zero_expression): Use this->make_expression rather | |
369 | than tree_to_expr. | |
370 | (Gcc_backend::var_expression): Likewise. | |
371 | (Gcc_backend::integer_constant_expression): Likewise. | |
372 | (Gcc_backend::float_constant_expression): Likewise. | |
373 | (Gcc_backend::complex_constant_expression): Likewise. | |
374 | (Gcc_backend::struct_field_expression): Likewise. | |
375 | (tree_to_type, tree_to_expr, tree_to_stat): Remove functions. | |
376 | (tree_to_function, tree_to_block): Remove functions. | |
377 | (type_to_tree, expr_to_tree, stat_to_tree): Remove functions. | |
378 | (block_to_tree, var_to_tree, function_to_tree): Remove functions. | |
379 | ||
1d60af08 KZ |
380 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
381 | Mike Stump <mikestump@comcast.net> | |
382 | Richard Sandiford <rdsandiford@googlemail.com> | |
383 | ||
384 | * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p. | |
385 | ||
6122336c CM |
386 | 2014-05-06 Chris Manghane <cmang@google.com> |
387 | ||
388 | * go-c.h (go_create_gogo): Update declaration to add | |
389 | check_divide_zero and check_divide_overflow parameters. | |
390 | * go-lang.c (go_langhook_init): Pass new arguments to | |
391 | go_create_gogo. | |
392 | ||
fb930306 CM |
393 | 2014-05-05 Chris Manghane <cmang@google.com> |
394 | ||
395 | * go-gcc.cc (Gcc_backend::implicit_variable): Rename from | |
396 | gc_root_variable. Add name and is_constant parameters. | |
397 | ||
3e7b0938 CM |
398 | 2014-05-05 Chris Manghane <cmang@google.com> |
399 | ||
400 | * go-gcc.cc (Gcc_backend::indirect_expression): Add btype | |
401 | parameter. | |
402 | (Gcc_backend::temporary_variable): Check for erroneous function. | |
403 | ||
d2d9bc36 CM |
404 | 2014-04-30 Chris Manghane <cmang@google.com> |
405 | ||
406 | * go-backend.c: #include "diagnostics.h". | |
407 | (saw_errors): New function. | |
408 | * go-c.h (saw_errors): Declare. | |
409 | * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o. | |
410 | ||
ad5b68e0 CM |
411 | 2014-04-30 Chris Manghane <cmang@google.com> |
412 | ||
413 | * go-lang.c (go_langhook_type_for_size): Do it here, rather than | |
414 | calling into Go frontend. | |
415 | (go_langhook_type_for_mode): Likewise. | |
416 | * go-c.h (go_type_for_size, go_type_for_mode): Don't declare. | |
417 | ||
90cbaa29 CM |
418 | 2014-04-30 Chris Manghane <cmang@google.com> |
419 | ||
420 | * go-gcc.cc: #include "langhooks.h". | |
421 | (Gcc_backend::Gcc_backend): Add constructor. | |
422 | (Gcc_backend::lookup_function): New function. | |
423 | (Gcc_backend::define_builtin): New private function. | |
424 | (Gcc_backend::gcc_backend): Remove. | |
425 | (go_get_backend): Use new to create new Gcc_backend. | |
426 | ||
036165d8 CM |
427 | 2014-04-25 Chris Manghane <cmang@google.com> |
428 | ||
429 | * go-gcc.cc: Include "cgraph.h" and "gimplify.h". | |
430 | (Gcc_backend::return_statement): Push and pop function. | |
431 | (Gcc_backend::label): Likewise. | |
432 | (Gcc_backend::function_defer_statement): Likewise. | |
433 | (Gcc_backend::switch_statement): Add function parameter. | |
434 | (Gcc_backend::block): Don't permit function to be NULL. | |
435 | (Gcc_backend::temporary_variable): Change go_assert to | |
436 | gcc_assert. | |
437 | (Gcc_backend::gc_root_variable): New function. | |
438 | (Gcc_backend::write_global_definitions): New function. | |
439 | ||
aa492920 CM |
440 | 2014-04-22 Chris Manghane <cmang@google.com> |
441 | ||
442 | * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around | |
443 | call to create_tmp_var. Require that function be non-NULL. | |
444 | ||
e85baec7 CM |
445 | 2014-04-17 Chris Manghane <cmang@google.com> |
446 | ||
447 | * go-gcc.cc (Gcc_backend::named_constant_expression): New | |
448 | function. | |
449 | ||
7035307e CM |
450 | 2014-04-14 Chris Manghane <cmang@google.com> |
451 | ||
452 | * go-gcc.cc: Include "convert.h". | |
453 | (Gcc_backend::string_constant_expression): New function. | |
454 | (Gcc_backend::real_part_expression): Likewise. | |
455 | (Gcc_backend::imag_part_expression): Likewise. | |
456 | (Gcc_backend::complex_expression): Likewise. | |
457 | (Gcc_backend::constructor_expression): Likewise. | |
458 | (Gcc_backend::array_constructor_expression): Likewise. | |
459 | (Gcc_backend::pointer_offset_expression): Likewise. | |
460 | (Gcc_backend::array_index_expression): Likewise. | |
461 | (Gcc_backend::call_expression): Likewise. | |
462 | (Gcc_backend::exception_handler_statement): Likewise. | |
463 | (Gcc_backend::function_defer_statement): Likewise. | |
464 | (Gcc_backend::function_set_parameters): Likewise. | |
465 | (Gcc_backend::function_set_body): Likewise. | |
466 | (Gcc_backend::convert_expression): Handle various type | |
467 | conversions. | |
468 | ||
915182a0 ILT |
469 | 2014-03-03 Ian Lance Taylor <iant@google.com> |
470 | ||
471 | * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set | |
472 | DECL_WEAK. | |
473 | (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear | |
474 | DECL_WEAK. | |
475 | ||
8a35e18d CM |
476 | 2014-01-24 Chris Manghane <cmang@google.com> |
477 | ||
478 | * go-gcc.cc (Gcc_backend::unary_expression): New function. | |
479 | ||
b5407ad1 CM |
480 | 2014-01-16 Chris Manghane <cmang@google.com> |
481 | ||
482 | * go-gcc.cc (Gcc_backend::conditional_expression): Add btype | |
483 | parameter. | |
484 | (operator_to_tree_code): New static function. | |
485 | (Gcc_backend::binary_expression): New function. | |
486 | ||
eb6eb862 CM |
487 | 2014-01-14 Chris Manghane <cmang@google.com> |
488 | ||
489 | * go-gcc.cc (Gcc_backend::compound_expression): New function. | |
490 | (Gcc_backend::conditional_expression): New function. | |
491 | ||
23a5b65a RS |
492 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
493 | ||
494 | Update copyright years | |
495 | ||
98db73df | 496 | 2014-01-02 Tobias Burnus <burnus@net-b.de> |
71eba7a0 | 497 | |
0ffc0b3b JJ |
498 | * gccgo.texi: Bump @copying's copyright year. |
499 | ||
500 | 2013-12-16 Chris Manghane <cmang@google.com> | |
501 | ||
502 | * go-gcc.cc (Gcc_backend::struct_field_expression): New function. | |
503 | ||
504 | 2013-12-11 Ian Lance Taylor <iant@google.com> | |
505 | ||
506 | * go-lang.c (go_langhook_post_options): Disable sibling calls by | |
507 | default. | |
508 | ||
509 | 2013-12-10 Ian Lance Taylor <iant@google.com> | |
510 | ||
511 | * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests | |
512 | separately. | |
513 | ||
514 | 2013-12-05 Ian Lance Taylor <iant@google.com> | |
515 | ||
516 | Revert this change; no longer required. | |
517 | 2013-11-06 Ian Lance Taylor <iant@google.com> | |
518 | ||
519 | * go-lang.c (go_langhook_post_options): If | |
520 | -fisolate-erroneous-paths was turned on by an optimization option, | |
521 | turn it off. | |
522 | ||
523 | 2013-11-23 Ian Lance Taylor <iant@google.com> | |
524 | ||
525 | * go-gcc.cc (Gcc_backend::function_type): Add result_struct | |
526 | parameter. | |
527 | ||
528 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> | |
529 | ||
530 | * go-gcc.cc: Add required include files from gimple.h. | |
531 | * go-lang.c: Likewise | |
532 | ||
533 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> | |
534 | ||
535 | * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with | |
536 | tree_to_shwi throughout. | |
537 | ||
538 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> | |
539 | ||
540 | * gofrontend/expressions.cc: Replace host_integerp (..., 0) with | |
541 | tree_fits_shwi_p throughout. | |
542 | ||
543 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> | |
544 | ||
545 | * go-lang.c: Include only gimplify.h and gimple.h as needed. | |
546 | ||
547 | 2013-11-14 Diego Novillo <dnovillo@google.com> | |
548 | ||
549 | * go-backend.c: Include stor-layout.h. | |
550 | * go-gcc.cc: Include stringpool.h. | |
551 | Include stor-layout.h. | |
552 | Include varasm.h. | |
553 | * go-lang.c: Include stor-layout.h. | |
554 | ||
555 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> | |
556 | ||
557 | * go-lang.c: Include gimplify.h. | |
558 | ||
559 | 2013-11-06 Ian Lance Taylor <iant@google.com> | |
560 | ||
561 | * go-lang.c (go_langhook_post_options): If | |
562 | -fisolate-erroneous-paths was turned on by an optimization option, | |
563 | turn it off. | |
564 | ||
565 | 2013-10-14 Chris Manghane <cmang@google.com> | |
566 | ||
567 | * go-gcc.cc (Gcc_backend::address_expression): New function. | |
568 | ||
569 | 2013-10-11 Chris Manghane <cmang@google.com> | |
570 | ||
571 | * go-gcc.cc (Gcc_backend::function_code_expression): New | |
572 | function. | |
573 | ||
574 | 2013-10-10 Chris Manghane <cmang@google.com> | |
575 | ||
576 | * go-gcc.cc (Gcc_backend::error_function): New function. | |
577 | (Gcc_backend::function): New function. | |
578 | (Gcc_backend::make_function): New function. | |
579 | (function_to_tree): New function. | |
580 | ||
581 | 2013-10-04 Chris Manghane <cmang@google.com> | |
582 | ||
583 | * go-gcc.cc (Gcc_backend::convert_expression): New function. | |
584 | ||
585 | 2013-10-02 Chris Manghane <cmang@google.com> | |
586 | ||
587 | * go-gcc.cc: Include "real.h" and "realmpfr.h". | |
588 | (Gcc_backend::integer_constant_expression): New function. | |
589 | (Gcc_backend::float_constant_expression): New function. | |
590 | (Gcc_backend::complex_constant_expression): New function. | |
591 | ||
592 | 2013-09-30 Chris Manghane <cmang@google.com> | |
593 | ||
594 | * go-gcc.cc (Gcc_backend::error_expression): New function. | |
595 | (Gcc_backend::var_expression): New function. | |
596 | (Gcc_backend::indirect_expression): New function. | |
597 | ||
598 | 2013-09-25 Tom Tromey <tromey@redhat.com> | |
599 | ||
600 | * Make-lang.in (gospec.o): Remove. | |
601 | (CFLAGS-go/gospec.o): New variable. | |
602 | (GCCGO_OBJS): Update to use go/gospec.o. | |
603 | (go_OBJS): Define. | |
604 | (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H) | |
605 | (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H) | |
606 | (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H) | |
607 | (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o) | |
608 | (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o) | |
609 | (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o) | |
610 | (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o) | |
611 | (go/parse.o, go/runtime.o, go/statements.o, go/types.o) | |
612 | (go/unsafe.o): Remove. | |
613 | (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables. | |
614 | (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE. | |
615 | ||
616 | 2013-09-25 Tom Tromey <tromey@redhat.com> | |
617 | ||
618 | * Make-lang.in (gospec.o): Don't use subshell. | |
619 | ||
620 | 2013-08-28 Ian Lance Taylor <iant@google.com> | |
621 | ||
622 | * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if | |
623 | the struct is not hidden. | |
624 | (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC. | |
625 | ||
626 | 2013-08-06 Ian Lance Taylor <iant@google.com> | |
627 | ||
628 | * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use | |
629 | compute_reloc_for_constant. | |
630 | ||
631 | 2013-08-02 Ian Lance Taylor <iant@google.com> | |
632 | ||
633 | * go-gcc.cc (immutable_struct_set_init): Always call | |
634 | resolve_unique_section. | |
635 | ||
636 | 2013-07-24 Ian Lance Taylor <iant@google.com> | |
637 | ||
638 | * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a | |
639 | fields, recreate those fields with the first one with a non-zero | |
640 | size. | |
641 | ||
642 | 2013-07-23 Ian Lance Taylor <iant@google.com> | |
643 | ||
644 | * go-backend.c: Don't #include "rtl.h". | |
645 | (go_imported_unsafe): Don't call init_varasm_once. | |
646 | * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H). | |
647 | ||
648 | 2013-07-23 Ian Lance Taylor <iant@google.com> | |
649 | ||
650 | * go-lang.c: Don't #include "except.h". | |
651 | * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H). | |
652 | ||
653 | 2013-06-18 Ian Lance Taylor <iant@google.com> | |
654 | ||
655 | * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden | |
656 | parameter. | |
657 | (Gcc_backend::immutable_struct_set_init): Likewise. | |
658 | ||
659 | 2013-05-16 Jason Merrill <jason@redhat.com> | |
660 | ||
661 | * Make-lang.in (go1$(exeext)): Use link mutex. | |
662 | ||
663 | 2013-01-16 Shenghou Ma <minux.ma@gmail.com> | |
664 | ||
665 | * gospec.c: pass -u pthread_create to linker when static linking. | |
666 | ||
667 | 2012-12-21 Ian Lance Taylor <iant@google.com> | |
668 | ||
669 | PR bootstrap/54659 | |
670 | * go-system.h: Don't include <cstdio>. | |
671 | ||
672 | 2012-12-18 Ian Lance Taylor <iant@google.com> | |
673 | ||
674 | PR go/55201 | |
675 | * gospec.c: Revert last patch. | |
676 | ||
677 | 2012-12-18 Andreas Schwab <schwab@linux-m68k.org> | |
678 | ||
679 | PR go/55201 | |
680 | * gospec.c (LIBATOMIC): Define. | |
681 | (LIBATOMIC_PROFILE): Define. | |
682 | (lang_specific_driver): Add LIBATOMIC[_PROFILE] option. | |
683 | ||
684 | 2012-11-29 Ian Lance Taylor <iant@google.com> | |
685 | ||
686 | * go-gcc.cc: Include "output.h". | |
687 | (global_variable): Add is_unique_section parameter. | |
688 | (global_variable_set_init): Adjust unique section if necessary. | |
689 | * Make-lang.in (go/go-gcc.o): Add dependency on output.h. | |
690 | ||
691 | 2012-11-17 Diego Novillo <dnovillo@google.com> | |
692 | ||
693 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
694 | ||
695 | * go-lang.c: Use new vec API in vec.h. | |
696 | ||
697 | 2012-11-16 Ian Lance Taylor <iant@google.com> | |
698 | ||
699 | * Make-lang.in (gccgo$(exeext)): Add + at start of command. | |
700 | (go1$(exeext)): Likewise. | |
701 | ||
702 | 2012-10-30 Ian Lance Taylor <iant@google.com> | |
703 | ||
704 | * lang.opt (-fgo-relative-import-path): New option. | |
705 | * go-lang.c (go_relative_import_path): New static variable. | |
706 | (go_langhook_init): Pass go_relative_import_path to | |
707 | go_create_gogo. | |
708 | (go_langhook_handle_option): Handle -fgo-relative-import-path. | |
709 | * go-c.h (go_create_gogo): Update declaration. | |
710 | * gccgo.texi (Invoking gccgo): Document | |
711 | -fgo-relative-import-path. | |
712 | ||
713 | 2012-09-17 Ian Lance Taylor <iant@google.com> | |
714 | ||
715 | * config-lang.in (target_libs): Add target-libbacktrace. | |
716 | ||
717 | 2012-09-16 Ian Lance Taylor <iant@google.com> | |
718 | ||
719 | * Make-lang.in (go/gogo.o): Depend on filenames.h. | |
720 | ||
721 | 2012-08-14 Diego Novillo <dnovillo@google.com> | |
722 | ||
723 | Merge from cxx-conversion branch. Configury. | |
724 | ||
725 | * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX. | |
726 | * go-gcc.cc: Likewise. | |
727 | * go-system.h: Likewise. | |
728 | ||
729 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> | |
730 | ||
731 | * go-lang.c (lang_decl): Add variable_size GTY option. | |
732 | ||
733 | 2012-05-09 Ian Lance Taylor <iant@google.com> | |
734 | ||
735 | * lang.opt: Add -fgo-pkgpath. | |
736 | * go-lang.c (go_pkgpath): New static variable. | |
737 | (go_prefix): New static variable. | |
738 | (go_langhook_init): Pass go_pkgpath and go_prefix to | |
739 | go_create_gogo. | |
740 | (go_langhook_handle_option): Handle -fgo-pkgpath. Change | |
741 | -fgo-prefix handling to just set go_prefix. | |
742 | * go-c.h (go_set_prefix): Don't declare. | |
743 | (go_create_gogo): Add pkgpath and prefix to declaration. | |
744 | * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix | |
745 | to pkgpath. Don't include the package name in the asm name. | |
746 | * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the | |
747 | docs for -fgo-prefix. | |
748 | ||
749 | 2012-04-23 Ian Lance Taylor <iant@google.com> | |
750 | ||
751 | * go-lang.c (go_langhook_init): Set MPFR precision to 256. | |
752 | ||
753 | 2012-04-20 Ian Lance Taylor <iant@google.com> | |
754 | ||
755 | * lang.opt: Add -fgo-check-divide-zero and | |
756 | -fgo-check-divide-overflow. | |
757 | * gccgo.texi (Invoking gccgo): Document new options. | |
758 | ||
759 | 2012-04-18 Steven Bosscher <steven@gcc.gnu.org> | |
760 | ||
761 | * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR | |
762 | with NULL_TREE type instead of void_type_node. | |
763 | ||
764 | 2012-03-09 Ian Lance Taylor <iant@google.com> | |
765 | ||
766 | * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs | |
767 | to the lhs type if necessary. | |
768 | ||
769 | 2012-03-08 Ian Lance Taylor <iant@google.com> | |
770 | ||
771 | * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a | |
772 | zero-sized variable. | |
773 | (go_non_zero_struct): New global variable. | |
774 | (Gcc_backend::non_zero_size_type): New function. | |
775 | (Gcc_backend::global_variable): Don't build an assignment for a | |
776 | zero-sized value. | |
777 | * go-c.h (go_non_zero_struct): Declare. | |
778 | * config-lang.in (gtfiles): Add go-c.h. | |
779 | ||
780 | 2012-02-29 Ian Lance Taylor <iant@google.com> | |
781 | ||
782 | * go-gcc.cc (class Gcc_tree): Add set_tree method. | |
783 | (set_placeholder_pointer_type): When setting to a pointer to | |
784 | error, set to error_mark_node. | |
785 | ||
786 | 2012-02-23 Richard Guenther <rguenther@suse.de> | |
787 | ||
788 | * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use | |
789 | build_distinct_type_copy. | |
790 | ||
791 | 2012-02-17 Ian Lance Taylor <iant@google.com> | |
792 | ||
793 | * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H). | |
794 | ||
795 | 2012-02-17 Ian Lance Taylor <iant@google.com> | |
796 | ||
797 | * gospec.c (lang_specific_driver): If linking, and no -o option | |
798 | was used, add one. | |
799 | ||
800 | 2012-02-14 Ian Lance Taylor <iant@google.com> | |
801 | ||
802 | PR go/48411 | |
803 | * Make-lang.in (gccgo-cross$(exeext)): New target. | |
804 | (go.all.cross): Depend on gccgo-cross$(exeext) instead of | |
805 | gccgo$(exeext). | |
806 | (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if | |
807 | gccgo-cross$(exeext) does not exist. | |
808 | ||
809 | 2012-02-07 Ian Lance Taylor <iant@google.com> | |
810 | ||
811 | * gccgo.texi (Function Names): Document //extern instead of | |
812 | __asm__. | |
813 | ||
814 | 2012-02-01 Jakub Jelinek <jakub@redhat.com> | |
815 | ||
816 | PR target/52079 | |
817 | * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI | |
818 | return build_nonstandard_integer_type result if possible. | |
819 | ||
820 | 2012-01-21 Ian Lance Taylor <iant@google.com> | |
821 | ||
822 | * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node. | |
823 | (Gcc_backend::type_alignment): Likewise. | |
824 | (Gcc_backend::type_field_alignment): Likewise. | |
825 | (Gcc_backend::type_field_offset): Likewise. | |
826 | ||
827 | 2012-01-20 Ian Lance Taylor <iant@google.com> | |
828 | ||
829 | * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to | |
830 | be empty. | |
831 | (Gcc_backend::set_placeholder_struct_type): Likewise. | |
832 | ||
833 | 2012-01-17 Ian Lance Taylor <iant@google.com> | |
834 | ||
835 | * gospec.c (lang_specific_driver): If we see -S without -o, add -o | |
836 | BASE.s rather than -o BASE.o. | |
837 | ||
838 | 2012-01-11 Ian Lance Taylor <iant@google.com> | |
839 | ||
840 | * go-lang.c (go_langhook_init): Initialize void_list_node before | |
841 | calling go_create_gogo. | |
842 | ||
843 | 2012-01-10 Ian Lance Taylor <iant@google.com> | |
844 | ||
845 | * go-gcc.cc (Gcc_backend::type_size): New function. | |
846 | (Gcc_backend::type_alignment): New function. | |
847 | (Gcc_backend::type_field_alignment): New function. | |
848 | (Gcc_backend::type_field_offset): New function. | |
849 | * go-backend.c (go_type_alignment): Remove. | |
850 | * go-c.h (go_type_alignment): Don't declare. | |
851 | ||
852 | 2011-12-27 Ian Lance Taylor <iant@google.com> | |
853 | ||
854 | * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use | |
855 | build_distinct_type_copy rather than build_variant_type_copy. | |
856 | (Gcc_backend::set_placeholder_array_type): Likewise. | |
857 | (Gcc_backend::named_type): Add special handling for builtin | |
858 | basic types. | |
859 | ||
860 | 2011-12-22 Ian Lance Taylor <iant@google.com> | |
861 | ||
862 | * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange | |
863 | for the type name to have a DECL_ORIGINAL_TYPE as gcc expects. | |
864 | (Gcc_backend::set_placeholder_struct_type): Likewise. | |
865 | (Gcc_backend::set_placeholder_array_type): Likewise. | |
866 | (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE. | |
867 | ||
868 | 2011-12-13 Ian Lance Taylor <iant@google.com> | |
869 | ||
870 | * go-backend.c: #include "simple-object.h" and "intl.h". | |
871 | (GO_EXPORT_SEGMENT_NAME): Define if not defined. | |
872 | (GO_EXPORT_SECTION_NAME): Likewise. | |
873 | (go_write_export_data): Use GO_EXPORT_SECTION_NAME. | |
874 | (go_read_export_data): New function. | |
875 | * go-c.h (go_read_export_data): Declare. | |
876 | ||
877 | 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com> | |
878 | Ian Lance Taylor <iant@google.com> | |
879 | ||
880 | * go-location.h: New file. | |
881 | * go-linemap.cc: New file. | |
882 | * go-gcc.cc: Change all uses of source_location to Location. | |
883 | * Make-lang.in (GO_OBJS): Add go/go-linemap.o. | |
884 | (GO_LINEMAP_H): New variable. | |
885 | (GO_LEX_H): Use $(GO_LINEMAP_H). | |
886 | (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise. | |
887 | (go/go-linemap.o): New target. | |
888 | ||
889 | 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
890 | ||
891 | * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK. | |
892 | ||
893 | 2011-08-24 Roberto Lublinerman <rluble@gmail.com> | |
894 | ||
895 | * lang.opt: Add fgo-optimize-. | |
896 | * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize. | |
897 | * go-c.h (go_enable_optimize): Declare. | |
898 | * Make-lang.in (GO_OBJS): Add go/go-optimize.o. | |
899 | (GO_EXPORT_H): Define. | |
900 | (GO_IMPORT_H): Add $(GO_EXPORT_H). | |
901 | (GO_AST_DUMP_H): Define. | |
902 | (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H. | |
903 | (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H. | |
904 | (go/types.o): Likewise. | |
905 | (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H. | |
906 | (go/go-optimize.o): New target. | |
907 | ||
908 | 2011-08-24 Joseph Myers <joseph@codesourcery.com> | |
909 | ||
910 | * Make-lang.in (CFLAGS-go/go-lang.o): New. | |
911 | (go/go-lang.o): Remove explicit compilation rule. | |
912 | ||
913 | 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
914 | ||
915 | * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS). | |
916 | ||
917 | 2011-08-02 Roberto Lublinerman <rluble@gmail.com> | |
918 | ||
919 | * Make-lang.in (GO_OBJS): Add go/ast-dump.o. | |
920 | (go/ast-dump.o): New target. | |
921 | (go/expressions.o): Depend on go/gofrontend/ast-dump.h. | |
922 | (go/statements.o): Likewise. | |
923 | ||
924 | 2011-07-06 Richard Guenther <rguenther@suse.de> | |
925 | ||
926 | * go-lang.c (go_langhook_init): | |
927 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
928 | ||
929 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> | |
930 | ||
931 | * Make-lang.in (go/go-lang.o, go/go-backend.o): Update | |
932 | dependencies. | |
933 | * go-backend.c: Include common/common-target.h. | |
934 | (go_write_export_data): Use targetm_common.have_named_sections. | |
935 | * go-lang.c: Include common/common-target.h. | |
936 | (go_langhook_init_options_struct): Use | |
937 | targetm_common.supports_split_stack. | |
938 | ||
939 | 2011-06-13 Ian Lance Taylor <iant@google.com> | |
940 | ||
941 | * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H). | |
942 | ||
943 | 2011-06-10 Ian Lance Taylor <iant@google.com> | |
944 | ||
945 | * go-gcc.cc: Include "toplev.h". | |
946 | (Gcc_backend::immutable_struct): New function. | |
947 | (Gcc_backend::immutable_struct_set_init): New function. | |
948 | (Gcc_backend::immutable_struct_reference): New function. | |
949 | * Make-lang.in (go/go-gcc.o): Depend on toplev.h. | |
950 | ||
951 | 2011-06-09 Ian Lance Taylor <iant@google.com> | |
952 | ||
953 | * go-gcc.cc (Gcc_backend::zero_expression): New function. | |
954 | ||
955 | 2011-06-07 Richard Guenther <rguenther@suse.de> | |
956 | ||
957 | * go-lang.c (go_langhook_init): Do not set | |
958 | size_type_node or call set_sizetype. | |
959 | ||
960 | 2011-05-27 Ian Lance Taylor <iant@google.com> | |
961 | ||
962 | * go-backend.c: Include "output.h". | |
963 | (go_write_export_data): New function. | |
964 | * go-c.h (go_write_export_data): Declare. | |
965 | * Make-lang.in (go/go-backend.o): Depend on output.h. | |
966 | (go/export.o): Depend on $(GO_C_H). Do not depend on | |
967 | $(MACHMODE_H), output.h, or $(TARGET_H). | |
968 | ||
969 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> | |
970 | ||
971 | * Make-lang.in (GCCGO_OBJS): Remove prefix.o. | |
972 | (gccgo$(exeext)): Use libcommon-target.a. | |
973 | ||
974 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> | |
975 | ||
976 | * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o. | |
977 | ||
978 | 2011-05-13 Ian Lance Taylor <iant@google.com> | |
979 | ||
980 | * go-gcc.cc (Gcc_backend::function_type): When building a struct | |
981 | for multiple results, check that all fields types have a size. | |
982 | (Gcc_backend::placeholder_pointer_type): Permit name to be empty. | |
983 | ||
984 | 2011-05-12 Ian Lance Taylor <iant@google.com> | |
985 | ||
986 | * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken | |
987 | parameter. | |
988 | (Gcc_backend::parameter_variable): Likewise. | |
989 | ||
990 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> | |
991 | ||
992 | * go-lang.c (global_bindings_p): Return bool and simplify. | |
993 | ||
994 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> | |
995 | ||
996 | * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label. | |
997 | ||
998 | 2011-05-04 Ian Lance Taylor <iant@google.com> | |
999 | ||
1000 | * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct. | |
1001 | (Gcc_backend::fill_in_struct): New function. | |
1002 | (Gcc_backend::array_type): Implement. | |
1003 | (Gcc_backend::fill_in_array): New function. | |
1004 | (Gcc_backend::placeholder_pointer_type): New function. | |
1005 | (Gcc_backend::set_placeholder_pointer_type): New function. | |
1006 | (Gcc_backend::set_placeholder_function_type): New function. | |
1007 | (Gcc_backend::placeholder_struct_type): New function. | |
1008 | (Gcc_backend::set_placeholder_struct_type): New function. | |
1009 | (Gcc_backend::placeholder_array_type): New function. | |
1010 | (Gcc_backend::set_placeholder_array_type): New function. | |
1011 | (Gcc_backend::named_type): New function. | |
1012 | (Gcc_backend::circular_pointer_type): New function. | |
1013 | (Gcc_backend::is_circular_pointer_type): New function. | |
1014 | ||
1015 | 2011-04-26 Ian Lance Taylor <iant@google.com> | |
1016 | ||
1017 | * go-gcc.cc (Gcc_backend::struct_type): Implement. | |
1018 | ||
1019 | 2011-04-25 Ian Lance Taylor <iant@google.com> | |
1020 | ||
1021 | * go-gcc.cc (Gcc_backend::error_type): Implement. | |
1022 | (Gcc_backend::string_type): Remove. | |
1023 | (Gcc_backend::function_type): Change signature and implement. | |
1024 | (Gcc_backend::struct_type): Change signature. | |
1025 | (Gcc_backend::slice_type, Gcc_backend::map_type): Remove. | |
1026 | (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove. | |
1027 | (Gcc_backend::pointer_type): Check for error. | |
1028 | * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h. | |
1029 | ||
1030 | 2011-04-25 Evan Shaw <edsrzf@gmail.com> | |
1031 | ||
1032 | * go-gcc.c (class Gcc_tree): Make get_tree const. | |
1033 | (Gcc_backend::void_type): Implement. | |
1034 | (Gcc_backend::bool_type): Implement. | |
1035 | (Gcc_backend::integer_type): Implement. | |
1036 | (Gcc_backend::float_type): Implement. | |
1037 | (Gcc_backend::complex_type): New function. | |
1038 | (Gcc_backend::pointer_type): New function. | |
1039 | (Gcc_backend::make_type): New function. | |
1040 | (type_to_tree): New function. | |
1041 | ||
1042 | 2011-04-21 Ian Lance Taylor <iant@google.com> | |
1043 | ||
1044 | * go-system.h (go_assert, go_unreachable): Define. | |
1045 | ||
1046 | 2011-04-19 Ian Lance Taylor <iant@google.com> | |
1047 | ||
1048 | * go-system.h: Include "intl.h". | |
1049 | * Make-lang.in (GO_SYSTEM_H): Add intl.h. | |
1050 | (go/statements.o): Remove dependencies on intl.h $(TREE_H) | |
1051 | $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H). | |
1052 | ||
1053 | 2011-04-19 Ian Lance Taylor <iant@google.com> | |
1054 | ||
1055 | * go-gcc.cc (Gcc_backend::temporary_variable): New function. | |
1056 | ||
1057 | 2011-04-19 Ian Lance Taylor <iant@google.com> | |
1058 | ||
1059 | * go-gcc.cc (class Bblock): Define. | |
1060 | (Gcc_backend::if_statement): Change then_block and else_block to | |
1061 | Bblock*. | |
1062 | (Gcc_backend::block): New function. | |
1063 | (Gcc_backend::block_add_statements): New function. | |
1064 | (Gcc_backend::block_statement): New function. | |
1065 | (tree_to_block, block_to_tree): New functions. | |
1066 | ||
1067 | 2011-04-18 Ian Lance Taylor <iant@google.com> | |
1068 | ||
1069 | * go-gcc.cc: Include "go-c.h". | |
1070 | (class Bvariable): Define. | |
1071 | (Gcc_backend::init_statement): New function. | |
1072 | (Gcc_backend::global_variable): New function. | |
1073 | (Gcc_backend::global_variable_set_init): New function. | |
1074 | (Gcc_backend::local_variable): New function. | |
1075 | (Gcc_backend::parameter_variable): New function. | |
1076 | (tree_to_type, var_to_tree): New functions. | |
1077 | * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H). | |
1078 | * (go/gogo-tree.o): Depend on go/gofrontend/backend.h. | |
1079 | ||
1080 | 2011-04-15 Ian Lance Taylor <iant@google.com> | |
1081 | ||
1082 | * go-gcc.cc (Gcc_backend::compound_statement): New function. | |
1083 | (Gcc_backend::assignment_statement): Use error_statement. | |
1084 | (Gcc_backend::return_statement): Likewise. | |
1085 | (Gcc_backend::if_statement): Likewise. | |
1086 | (Gcc_backend::switch_statement): Likewise. | |
1087 | (Gcc_backend::statement_list): Likewise. | |
1088 | ||
1089 | 2011-04-14 Ian Lance Taylor <iant@google.com> | |
1090 | ||
1091 | * go-gcc.cc (Gcc_backend::error_statement): New function. | |
1092 | ||
1093 | 2011-04-13 Ian Lance Taylor <iant@google.com> | |
1094 | ||
1095 | * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H). | |
1096 | ||
1097 | 2011-04-13 Ian Lance Taylor <iant@google.com> | |
1098 | ||
1099 | * Make-lang.in (GO_OBJS): Add go/runtime.o. | |
1100 | (GO_RUNTIME_H): New variable. | |
1101 | (go/runtime.o): New target. | |
1102 | (go/gogo.o): Depend on $(GO_RUNTIME_H). | |
1103 | (go/statements.o): Likewise. | |
1104 | ||
1105 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> | |
1106 | ||
1107 | * go-lang.c (union lang_tree_node): Check for TS_COMMON before | |
1108 | calling TREE_CHAIN. | |
1109 | ||
1110 | 2011-04-06 Ian Lance Taylor <iant@google.com> | |
1111 | ||
1112 | * go-gcc.cc (if_statement): Use build3_loc. | |
1113 | (Gcc_backend::switch_statement): New function. | |
1114 | (Gcc_backend::statement_list): New function. | |
1115 | ||
1116 | 2011-04-06 Ian Lance Taylor <iant@google.com> | |
1117 | ||
1118 | * go-gcc.cc (Gcc_backend::if_statement): New function. | |
1119 | (tree_to_stat): New function. | |
1120 | (expr_to_tree): Renamed from expression_to_tree. | |
1121 | (stat_to_tree): Renamed from statement_to_tree. | |
1122 | ||
1123 | 2011-04-06 Ian Lance Taylor <iant@google.com> | |
1124 | ||
1125 | * go-gcc.cc (Gcc_backend::expression_statement): New function. | |
1126 | ||
1127 | 2011-04-04 Ian Lance Taylor <iant@google.com> | |
1128 | ||
1129 | * go-gcc.c (class Blabel): Define. | |
1130 | (Gcc_backend::make_expression): New function. | |
1131 | (get_identifier_from_string): New function. | |
1132 | (Gcc_backend::label): New function. | |
1133 | (Gcc_backend::label_definition_statement): New function. | |
1134 | (Gcc_backend::goto_statement): New function. | |
1135 | (Gcc_backend::label_address): New function. | |
1136 | (expression_to_tree): New function. | |
1137 | * Make-lang.in (go/expressions.o): Depend on | |
1138 | go/gofrontend/backend.h. | |
1139 | (go/gogo.o): Likewise. | |
1140 | ||
1141 | 2011-04-04 Ian Lance Taylor <iant@google.com> | |
1142 | ||
1143 | * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h". | |
1144 | (class Bfunction): Define. | |
1145 | (Gcc_backend::assignment_statement): Rename from assignment. | |
1146 | Check for errors. | |
1147 | (Gcc_backend::return_statement): New function. | |
1148 | (tree_to_function): New function. | |
1149 | * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h, | |
1150 | $(GIMPLE_H), and $(GO_GOGO_H). | |
1151 | ||
1152 | 2011-04-03 Ian Lance Taylor <iant@google.com> | |
1153 | ||
1154 | * go-gcc.cc: New file. | |
1155 | * Make-lang.in (GO_OBJS): Add go/go-gcc.o. | |
1156 | (go/go-gcc.o): New target. | |
1157 | (go/go.o): Depend on go/gofrontend/backend.h. | |
1158 | (go/statements.o): Likewise. | |
1159 | ||
1160 | 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | |
1161 | ||
1162 | * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit. | |
1163 | ||
1164 | 2011-02-08 Ian Lance Taylor <iant@google.com> | |
1165 | ||
1166 | * go-lang.c (go_langhook_init_options_struct): Set | |
1167 | frontend_set_flag_errno_math. Don't set x_flag_trapping_math. | |
1168 | ||
1169 | 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
1170 | ||
1171 | * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use | |
1172 | LD_STATIC_OPTION, LD_DYNAMIC_OPTION. | |
1173 | ||
1174 | 2011-01-21 Ian Lance Taylor <iant@google.com> | |
1175 | ||
1176 | * go-lang.c (go_langhook_init): Omit float_type_size when calling | |
1177 | go_create_gogo. | |
1178 | * go-c.h: Update declaration of go_create_gogo. | |
1179 | ||
1180 | 2011-01-13 Ian Lance Taylor <iant@google.com> | |
1181 | ||
1182 | * go-backend.c: Include "rtl.h" and "target.h". | |
1183 | (go_imported_unsafe): New function. | |
1184 | * go-c.h (go_imported_unsafe): Declare. | |
1185 | * Make-lang.in (go/go-backend.o): Depend on $(RTL_H). | |
1186 | (go/gogo-tree.o): Remove dependency on $(RTL_H). | |
1187 | (go/unsafe.o): Depend on $(GO_C_H). | |
1188 | ||
1189 | 2010-12-31 Joern Rennecke <amylaar@spamcop.net> | |
1190 | ||
1191 | PR go/47113 | |
1192 | * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to | |
1193 | variable ‘field’ . | |
1194 | ||
1195 | 2010-12-21 Ian Lance Taylor <iant@google.com> | |
1196 | ||
1197 | * Make-lang.in (check-go): Remove. | |
1198 | (lang_checks_parallelized): Add check-go. | |
1199 | (check_go_parallelize): Set. | |
1200 | ||
1201 | 2010-12-13 Ian Lance Taylor <iant@google.com> | |
1202 | ||
1203 | * gospec.c (lang_specific_driver): Add a -o option if not linking | |
1204 | and there is no -o option already. | |
1205 | ||
1206 | 2010-12-07 Ian Lance Taylor <iant@google.com> | |
1207 | ||
1208 | PR tree-optimization/46805 | |
1209 | PR tree-optimization/46833 | |
1210 | * go-lang.c (go_langhook_type_for_mode): Handle vector modes. | |
1211 | ||
1212 | 2010-12-06 Ian Lance Taylor <iant@google.com> | |
1213 | ||
1214 | PR other/46789 | |
1215 | PR bootstrap/46812 | |
1216 | * go-lang.c (go_char_p): Define type and vectors. | |
1217 | (go_search_dirs): New static variable. | |
1218 | (go_langhook_handle_option): Use version and version/machine | |
1219 | directories for -L. | |
1220 | (go_langhook_post_options): Add non-specific -L paths. | |
1221 | * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and | |
1222 | DEFAULT_TARGET_MACHINE when compiling. | |
1223 | * gccgo.texi (Invoking gccgo): Only document -L for linking. | |
1224 | (Import and Export): Don't mention -L for finding import files. | |
1225 | ||
1226 | 2010-12-03 Ian Lance Taylor <iant@google.com> | |
1227 | ||
1228 | PR bootstrap/46776 | |
1229 | * go-backend.c: New file. | |
1230 | * go-c.h (go_type_alignment): Declare. | |
1231 | (go_field_alignment, go_trampoline_info): Declare. | |
1232 | * Make-lang.in (GO_OBJS): Add go/go-backend.o. | |
1233 | (go/go-backend.o): New target. | |
1234 | (go/go-lang.o): Make dependencies match source file. | |
1235 | (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H). | |
1236 | (go/gogo-tree.o): Don't depend on $(TM_H). | |
1237 | ||
1238 | 2010-12-03 Ian Lance Taylor <iant@google.com> | |
1239 | ||
1240 | * config-lang.in (build_by_default): Set to no. | |
1241 | ||
1242 | 2010-12-02 Ian Lance Taylor <iant@google.com> | |
1243 | ||
1244 | Go frontend added to gcc repository. | |
98db73df | 1245 | \f |
21fa2a29 | 1246 | Copyright (C) 2010-2016 Free Software Foundation, Inc. |
71eba7a0 | 1247 | |
98db73df TB |
1248 | Copying and distribution of this file, with or without modification, |
1249 | are permitted in any medium without royalty provided the copyright | |
1250 | notice and this notice are preserved. |