OSDN Git Service

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