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