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