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