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