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