OSDN Git Service

Remove entry for gofrontend directory which should not be here.
[pf3gnuchains/gcc-fork.git] / gcc / go / ChangeLog
1 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2
3         * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
4
5 2011-08-02  Roberto Lublinerman  <rluble@gmail.com>
6
7         * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
8         (go/ast-dump.o): New target.
9         (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
10         (go/statements.o): Likewise.
11
12 2011-07-06  Richard Guenther  <rguenther@suse.de>
13
14         * go-lang.c (go_langhook_init):
15         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
16
17 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
18
19         * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
20         dependencies.
21         * go-backend.c: Include common/common-target.h.
22         (go_write_export_data): Use targetm_common.have_named_sections.
23         * go-lang.c: Include common/common-target.h.
24         (go_langhook_init_options_struct): Use
25         targetm_common.supports_split_stack.
26
27 2011-06-13  Ian Lance Taylor  <iant@google.com>
28
29         * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
30
31 2011-06-10  Ian Lance Taylor  <iant@google.com>
32
33         * go-gcc.cc: Include "toplev.h".
34         (Gcc_backend::immutable_struct): New function.
35         (Gcc_backend::immutable_struct_set_init): New function.
36         (Gcc_backend::immutable_struct_reference): New function.
37         * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
38
39 2011-06-09  Ian Lance Taylor  <iant@google.com>
40
41         * go-gcc.cc (Gcc_backend::zero_expression): New function.
42
43 2011-06-07  Richard Guenther  <rguenther@suse.de>
44
45         * go-lang.c (go_langhook_init): Do not set
46         size_type_node or call set_sizetype.
47
48 2011-05-27  Ian Lance Taylor  <iant@google.com>
49
50         * go-backend.c: Include "output.h".
51         (go_write_export_data): New function.
52         * go-c.h (go_write_export_data): Declare.
53         * Make-lang.in (go/go-backend.o): Depend on output.h.
54         (go/export.o): Depend on $(GO_C_H).  Do not depend on
55         $(MACHMODE_H), output.h, or $(TARGET_H).
56
57 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
58
59         * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
60         (gccgo$(exeext)): Use libcommon-target.a.
61
62 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
63
64         * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
65
66 2011-05-13  Ian Lance Taylor  <iant@google.com>
67
68         * go-gcc.cc (Gcc_backend::function_type): When building a struct
69         for multiple results, check that all fields types have a size.
70         (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
71
72 2011-05-12  Ian Lance Taylor  <iant@google.com>
73
74         * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
75         parameter.
76         (Gcc_backend::parameter_variable): Likewise.
77
78 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
79
80         * go-lang.c (global_bindings_p): Return bool and simplify.
81
82 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
83
84         * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
85
86 2011-05-04  Ian Lance Taylor  <iant@google.com>
87
88         * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
89         (Gcc_backend::fill_in_struct): New function.
90         (Gcc_backend::array_type): Implement.
91         (Gcc_backend::fill_in_array): New function.
92         (Gcc_backend::placeholder_pointer_type): New function.
93         (Gcc_backend::set_placeholder_pointer_type): New function.
94         (Gcc_backend::set_placeholder_function_type): New function.
95         (Gcc_backend::placeholder_struct_type): New function.
96         (Gcc_backend::set_placeholder_struct_type): New function.
97         (Gcc_backend::placeholder_array_type): New function.
98         (Gcc_backend::set_placeholder_array_type): New function.
99         (Gcc_backend::named_type): New function.
100         (Gcc_backend::circular_pointer_type): New function.
101         (Gcc_backend::is_circular_pointer_type): New function.
102
103 2011-04-26  Ian Lance Taylor  <iant@google.com>
104
105         * go-gcc.cc (Gcc_backend::struct_type): Implement.
106
107 2011-04-25  Ian Lance Taylor  <iant@google.com>
108
109         * go-gcc.cc (Gcc_backend::error_type): Implement.
110         (Gcc_backend::string_type): Remove.
111         (Gcc_backend::function_type): Change signature and implement.
112         (Gcc_backend::struct_type): Change signature.
113         (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
114         (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
115         (Gcc_backend::pointer_type): Check for error.
116         * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
117
118 2011-04-25  Evan Shaw  <edsrzf@gmail.com>
119
120         * go-gcc.c (class Gcc_tree): Make get_tree const.
121         (Gcc_backend::void_type): Implement.
122         (Gcc_backend::bool_type): Implement.
123         (Gcc_backend::integer_type): Implement.
124         (Gcc_backend::float_type): Implement.
125         (Gcc_backend::complex_type): New function.
126         (Gcc_backend::pointer_type): New function.
127         (Gcc_backend::make_type): New function.
128         (type_to_tree): New function.
129
130 2011-04-21  Ian Lance Taylor  <iant@google.com>
131
132         * go-system.h (go_assert, go_unreachable): Define.
133
134 2011-04-19  Ian Lance Taylor  <iant@google.com>
135
136         * go-system.h: Include "intl.h".
137         * Make-lang.in (GO_SYSTEM_H): Add intl.h.
138         (go/statements.o): Remove dependencies on intl.h $(TREE_H)
139         $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
140
141 2011-04-19  Ian Lance Taylor  <iant@google.com>
142
143         * go-gcc.cc (Gcc_backend::temporary_variable): New function.
144
145 2011-04-19  Ian Lance Taylor  <iant@google.com>
146
147         * go-gcc.cc (class Bblock): Define.
148         (Gcc_backend::if_statement): Change then_block and else_block to
149         Bblock*.
150         (Gcc_backend::block): New function.
151         (Gcc_backend::block_add_statements): New function.
152         (Gcc_backend::block_statement): New function.
153         (tree_to_block, block_to_tree): New functions.
154
155 2011-04-18  Ian Lance Taylor  <iant@google.com>
156
157         * go-gcc.cc: Include "go-c.h".
158         (class Bvariable): Define.
159         (Gcc_backend::init_statement): New function.
160         (Gcc_backend::global_variable): New function.
161         (Gcc_backend::global_variable_set_init): New function.
162         (Gcc_backend::local_variable): New function.
163         (Gcc_backend::parameter_variable): New function.
164         (tree_to_type, var_to_tree): New functions.
165         * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
166         * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
167
168 2011-04-15  Ian Lance Taylor  <iant@google.com>
169
170         * go-gcc.cc (Gcc_backend::compound_statement): New function.
171         (Gcc_backend::assignment_statement): Use error_statement.
172         (Gcc_backend::return_statement): Likewise.
173         (Gcc_backend::if_statement): Likewise.
174         (Gcc_backend::switch_statement): Likewise.
175         (Gcc_backend::statement_list): Likewise.
176
177 2011-04-14  Ian Lance Taylor  <iant@google.com>
178
179         * go-gcc.cc (Backend::error_statement): New function.
180
181 2011-04-13  Ian Lance Taylor  <iant@google.com>
182
183         * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
184
185 2011-04-13  Ian Lance Taylor  <iant@google.com>
186
187         * Make-lang.in (GO_OBJS): Add go/runtime.o.
188         (GO_RUNTIME_H): New variable.
189         (go/runtime.o): New target.
190         (go/gogo.o): Depend on $(GO_RUNTIME_H).
191         (go/statements.o): Likewise.
192
193 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
194
195         * go-lang.c (union lang_tree_node): Check for TS_COMMON before
196         calling TREE_CHAIN.
197
198 2011-04-06  Ian Lance Taylor  <iant@google.com>
199
200         * go-gcc.cc (if_statement): Use build3_loc.
201         (Gcc_backend::switch_statement): New function.
202         (Gcc_backend::statement_list): New function.
203
204 2011-04-06  Ian Lance Taylor  <iant@google.com>
205
206         * go-gcc.cc (Gcc_backend::if_statement): New function.
207         (tree_to_stat): New function.
208         (expr_to_tree): Renamed from expression_to_tree.
209         (stat_to_tree): Renamed from statement_to_tree.
210
211 2011-04-06  Ian Lance Taylor  <iant@google.com>
212
213         * go-gcc.cc (Gcc_backend::expression_statement): New function.
214
215 2011-04-04  Ian Lance Taylor  <iant@google.com>
216
217         * go-gcc.c (class Blabel): Define.
218         (Gcc_backend::make_expression): New function.
219         (get_identifier_from_string): New function.
220         (Gcc_backend::label): New function.
221         (Gcc_backend::label_definition_statement): New function.
222         (Gcc_backend::goto_statement): New function.
223         (Gcc_backend::label_address): New function.
224         (expression_to_tree): New function.
225         * Make-lang.in (go/expressions.o): Depend on
226         go/gofrontend/backend.h.
227         (go/gogo.o): Likewise.
228
229 2011-04-04  Ian Lance Taylor  <iant@google.com>
230
231         * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
232         (class Bfunction): Define.
233         (Gcc_backend::assignment_statement): Rename from assignment.
234         Check for errors.
235         (Gcc_backend::return_statement): New function.
236         (tree_to_function): New function.
237         * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
238         $(GIMPLE_H), and $(GO_GOGO_H).
239
240 2011-04-03  Ian Lance Taylor  <iant@google.com>
241
242         * go-gcc.cc: New file.
243         * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
244         (go/go-gcc.o): New target.
245         (go/go.o): Depend on go/gofrontend/backend.h.
246         (go/statements.o): Likewise.
247
248 2011-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
249
250         * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
251
252 2011-02-08  Ian Lance Taylor  <iant@google.com>
253
254         * go-lang.c (go_langhook_init_options_struct): Set
255         frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
256
257 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
258
259         * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
260         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
261
262 2011-01-21  Ian Lance Taylor  <iant@google.com>
263
264         * go-lang.c (go_langhook_init): Omit float_type_size when calling
265         go_create_gogo.
266         * go-c.h: Update declaration of go_create_gogo.
267
268 2011-01-13  Ian Lance Taylor  <iant@google.com>
269
270         * go-backend.c: Include "rtl.h" and "target.h".
271         (go_imported_unsafe): New function.
272         * go-c.h (go_imported_unsafe): Declare.
273         * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
274         (go/gogo-tree.o): Remove dependency on $(RTL_H).
275         (go/unsafe.o): Depend on $(GO_C_H).
276
277 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
278
279         PR go/47113
280         * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
281         variable ‘field’ .
282
283 2010-12-21  Ian Lance Taylor  <iant@google.com>
284
285         * Make-lang.in (check-go): Remove.
286         (lang_checks_parallelized): Add check-go.
287         (check_go_parallelize): Set.
288
289 2010-12-13  Ian Lance Taylor  <iant@google.com>
290
291         * gospec.c (lang_specific_driver): Add a -o option if not linking
292         and there is no -o option already.
293
294 2010-12-07  Ian Lance Taylor  <iant@google.com>
295
296         PR tree-optimization/46805
297         PR tree-optimization/46833
298         * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
299
300 2010-12-06  Ian Lance Taylor  <iant@google.com>
301
302         PR other/46789
303         PR bootstrap/46812
304         * go-lang.c (go_char_p): Define type and vectors.
305         (go_search_dirs): New static variable.
306         (go_langhook_handle_option): Use version and version/machine
307         directories for -L.
308         (go_langhook_post_options): Add non-specific -L paths.
309         * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
310         DEFAULT_TARGET_MACHINE when compiling.
311         * gccgo.texi (Invoking gccgo): Only document -L for linking.
312         (Import and Export): Don't mention -L for finding import files.
313
314 2010-12-03  Ian Lance Taylor  <iant@google.com>
315
316         PR bootstrap/46776
317         * go-backend.c: New file.
318         * go-c.h (go_type_alignment): Declare.
319         (go_field_alignment, go_trampoline_info): Declare.
320         * Make-lang.in (GO_OBJS): Add go/go-backend.o.
321         (go/go-backend.o): New target.
322         (go/go-lang.o): Make dependencies match source file.
323         (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
324         (go/gogo-tree.o): Don't depend on $(TM_H).
325
326 2010-12-03  Ian Lance Taylor  <iant@google.com>
327
328         * config-lang.in (build_by_default): Set to no.
329
330 2010-12-02  Ian Lance Taylor  <iant@google.com>
331
332         Go frontend added to gcc repository.