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