1 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
3 * gospec.c: pass -u pthread_create to linker when static linking.
5 2012-12-21 Ian Lance Taylor <iant@google.com>
8 * go-system.h: Don't include <cstdio>.
10 2012-12-18 Ian Lance Taylor <iant@google.com>
13 * gospec.c: Revert last patch.
15 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
18 * gospec.c (LIBATOMIC): Define.
19 (LIBATOMIC_PROFILE): Define.
20 (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
22 2012-11-29 Ian Lance Taylor <iant@google.com>
24 * go-gcc.cc: Include "output.h".
25 (global_variable): Add is_unique_section parameter.
26 (global_variable_set_init): Adjust unique section if necessary.
27 * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
29 2012-11-17 Diego Novillo <dnovillo@google.com>
31 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
33 * go-lang.c: Use new vec API in vec.h.
35 2012-11-16 Ian Lance Taylor <iant@google.com>
37 * Make-lang.in (gccgo$(exeext)): Add + at start of command.
38 (go1$(exeext)): Likewise.
40 2012-10-30 Ian Lance Taylor <iant@google.com>
42 * lang.opt (-fgo-relative-import-path): New option.
43 * go-lang.c (go_relative_import_path): New static variable.
44 (go_langhook_init): Pass go_relative_import_path to
46 (go_langhook_handle_option): Handle -fgo-relative-import-path.
47 * go-c.h (go_create_gogo): Update declaration.
48 * gccgo.texi (Invoking gccgo): Document
49 -fgo-relative-import-path.
51 2012-09-17 Ian Lance Taylor <iant@google.com>
53 * config-lang.in (target_libs): Add target-libbacktrace.
55 2012-09-16 Ian Lance Taylor <iant@google.com>
57 * Make-lang.in (go/gogo.o): Depend on filenames.h.
59 2012-08-14 Diego Novillo <dnovillo@google.com>
61 Merge from cxx-conversion branch. Configury.
63 * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
64 * go-gcc.cc: Likewise.
65 * go-system.h: Likewise.
67 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
69 * go-lang.c (lang_decl): Add variable_size GTY option.
71 2012-05-09 Ian Lance Taylor <iant@google.com>
73 * lang.opt: Add -fgo-pkgpath.
74 * go-lang.c (go_pkgpath): New static variable.
75 (go_prefix): New static variable.
76 (go_langhook_init): Pass go_pkgpath and go_prefix to
78 (go_langhook_handle_option): Handle -fgo-pkgpath. Change
79 -fgo-prefix handling to just set go_prefix.
80 * go-c.h (go_set_prefix): Don't declare.
81 (go_create_gogo): Add pkgpath and prefix to declaration.
82 * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
83 to pkgpath. Don't include the package name in the asm name.
84 * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
87 2012-04-23 Ian Lance Taylor <iant@google.com>
89 * go-lang.c (go_langhook_init): Set MPFR precision to 256.
91 2012-04-20 Ian Lance Taylor <iant@google.com>
93 * lang.opt: Add -fgo-check-divide-zero and
94 -fgo-check-divide-overflow.
95 * gccgo.texi (Invoking gccgo): Document new options.
97 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
99 * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
100 with NULL_TREE type instead of void_type_node.
102 2012-03-09 Ian Lance Taylor <iant@google.com>
104 * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
105 to the lhs type if necessary.
107 2012-03-08 Ian Lance Taylor <iant@google.com>
109 * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
111 (go_non_zero_struct): New global variable.
112 (Gcc_backend::non_zero_size_type): New function.
113 (Gcc_backend::global_variable): Don't build an assignment for a
115 * go-c.h (go_non_zero_struct): Declare.
116 * config-lang.in (gtfiles): Add go-c.h.
118 2012-02-29 Ian Lance Taylor <iant@google.com>
120 * go-gcc.cc (class Gcc_tree): Add set_tree method.
121 (set_placeholder_pointer_type): When setting to a pointer to
122 error, set to error_mark_node.
124 2012-02-23 Richard Guenther <rguenther@suse.de>
126 * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
127 build_distinct_type_copy.
129 2012-02-17 Ian Lance Taylor <iant@google.com>
131 * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
133 2012-02-17 Ian Lance Taylor <iant@google.com>
135 * gospec.c (lang_specific_driver): If linking, and no -o option
138 2012-02-14 Ian Lance Taylor <iant@google.com>
141 * Make-lang.in (gccgo-cross$(exeext)): New target.
142 (go.all.cross): Depend on gccgo-cross$(exeext) instead of
144 (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
145 gccgo-cross$(exeext) does not exist.
147 2012-02-07 Ian Lance Taylor <iant@google.com>
149 * gccgo.texi (Function Names): Document //extern instead of
152 2012-02-01 Jakub Jelinek <jakub@redhat.com>
155 * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
156 return build_nonstandard_integer_type result if possible.
158 2012-01-21 Ian Lance Taylor <iant@google.com>
160 * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
161 (Gcc_backend::type_alignment): Likewise.
162 (Gcc_backend::type_field_alignment): Likewise.
163 (Gcc_backend::type_field_offset): Likewise.
165 2012-01-20 Ian Lance Taylor <iant@google.com>
167 * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
169 (Gcc_backend::set_placeholder_struct_type): Likewise.
171 2012-01-17 Ian Lance Taylor <iant@google.com>
173 * gospec.c (lang_specific_driver): If we see -S without -o, add -o
174 BASE.s rather than -o BASE.o.
176 2012-01-11 Ian Lance Taylor <iant@google.com>
178 * go-lang.c (go_langhook_init): Initialize void_list_node before
179 calling go_create_gogo.
181 2012-01-10 Ian Lance Taylor <iant@google.com>
183 * go-gcc.cc (Gcc_backend::type_size): New function.
184 (Gcc_backend::type_alignment): New function.
185 (Gcc_backend::type_field_alignment): New function.
186 (Gcc_backend::type_field_offset): New function.
187 * go-backend.c (go_type_alignment): Remove.
188 * go-c.h (go_type_alignment): Don't declare.
190 2011-12-27 Ian Lance Taylor <iant@google.com>
192 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
193 build_distinct_type_copy rather than build_variant_type_copy.
194 (Gcc_backend::set_placeholder_array_type): Likewise.
195 (Gcc_backend::named_type): Add special handling for builtin
198 2011-12-22 Ian Lance Taylor <iant@google.com>
200 * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
201 for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
202 (Gcc_backend::set_placeholder_struct_type): Likewise.
203 (Gcc_backend::set_placeholder_array_type): Likewise.
204 (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
206 2011-12-13 Ian Lance Taylor <iant@google.com>
208 * go-backend.c: #include "simple-object.h" and "intl.h".
209 (GO_EXPORT_SEGMENT_NAME): Define if not defined.
210 (GO_EXPORT_SECTION_NAME): Likewise.
211 (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
212 (go_read_export_data): New function.
213 * go-c.h (go_read_export_data): Declare.
215 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
216 Ian Lance Taylor <iant@google.com>
218 * go-location.h: New file.
219 * go-linemap.cc: New file.
220 * go-gcc.cc: Change all uses of source_location to Location.
221 * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
222 (GO_LINEMAP_H): New variable.
223 (GO_LEX_H): Use $(GO_LINEMAP_H).
224 (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
225 (go/go-linemap.o): New target.
227 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
229 * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
231 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
233 * lang.opt: Add fgo-optimize-.
234 * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
235 * go-c.h (go_enable_optimize): Declare.
236 * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
237 (GO_EXPORT_H): Define.
238 (GO_IMPORT_H): Add $(GO_EXPORT_H).
239 (GO_AST_DUMP_H): Define.
240 (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
241 (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
242 (go/types.o): Likewise.
243 (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
244 (go/go-optimize.o): New target.
246 2011-08-24 Joseph Myers <joseph@codesourcery.com>
248 * Make-lang.in (CFLAGS-go/go-lang.o): New.
249 (go/go-lang.o): Remove explicit compilation rule.
251 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
253 * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
255 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
257 * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
258 (go/ast-dump.o): New target.
259 (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
260 (go/statements.o): Likewise.
262 2011-07-06 Richard Guenther <rguenther@suse.de>
264 * go-lang.c (go_langhook_init):
265 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
267 2011-06-14 Joseph Myers <joseph@codesourcery.com>
269 * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
271 * go-backend.c: Include common/common-target.h.
272 (go_write_export_data): Use targetm_common.have_named_sections.
273 * go-lang.c: Include common/common-target.h.
274 (go_langhook_init_options_struct): Use
275 targetm_common.supports_split_stack.
277 2011-06-13 Ian Lance Taylor <iant@google.com>
279 * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
281 2011-06-10 Ian Lance Taylor <iant@google.com>
283 * go-gcc.cc: Include "toplev.h".
284 (Gcc_backend::immutable_struct): New function.
285 (Gcc_backend::immutable_struct_set_init): New function.
286 (Gcc_backend::immutable_struct_reference): New function.
287 * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
289 2011-06-09 Ian Lance Taylor <iant@google.com>
291 * go-gcc.cc (Gcc_backend::zero_expression): New function.
293 2011-06-07 Richard Guenther <rguenther@suse.de>
295 * go-lang.c (go_langhook_init): Do not set
296 size_type_node or call set_sizetype.
298 2011-05-27 Ian Lance Taylor <iant@google.com>
300 * go-backend.c: Include "output.h".
301 (go_write_export_data): New function.
302 * go-c.h (go_write_export_data): Declare.
303 * Make-lang.in (go/go-backend.o): Depend on output.h.
304 (go/export.o): Depend on $(GO_C_H). Do not depend on
305 $(MACHMODE_H), output.h, or $(TARGET_H).
307 2011-05-24 Joseph Myers <joseph@codesourcery.com>
309 * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
310 (gccgo$(exeext)): Use libcommon-target.a.
312 2011-05-20 Joseph Myers <joseph@codesourcery.com>
314 * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
316 2011-05-13 Ian Lance Taylor <iant@google.com>
318 * go-gcc.cc (Gcc_backend::function_type): When building a struct
319 for multiple results, check that all fields types have a size.
320 (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
322 2011-05-12 Ian Lance Taylor <iant@google.com>
324 * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
326 (Gcc_backend::parameter_variable): Likewise.
328 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
330 * go-lang.c (global_bindings_p): Return bool and simplify.
332 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
334 * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
336 2011-05-04 Ian Lance Taylor <iant@google.com>
338 * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
339 (Gcc_backend::fill_in_struct): New function.
340 (Gcc_backend::array_type): Implement.
341 (Gcc_backend::fill_in_array): New function.
342 (Gcc_backend::placeholder_pointer_type): New function.
343 (Gcc_backend::set_placeholder_pointer_type): New function.
344 (Gcc_backend::set_placeholder_function_type): New function.
345 (Gcc_backend::placeholder_struct_type): New function.
346 (Gcc_backend::set_placeholder_struct_type): New function.
347 (Gcc_backend::placeholder_array_type): New function.
348 (Gcc_backend::set_placeholder_array_type): New function.
349 (Gcc_backend::named_type): New function.
350 (Gcc_backend::circular_pointer_type): New function.
351 (Gcc_backend::is_circular_pointer_type): New function.
353 2011-04-26 Ian Lance Taylor <iant@google.com>
355 * go-gcc.cc (Gcc_backend::struct_type): Implement.
357 2011-04-25 Ian Lance Taylor <iant@google.com>
359 * go-gcc.cc (Gcc_backend::error_type): Implement.
360 (Gcc_backend::string_type): Remove.
361 (Gcc_backend::function_type): Change signature and implement.
362 (Gcc_backend::struct_type): Change signature.
363 (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
364 (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
365 (Gcc_backend::pointer_type): Check for error.
366 * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
368 2011-04-25 Evan Shaw <edsrzf@gmail.com>
370 * go-gcc.c (class Gcc_tree): Make get_tree const.
371 (Gcc_backend::void_type): Implement.
372 (Gcc_backend::bool_type): Implement.
373 (Gcc_backend::integer_type): Implement.
374 (Gcc_backend::float_type): Implement.
375 (Gcc_backend::complex_type): New function.
376 (Gcc_backend::pointer_type): New function.
377 (Gcc_backend::make_type): New function.
378 (type_to_tree): New function.
380 2011-04-21 Ian Lance Taylor <iant@google.com>
382 * go-system.h (go_assert, go_unreachable): Define.
384 2011-04-19 Ian Lance Taylor <iant@google.com>
386 * go-system.h: Include "intl.h".
387 * Make-lang.in (GO_SYSTEM_H): Add intl.h.
388 (go/statements.o): Remove dependencies on intl.h $(TREE_H)
389 $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
391 2011-04-19 Ian Lance Taylor <iant@google.com>
393 * go-gcc.cc (Gcc_backend::temporary_variable): New function.
395 2011-04-19 Ian Lance Taylor <iant@google.com>
397 * go-gcc.cc (class Bblock): Define.
398 (Gcc_backend::if_statement): Change then_block and else_block to
400 (Gcc_backend::block): New function.
401 (Gcc_backend::block_add_statements): New function.
402 (Gcc_backend::block_statement): New function.
403 (tree_to_block, block_to_tree): New functions.
405 2011-04-18 Ian Lance Taylor <iant@google.com>
407 * go-gcc.cc: Include "go-c.h".
408 (class Bvariable): Define.
409 (Gcc_backend::init_statement): New function.
410 (Gcc_backend::global_variable): New function.
411 (Gcc_backend::global_variable_set_init): New function.
412 (Gcc_backend::local_variable): New function.
413 (Gcc_backend::parameter_variable): New function.
414 (tree_to_type, var_to_tree): New functions.
415 * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
416 * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
418 2011-04-15 Ian Lance Taylor <iant@google.com>
420 * go-gcc.cc (Gcc_backend::compound_statement): New function.
421 (Gcc_backend::assignment_statement): Use error_statement.
422 (Gcc_backend::return_statement): Likewise.
423 (Gcc_backend::if_statement): Likewise.
424 (Gcc_backend::switch_statement): Likewise.
425 (Gcc_backend::statement_list): Likewise.
427 2011-04-14 Ian Lance Taylor <iant@google.com>
429 * go-gcc.cc (Backend::error_statement): New function.
431 2011-04-13 Ian Lance Taylor <iant@google.com>
433 * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
435 2011-04-13 Ian Lance Taylor <iant@google.com>
437 * Make-lang.in (GO_OBJS): Add go/runtime.o.
438 (GO_RUNTIME_H): New variable.
439 (go/runtime.o): New target.
440 (go/gogo.o): Depend on $(GO_RUNTIME_H).
441 (go/statements.o): Likewise.
443 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
445 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
448 2011-04-06 Ian Lance Taylor <iant@google.com>
450 * go-gcc.cc (if_statement): Use build3_loc.
451 (Gcc_backend::switch_statement): New function.
452 (Gcc_backend::statement_list): New function.
454 2011-04-06 Ian Lance Taylor <iant@google.com>
456 * go-gcc.cc (Gcc_backend::if_statement): New function.
457 (tree_to_stat): New function.
458 (expr_to_tree): Renamed from expression_to_tree.
459 (stat_to_tree): Renamed from statement_to_tree.
461 2011-04-06 Ian Lance Taylor <iant@google.com>
463 * go-gcc.cc (Gcc_backend::expression_statement): New function.
465 2011-04-04 Ian Lance Taylor <iant@google.com>
467 * go-gcc.c (class Blabel): Define.
468 (Gcc_backend::make_expression): New function.
469 (get_identifier_from_string): New function.
470 (Gcc_backend::label): New function.
471 (Gcc_backend::label_definition_statement): New function.
472 (Gcc_backend::goto_statement): New function.
473 (Gcc_backend::label_address): New function.
474 (expression_to_tree): New function.
475 * Make-lang.in (go/expressions.o): Depend on
476 go/gofrontend/backend.h.
477 (go/gogo.o): Likewise.
479 2011-04-04 Ian Lance Taylor <iant@google.com>
481 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
482 (class Bfunction): Define.
483 (Gcc_backend::assignment_statement): Rename from assignment.
485 (Gcc_backend::return_statement): New function.
486 (tree_to_function): New function.
487 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
488 $(GIMPLE_H), and $(GO_GOGO_H).
490 2011-04-03 Ian Lance Taylor <iant@google.com>
492 * go-gcc.cc: New file.
493 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
494 (go/go-gcc.o): New target.
495 (go/go.o): Depend on go/gofrontend/backend.h.
496 (go/statements.o): Likewise.
498 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
500 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
502 2011-02-08 Ian Lance Taylor <iant@google.com>
504 * go-lang.c (go_langhook_init_options_struct): Set
505 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
507 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
509 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
510 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
512 2011-01-21 Ian Lance Taylor <iant@google.com>
514 * go-lang.c (go_langhook_init): Omit float_type_size when calling
516 * go-c.h: Update declaration of go_create_gogo.
518 2011-01-13 Ian Lance Taylor <iant@google.com>
520 * go-backend.c: Include "rtl.h" and "target.h".
521 (go_imported_unsafe): New function.
522 * go-c.h (go_imported_unsafe): Declare.
523 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
524 (go/gogo-tree.o): Remove dependency on $(RTL_H).
525 (go/unsafe.o): Depend on $(GO_C_H).
527 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
530 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
533 2010-12-21 Ian Lance Taylor <iant@google.com>
535 * Make-lang.in (check-go): Remove.
536 (lang_checks_parallelized): Add check-go.
537 (check_go_parallelize): Set.
539 2010-12-13 Ian Lance Taylor <iant@google.com>
541 * gospec.c (lang_specific_driver): Add a -o option if not linking
542 and there is no -o option already.
544 2010-12-07 Ian Lance Taylor <iant@google.com>
546 PR tree-optimization/46805
547 PR tree-optimization/46833
548 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
550 2010-12-06 Ian Lance Taylor <iant@google.com>
554 * go-lang.c (go_char_p): Define type and vectors.
555 (go_search_dirs): New static variable.
556 (go_langhook_handle_option): Use version and version/machine
558 (go_langhook_post_options): Add non-specific -L paths.
559 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
560 DEFAULT_TARGET_MACHINE when compiling.
561 * gccgo.texi (Invoking gccgo): Only document -L for linking.
562 (Import and Export): Don't mention -L for finding import files.
564 2010-12-03 Ian Lance Taylor <iant@google.com>
567 * go-backend.c: New file.
568 * go-c.h (go_type_alignment): Declare.
569 (go_field_alignment, go_trampoline_info): Declare.
570 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
571 (go/go-backend.o): New target.
572 (go/go-lang.o): Make dependencies match source file.
573 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
574 (go/gogo-tree.o): Don't depend on $(TM_H).
576 2010-12-03 Ian Lance Taylor <iant@google.com>
578 * config-lang.in (build_by_default): Set to no.
580 2010-12-02 Ian Lance Taylor <iant@google.com>
582 Go frontend added to gcc repository.