Unify handling of runtime support functions.
[gcc.git] / gcc / go / ChangeLog
1 2011-04-13 Ian Lance Taylor <iant@google.com>
2
3 * Make-lang.in (GO_OBJS): Add go/runtime.o.
4 (GO_RUNTIME_H): New variable.
5 (go/runtime.o): New target.
6 (go/gogo.o): Depend on $(GO_RUNTIME_H).
7 (go/statements.o): Likewise.
8
9 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10
11 * go-lang.c (union lang_tree_node): Check for TS_COMMON before
12 calling TREE_CHAIN.
13
14 2011-04-06 Ian Lance Taylor <iant@google.com>
15
16 * go-gcc.cc (if_statement): Use build3_loc.
17 (Gcc_backend::switch_statement): New function.
18 (Gcc_backend::statement_list): New function.
19
20 2011-04-06 Ian Lance Taylor <iant@google.com>
21
22 * go-gcc.cc (Gcc_backend::if_statement): New function.
23 (tree_to_stat): New function.
24 (expr_to_tree): Renamed from expression_to_tree.
25 (stat_to_tree): Renamed from statement_to_tree.
26
27 2011-04-06 Ian Lance Taylor <iant@google.com>
28
29 * go-gcc.cc (Gcc_backend::expression_statement): New function.
30
31 2011-04-04 Ian Lance Taylor <iant@google.com>
32
33 * go-gcc.c (class Blabel): Define.
34 (Gcc_backend::make_expression): New function.
35 (get_identifier_from_string): New function.
36 (Gcc_backend::label): New function.
37 (Gcc_backend::label_definition_statement): New function.
38 (Gcc_backend::goto_statement): New function.
39 (Gcc_backend::label_address): New function.
40 (expression_to_tree): New function.
41 * Make-lang.in (go/expressions.o): Depend on
42 go/gofrontend/backend.h.
43 (go/gogo.o): Likewise.
44
45 2011-04-04 Ian Lance Taylor <iant@google.com>
46
47 * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
48 (class Bfunction): Define.
49 (Gcc_backend::assignment_statement): Rename from assignment.
50 Check for errors.
51 (Gcc_backend::return_statement): New function.
52 (tree_to_function): New function.
53 * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
54 $(GIMPLE_H), and $(GO_GOGO_H).
55
56 2011-04-03 Ian Lance Taylor <iant@google.com>
57
58 * go-gcc.cc: New file.
59 * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
60 (go/go-gcc.o): New target.
61 (go/go.o): Depend on go/gofrontend/backend.h.
62 (go/statements.o): Likewise.
63
64 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65
66 * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
67
68 2011-02-08 Ian Lance Taylor <iant@google.com>
69
70 * go-lang.c (go_langhook_init_options_struct): Set
71 frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
72
73 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
74
75 * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
76 LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
77
78 2011-01-21 Ian Lance Taylor <iant@google.com>
79
80 * go-lang.c (go_langhook_init): Omit float_type_size when calling
81 go_create_gogo.
82 * go-c.h: Update declaration of go_create_gogo.
83
84 2011-01-13 Ian Lance Taylor <iant@google.com>
85
86 * go-backend.c: Include "rtl.h" and "target.h".
87 (go_imported_unsafe): New function.
88 * go-c.h (go_imported_unsafe): Declare.
89 * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
90 (go/gogo-tree.o): Remove dependency on $(RTL_H).
91 (go/unsafe.o): Depend on $(GO_C_H).
92
93 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
94
95 PR go/47113
96 * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
97 variable ‘field’ .
98
99 2010-12-21 Ian Lance Taylor <iant@google.com>
100
101 * Make-lang.in (check-go): Remove.
102 (lang_checks_parallelized): Add check-go.
103 (check_go_parallelize): Set.
104
105 2010-12-13 Ian Lance Taylor <iant@google.com>
106
107 * gospec.c (lang_specific_driver): Add a -o option if not linking
108 and there is no -o option already.
109
110 2010-12-07 Ian Lance Taylor <iant@google.com>
111
112 PR tree-optimization/46805
113 PR tree-optimization/46833
114 * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
115
116 2010-12-06 Ian Lance Taylor <iant@google.com>
117
118 PR other/46789
119 PR bootstrap/46812
120 * go-lang.c (go_char_p): Define type and vectors.
121 (go_search_dirs): New static variable.
122 (go_langhook_handle_option): Use version and version/machine
123 directories for -L.
124 (go_langhook_post_options): Add non-specific -L paths.
125 * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
126 DEFAULT_TARGET_MACHINE when compiling.
127 * gccgo.texi (Invoking gccgo): Only document -L for linking.
128 (Import and Export): Don't mention -L for finding import files.
129
130 2010-12-03 Ian Lance Taylor <iant@google.com>
131
132 PR bootstrap/46776
133 * go-backend.c: New file.
134 * go-c.h (go_type_alignment): Declare.
135 (go_field_alignment, go_trampoline_info): Declare.
136 * Make-lang.in (GO_OBJS): Add go/go-backend.o.
137 (go/go-backend.o): New target.
138 (go/go-lang.o): Make dependencies match source file.
139 (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
140 (go/gogo-tree.o): Don't depend on $(TM_H).
141
142 2010-12-03 Ian Lance Taylor <iant@google.com>
143
144 * config-lang.in (build_by_default): Set to no.
145
146 2010-12-02 Ian Lance Taylor <iant@google.com>
147
148 Go frontend added to gcc repository.