OSDN Git Service

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