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