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