]>
Commit | Line | Data |
---|---|---|
7631a4d1 GA |
1 | 2021-12-20 Martin Liska <mliska@suse.cz> |
2 | ||
3 | * libgccjit.c (struct version_info): Rename to jit_version_info. | |
4 | (struct jit_version_info): Likewise. | |
5 | (gcc_jit_version_major): Likewise. | |
6 | (gcc_jit_version_minor): Likewise. | |
7 | (gcc_jit_version_patchlevel): Likewise. | |
8 | ||
9c6586bc GA |
9 | 2021-12-14 Petter Tomner <tomner@kth.se> |
10 | ||
11 | * jit-common.h: New enum | |
12 | * jit-playback.c : Folding an setting intitial | |
13 | (global_new_decl) : Handle const global generation | |
14 | (new_global) : New flag | |
15 | (global_set_init_rvalue) : New | |
16 | (new_ctor) : New | |
17 | (new_global_initialized) : Flag | |
18 | (as_truth_value) : Fold | |
19 | (new_unary_op) : Fold | |
20 | (new_binary_op) : Fold | |
21 | (new_comparison) : Fold | |
22 | (new_array_access) : Fold | |
23 | (new_dereference) : Fold | |
24 | (get_address) : Fold | |
25 | * jit-playback.h : | |
26 | (global_set_init_rvalue) : New | |
27 | (new_ctor) : New | |
28 | * jit-recording.c : | |
29 | * jit-recording.h : | |
30 | (new_global_init_rvalue) : New | |
31 | (new_ctor) : New | |
32 | (ctor) : New, inherits rvalue | |
33 | (global_init_rvalue) : New, inherits memento | |
34 | (type::is_union) : New | |
35 | * libgccjit++.h : New entrypoints, see C-header | |
36 | * libgccjit.c : See .h | |
37 | * libgccjit.h : New entrypoints | |
38 | (gcc_jit_context_new_array_constructor) : New | |
39 | (gcc_jit_context_new_struct_constructor) : New | |
40 | (gcc_jit_context_new_union_constructor) : New | |
41 | (gcc_jit_global_set_initializer_rvalue) : New | |
42 | (LIBGCCJIT_HAVE_CTORS) : New feuture macro | |
43 | * libgccjit.map : New entrypoints added to ABI 19 | |
44 | * docs/topics/expressions.rst : Updated docs | |
45 | ||
c8dcf64b GA |
46 | 2021-12-12 Antoni Boucher <bouanto@zoho.com> |
47 | ||
48 | PR target/100688 | |
49 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_18): New ABI | |
50 | tag. | |
51 | * docs/topics/expressions.rst: Add documentation for the | |
52 | function gcc_jit_lvalue_set_link_section. | |
53 | * jit-playback.h: New function (set_link_section). | |
54 | * jit-recording.c: New function (set_link_section) and | |
55 | support for setting the link section. | |
56 | * jit-recording.h: New function (set_link_section) and new | |
57 | field m_link_section. | |
58 | * libgccjit.c: New function (gcc_jit_lvalue_set_link_section). | |
59 | * libgccjit.h: New function (gcc_jit_lvalue_set_link_section). | |
60 | * libgccjit.map (LIBGCCJIT_ABI_18): New ABI tag. | |
61 | ||
e8decbe7 GA |
62 | 2021-12-12 Antoni Boucher <bouanto@zoho.com> |
63 | ||
64 | PR target/95415 | |
65 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_17): New ABI | |
66 | tag. | |
67 | * docs/topics/expressions.rst: Add document for the function | |
68 | gcc_jit_lvalue_set_tls_model. | |
69 | * jit-playback.h: New function (set_tls_model). | |
70 | * jit-recording.c: New function (set_tls_model), new | |
71 | variables (tls_models and tls_model_enum_strings) and support | |
72 | for setting the tls model. | |
73 | * jit-recording.h: New function (set_tls_model) and new | |
74 | field m_tls_model. | |
75 | * libgccjit.c: New function (gcc_jit_lvalue_set_tls_model). | |
76 | * libgccjit.h: New function (gcc_jit_lvalue_set_tls_model) | |
77 | and new enum (gcc_jit_tls_model). | |
78 | * libgccjit.map (LIBGCCJIT_ABI_17): New ABI tag. | |
79 | ||
80 | 2021-12-11 Antoni Boucher <bouanto@zoho.com> | |
81 | ||
82 | PR target/96066 | |
83 | PR target/96067 | |
84 | * jit-builtins.c: Implement missing types for builtins. | |
85 | * jit-recording.c:: Allow sending a volatile const void * as | |
86 | argument. | |
87 | * jit-recording.h: New functions (is_volatile, is_const) and | |
88 | allow comparing qualified types. | |
89 | ||
0bceef16 GA |
90 | 2021-12-10 David Malcolm <dmalcolm@redhat.com> |
91 | ||
92 | PR jit/103562 | |
93 | * jit-playback.c (gcc::jit::playback::context::new_function): Set | |
94 | DECL_CONTEXT of the result_decl. | |
95 | ||
d62c8c74 GA |
96 | 2021-11-27 Petter Tomner <tomner@kth.se> |
97 | ||
98 | * libgccjit.c: %ld -> %zu | |
99 | ||
d9ca4b45 GA |
100 | 2021-11-24 Martin Liska <mliska@suse.cz> |
101 | ||
102 | * jit-playback.c (function): Initialize m_blocks vector. | |
103 | ||
f658f1d7 GA |
104 | 2021-11-20 Antoni Boucher <bouanto@zoho.com> |
105 | ||
106 | PR target/96889 | |
107 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_16): New ABI tag. | |
108 | * docs/topics/functions.rst: Add documentation for the | |
109 | functions gcc_jit_function_get_return_type and | |
110 | gcc_jit_function_get_param_count | |
111 | * docs/topics/types.rst: Add documentation for the functions | |
112 | gcc_jit_function_type_get_return_type, | |
113 | gcc_jit_function_type_get_param_count, | |
114 | gcc_jit_function_type_get_param_type, | |
115 | gcc_jit_type_unqualified, gcc_jit_type_dyncast_array, | |
116 | gcc_jit_type_is_bool, | |
117 | gcc_jit_type_dyncast_function_ptr_type, | |
118 | gcc_jit_type_is_integral, gcc_jit_type_is_pointer, | |
119 | gcc_jit_type_dyncast_vector, | |
120 | gcc_jit_vector_type_get_element_type, | |
121 | gcc_jit_vector_type_get_num_units, | |
122 | gcc_jit_struct_get_field, gcc_jit_type_is_struct, | |
123 | and gcc_jit_struct_get_field_count | |
124 | * libgccjit.c: | |
125 | (gcc_jit_function_get_return_type, gcc_jit_function_get_param_count, | |
126 | gcc_jit_function_type_get_return_type, | |
127 | gcc_jit_function_type_get_param_count, | |
128 | gcc_jit_function_type_get_param_type, gcc_jit_type_unqualified, | |
129 | gcc_jit_type_dyncast_array, gcc_jit_type_is_bool, | |
130 | gcc_jit_type_dyncast_function_ptr_type, gcc_jit_type_is_integral, | |
131 | gcc_jit_type_is_pointer, gcc_jit_type_dyncast_vector, | |
132 | gcc_jit_vector_type_get_element_type, | |
133 | gcc_jit_vector_type_get_num_units, gcc_jit_struct_get_field, | |
134 | gcc_jit_type_is_struct, gcc_jit_struct_get_field_count): New | |
135 | functions. | |
136 | (struct gcc_jit_function_type, struct gcc_jit_vector_type): | |
137 | New types. | |
138 | * libgccjit.h: | |
139 | (gcc_jit_function_get_return_type, gcc_jit_function_get_param_count, | |
140 | gcc_jit_function_type_get_return_type, | |
141 | gcc_jit_function_type_get_param_count, | |
142 | gcc_jit_function_type_get_param_type, gcc_jit_type_unqualified, | |
143 | gcc_jit_type_dyncast_array, gcc_jit_type_is_bool, | |
144 | gcc_jit_type_dyncast_function_ptr_type, gcc_jit_type_is_integral, | |
145 | gcc_jit_type_is_pointer, gcc_jit_type_dyncast_vector, | |
146 | gcc_jit_vector_type_get_element_type, | |
147 | gcc_jit_vector_type_get_num_units, gcc_jit_struct_get_field, | |
148 | gcc_jit_type_is_struct, gcc_jit_struct_get_field_count): New | |
149 | function declarations. | |
150 | (struct gcc_jit_function_type, struct gcc_jit_vector_type): | |
151 | New types. | |
152 | * jit-recording.h: New functions (is_struct and is_vector) | |
153 | * libgccjit.map (LIBGCCJIT_ABI_16): New ABI tag. | |
154 | ||
af2852b9 GA |
155 | 2021-11-12 David Malcolm <dmalcolm@redhat.com> |
156 | ||
157 | PR jit/103199 | |
158 | * docs/examples/tut04-toyvm/toyvm.c (toyvm_function_compile): | |
159 | Increase size of buffer. | |
160 | * docs/examples/tut04-toyvm/toyvm.cc | |
161 | (compilation_state::create_function): Likewise. | |
162 | ||
a26206ec GA |
163 | 2021-09-10 Petter Tomner <tomner@kth.se> |
164 | ||
165 | * jit-playback.c: Moved global var processing to after loc handling. | |
166 | Setting TYPE_NAME for fundamental types. | |
167 | Using common functions for finalizing globals. | |
168 | * jit-playback.h: New method init_types(). | |
169 | Changed get_tree_node_for_type() to method. | |
170 | ||
b57fba5e GA |
171 | 2021-08-19 Iain Sandoe <iain@sandoe.co.uk> |
172 | ||
173 | * docs/examples/tut04-toyvm/toyvm.c: Include jit-dejagnu.h. | |
174 | * docs/examples/tut04-toyvm/toyvm.cc: Likewise. | |
175 | * jit-dejagnu.h: New file, imported from dejagnu-1.6.2 and | |
176 | patched for this application. | |
177 | ||
6e529985 GA |
178 | 2021-08-18 Iain Sandoe <iain@sandoe.co.uk> |
179 | ||
180 | PR jit/100613 | |
181 | * Make-lang.in: Provide clauses for Darwin hosts. | |
182 | ||
bdea84c4 GA |
183 | 2021-07-18 Antoni Boucher <bouanto@zoho.com> |
184 | ||
185 | PR target/95498 | |
186 | * jit-playback.c (convert): Add support to handle truncation and | |
187 | extension in the convert function. | |
188 | ||
65f32e5d GA |
189 | 2021-05-19 Martin Liska <mliska@suse.cz> |
190 | ||
191 | PR testsuite/100658 | |
192 | * libgccjit.c (gcc_jit_context_new_function): Fix typos. | |
193 | ||
8bf52ffa GA |
194 | 2021-03-24 Matthias Klose <doko@ubuntu.com> |
195 | ||
196 | * Make-lang.in (jit.sphinx.html, jit.sphinx.pdf): Use $(mkinstalldirs), | |
197 | (jit.install-headers): Depend on installdirs. | |
198 | ||
50352c6c GA |
199 | 2021-02-19 David Malcolm <dmalcolm@redhat.com> |
200 | ||
201 | PR jit/99126 | |
202 | * jit-builtins.c | |
203 | (gcc::jit::builtins_manager::get_builtin_function_by_id): | |
204 | Update assertion to reject BUILT_IN_NONE. | |
205 | (gcc::jit::builtins_manager::ensure_optimization_builtins_exist): | |
206 | New. | |
207 | * jit-builtins.h | |
208 | (gcc::jit::builtins_manager::ensure_optimization_builtins_exist): | |
209 | New decl. | |
210 | * jit-playback.c (gcc::jit::playback::context::replay): Call it. | |
211 | Remove redundant conditional on bm. | |
212 | ||
5fff80fd GA |
213 | 2021-01-14 David Malcolm <dmalcolm@redhat.com> |
214 | ||
215 | * docs/cp/index.rst: Remove "Alpha" warning. | |
216 | * docs/index.rst: Likewise. | |
217 | * docs/_build/texinfo/libgccjit.texi: Regenerate | |
218 | ||
360258da GA |
219 | 2020-11-25 Martin Sebor <msebor@redhat.com> |
220 | ||
221 | PR bootstrap/94982 | |
222 | * jit-recording.c (recording::function::dump_to_dot): Avoid | |
223 | -Wformat-diag. | |
224 | (recording::block::dump_to_dot): Same. | |
225 | ||
82e5048e GA |
226 | 2020-11-20 Jakub Jelinek <jakub@redhat.com> |
227 | ||
228 | PR other/97911 | |
229 | * Make-lang.in (jit.serial): Change from goal to a | |
230 | variable. | |
231 | (.PHONY): Drop jit.serial and jit.prev. | |
232 | ($(LIBGCCJIT_FILENAME)): Depend on $(jit.serial) rather than | |
233 | jit.serial. | |
234 | ||
25bb75f8 GA |
235 | 2020-11-18 Jakub Jelinek <jakub@redhat.com> |
236 | ||
237 | * Make-lang.in (jit.serial): New goal. | |
238 | (.PHONY): Add jit.serial jit.prev. | |
239 | ($(LIBGCCJIT_FILENAME)): Depend on jit.prev. Call LINK_PROGRESS. | |
240 | ||
a5a11525 GA |
241 | 2020-11-12 David Malcolm <dmalcolm@redhat.com> |
242 | ||
243 | PR jit/87291 | |
244 | * docs/cp/topics/asm.rst: New file. | |
245 | * docs/cp/topics/index.rst (Topic Reference): Add it. | |
246 | * docs/topics/asm.rst: New file. | |
247 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_15): New. | |
248 | * docs/topics/functions.rst (Statements): Add link to extended | |
249 | asm. | |
250 | * docs/topics/index.rst (Topic Reference): Add asm.rst. | |
251 | * docs/topics/objects.rst: Add gcc_jit_extended_asm to ASCII art. | |
252 | * docs/_build/texinfo/Makefile: Regenerate. | |
253 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
254 | * jit-common.h (gcc::jit::recording::extended_asm): New forward | |
255 | decl. | |
256 | (gcc::jit::recording::top_level_asm): Likewise. | |
257 | * jit-playback.c: Include "stmt.h". | |
258 | (build_string): New. | |
259 | (gcc::jit::playback::context::new_string_literal): Disambiguate | |
260 | build_string call. | |
261 | (gcc::jit::playback::context::add_top_level_asm): New. | |
262 | (build_operand_chain): New. | |
263 | (build_clobbers): New. | |
264 | (build_goto_operands): New. | |
265 | (gcc::jit::playback::block::add_extended_asm): New. | |
266 | * jit-playback.h (gcc::jit::playback::context::add_top_level_asm): | |
267 | New decl. | |
268 | (struct gcc::jit::playback::asm_operand): New struct. | |
269 | (gcc::jit::playback::block::add_extended_asm): New decl. | |
270 | * jit-recording.c (gcc::jit::recording::context::dump_to_file): | |
271 | Dump top-level asms. | |
272 | (gcc::jit::recording::context::add_top_level_asm): New. | |
273 | (gcc::jit::recording::block::add_extended_asm): New. | |
274 | (gcc::jit::recording::block::end_with_extended_asm_goto): New. | |
275 | (gcc::jit::recording::asm_operand::asm_operand): New. | |
276 | (gcc::jit::recording::asm_operand::print): New. | |
277 | (gcc::jit::recording::asm_operand::make_debug_string): New. | |
278 | (gcc::jit::recording::output_asm_operand::write_reproducer): New. | |
279 | (gcc::jit::recording::output_asm_operand::print): New. | |
280 | (gcc::jit::recording::input_asm_operand::write_reproducer): New. | |
281 | (gcc::jit::recording::input_asm_operand::print): New. | |
282 | (gcc::jit::recording::extended_asm::add_output_operand): New. | |
283 | (gcc::jit::recording::extended_asm::add_input_operand): New. | |
284 | (gcc::jit::recording::extended_asm::add_clobber): New. | |
285 | (gcc::jit::recording::extended_asm::replay_into): New. | |
286 | (gcc::jit::recording::extended_asm::make_debug_string): New. | |
287 | (gcc::jit::recording::extended_asm::write_flags): New. | |
288 | (gcc::jit::recording::extended_asm::write_clobbers): New. | |
289 | (gcc::jit::recording::extended_asm_simple::write_reproducer): New. | |
290 | (gcc::jit::recording::extended_asm::maybe_populate_playback_blocks): | |
291 | New. | |
292 | (gcc::jit::recording::extended_asm_goto::extended_asm_goto): New. | |
293 | (gcc::jit::recording::extended_asm_goto::replay_into): New. | |
294 | (gcc::jit::recording::extended_asm_goto::write_reproducer): New. | |
295 | (gcc::jit::recording::extended_asm_goto::get_successor_blocks): | |
296 | New. | |
297 | (gcc::jit::recording::extended_asm_goto::maybe_print_gotos): New. | |
298 | (gcc::jit::recording::extended_asm_goto::maybe_populate_playback_blocks): | |
299 | New. | |
300 | (gcc::jit::recording::top_level_asm::top_level_asm): New. | |
301 | (gcc::jit::recording::top_level_asm::replay_into): New. | |
302 | (gcc::jit::recording::top_level_asm::make_debug_string): New. | |
303 | (gcc::jit::recording::top_level_asm::write_to_dump): New. | |
304 | (gcc::jit::recording::top_level_asm::write_reproducer): New. | |
305 | * jit-recording.h | |
306 | (gcc::jit::recording::context::add_top_level_asm): New decl. | |
307 | (gcc::jit::recording::context::m_top_level_asms): New field. | |
308 | (gcc::jit::recording::block::add_extended_asm): New decl. | |
309 | (gcc::jit::recording::block::end_with_extended_asm_goto): New | |
310 | decl. | |
311 | (gcc::jit::recording::asm_operand): New class. | |
312 | (gcc::jit::recording::output_asm_operand): New class. | |
313 | (gcc::jit::recording::input_asm_operand): New class. | |
314 | (gcc::jit::recording::extended_asm): New class. | |
315 | (gcc::jit::recording::extended_asm_simple): New class. | |
316 | (gcc::jit::recording::extended_asm_goto): New class. | |
317 | (gcc::jit::recording::top_level_asm): New class. | |
318 | * libgccjit++.h (gccjit::extended_asm): New forward decl. | |
319 | (gccjit::context::add_top_level_asm): New. | |
320 | (gccjit::block::add_extended_asm): New. | |
321 | (gccjit::block::end_with_extended_asm_goto): New. | |
322 | (gccjit::extended_asm): New class. | |
323 | (gccjit::extended_asm::extended_asm): New ctors. | |
324 | (gccjit::extended_asm::set_volatile_flag): New. | |
325 | (gccjit::extended_asm::set_inline_flag): New. | |
326 | (gccjit::extended_asm::add_output_operand): New. | |
327 | (gccjit::extended_asm::add_input_operand): New. | |
328 | (gccjit::extended_asm::add_clobber): New. | |
329 | (gccjit::extended_asm::get_inner_extended_asm): New. | |
330 | * libgccjit.c (struct gcc_jit_extended_asm): New. | |
331 | (jit_error): Make "loc" param take a gcc::jit::recording::location * | |
332 | rather than a gcc_jit_location *. | |
333 | (gcc_jit_block_add_extended_asm): New entrypoint. | |
334 | (gcc_jit_block_end_with_extended_asm_goto): New entrypoint. | |
335 | (gcc_jit_extended_asm_as_object): New entrypoint. | |
336 | (gcc_jit_extended_asm_set_volatile_flag): New entrypoint. | |
337 | (gcc_jit_extended_asm_set_inline_flag): New entrypoint. | |
338 | (gcc_jit_extended_asm_add_output_operand): New entrypoint. | |
339 | (gcc_jit_extended_asm_add_clobber): New entrypoint. | |
340 | (gcc_jit_context_add_top_level_asm): New entrypoint. | |
341 | * libgccjit.h: Add gcc_jit_extended_asm to ASCII art. | |
342 | (gcc_jit_extended_asm): New typedef. | |
343 | (LIBGCCJIT_HAVE_ASM_STATEMENTS): New define. | |
344 | (gcc_jit_block_add_extended_asm): New entrypoint. | |
345 | (gcc_jit_block_end_with_extended_asm_goto): New entrypoint. | |
346 | (gcc_jit_extended_asm_as_object): New entrypoint. | |
347 | (gcc_jit_extended_asm_set_volatile_flag): New entrypoint. | |
348 | (gcc_jit_extended_asm_set_inline_flag): New entrypoint. | |
349 | (gcc_jit_extended_asm_add_output_operand): New entrypoint. | |
350 | (gcc_jit_extended_asm_add_input_operand): New entrypoint. | |
351 | (gcc_jit_extended_asm_add_clobber): New entrypoint. | |
352 | (gcc_jit_context_add_top_level_asm): New entrypoint. | |
353 | * libgccjit.map (LIBGCCJIT_ABI_15): New. | |
354 | ||
355 | 2020-11-12 David Malcolm <dmalcolm@redhat.com> | |
356 | ||
357 | * jit-recording.c (recording::context::new_string): Add "escaped" | |
358 | param and use it when creating the new recording::string instance. | |
359 | (recording::string::string): Add "escaped" param and use it to | |
360 | initialize m_escaped. | |
361 | (recording::string::make_debug_string): Replace check that first | |
362 | char is double-quote with use of m_escaped. Fix escaping of | |
363 | '\t' and '\n'. Set "escaped" on the result. | |
364 | * jit-recording.h (recording::context::new_string): Add "escaped" | |
365 | param. | |
366 | (recording::string::string): Add "escaped" param. | |
367 | (recording::string::m_escaped): New field. | |
368 | ||
369 | 2020-11-12 David Malcolm <dmalcolm@redhat.com> | |
370 | ||
371 | * libgccjit.h: Fix typo in comment. | |
372 | ||
50a71cd0 GA |
373 | 2020-09-14 Andrea Corallo <andrea.corallo@arm.com> |
374 | ||
375 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
376 | ||
ac35c090 GA |
377 | 2020-09-11 Andrea Corallo <andrea.corallo@arm.com> |
378 | ||
379 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_14): New ABI tag. | |
380 | * docs/topics/expressions.rst (gcc_jit_global_set_initializer): | |
381 | Document new entry point in section 'Global variables'. | |
382 | * jit-playback.c (global_new_decl, global_finalize_lvalue): New | |
383 | method. | |
384 | (playback::context::new_global): Make use of global_new_decl, | |
385 | global_finalize_lvalue. | |
386 | (load_blob_in_ctor): New template function in use by the | |
387 | following. | |
388 | (playback::context::new_global_initialized): New method. | |
389 | * jit-playback.h (class context): Decl 'new_global_initialized', | |
390 | 'global_new_decl', 'global_finalize_lvalue'. | |
391 | (lvalue::set_initializer): Add implementation. | |
392 | * jit-recording.c (recording::memento_of_get_pointer::get_size) | |
393 | (recording::memento_of_get_type::get_size): Add implementation. | |
394 | (recording::global::write_initializer_reproducer): New function in | |
395 | use by 'recording::global::write_reproducer'. | |
396 | (recording::global::replay_into) | |
397 | (recording::global::write_to_dump) | |
398 | (recording::global::write_reproducer): Handle | |
399 | initialized case. | |
400 | * jit-recording.h (class type): Decl 'get_size' and | |
401 | 'num_elements'. | |
402 | * libgccjit++.h (class lvalue): Declare new 'set_initializer' | |
403 | method. | |
404 | (class lvalue): Decl 'is_global' and 'set_initializer'. | |
405 | (class global) Decl 'write_initializer_reproducer'. Add | |
406 | 'm_initializer', 'm_initializer_num_bytes' fields. Implement | |
407 | 'set_initializer'. Add a destructor to free 'm_initializer'. | |
408 | * libgccjit.c (gcc_jit_global_set_initializer): New function. | |
409 | * libgccjit.h (gcc_jit_global_set_initializer): New function | |
410 | declaration. | |
411 | * libgccjit.map (LIBGCCJIT_ABI_14): New ABI tag. | |
412 | ||
8f7ea26a GA |
413 | 2020-08-28 Martin Sebor <msebor@redhat.com> |
414 | ||
415 | * jit-recording.c (recording::switch_::make_debug_string): Add argument | |
416 | to a call. | |
417 | ||
e769f970 GA |
418 | 2020-08-22 Andrea Corallo <andrea.corallo@arm.com> |
419 | ||
420 | * libgccjit.c: | |
421 | (gcc_jit_context_new_rvalue_from_int) | |
422 | (gcc_jit_context_new_rvalue_from_long) | |
423 | (gcc_jit_context_new_rvalue_from_double) | |
424 | (gcc_jit_context_new_rvalue_from_ptr): Update function heading | |
425 | comments. | |
426 | ||
6fb94d67 GA |
427 | 2020-06-16 Nicolas Bértolo <nicolasbertolo@gmail.com> |
428 | ||
429 | * Make-lang.in: Always define version, minor and release | |
430 | numbers. Create the Windows shared library as | |
431 | libgccjit-$(LIBGCCJIT_VERSION_NUM).dll. | |
432 | ||
9a5b7438 GA |
433 | 2020-06-03 David Malcolm <dmalcolm@redhat.com> |
434 | ||
435 | PR jit/95306 | |
436 | * jit-builtins.c (builtins_manager::make_primitive_type): | |
437 | Implement BT_CONST_VOLATILE_PTR. | |
438 | ||
a9312a79 GA |
439 | 2020-06-02 David Malcolm <dmalcolm@redhat.com> |
440 | ||
441 | PR jit/95426 | |
442 | * dummy-frontend.c: Include "options.h", "stringpool.h", and | |
443 | "attribs.h". | |
444 | (ATTR_EXCL): New, copied from lto/lto-lang.c. | |
445 | (attr_noreturn_exclusions): Likewise. | |
446 | (attr_returns_twice_exclusions): Likewise. | |
447 | (attr_const_pure_exclusions): Likewise. | |
448 | (jit_attribute_table): Likewise, copied from lto_attribute_table. | |
449 | (jit_format_attribute_table): Likewise, copied from | |
450 | lto_format_attribute_table. | |
451 | (handle_noreturn_attribute): New, copied from lto/lto-lang.c. | |
452 | (handle_leaf_attribute): Likewise. | |
453 | (handle_const_attribute): Likewise. | |
454 | (handle_malloc_attribute): Likewise. | |
455 | (handle_pure_attribute): Likewise. | |
456 | (handle_novops_attribute): Likewise. | |
457 | (get_nonnull_operand): Likewise. | |
458 | (handle_nonnull_attribute): Likewise. | |
459 | (handle_nothrow_attribute): Likewise. | |
460 | (handle_sentinel_attribute): Likewise. | |
461 | (handle_type_generic_attribute): Likewise. | |
462 | (handle_transaction_pure_attribute): Likewise. | |
463 | (handle_returns_twice_attribute): Likewise. | |
464 | (handle_patchable_function_entry_attribute): Likewise. | |
465 | (ignore_attribute): Likewise. | |
466 | (handle_format_attribute): Likewise. | |
467 | (handle_format_arg_attribute): Likewise. | |
468 | (handle_fnspec_attribute): Likewise. | |
469 | (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE): Define. | |
470 | (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Define. | |
471 | ||
53ffb43a GA |
472 | 2020-05-28 Nicolas Bértolo <nicolasbertolo@gmail.com> |
473 | ||
474 | * Make-lang.in: Remove extra slash. Build libgccjit.dll and its | |
475 | import library in Windows. | |
476 | * config-lang.in: Update comment about --enable-host-shared. | |
477 | * jit-w32.h: New file. | |
478 | * jit-w32.c: New file. | |
479 | (print_last_error): New function that prints the error | |
480 | string corresponding to GetLastError(). | |
481 | (get_TOKEN_USER_current_user): Helper function used for getting | |
482 | the SID belonging to the current user. | |
483 | (create_directory_for_current_user): Helper function to create | |
484 | a directory with permissions such that only the current user can | |
485 | access it. | |
486 | (win_mkdtemp): Create a temporary directory using Windows APIs. | |
487 | * jit-playback.c: Do not chmod files in Windows. Use LoadLibrary, | |
488 | FreeLibrary and GetProcAddress instead of libdl. | |
489 | * jit-result.h, jit-result.c: Introduce result::handle_t to | |
490 | abstract over the types used for dynamic library handles. | |
491 | * jit-tempdir.c: Do not use mkdtemp() in Windows, use | |
492 | win_mkdtemp(). | |
493 | ||
61f3b605 GA |
494 | 2020-05-27 David Malcolm <dmalcolm@redhat.com> |
495 | ||
496 | PR jit/95314 | |
497 | * dummy-frontend.c (LANG_HOOKS_DEEP_UNSHARING): Define to be true. | |
498 | * jit-playback.h (gcc::jit::playback::rvalue): Mark tree node with | |
499 | TREE_VISITED. | |
500 | ||
501 | 2020-05-27 Tom Tromey <tromey@gcc.gnu.org> | |
502 | ||
503 | PR jit/91330 | |
504 | * docs/conf.py (texinfo_documents): Set description. | |
505 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
506 | ||
c3a4169b GA |
507 | 2020-05-26 David Malcolm <dmalcolm@redhat.com> |
508 | ||
509 | PR jit/95306 | |
510 | * docs/topics/functions.rst | |
511 | (gcc_jit_context_get_builtin_function): Document. | |
512 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
513 | * dummy-frontend.c (jit_langhook_global_bindings_p): Remove | |
514 | gcc_unreachable. | |
515 | * jit-builtins.c (type_names): New array. | |
516 | (get_string_for_type_id): New function. | |
517 | (gcc::jit::builtins_manager::make_primitive_type): Show name of | |
518 | type in error messages. Update cases to reflect the order in | |
519 | builtin-types.def. Implement cases for BT_INT8, BT_INT16, | |
520 | BT_UINT8, BT_CONST_PTR, BT_VOLATILE_PTR, BT_INT_PTR, BT_FLOAT_PTR, | |
521 | BT_CONST_DOUBLE_PTR, BT_SIZE, BT_CONST_SIZE. | |
522 | ||
523 | 2020-05-26 David Malcolm <dmalcolm@redhat.com> | |
524 | ||
525 | * docs/topics/compatibility.rst: Fix underline. | |
526 | Fix missing labels. | |
527 | * docs/topics/types.rst: Fix missing blank line. | |
528 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
529 | ||
530 | 2020-05-26 David Malcolm <dmalcolm@redhat.com> | |
531 | ||
532 | PR jit/95296 | |
533 | * docs/topics/expressions.rst (Unary Operations): Document that | |
534 | result_type of gcc_jit_context_new_unary_op must be a numeric type. | |
535 | (Binary Operations): Likewise for gcc_jit_context_new_binary_op. | |
536 | (Global variables): Document that "type" of | |
537 | gcc_jit_context_new_global must be non-`void`. | |
538 | * docs/topics/function-pointers.rst | |
539 | (gcc_jit_context_new_function_ptr_type): Document that the | |
540 | param_types must be non-void, but that return_type may be. | |
541 | * docs/topics/functions.rst (Params): Document that | |
542 | gcc_jit_context_new_param's type must be non-void. | |
543 | (Functions): Likewise for gcc_jit_function_new_local. | |
544 | * docs/topics/types.rst (gcc_jit_context_new_array_type): Document | |
545 | that the type must be non-void. | |
546 | (gcc_jit_context_new_field): Likewise. | |
547 | * docs/_build/texinfo/Makefile: Regenerate. | |
548 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
549 | * libgccjit.c (gcc_jit_context_new_array_type): Fail if | |
550 | element_type is void. | |
551 | (gcc_jit_context_new_field): Likewise for "type". | |
552 | (gcc_jit_context_new_function_ptr_type): Likewise for each | |
553 | element of param_types. | |
554 | (gcc_jit_context_new_param): Likewise for "type". | |
555 | (gcc_jit_context_new_global): Likewise. | |
556 | (gcc_jit_function_new_local): Likewise. | |
557 | (gcc_jit_type_get_aligned): Likewise. | |
558 | ||
63b2923d A |
559 | 2020-03-31 Andrea Corallo <andrea.corallo@arm.com> |
560 | David Malcolm <dmalcolm@redhat.com> | |
561 | ||
562 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_13): New ABI tag | |
563 | plus add version paragraph. | |
564 | * libgccjit++.h (namespace gccjit::version): Add new namespace. | |
565 | * libgccjit.c (gcc_jit_version_major, gcc_jit_version_minor) | |
566 | (gcc_jit_version_patchlevel): New functions. | |
567 | * libgccjit.h (LIBGCCJIT_HAVE_gcc_jit_version): New macro. | |
568 | (gcc_jit_version_major, gcc_jit_version_minor) | |
569 | (gcc_jit_version_patchlevel): New functions. | |
570 | * libgccjit.map (LIBGCCJIT_ABI_13) New ABI tag. | |
571 | ||
0cd55f9d A |
572 | 2020-03-23 Andrea Corallo <andrea.corallo@arm.com> |
573 | ||
574 | * jit-playback.h | |
575 | (gcc::jit::playback::context m_recording_ctxt): Remove | |
576 | m_char_array_type_node field. | |
577 | * jit-playback.c | |
578 | (playback::context::context) Remove m_char_array_type_node from member | |
579 | initializer list. | |
580 | (playback::context::new_string_literal) Fix logic to handle string | |
581 | length > 200. | |
582 | ||
8d9254fc JJ |
583 | 2020-01-01 Jakub Jelinek <jakub@redhat.com> |
584 | ||
585 | Update copyright years. | |
586 | ||
70ce1ab9 JB |
587 | 2019-11-29 Julian Brown <julian@codesourcery.com> |
588 | ||
589 | * jit-builtins.c (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): | |
590 | Remove commented-out cases. | |
591 | ||
56e04525 DM |
592 | 2019-11-20 David Malcolm <dmalcolm@redhat.com> |
593 | ||
594 | PR jit/92483 | |
595 | * jit-playback.c (gcc::jit::playback::context::make_fake_args): | |
596 | Update GCC_JIT_BOOL_OPTION_SELFCHECK_GC for new --param syntax. | |
597 | ||
4d732405 RS |
598 | 2019-08-13 Richard Sandiford <richard.sandiford@arm.com> |
599 | ||
600 | PR middle-end/91421 | |
601 | * jit-playback.c (new_function): Use set_decl_built_in_function. | |
602 | ||
ab20d992 | 603 | 2019-07-22 Andrea Corallo <andrea.corallo@arm.com> |
9afb91b2 AC |
604 | |
605 | * jit-recording.c (unary_op_reproducer_strings): Make it extern. | |
606 | (binary_op_reproducer_strings): Likewise. | |
607 | * jit-recording.h (unary_op_reproducer_strings): Likewise. | |
608 | (binary_op_reproducer_strings): Likewise. | |
609 | * libgccjit.c (gcc_jit_context_new_unary_op): Check result_type to be a | |
610 | numeric type. | |
611 | * libgccjit.c (gcc_jit_context_new_binary_op): Improve error message. | |
612 | ||
ab20d992 | 613 | 2019-07-04 Andrea Corallo <andrea.corallo@arm.com> |
2b442504 AC |
614 | |
615 | * libgccjit.c (gcc_jit_context_new_binary_op): Check result_type to be a | |
616 | numeric type. | |
617 | ||
ab20d992 | 618 | 2019-07-04 Andrea Corallo <andrea.corallo@arm.com> |
ee118c14 AC |
619 | |
620 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_12): New ABI tag. | |
621 | * docs/topics/types.rst: Add gcc_jit_context_new_bitfield. | |
622 | * jit-common.h (namespace recording): Add class bitfield. | |
623 | * jit-playback.c: | |
624 | (DECL_C_BIT_FIELD, SET_DECL_C_BIT_FIELD): Add macros. | |
625 | (playback::context::new_bitfield): New method. | |
626 | (playback::compound_type::set_fields): Add bitfield support. | |
627 | (playback::lvalue::mark_addressable): Was jit_mark_addressable make this | |
628 | a method of lvalue plus return a bool to communicate success. | |
629 | (playback::lvalue::get_address): Check for jit_mark_addressable return | |
630 | value. | |
631 | * jit-playback.h (new_bitfield): New method. | |
632 | (class bitfield): New class. | |
633 | (class lvalue): Add jit_mark_addressable method. | |
634 | * jit-recording.c (recording::context::new_bitfield): New method. | |
635 | (recording::bitfield::replay_into): New method. | |
636 | (recording::bitfield::write_to_dump): Likewise. | |
637 | (recording::bitfield::make_debug_string): Likewise. | |
638 | (recording::bitfield::write_reproducer): Likewise. | |
639 | * jit-recording.h (class context): Add new_bitfield method. | |
640 | (class field): Make it derivable by class bitfield. | |
641 | (class bitfield): Add new class. | |
642 | * libgccjit++.h (class context): Add new_bitfield method. | |
643 | * libgccjit.c (struct gcc_jit_bitfield): New structure. | |
644 | (gcc_jit_context_new_bitfield): New function. | |
645 | * libgccjit.h | |
646 | (LIBGCCJIT_HAVE_gcc_jit_context_new_bitfield) New macro. | |
647 | (gcc_jit_context_new_bitfield): New function. | |
648 | * libgccjit.map (LIBGCCJIT_ABI_12) New ABI tag. | |
649 | ||
36a3a7a3 JJ |
650 | 2019-03-21 Jakub Jelinek <jakub@redhat.com> |
651 | ||
652 | * jit-recording.c (reproducer::m_set_identifiers): Use false as Lazy | |
653 | in hash_set template param. | |
654 | ||
ab20d992 | 655 | 2019-02-05 Andrea Corallo <andrea.corallo@arm.com> |
216090cc AC |
656 | |
657 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_11): New ABI tag. | |
658 | * docs/topics/contexts.rst (Additional driver options): New | |
659 | section. | |
660 | * jit-playback.c (invoke_driver): Add call to append_driver_options. | |
661 | * jit-recording.c: Within namespace gcc::jit... | |
662 | (recording::context::~context): Free the optnames within | |
663 | m_driver_options. | |
664 | (recording::context::add_driver_option): New method. | |
665 | (recording::context::append_driver_options): New method. | |
666 | (recording::context::dump_reproducer_to_file): Add driver | |
667 | options. | |
668 | * jit-recording.h: Within namespace gcc::jit... | |
669 | (recording::context::add_driver_option): New method. | |
670 | (recording::context::append_driver_options): New method. | |
671 | (recording::context::m_driver_options): New field. | |
672 | * libgccjit++.h (gccjit::context::add_driver_option): New | |
673 | method. | |
674 | * libgccjit.c (gcc_jit_context_add_driver_option): New API | |
675 | entrypoint. | |
676 | * libgccjit.h (gcc_jit_context_add_driver_option): New API | |
677 | entrypoint. | |
678 | (LIBGCCJIT_HAVE_gcc_jit_context_add_driver_option): New | |
679 | macro. | |
680 | * libgccjit.map (LIBGCCJIT_ABI_11): New ABI tag. | |
681 | ||
a5544970 JJ |
682 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
683 | ||
684 | Update copyright years. | |
685 | ||
478dd60d DM |
686 | 2018-11-15 David Malcolm <dmalcolm@redhat.com> |
687 | ||
688 | PR other/19165 | |
689 | * dummy-frontend.c (jit_begin_diagnostic): Add diagnostic_t param. | |
690 | ||
620e594b DM |
691 | 2018-11-13 David Malcolm <dmalcolm@redhat.com> |
692 | ||
693 | * jit-playback.c: Replace "source_location" with "location_t". | |
694 | ||
033eb567 DM |
695 | 2018-10-17 David Malcolm <dmalcolm@redhat.com> |
696 | ||
697 | * Make-lang.in (selftest-jit): New. | |
698 | ||
98086b2b ML |
699 | 2018-06-28 Martin Liska <mliska@suse.cz> |
700 | ||
701 | * jit-playback.c: Include opt-suggestions.h. | |
702 | ||
3de37a5d ML |
703 | 2018-06-28 Martin Liska <mliska@suse.cz> |
704 | ||
705 | * jit-playback.c (class auto_argvec): Moved to vec.h. | |
706 | (auto_argvec::~auto_argvec): Likewise. | |
707 | (compile): Use the renamed name. | |
708 | (invoke_driver): Likewise. | |
709 | ||
ea143da7 RO |
710 | 2018-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
711 | ||
712 | PR jit/84288 | |
713 | * Make-lang.in ($(LIBGCCJIT_FILENAME)): Add $(EXTRA_GCC_LIBS). | |
714 | ||
deb3da39 DM |
715 | 2018-03-09 David Malcolm <dmalcolm@redhat.com> |
716 | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | |
717 | ||
718 | PR jit/64089 | |
719 | PR jit/84288 | |
720 | * Make-lang.in (COMMA): New. | |
721 | (LIBGCCJIT_VERSION_SCRIPT_OPTION): New. | |
722 | (LIBGCCJIT_SONAME_OPTION): New. | |
723 | (jit): Move --version-script and -soname linker options to the | |
724 | above. | |
725 | ||
9aba6f77 DM |
726 | 2018-01-25 David Malcolm <dmalcolm@redhat.com> |
727 | ||
728 | PR jit/81672 | |
729 | * jit-recording.h (gcc::jit::recording::union_): Remove fields | |
730 | "m_loc" and "m_name". | |
731 | ||
85ec4feb JJ |
732 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
733 | ||
734 | Update copyright years. | |
735 | ||
01512446 JJ |
736 | 2017-12-19 Jakub Jelinek <jakub@redhat.com> |
737 | ||
738 | * jit-playback.c (get_type, playback::compile_to_file::copy_file, | |
739 | playback::context::acquire_mutex): Replace Yoda conditions with | |
740 | typical order conditions. | |
741 | * libgccjit.c (gcc_jit_context_new_struct_type, | |
742 | gcc_jit_struct_set_fields, gcc_jit_context_new_union_type, | |
743 | gcc_jit_context_new_function, gcc_jit_timer_pop): Likewise. | |
744 | * jit-builtins.c (matches_builtin): Likewise. | |
745 | * jit-recording.c (recording::compound_type::set_fields, | |
746 | recording::fields::write_reproducer, recording::rvalue::set_scope, | |
747 | recording::function::validate): Likewise. | |
748 | * jit-logging.c (logger::decref): Likewise. | |
749 | ||
5de73c05 JJ |
750 | 2017-11-30 Jakub Jelinek <jakub@redhat.com> |
751 | ||
752 | * jit-recording.c | |
753 | (recording::memento_of_new_rvalue_from_const <long>::write_reproducer): | |
754 | Use ; instead of ;;. | |
755 | ||
9e851845 JJ |
756 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
757 | ||
758 | * jit-playback.c (add_switch): Build SWITCH_EXPR using build2 instead | |
759 | of build3. Formatting fixes. Adjust funciton comment. | |
760 | ||
120e92fc TV |
761 | 2017-11-23 Tom de Vries <tom@codesourcery.com> |
762 | ||
763 | * libgccjit.c (RETURN_NULL_IF_FAIL_NONNULL_NUMERIC_TYPE): Wrap in | |
764 | JIT_{BEGIN,END}_STMT. | |
765 | ||
77f4ead7 DM |
766 | 2017-10-31 David Malcolm <dmalcolm@redhat.com> |
767 | ||
768 | * docs/internals/index.rst (Running the test suite): Document | |
769 | PRESERVE_EXECUTABLES. | |
770 | (Running under valgrind): Add markup to RUN_UNDER_VALGRIND. | |
771 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
772 | ||
6069fe72 DM |
773 | 2017-10-04 David Malcolm <dmalcolm@redhat.com> |
774 | ||
775 | * docs/cp/topics/expressions.rst (Vector expressions): New | |
776 | section. | |
777 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_10): New ABI tag. | |
778 | * docs/topics/expressions.rst (Vector expressions): New section. | |
779 | * docs/topics/types.rst (gcc_jit_type_get_vector): Add link to | |
780 | gcc_jit_context_new_rvalue_from_vector. | |
781 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
782 | * jit-common.h (gcc::jit:recording::vector_type): New forward | |
783 | decl. | |
784 | * jit-playback.c | |
785 | (gcc::jit::playback::context::new_rvalue_from_vector): New method. | |
786 | * jit-playback.h | |
787 | (gcc::jit::playback::context::new_rvalue_from_vector): New method. | |
788 | * jit-recording.c: In namespace gcc::jit:: | |
789 | (class comma_separated_string): New class. | |
790 | (comma_separated_string::comma_separated_string): New ctor, | |
791 | adapted from recording::call::make_debug_string. | |
792 | (comma_separated_string::~comma_separated_string): New dtor. | |
793 | In namespace gcc::jit::recording:: | |
794 | (context::new_rvalue_from_vector): New method. | |
795 | (type::get_vector): Update for renaming of memento_of_get_vector. | |
796 | (class memento_of_get_vector): Rename to... | |
797 | (class vector_type): ..this. | |
798 | (memento_of_new_rvalue_from_vector::memento_of_new_rvalue_from_vector): | |
799 | New ctor. | |
800 | (memento_of_new_rvalue_from_vector::replay_into): New method. | |
801 | (memento_of_new_rvalue_from_vector::visit_children): New method. | |
802 | (memento_of_new_rvalue_from_vector::make_debug_string): New | |
803 | method. | |
804 | (memento_of_new_rvalue_from_vector::write_reproducer): New method. | |
805 | (call::make_debug_string): Split out arg-printing code into ctor | |
806 | for comma_separated_string. | |
807 | * jit-recording.h: In namespace gcc::jit::recording:: | |
808 | (context::new_rvalue_from_vector): New method. | |
809 | (type::dyn_cast_vector_type): New virtual function. | |
810 | (class memento_of_get_vector): Rename to... | |
811 | (class vector_type): ...this. | |
812 | (vector_type::unqualified): Remove this vfunc override in favor | |
813 | of... | |
814 | (vector_type::get_element_type): ...this new method. | |
815 | (vector_type::get_num_units): New method. | |
816 | (vector_type::dyn_cast_vector_type): New vfunc override. | |
817 | (class memento_of_new_rvalue_from_vector): New class. | |
818 | * libgccjit++.h (gccjit::context::new_rvalue): Add overload for | |
819 | vector of rvalue. | |
820 | * libgccjit.c (gcc_jit_context_new_binary_op): Strip off type | |
821 | qualifications when checking that both operands have same type. | |
822 | (gcc_jit_context_new_rvalue_from_vector): New API entrypoint. | |
823 | * libgccjit.h | |
824 | (LIBGCCJIT_HAVE_gcc_jit_context_new_rvalue_from_vector): New | |
825 | macro. | |
826 | (gcc_jit_context_new_rvalue_from_vector): New API entrypoint. | |
827 | * libgccjit.map (LIBGCCJIT_ABI_10): New ABI tag. | |
828 | ||
ecd5156d DM |
829 | 2017-09-28 David Malcolm <dmalcolm@redhat.com> |
830 | ||
831 | * docs/topics/expressions.rst (Function calls): Add link to | |
832 | gcc_jit_context_new_function_ptr_type. | |
833 | (Function pointers): Convert to cross-references to | |
834 | function-pointers.rst, moving material there. | |
835 | * docs/topics/function-pointers.rst: New page. | |
836 | * docs/topics/index.rst: Add function-pointers.rst. | |
837 | * docs/topics/types.rst (Function pointer types): New section. | |
838 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
839 | ||
5a47aa2c DM |
840 | 2017-09-28 David Malcolm <dmalcolm@redhat.com> |
841 | ||
842 | * jit-recording.c | |
843 | (gcc::jit::recording::function_type::is_same_type_as): New function. | |
844 | * jit-recording.h: In namespace gcc::jit::recording:: | |
845 | (type::accepts_writes_from): Use is_same_type_as rather than pointer | |
846 | equality. | |
847 | (type::is_same_type_as): New virtual function. | |
848 | (function_type::is_same_type_as): New override. | |
849 | ||
15a65e63 DM |
850 | 2017-09-27 David Malcolm <dmalcolm@redhat.com> |
851 | ||
852 | * docs/cp/topics/expressions.rst (Function pointers): New section. | |
853 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_9): New tag. | |
854 | * docs/topics/expressions.rst (Function pointers): New section. | |
855 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
856 | * jit-common.h (class gcc::jit::recording::function_pointer): New | |
857 | forward decl. | |
858 | * jit-playback.c (gcc::jit::playback::function::get_address): New | |
859 | method. | |
860 | * jit-playback.h (gcc::jit::playback::function::get_address): New | |
861 | method decl. | |
862 | * jit-recording.c: Within namespace gcc::jit::recording... | |
863 | (function::function): Initialize new field "m_fn_ptr_type". | |
864 | (function::get_address): New method. | |
865 | (function_pointer::replay_into): New method. | |
866 | (function_pointer::visit_children): New method. | |
867 | (function_pointer::make_debug_string): New method. | |
868 | (function_pointer::write_reproducer): New method. | |
869 | * jit-recording.h: Within namespace gcc::jit::recording... | |
870 | (function::get_address): New method. | |
871 | (function): Add field "m_fn_ptr_type". | |
872 | (class function_pointer): New subclass of rvalue. | |
873 | * libgccjit++.h (gccjit::function::get_address): New method. | |
874 | * libgccjit.c (gcc_jit_function_get_address): New function. | |
875 | * libgccjit.h (LIBGCCJIT_HAVE_gcc_jit_function_get_address): New | |
876 | macro. | |
877 | (gcc_jit_function_get_address): New API entrypoint. | |
878 | * libgccjit.map (LIBGCCJIT_ABI_9): New tag. | |
879 | ||
595ced60 DM |
880 | 2017-09-14 David Malcolm <dmalcolm@redhat.com> |
881 | ||
882 | PR jit/82174 | |
883 | * jit-builtins.c (matches_builtin): Ignore entries with a NULL | |
884 | name. | |
885 | ||
953e520d DM |
886 | 2017-08-18 David Malcolm <dmalcolm@redhat.com> |
887 | ||
888 | PR tree-optimization/46805 | |
889 | * dummy-frontend.c (jit_langhook_parse_file): Handle vector types. | |
890 | ||
519d0798 DM |
891 | 2017-08-18 David Malcolm <dmalcolm@redhat.com> |
892 | ||
893 | * jit-recording.c (class gcc::jit::reproducer): Rename field | |
894 | "m_identifiers" to "m_map_memento_to_identifier". Add field | |
895 | "m_set_identifiers" and struct hash_traits for it. | |
896 | (gcc::jit::reproducer::reproducer): Update for above. | |
897 | (convert_to_identifier): New function. | |
898 | (gcc::jit::reproducer::ensure_identifier_is_unique): New method. | |
899 | (gcc::jit::reproducer::make_identifier): Avoid appending the %p | |
900 | unless necessary for uniqueness. Update for field renaming. | |
901 | (gcc::jit::reproducer::get_identifier): Update for field renaming. | |
902 | ||
47ee1b7c DM |
903 | 2017-08-09 David Malcolm <dmalcolm@redhat.com> |
904 | ||
905 | * docs/cp/topics/types.rst (Vector types): New section. | |
906 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_8): New tag. | |
907 | * docs/topics/types.rst (gcc_jit_context_get_type): Fix typo in | |
908 | example. | |
909 | (Vector types): New section. | |
910 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
911 | * jit-playback.c (gcc::jit::playback::type::get_vector): New | |
912 | method. | |
913 | * jit-playback.h (gcc::jit::playback::type::get_vector): New | |
914 | method. | |
915 | * jit-recording.c: In namespace gcc::jit::recording:: | |
916 | (type::get_vector): New method. | |
917 | (memento_of_get_aligned::write_reproducer): Fix typo | |
918 | in leading comment. | |
919 | (memento_of_get_vector::replay_into): New method. | |
920 | (memento_of_get_vector::make_debug_string): New method. | |
921 | (memento_of_get_vector::write_reproducer): New method. | |
922 | * jit-recording.h: In namespace gcc::jit::recording:: | |
923 | (type::get_vector): New | |
924 | method. | |
925 | (class memento_of_get_vector): New class. | |
926 | * libgccjit++.h (gccjit::type::get_vector): New method. | |
927 | * libgccjit.c (gcc_jit_type_get_vector): New public entrypoint. | |
928 | * libgccjit.h (LIBGCCJIT_HAVE_gcc_jit_type_get_vector): New | |
929 | define. | |
930 | (gcc_jit_type_get_vector): New decl. | |
931 | * libgccjit.map (LIBGCCJIT_ABI_8): New ABI tag. | |
932 | ||
b8506a8a RS |
933 | 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org> |
934 | Alan Hayward <alan.hayward@arm.com> | |
935 | David Sherwood <david.sherwood@arm.com> | |
936 | ||
937 | * dummy-frontend.c (jit_langhook_type_for_mode): Remove "enum" before | |
938 | "machine_mode". | |
939 | ||
0ebd1f00 DM |
940 | 2017-04-24 David Malcolm <dmalcolm@redhat.com> |
941 | ||
942 | * docs/cp/topics/types.rst (gccjit::type::get_const): Remove | |
943 | comment. | |
944 | (gccjit::type::get_aligned): Add. | |
945 | * docs/topics/compatibility.rst: Add LIBGCCJIT_ABI_7. | |
946 | * docs/topics/types.rst: Add gcc_jit_type_get_aligned. | |
947 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
948 | * jit-playback.c (gcc::jit::playback::type::get_aligned): New | |
949 | method. | |
950 | * jit-playback.h (gcc::jit::playback::type::get_aligned): New | |
951 | method. | |
952 | * jit-recording.c: Within namespace gcc::jit::recording... | |
953 | (type::get_aligned): New method. | |
954 | (memento_of_get_aligned::replay_into): New method. | |
955 | (memento_of_get_aligned::make_debug_string): New method. | |
956 | (memento_of_get_aligned::write_reproducer): New method. | |
957 | * jit-recording.h: Within namespace gcc::jit::recording... | |
958 | (type::get_aligned): New method. | |
959 | (type::accepts_writes_from): Strip off qualifications from | |
960 | this when comparing pointer equality. | |
961 | (decorated_type): New subclass of type, subsuming the | |
962 | commonality between memento_of_get_const and | |
963 | memento_of_get_volatile. | |
964 | (memento_of_get_const): Make a subclass of decorated_type, | |
965 | rather than type. | |
966 | (memento_of_get_volatile): Likewise. | |
967 | (memento_of_get_aligned): Likewise. | |
968 | * libgccjit++.h: Within namespace gccjit... | |
969 | (type::get_const): New method. | |
970 | (type::get_aligned): New method. | |
971 | * libgccjit.c (gcc_jit_type_get_aligned): New function. | |
972 | * libgccjit.h (gcc_jit_type_get_aligned): New decl. | |
973 | * libgccjit.map (LIBGCCJIT_ABI_7): New | |
974 | (gcc_jit_type_get_aligned): Add. | |
975 | ||
8a3a6ab4 DM |
976 | 2017-01-19 David Malcolm <dmalcolm@redhat.com> |
977 | ||
978 | * dummy-frontend.c (jit_langhook_type_for_size): Delete. | |
979 | (LANG_HOOKS_TYPE_FOR_SIZE): Don't redefine. | |
980 | ||
b37589b0 DM |
981 | 2017-01-18 David Malcolm <dmalcolm@redhat.com> |
982 | ||
983 | * dummy-frontend.c (jit_langhook_type_for_size): Implement, using | |
984 | lto's lto_type_for_size. | |
985 | ||
cbe34bb5 JJ |
986 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
987 | ||
988 | Update copyright years. | |
989 | ||
15c671a7 DM |
990 | 2016-05-20 David Malcolm <dmalcolm@redhat.com> |
991 | ||
992 | * docs/topics/compatibility.rst: Add LIBGCCJIT_ABI_6. | |
993 | * docs/topics/expressions.rst (Function calls): Add documentation | |
994 | of gcc_jit_rvalue_set_bool_require_tail_call. | |
995 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
996 | * jit-common.h (gcc::jit::recording::base_call): Add forward decl. | |
997 | * jit-playback.c: Within namespace gcc::jit::playback... | |
998 | (context::build_call) Add "require_tail_call" param and use it | |
999 | to set CALL_EXPR_MUST_TAIL_CALL. | |
1000 | (context::new_call): Add "require_tail_call" param. | |
1001 | (context::new_call_through_ptr): Likewise. | |
1002 | * jit-playback.h: Within namespace gcc::jit::playback... | |
1003 | (context::new_call: Add "require_tail_call" param. | |
1004 | (context::new_call_through_ptr): Likewise. | |
1005 | (context::build_call): Likewise. | |
1006 | * jit-recording.c: Within namespace gcc::jit::recording... | |
1007 | (base_call::base_call): New constructor. | |
1008 | (base_call::write_reproducer_tail_call): New method. | |
1009 | (call::call): Update for inheritance from base_call. | |
1010 | (call::replay_into): Provide m_require_tail_call to call | |
1011 | to new_call. | |
1012 | (call::write_reproducer): Call write_reproducer_tail_call. | |
1013 | (call_through_ptr::call_through_ptr): Update for inheritance from | |
1014 | base_call. | |
1015 | (call_through_ptr::replay_into): Provide m_require_tail_call to call | |
1016 | to new_call_through_ptr. | |
1017 | (recording::call_through_ptr::write_reproducer): Call | |
1018 | write_reproducer_tail_call. | |
1019 | * jit-recording.h: Within namespace gcc::jit::recording... | |
1020 | (rvalue::dyn_cast_base_call): New virtual function. | |
1021 | (class base_call): New subclass of class rvalue. | |
1022 | (class call): Inherit from base_call rather than directly from | |
1023 | rvalue, moving get_precedence and m_args to base_call. | |
1024 | (class call_through_ptr): Likewise. | |
1025 | * libgccjit.c (gcc_jit_rvalue_set_bool_require_tail_call): New | |
1026 | function. | |
1027 | * libgccjit.h | |
1028 | (LIBGCCJIT_HAVE_gcc_jit_rvalue_set_bool_require_tail_call): New | |
1029 | macro. | |
1030 | (gcc_jit_rvalue_set_bool_require_tail_call): New function. | |
1031 | * libgccjit.map (LIBGCCJIT_ABI_6): New. | |
1032 | (gcc_jit_rvalue_set_bool_require_tail_call): Add. | |
1033 | ||
6b5423a5 DM |
1034 | 2016-05-17 David Malcolm <dmalcolm@redhat.com> |
1035 | ||
1036 | * dummy-frontend.c: Include diagnostic.h. | |
1037 | (jit_begin_diagnostic): New function. | |
1038 | (jit_end_diagnostic): New function. | |
1039 | (jit_langhook_init): Register jit_begin_diagnostic | |
1040 | and jit_end_diagnostic with the global_dc. | |
1041 | * jit-playback.c: Include diagnostic.h. | |
1042 | (gcc::jit::playback::context::add_diagnostic): New method. | |
1043 | * jit-playback.h (struct diagnostic_context): Add forward | |
1044 | declaration. | |
1045 | (gcc::jit::playback::context::add_diagnostic): New method. | |
1046 | ||
f51703a8 DM |
1047 | 2016-05-17 David Malcolm <dmalcolm@redhat.com> |
1048 | ||
1049 | * docs/topics/expressions.rst (Function calls): Document | |
1050 | gcc_jit_context_new_call_through_ptr. | |
1051 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1052 | ||
54ece5e2 DM |
1053 | 2016-05-13 David Malcolm <dmalcolm@redhat.com> |
1054 | ||
1055 | * jit-playback.h: Within namespace gcc:jit::playback... | |
1056 | (compile_to_memory::postprocess): Mark with FINAL OVERRIDE. | |
1057 | (compile_to_file::postprocess): Likewise. | |
1058 | (function::finalizer): Likewise. | |
1059 | (block::finalizer): Likewise. | |
1060 | (source_file::finalizer): Likewise. | |
1061 | (source_line::finalizer): Likewise. | |
1062 | * jit-recording.c (gcc::jit::rvalue_usage_validator):: Likewise. | |
1063 | * jit-recording.h: Within namespace gcc::jit::recording... | |
1064 | (string::replay_into): Mark with FINAL OVERRIDE. | |
1065 | (string::make_debug_string): Likewise. | |
1066 | (string::write_reproducer): Likewise. | |
1067 | (location::replay_into): Likewise. | |
1068 | (location::dyn_cast_location): Likewise. | |
1069 | (location::make_debug_string): Likewise. | |
1070 | (location::write_reproducer): Likewise. | |
1071 | (memento_of_get_type::dereference): Likewise. | |
1072 | (memento_of_get_type::accepts_writes_from): Likewise. | |
1073 | (memento_of_get_type::is_int): Likewise. | |
1074 | (memento_of_get_type::is_float): Likewise. | |
1075 | (memento_of_get_type::is_bool): Likewise. | |
1076 | (memento_of_get_type::is_pointer): Likewise. | |
1077 | (memento_of_get_type::is_array): Likewise. | |
1078 | (memento_of_get_type::is_void): Likewise. | |
1079 | (memento_of_get_type::replay_into): Likewise. | |
1080 | (memento_of_get_type::make_debug_string): Likewise. | |
1081 | (memento_of_get_type::write_reproducer): Likewise. | |
1082 | (memento_of_get_pointer::dereference): Likewise. | |
1083 | (memento_of_get_pointer::accepts_writes_from): Likewise. | |
1084 | (memento_of_get_pointer::replay_into): Likewise. | |
1085 | (memento_of_get_pointer::is_int): Likewise. | |
1086 | (memento_of_get_pointer::is_float): Likewise. | |
1087 | (memento_of_get_pointer::is_bool): Likewise. | |
1088 | (memento_of_get_pointer::is_pointer): Likewise. | |
1089 | (memento_of_get_pointer::is_array): Likewise. | |
1090 | (memento_of_get_pointer::make_debug_string): Likewise. | |
1091 | (memento_of_get_pointer::write_reproducer): Likewise. | |
1092 | (memento_of_get_const::dereference): Likewise. | |
1093 | (memento_of_get_const::accepts_writes_from): Likewise. | |
1094 | (memento_of_get_const::unqualified): Likewise. | |
1095 | (memento_of_get_const::is_int): Likewise. | |
1096 | (memento_of_get_const::is_float): Likewise. | |
1097 | (memento_of_get_const::is_bool): Likewise. | |
1098 | (memento_of_get_const::is_pointer): Likewise. | |
1099 | (memento_of_get_const::is_array): Likewise. | |
1100 | (memento_of_get_const::void replay_into): Likewise; | |
1101 | (memento_of_get_const::make_debug_string): Likewise. | |
1102 | (memento_of_get_const::write_reproducer): Likewise. | |
1103 | (memento_of_get_volatile::dereference): Likewise. | |
1104 | (memento_of_get_volatile::unqualified): Likewise. | |
1105 | (memento_of_get_volatile::is_int): Likewise. | |
1106 | (memento_of_get_volatile::is_float): Likewise. | |
1107 | (memento_of_get_volatile::is_bool): Likewise. | |
1108 | (memento_of_get_volatile::is_pointer): Likewise. | |
1109 | (memento_of_get_volatile::is_array): Likewise. | |
1110 | (memento_of_get_volatile::replay_into): Likewise; | |
1111 | (memento_of_get_volatile::make_debug_string): Likewise. | |
1112 | (memento_of_get_volatile::write_reproducer): Likewise. | |
1113 | (array_type::dereference): Likewise. | |
1114 | (array_type::is_int): Likewise. | |
1115 | (array_type::is_float): Likewise. | |
1116 | (array_type::is_bool): Likewise. | |
1117 | (array_type::is_pointer): Likewise. | |
1118 | (array_type::is_array): Likewise. | |
1119 | (array_type::replay_into): Likewise; | |
1120 | (array_type::make_debug_string): Likewise. | |
1121 | (array_type::write_reproducer): Likewise. | |
1122 | (function_type::dereference): Likewise. | |
1123 | (function_type::function_dyn_cast_function_type): Likewise. | |
1124 | (function_type::function_as_a_function_type): Likewise. | |
1125 | (function_type::is_int): Likewise. | |
1126 | (function_type::is_float): Likewise. | |
1127 | (function_type::is_bool): Likewise. | |
1128 | (function_type::is_pointer): Likewise. | |
1129 | (function_type::is_array): Likewise. | |
1130 | (function_type::replay_into): Likewise; | |
1131 | (function_type::make_debug_string): Likewise. | |
1132 | (function_type::write_reproducer): Likewise. | |
1133 | (field::replay_into): Likewise; | |
1134 | (field::write_to_dump): Likewise. | |
1135 | (field::make_debug_string): Likewise. | |
1136 | (field::write_reproducer): Likewise. | |
1137 | (compound_type::dereference): Likewise. | |
1138 | (compound_type::is_int): Likewise. | |
1139 | (compound_type::is_float): Likewise. | |
1140 | (compound_type::is_bool): Likewise. | |
1141 | (compound_type::is_pointer): Likewise. | |
1142 | (compound_type::is_array): Likewise. | |
1143 | (compound_type::has_known_size): Likewise. | |
1144 | (struct_::dyn_cast_struct): Likewise. | |
1145 | (struct_::replay_into): Likewise. | |
1146 | (struct_::access_as_type): Likewise. | |
1147 | (struct_::make_debug_string): Likewise. | |
1148 | (struct_::write_reproducer): Likewise. | |
1149 | (fields::replay_into): Likewise. | |
1150 | (fields::write_to_dump): Likewise. | |
1151 | (fields::make_debug_string): Likewise. | |
1152 | (fields::write_reproducer): Likewise. | |
1153 | (union_::replay_into): Likewise. | |
1154 | (union_::make_debug_string): Likewise. | |
1155 | (union_::write_reproducer): Likewise. | |
1156 | (lvalue::access_as_rvalue): Mark with OVERRIDE. | |
1157 | (param::replay_into): Mark with FINAL OVERRIDE. | |
1158 | (param::visit_children): Likewise. | |
1159 | (param::dyn_cast_param): Likewise. | |
1160 | (param::access_as_rvalue): Likewise. | |
1161 | (param::access_as_lvalue): Likewise. | |
1162 | (param::make_debug_string): Likewise. | |
1163 | (param::write_reproducer): Likewise. | |
1164 | (param::get_precedence): Likewise. | |
1165 | (function::replay_into): Likewise. | |
1166 | (function::write_to_dump): Likewise. | |
1167 | (function::make_debug_string): Likewise. | |
1168 | (function::write_reproducer): Likewise. | |
1169 | (block::write_to_dump): Likewise. | |
1170 | (block::make_debug_string): Likewise. | |
1171 | (block::write_reproducer): Likewise. | |
1172 | (block::replay_into): Likewise. | |
1173 | (global::replay_into): Likewise; | |
1174 | (global::visit_children): Likewise. | |
1175 | (global::write_to_dump): Likewise. | |
1176 | (global::make_debug_string): Likewise. | |
1177 | (global::write_reproducer): Likewise. | |
1178 | (global::get_precedence): Likewise. | |
1179 | (memento_of_new_rvalue_from_const::replay_into): Likewise. | |
1180 | (memento_of_new_rvalue_from_const::visit_children): Likewise. | |
1181 | (memento_of_new_rvalue_from_const::is_constant): Likewise. | |
1182 | (memento_of_new_rvalue_from_const::get_wide_int): Likewise. | |
1183 | (memento_of_new_rvalue_from_const::make_debug_string): Likewise. | |
1184 | (memento_of_new_rvalue_from_const::write_reproducer): Likewise. | |
1185 | (memento_of_new_rvalue_from_const::get_precedence): Likewise. | |
1186 | (memento_of_new_string_literal::replay_into): Likewise. | |
1187 | (memento_of_new_string_literal::visit_children): Likewise. | |
1188 | (memento_of_new_string_literal::make_debug_string): Likewise. | |
1189 | (memento_of_new_string_literal::write_reproducer): Likewise. | |
1190 | (memento_of_new_string_literal::get_precedence): Likewise. | |
1191 | (unary_op::replay_into): Likewise. | |
1192 | (unary_op::visit_children): Likewise. | |
1193 | (unary_op::make_debug_string): Likewise. | |
1194 | (unary_op::write_reproducer): Likewise. | |
1195 | (unary_op::get_precedence): Likewise. | |
1196 | (binary_op::replay_into): Likewise. | |
1197 | (binary_op::visit_children): Likewise. | |
1198 | (binary_op::make_debug_string): Likewise. | |
1199 | (binary_op::write_reproducer): Likewise. | |
1200 | (binary_op::get_precedence): Likewise. | |
1201 | (comparison::replay_into): Likewise. | |
1202 | (comparison::visit_children): Likewise. | |
1203 | (comparison::make_debug_string): Likewise. | |
1204 | (comparison::write_reproducer): Likewise. | |
1205 | (comparison::get_precedence): Likewise. | |
1206 | (cast::replay_into): Likewise. | |
1207 | (cast::visit_children): Likewise. | |
1208 | (cast::make_debug_string): Likewise. | |
1209 | (cast::write_reproducer): Likewise. | |
1210 | (cast::get_precedence): Likewise. | |
1211 | (call::replay_into): Likewise. | |
1212 | (call::visit_children): Likewise. | |
1213 | (call::make_debug_string): Likewise. | |
1214 | (call::write_reproducer): Likewise. | |
1215 | (call::get_precedence): Likewise. | |
1216 | (call_through_ptr::replay_into): Likewise. | |
1217 | (call_through_ptr::visit_children): Likewise. | |
1218 | (call_through_ptr::make_debug_string): Likewise. | |
1219 | (call_through_ptr::write_reproducer): Likewise. | |
1220 | (call_through_ptr::get_precedence): Likewise. | |
1221 | (array_access::replay_into): Likewise. | |
1222 | (array_access::visit_children): Likewise. | |
1223 | (array_access::make_debug_string): Likewise. | |
1224 | (array_access::write_reproducer): Likewise. | |
1225 | (array_access::get_precedence): Likewise. | |
1226 | (access_field_of_lvalue::replay_into): Likewise. | |
1227 | (access_field_of_lvalue::visit_children): Likewise. | |
1228 | (access_field_of_lvalue::make_debug_string): Likewise. | |
1229 | (access_field_of_lvalue::write_reproducer): Likewise. | |
1230 | (access_field_of_lvalue::get_precedence): Likewise. | |
1231 | (access_field_rvalue::replay_into): Likewise. | |
1232 | (access_field_rvalue::visit_children): Likewise. | |
1233 | (access_field_rvalue::make_debug_string): Likewise. | |
1234 | (access_field_rvalue::write_reproducer): Likewise. | |
1235 | (access_field_rvalue::get_precedence): Likewise. | |
1236 | (dereference_field_rvalue::replay_into): Likewise. | |
1237 | (dereference_field_rvalue::visit_children): Likewise. | |
1238 | (dereference_field_rvalue::make_debug_string): Likewise. | |
1239 | (dereference_field_rvalue::write_reproducer): Likewise. | |
1240 | (dereference_field_rvalue::get_precedence): Likewise. | |
1241 | (dereference_rvalue::replay_into): Likewise. | |
1242 | (dereference_rvalue::visit_children): Likewise. | |
1243 | (dereference_rvalue::make_debug_string): Likewise. | |
1244 | (dereference_rvalue::write_reproducer): Likewise. | |
1245 | (dereference_rvalue::get_precedence): Likewise. | |
1246 | (get_address_of_lvalue::replay_into): Likewise. | |
1247 | (get_address_of_lvalue::visit_children): Likewise. | |
1248 | (get_address_of_lvalue::make_debug_string): Likewise. | |
1249 | (get_address_of_lvalue::write_reproducer): Likewise. | |
1250 | (get_address_of_lvalue::get_precedence): Likewise. | |
1251 | (local::replay_into): Likewise. | |
1252 | (local::visit_children): Likewise. | |
1253 | (local::write_to_dump): Likewise. | |
1254 | (local::make_debug_string): Likewise. | |
1255 | (local::write_reproducer): Likewise. | |
1256 | (local::get_precedence): Likewise. | |
1257 | (statement::write_to_dump): Likewise. | |
1258 | (eval::replay_into): Likewise. | |
1259 | (eval::make_debug_string): Likewise. | |
1260 | (eval::write_reproducer): Likewise. | |
1261 | (assignment::replay_into): Likewise. | |
1262 | (assignment::make_debug_string): Likewise. | |
1263 | (assignment::write_reproducer): Likewise. | |
1264 | (assignment_op::replay_into): Likewise. | |
1265 | (assignment_op::make_debug_string): Likewise. | |
1266 | (assignment_op::write_reproducer): Likewise. | |
1267 | (comment::replay_into): Likewise. | |
1268 | (comment::make_debug_string): Likewise. | |
1269 | (comment::write_reproducer): Likewise. | |
1270 | (conditional::replay_into): Likewise. | |
1271 | (conditional::get_successor_blocks): Likewise. | |
1272 | (conditional::make_debug_string): Likewise. | |
1273 | (conditional::write_reproducer): Likewise. | |
1274 | (jump::replay_into): Likewise. | |
1275 | (jump::get_successor_blocks): Likewise. | |
1276 | (jump::make_debug_string): Likewise. | |
1277 | (jump::write_reproducer): Likewise. | |
1278 | (return_::replay_into): Likewise. | |
1279 | (return_::get_successor_blocks): Likewise. | |
1280 | (return_::make_debug_string): Likewise. | |
1281 | (return_::write_reproducer): Likewise. | |
1282 | (case_::replay_into): Likewise. | |
1283 | (case_::write_reproducer): Likewise. | |
1284 | (case_::make_debug_string): Likewise. | |
1285 | (switch_::replay_into): Likewise. | |
1286 | (switch_::get_successor_blocks): Likewise. | |
1287 | (switch_::make_debug_string): Likewise. | |
1288 | (switch_::write_reproducer): Likewise. | |
1289 | ||
f258ad62 DM |
1290 | 2016-02-08 David Malcolm <dmalcolm@redhat.com> |
1291 | ||
1292 | * dummy-frontend.c (jit_langhook_init): Remove | |
1293 | second argument to build_common_tree_nodes to | |
1294 | track r233218. | |
1295 | ||
1c652ccb IB |
1296 | 2016-01-23 Iain Buclaw <ibuclaw@gdcproject.org> |
1297 | ||
1298 | * jit-playback.c: Include pthread.h. | |
1299 | ||
199501ea DM |
1300 | 2016-01-19 David Malcolm <dmalcolm@redhat.com> |
1301 | ||
1302 | PR jit/69144 | |
1303 | * jit-playback.c (gcc::jit::playback::compile_to_file::postprocess): | |
1304 | Potentially add the temporary artifact to the tempdir's list of | |
1305 | tempfiles needing additional cleanup. | |
1306 | (gcc::jit::playback::context::extract_any_requested_dumps): Likewise | |
1307 | for the dumpfile. | |
1308 | * jit-tempdir.c (gcc::jit::tempdir::~tempdir): Clean up additional | |
1309 | tempfiles. | |
1310 | * jit-tempdir.h (gcc::jit::tempdir::add_temp_file): New method. | |
1311 | (gcc::jit::tempdir::m_tempfiles): New field. | |
1312 | * docs/cp/intro/tutorial04.rst: Update for changes to toyvm.cc. | |
1313 | * docs/examples/tut04-toyvm/toyvm.cc (class compilation_result): | |
1314 | New. | |
1315 | (toyvm_function::compile): Change return type from function ptr | |
1316 | to a compilation_result. | |
1317 | (toyvm_function::get_function_name): New accessor. | |
1318 | (toyvm_function::m_funcname): New field. | |
1319 | (get_function_name): Convert to... | |
1320 | (toyvm_function::make_function_name): ...this new method. | |
1321 | (toyvm_function::parse): Call make_function_name. | |
1322 | (toyvm_function::compile): Convert return type from function ptr | |
1323 | to a compilation_result. Use get_function_name. | |
1324 | (compilation_state::compile): Convert return type from | |
1325 | gcc_jit_result * to a compilation_result. | |
1326 | (test_script): Update for above changes, extracting the code from | |
1327 | the compilation_result. | |
1328 | (main): Likewise. | |
1329 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1330 | ||
818ab71a JJ |
1331 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
1332 | ||
1333 | Update copyright years. | |
1334 | ||
69f293c9 AM |
1335 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
1336 | ||
1337 | * dummy-frontend.c: Remove unused header files. | |
1338 | * jit-builtins.c: Likewise. | |
1339 | * jit-playback.c: Likewise. | |
1340 | * jit-recording.c: Likewise. | |
1341 | * jit-spec.c: Likewise. | |
1342 | * libgccjit.c: Likewise. | |
1343 | ||
0aad0198 RS |
1344 | 2015-11-07 Richard Sandiford <richard.sandiford@arm.com> |
1345 | ||
1346 | * jit-builtins.c: Don't undef DEF_BUILTIN. | |
1347 | ||
2adfab87 AM |
1348 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
1349 | ||
1350 | * dummy-frontend.c: Reorder #include's and remove duplicates. | |
1351 | * jit-builtins.c: Likewise. | |
1352 | * jit-playback.c: Likewise. | |
1353 | * jit-recording.c: Likewise. | |
1354 | * libgccjit.c: Likewise. | |
1355 | ||
d9a6bd32 JJ |
1356 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
1357 | ||
1358 | * jit-builtins.c (DEF_FUNCTION_TYPE_9, DEF_FUNCTION_TYPE_10, | |
1359 | DEF_FUNCTION_TYPE_11): Define. | |
1360 | * jit-builtins.h (DEF_FUNCTION_TYPE_9, DEF_FUNCTION_TYPE_10, | |
1361 | DEF_FUNCTION_TYPE_11): Define. | |
1362 | ||
fa83660d TS |
1363 | 2015-09-30 Thomas Schwinge <thomas@codesourcery.com> |
1364 | Ulrich Drepper <drepper@gmail.com> | |
1365 | ||
1366 | * jit-builtins.h: Undefine DEF_FUNCTION_TYPE_VAR_6 after use. | |
1367 | ||
20a44562 MK |
1368 | 2015-09-30 Matthias Klose <doko@ubuntu.com> |
1369 | ||
1370 | * jit-builtins.h Define DEF_FUNCTION_TYPE_VAR_6, | |
1371 | remove DEF_FUNCTION_TYPE_VAR_11. | |
1372 | * jit-builtins.c (builtins_manager::make_type): Define and handle | |
1373 | DEF_FUNCTION_TYPE_VAR_6, remove DEF_FUNCTION_TYPE_VAR_11. | |
1374 | ||
9376dd63 DM |
1375 | 2015-08-25 David Malcolm <dmalcolm@redhat.com> |
1376 | ||
1377 | * docs/cp/topics/contexts.rst | |
1378 | (gccjit::context::set_bool_use_external_driver): New. | |
1379 | * docs/internals/test-hello-world.exe.log.txt: Update. | |
1380 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_5): New. | |
1381 | * docs/topics/contexts.rst | |
1382 | (gcc_jit_context_set_bool_use_external_driver): New. | |
1383 | * jit-common.h (enum inner_bool_option): Add | |
1384 | INNER_BOOL_OPTION_USE_EXTERNAL_DRIVER. | |
1385 | * jit-playback.c (gcc_driver_name): New global. | |
1386 | (gcc:jit::playback::context::invoke_driver): Split out second | |
1387 | half into... | |
1388 | (gcc::jit::playback::context::invoke_embedded_driver): ...this new | |
1389 | function, and... | |
1390 | (gcc::jit::playback::context::invoke_external_driver): ...this new | |
1391 | function. | |
1392 | * jit-playback.h | |
1393 | (gcc::jit::playback::context::get_inner_bool_option): New. | |
1394 | (gcc::jit::playback::context::invoke_embedded_driver): New. | |
1395 | (gcc::jit::playback::context::invoke_external_driver): New. | |
1396 | * jit-recording.c (inner_bool_option_reproducer_strings): | |
1397 | Add entry for INNER_BOOL_OPTION_USE_EXTERNAL_DRIVER. | |
1398 | * libgccjit++.h | |
1399 | (gccjit::context::set_bool_use_external_driver): New. | |
1400 | * libgccjit.c (gcc_jit_context_set_bool_use_external_driver): New. | |
1401 | * libgccjit.h (gcc_jit_context_set_bool_use_external_driver): New. | |
1402 | (LIBGCCJIT_HAVE_gcc_jit_context_set_bool_use_external_driver): | |
1403 | New. | |
1404 | * libgccjit.map (LIBGCCJIT_ABI_5): New. | |
1405 | * notes.txt: Show invocation of embedded copy of driver. | |
1406 | * docs/internals/test-hello-world.exe.log.txt: Update | |
1407 | ||
baf3fbad DM |
1408 | 2015-08-13 David Malcolm <dmalcolm@redhat.com> |
1409 | ||
1410 | * jit-playback.c (invoke_driver): On OS X, add | |
1411 | "-Wl,-undefined,dynamic_lookup" to the driver arguments. | |
1412 | ||
afed3459 DM |
1413 | 2015-08-03 David Malcolm <dmalcolm@redhat.com> |
1414 | ||
1415 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_4): New. | |
1416 | * docs/topics/contexts.rst (GCC_JIT_BOOL_OPTION_DUMP_SUMMARY): | |
1417 | We no longer show a profile. | |
1418 | * docs/topics/index.rst (Topic Reference): Add performance.rst. | |
1419 | * docs/topics/performance.rst: New file. | |
1420 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1421 | * jit-playback.c (gcc::jit::playback::context::compile): Add timer | |
1422 | param when constructing the "toplev" instance. | |
1423 | (gcc::jit::playback::context::acquire_mutex): Add timer param when | |
1424 | constructing auto_timevar instance. | |
1425 | (gcc::jit::playback::context::make_fake_args): If we have a timer, | |
1426 | add "-ftime-report". | |
1427 | (gcc::jit::playback::context::invoke_driver): Add timer param when | |
1428 | constructing auto_timevar instance. | |
1429 | (gcc::jit::playback::context::dlopen_built_dso): Likewise. | |
1430 | * jit-playback.h (gcc::jit::playback::context::get_timer): New accessor. | |
1431 | * jit-recording.c: Include timevar.h. | |
1432 | (gcc::jit::recording::context::context): Initialize field "m_timer". | |
1433 | * jit-recording.h: Add forward declaration of class timer. | |
1434 | (gcc::jit::recording::context::set_timer): New method. | |
1435 | (gcc::jit::recording::context::get_timer): New method. | |
1436 | (gcc::jit::recording::context::m_timer): New field. | |
1437 | * libgccjit++.h (gccjit::timer): New class. | |
1438 | (gccjit::auto_time): New class. | |
1439 | (gccjit::context::set_timer): New method. | |
1440 | (gccjit::context::get_timer): New. | |
1441 | (gccjit::timer::timer): New. | |
1442 | (gccjit::timer::push): New. | |
1443 | (gccjit::timer::pop): New. | |
1444 | (timer::print): New. | |
1445 | (timer::get_inner_timer): New. | |
1446 | (timer::release): New. | |
1447 | (auto_time::auto_time): New. | |
1448 | (auto_time::~auto_time): New. | |
1449 | * libgccjit.c: Include timevar.h. | |
1450 | (struct gcc_jit_timer): New. | |
1451 | (gcc_jit_timer_new): New function. | |
1452 | (gcc_jit_timer_release): New function. | |
1453 | (gcc_jit_context_set_timer): New function. | |
1454 | (gcc_jit_context_get_timer): New function. | |
1455 | (gcc_jit_timer_push): New function. | |
1456 | (gcc_jit_timer_pop): New function. | |
1457 | (gcc_jit_timer_print): New function. | |
1458 | * libgccjit.h (LIBGCCJIT_HAVE_TIMING_API): New macro. | |
1459 | (gcc_jit_timer): New typedef. | |
1460 | (gcc_jit_timer_new): New function. | |
1461 | (gcc_jit_timer_release): New function. | |
1462 | (gcc_jit_context_set_timer): New function. | |
1463 | (gcc_jit_context_get_timer): New function. | |
1464 | (gcc_jit_timer_push): New function. | |
1465 | (gcc_jit_timer_pop): New function. | |
1466 | (gcc_jit_timer_print): New function. | |
1467 | * libgccjit.map (LIBGCCJIT_ABI_4): New. | |
1468 | (gcc_jit_timer_new): New function. | |
1469 | (gcc_jit_timer_release): New function. | |
1470 | (gcc_jit_context_set_timer): New function. | |
1471 | (gcc_jit_context_get_timer): New function. | |
1472 | (gcc_jit_timer_push): New function. | |
1473 | (gcc_jit_timer_pop): New function. | |
1474 | (gcc_jit_timer_print): New function. | |
1475 | ||
eb3982c1 DM |
1476 | 2015-07-23 David Malcolm <dmalcolm@redhat.com> |
1477 | ||
1478 | * jit-playback.c (invoke_driver): Convert local "argvec" | |
1479 | to an auto_argvec, so that it owns copies of the strings, | |
1480 | rather than borrows them, updating ADD_ARG to use xstrdup | |
1481 | and special-casing the NULL terminator to avoid | |
1482 | xstrdup (NULL). Call add_multilib_driver_arguments at the front | |
1483 | of the arguments. | |
1484 | (MULTILIB_DEFAULTS): Provide a default definition. | |
1485 | (multilib_defaults_raw): New constant array. | |
1486 | (gcc::jit::playback::context::add_multilib_driver_arguments): New | |
1487 | method. | |
1488 | * jit-playback.h | |
1489 | (gcc::jit::playback::context::add_multilib_driver_arguments): New | |
1490 | method. | |
1491 | * docs/internals/test-hello-world.exe.log.txt: Update. | |
1492 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1493 | ||
1470e75f DM |
1494 | 2015-07-16 David Malcolm <dmalcolm@redhat.com> |
1495 | ||
1496 | * docs/internals/index.rst (Overview of code structure): Add note | |
1497 | that the implementation is in C++, despite the .c extension. | |
1498 | (Submitting patches): New subsection. | |
1499 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1500 | ||
1916bcb5 AM |
1501 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
1502 | ||
1503 | * dummy-frontend.c: Adjust includes for flags.h changes. | |
1504 | * jit-common.h: Likewise. | |
1505 | * jit-playback.c: Likewise. | |
1506 | ||
58c5ad40 DM |
1507 | 2015-07-08 David Malcolm <dmalcolm@redhat.com> |
1508 | ||
1509 | PR jit/66783 | |
1510 | * libgccjit.c (gcc_jit_context_new_field): Show name of field in | |
1511 | "unknown size" error message. | |
1512 | (gcc_jit_struct_set_fields): Show name of struct in error message. | |
1513 | (gcc_jit_context_new_global): Show name of global in | |
1514 | "unknown size" error message. | |
1515 | (gcc_jit_function_new_local): Likewise for local. | |
1516 | ||
c7131fb2 AM |
1517 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
1518 | ||
1519 | * dummy-frontend.c: Adjust includes. | |
1520 | * jit-common.h: Likewise. | |
1521 | * jit-playback.c: Likewise. | |
1522 | ||
3457d39e DM |
1523 | 2015-07-07 David Malcolm <dmalcolm@redhat.com> |
1524 | ||
1525 | PR jit/66783 | |
1526 | * jit-recording.h: Within namespace gcc:jit::recording... | |
1527 | (type::has_known_size): New virtual function. | |
1528 | (struct_has_known_size): New function. | |
1529 | * libgccjit.c (gcc_jit_context_new_field): Verify that the type | |
1530 | has a known size. | |
1531 | (gcc_jit_context_new_global): Likewise. | |
1532 | (gcc_jit_function_new_local): Likewise. | |
1533 | ||
bada4bed DM |
1534 | 2015-07-07 David Malcolm <dmalcolm@redhat.com> |
1535 | ||
1536 | PR jit/66779 | |
1537 | * dummy-frontend.c (jit_langhook_type_for_mode): Ensure that we | |
1538 | handle modes QI, HI, SI, DI, TI. | |
1539 | ||
e09abfa4 DM |
1540 | 2015-07-01 David Malcolm <dmalcolm@redhat.com> |
1541 | ||
1542 | PR jit/66700 | |
1543 | * jit-playback.c (jit_mark_addressable): New function. | |
1544 | (gcc::jit::playback::lvalue::get_address): Call | |
1545 | jit_mark_addressable on the underlying tree. | |
1546 | ||
e807aeaa DM |
1547 | 2015-07-01 David Malcolm <dmalcolm@redhat.com> |
1548 | ||
1549 | * docs/topics/types.rst (gcc_jit_context_new_union_type): Add | |
1550 | documentation. | |
1551 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1552 | ||
c575221a DM |
1553 | 2015-07-01 David Malcolm <dmalcolm@redhat.com> |
1554 | ||
1555 | * docs/topics/contexts.rst (gcc_jit_context_set_bool_option): | |
1556 | Clarify lack of lifetime requirements on (const char *) parameter. | |
1557 | * docs/topics/expressions.rst | |
1558 | (gcc_jit_context_new_string_literal): Likewise. | |
1559 | (gcc_jit_context_new_global): Likewise. | |
1560 | * docs/topics/functions.rst (gcc_jit_context_new_param): Likewise. | |
1561 | (gcc_jit_context_new_function): Likewise. | |
1562 | (gcc_jit_function_new_block): Likewise. | |
1563 | (gcc_jit_block_add_comment): Likewise. | |
1564 | * docs/topics/locations.rst (gcc_jit_context_new_location): | |
1565 | Likewise. | |
1566 | * docs/topics/types.rst (gcc_jit_context_new_field): Likewise. | |
1567 | (gcc_jit_context_new_struct_type): Likewise. | |
1568 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1569 | ||
ec5d0088 DM |
1570 | 2015-06-30 David Malcolm <dmalcolm@redhat.com> |
1571 | ||
1572 | * docs/cp/topics/functions.rst (Blocks): Add switch statements to | |
1573 | list of ways to terminate a block. | |
1574 | (gccjit::block::end_with_switch): Add function description. | |
1575 | (gccjit::case_): Add class. | |
1576 | (gccjit::context::new_case): Add function description. | |
1577 | * docs/cp/topics/objects.rst: Add "case_" to class hierarchy. | |
1578 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_3): New. | |
1579 | * docs/topics/functions.rst (Blocks): Add switch statements to | |
1580 | list of ways to terminate a block. | |
1581 | (gcc_jit_block_end_with_switch): Add function description. | |
1582 | (gcc_jit_case): Add type. | |
1583 | (gcc_jit_context_new_case): Add function description. | |
1584 | (gcc_jit_case_as_object): Add function description. | |
1585 | * docs/topics/objects.rst: Add gcc_jit_case to class hierarchy. | |
1586 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1587 | * jit-common.h (gcc::jit::recording::case_): Add forward decl. | |
1588 | (gcc::jit::playback::case_): Add forward decl. | |
1589 | * jit-playback.c (add_case): New function. | |
1590 | (gcc::jit::playback::block::add_switch): New function. | |
1591 | * jit-playback.h (gcc::jit::playback::case_): New struct. | |
1592 | (gcc::jit::playback::block::get_function): New method. | |
1593 | (gcc::jit::playback::block::add_switch): New method. | |
1594 | * jit-recording.c: Within namespace gcc::jit... | |
1595 | (recording::context::new_case): New method. | |
1596 | (recording::function::validate): Update for change to | |
1597 | get_successor_blocks. | |
1598 | (recording::block::end_with_switch): New method. | |
1599 | (recording::block::get_successor_blocks): Update to support an | |
1600 | arbitrary number of successor blocks. | |
1601 | (recording::block::dump_edges_to_dot): Likewise. | |
1602 | (memento_of_new_rvalue_from_const <int>::get_wide_int): New. | |
1603 | (memento_of_new_rvalue_from_const <long>::get_wide_int): New. | |
1604 | (memento_of_new_rvalue_from_const <double>::get_wide_int): New. | |
1605 | (memento_of_new_rvalue_from_const <void *>::get_wide_int): New. | |
1606 | (recording::statement::get_successor_blocks): Update to support an | |
1607 | arbitrary number of successor blocks. | |
1608 | (recording::conditional::get_successor_blocks): Likewise. | |
1609 | (recording::jump::get_successor_blocks): Likewise. | |
1610 | (recording::return_::get_successor_blocks): Likewise. | |
1611 | (recording::case_::write_reproducer): New. | |
1612 | (recording::case_::make_debug_string): New. | |
1613 | (recording::switch_::switch_): New. | |
1614 | (recording::switch_::replay_into): New. | |
1615 | (recording::switch_::get_successor_blocks): New. | |
1616 | (recording::switch_::make_debug_string): New. | |
1617 | (recording::switch_::write_reproducer): New. | |
1618 | * jit-recording.h: Within namespace gcc::jit::recording... | |
1619 | (context::new_case): New. | |
1620 | (rvalue::is_constant): New. | |
1621 | (rvalue::get_wide_int): New. | |
1622 | (block::end_with_switch): New. | |
1623 | (block::get_successor_blocks): Update to support an arbitrary | |
1624 | number of successor blocks. | |
1625 | (memento_of_new_rvalue_from_const::is_constant): New. | |
1626 | (memento_of_new_rvalue_from_const::get_wide_int): New. | |
1627 | (statement::get_successor_blocks): Update to support an arbitrary | |
1628 | number of successor blocks. | |
1629 | (conditional::get_successor_blocks): Likewise. | |
1630 | (jump::get_successor_blocks): Likewise. | |
1631 | (return_::get_successor_blocks): Likewise. | |
1632 | (case_): New subclass of memento. | |
1633 | (switch_): New subclass of statement. | |
1634 | * libgccjit++.h (gccjit::case_): New subclass of gccjit::object. | |
1635 | (gccjit::context::new_case): New method. | |
1636 | (gccjit::block::end_with_switch): New method. | |
1637 | (gccjit::case_::case): New ctors. | |
1638 | (gccjit::case_::get_inner_case): New method. | |
1639 | * libgccjit.c: Include "typed-splay-tree.h" | |
1640 | (struct gcc_jit_case): New. | |
1641 | (gcc_jit_context_new_case): New function. | |
1642 | (gcc_jit_case_as_object): New function. | |
1643 | (valid_dest_for_switch): New function. | |
1644 | (valid_case_for_switch): New function. | |
1645 | (class api_call_validator): New class. | |
1646 | (class case_range_validator): New class. | |
1647 | (case_range_validator::case_range_validator): New. | |
1648 | (case_range_validator::validate): New. | |
1649 | (case_range_validator::case_compare): New. | |
1650 | (case_range_validator::get_wide_int): new. | |
1651 | (gcc_jit_block_end_with_switch): New. | |
1652 | * libgccjit.h: Add gcc_jit_case to class hierarchy comment. | |
1653 | (gcc_jit_case): New typedef. | |
1654 | (gcc_jit_context_new_case): New function. | |
1655 | (gcc_jit_case_as_object): New function. | |
1656 | (gcc_jit_block_end_with_switch): New function. | |
1657 | (LIBGCCJIT_HAVE_SWITCH_STATEMENTS): New. | |
1658 | * libgccjit.map: Add gcc_jit_block_end_with_switch, | |
1659 | gcc_jit_case_as_object and gcc_jit_context_new_case. | |
1660 | ||
6a3603e3 DM |
1661 | 2015-06-30 David Malcolm <dmalcolm@redhat.com> |
1662 | ||
1663 | PR jit/66546 | |
1664 | * docs/cp/topics/contexts.rst | |
1665 | (gccjit::context::set_bool_allow_unreachable_blocks): New. | |
1666 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_2): New. | |
1667 | * docs/topics/contexts.rst (Options): Add notes discussing the | |
1668 | transition from enums to entrypoints for new options. | |
1669 | (gcc_jit_context_set_bool_allow_unreachable_blocks): New. | |
1670 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1671 | * jit-common.h (gcc::jit::inner_bool_option): New enum. | |
1672 | * jit-recording.c: Within namespace gcc::jit... | |
1673 | (recording::context::context): Handle m_inner_bool_options. | |
1674 | (recording::context::set_inner_bool_option): New. | |
1675 | (inner_bool_option_reproducer_strings): New. | |
1676 | (recording::context::log_all_options): Log the "inner" bool | |
1677 | options. | |
1678 | (recording::context::log_inner_bool_option): New. | |
1679 | (recording::context::dump_reproducer_to_file): Write initializers | |
1680 | for "inner" bool options. | |
1681 | (recording::function::validate): Don't check for block | |
1682 | reachability if INNER_BOOL_OPTION_ALLOW_UNREACHABLE_BLOCKS is set. | |
1683 | * jit-recording.h: Within namespace gcc::jit... | |
1684 | (recording::context::set_inner_bool_option): New. | |
1685 | (recording::context::get_inner_bool_option): New. | |
1686 | (recording::context::log_inner_bool_option): New. | |
1687 | (recording::context::m_inner_bool_options): New. | |
1688 | * libgccjit++.h | |
1689 | (gccjit::context::set_bool_allow_unreachable_blocks): New. | |
1690 | * libgccjit.c | |
1691 | (gcc_jit_context_set_bool_allow_unreachable_blocks): New. | |
1692 | * libgccjit.h: Add note about options present in the | |
1693 | initial release of libgccjit. | |
1694 | (gcc_jit_context_set_bool_allow_unreachable_blocks): New API | |
1695 | entrypoint. | |
1696 | (LIBGCCJIT_HAVE_gcc_jit_context_set_bool_allow_unreachable_blocks): | |
1697 | New macro. | |
1698 | * libgccjit.map (LIBGCCJIT_ABI_2): New, containing... | |
1699 | (gcc_jit_context_set_bool_allow_unreachable_blocks): ...this new | |
1700 | entrypoint. | |
1701 | ||
fa22c20d DM |
1702 | 2015-06-30 David Malcolm <dmalcolm@redhat.com> |
1703 | ||
1704 | PR jit/66628 | |
1705 | * docs/cp/topics/contexts.rst (Additional command-line options): | |
1706 | New section. | |
1707 | * docs/topics/compatibility.rst: New file. | |
1708 | * docs/topics/contexts.rst (Additional command-line options): New | |
1709 | section. | |
1710 | * docs/topics/index.rst: Add compatibility.rst. | |
1711 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1712 | * jit-playback.c (make_fake_args): Add call to | |
1713 | append_command_line_options. | |
1714 | * jit-recording.c: Within namespace gcc::jit... | |
1715 | (recording::context::~context): Free the optnames within | |
1716 | m_command_line_options. | |
1717 | (recording::context::set_bool_option): Likewise. | |
1718 | (recording::context::add_command_line_option): New method. | |
1719 | (recording::context::append_command_line_options): New method. | |
1720 | (recording::context::dump_reproducer_to_file): Add command-line | |
1721 | options. | |
1722 | * jit-recording.h: Within namespace gcc::jit... | |
1723 | (recording::context::add_command_line_option): New method. | |
1724 | (recording::context::append_command_line_options): New method. | |
1725 | (recording::context::m_command_line_options): New field. | |
1726 | * libgccjit++.h (gccjit::context::add_command_line_option): New | |
1727 | method. | |
1728 | * libgccjit.c (gcc_jit_context_add_command_line_option): New API | |
1729 | entrypoint. | |
1730 | * libgccjit.h (gcc_jit_context_add_command_line_option): New API | |
1731 | entrypoint. | |
1732 | (LIBGCCJIT_HAVE_gcc_jit_context_add_command_line_option): New | |
1733 | macro. | |
1734 | * libgccjit.map: Put existing symbols within LIBGCCJIT_ABI_0; add | |
1735 | LIBGCCJIT_ABI_1 and gcc_jit_context_add_command_line_option. | |
1736 | ||
a6314e15 DM |
1737 | 2015-06-30 David Malcolm <dmalcolm@redhat.com> |
1738 | ||
1739 | * jit-recording.c | |
1740 | (gcc::jit::recording::context::dump_reproducer_to_file): | |
1741 | Add pragma to generated reproducers to disable -Wunused-variable. | |
1742 | Fix handling of NULL string options. | |
1743 | ||
adb6d84b DM |
1744 | 2015-06-30 David Malcolm <dmalcolm@redhat.com> |
1745 | ||
1746 | * docs/cp/topics/expressions.rst: Remove stray semicolon. | |
1747 | * docs/cp/topics/functions.rst: Remove stray backslash. | |
1748 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1749 | ||
f0889939 AM |
1750 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
1751 | ||
1752 | * dummy-frontend.c: Remove ipa-ref.h and plugin-api.h from include list. | |
1753 | * jit-playback.c: Likewise. | |
1754 | ||
9cad7a76 AM |
1755 | 2015-06-25 Andrew Macleod <amacleod@redhat.com> |
1756 | ||
1757 | * jit-common.h: Don't include alias.h. | |
1758 | ||
41571b55 DM |
1759 | 2015-06-17 David Malcolm <dmalcolm@redhat.com> |
1760 | ||
1761 | * libgccjit.c (gcc_jit_lvalue_access_field): Verify that the field | |
1762 | is for the correct struct. | |
1763 | (gcc_jit_rvalue_access_field): Likewise. | |
1764 | ||
abb226c9 AM |
1765 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
1766 | ||
1767 | * dummy-frontend.c: Do not include input.h, line-map.h or is-a.h. | |
1768 | * jit-common.h: Likewise. | |
1769 | * jit-playback.c: Likewise. | |
1770 | ||
bd93aa1a DM |
1771 | 2015-06-16 David Malcolm <dmalcolm@redhat.com> |
1772 | ||
1773 | PR jit/66539 | |
1774 | * jit-recording.c: Within namespace gcc::jit::recording:: | |
1775 | (rvalue::get_debug_string_parens): New function. | |
1776 | (binary_op::make_debug_string): Update to mimic C precedence | |
1777 | rules. | |
1778 | (binary_op_precedence): New array. | |
1779 | (binary_op::get_precedence): New function. | |
1780 | (comparison::make_debug_string): Update to mimic C precedence | |
1781 | rules. | |
1782 | (comparison_precedence): New array. | |
1783 | (comparison::get_precedence): New function. | |
1784 | (cast::make_debug_string): Update to mimic C precedence rules. | |
1785 | (call::make_debug_string): Likewise. | |
1786 | (call_through_ptr::make_debug_string): Likewise. | |
1787 | (array_access::make_debug_string): Likewise. | |
1788 | (access_field_of_lvalue::make_debug_string): Likewise. | |
1789 | (access_field_rvalue::make_debug_string): Likewise. | |
1790 | (dereference_field_rvalue::make_debug_string): Likewise. | |
1791 | (dereference_rvalue::make_debug_string): Likewise. | |
1792 | (get_address_of_lvalue::make_debug_string): Likewise. | |
1793 | * jit-recording.h: Within namespace gcc::jit::recording:: | |
1794 | (precedence): New enum. | |
1795 | (rvalue::rvalue): Initialize field "m_parenthesized_string". | |
1796 | (rvalue::get_debug_string_parens): New method. | |
1797 | (rvalue::get_precedence): New pure virtual function. | |
1798 | (rvalue::m_parenthesized_string): New field. | |
1799 | (param::get_precedence): New function. | |
1800 | (global::get_precedence): New function. | |
1801 | (memento_of_new_rvalue_from_const::get_precedence): New function. | |
1802 | (memento_of_new_string_literal::get_precedence): New function. | |
1803 | (unary_op::get_precedence): New function. | |
1804 | (binary_op::get_precedence): New function. | |
1805 | (comparison::get_precedence): New function. | |
1806 | (cast::get_precedence): New function. | |
1807 | (call::get_precedence): New function. | |
1808 | (call_through_ptr::get_precedence): New function. | |
1809 | (array_access::get_precedence): New function. | |
1810 | (access_field_of_lvalue::get_precedence): New function. | |
1811 | (access_field_rvalue::get_precedence): New function. | |
1812 | (dereference_field_rvalue::get_precedence): New function. | |
1813 | (dereference_rvalue::get_precedence): New function. | |
1814 | (get_address_of_lvalue::get_precedence): New function. | |
1815 | (local::get_precedence): New function. | |
1816 | ||
83c1b80e MK |
1817 | 2015-06-09 Matthias Klose <doko@ubuntu.com> |
1818 | ||
1819 | * Make-lang.in (jit.install-common): Install headers using INSTALL_DATA. | |
1820 | ||
13fdf2e2 AM |
1821 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
1822 | ||
1823 | * dummy-frontend.c : Adjust include files. | |
1824 | * jit-common.h : Likewise. | |
1825 | * jit-playback.c : Likewise. | |
1826 | ||
e4753451 DM |
1827 | 2015-06-05 David Malcolm <dmalcolm@redhat.com> |
1828 | ||
1829 | * dummy-frontend.c | |
1830 | (jit_langhook_post_compilation_parsing_cleanups): Remove. | |
1831 | (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): Remove | |
1832 | * jit-playback.c (gcc::jit::playback::context::new_global): Add | |
1833 | call to varpool_node::finalize_decl. | |
1834 | (gcc::jit::playback::context::finalize_global_decls): Remove. | |
1835 | * jit-playback.h | |
1836 | (gcc::jit::playback::context::finalize_global_decls): Remove. | |
1837 | ||
e7547bc6 DM |
1838 | 2015-06-05 David Malcolm <dmalcolm@redhat.com> |
1839 | ||
1840 | * dummy-frontend.c (jit_langhook_write_globals): Rename to... | |
1841 | (jit_langhook_post_compilation_parsing_cleanups): ...this, and | |
1842 | eliminate calls to finalize_compilation_unit and | |
1843 | write_global_decls_2. | |
1844 | (LANG_HOOKS_WRITE_GLOBALS): Rename to... | |
1845 | (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): ...this and | |
1846 | redirect from jit_langhook_write_globals to | |
1847 | jit_langhook_post_compilation_parsing_cleanups. | |
1848 | * jit-playback.c | |
1849 | (gcc::jit::playback::context::write_global_decls_1): Rename to... | |
1850 | (gcc::jit::playback::context::finalize_global_decls): ...this. | |
1851 | (gcc::jit::playback::context::write_global_decls_1): Delete. | |
1852 | * jit-playback.h | |
1853 | (gcc::jit::playback::context::write_global_decls_1): Rename to... | |
1854 | (gcc::jit::playback::context::finalize_global_decls): ...this. | |
1855 | (gcc::jit::playback::context::write_global_decls_1): Delete. | |
1856 | ||
ecb9f223 AM |
1857 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
1858 | ||
1859 | * dummy-frontend.c: Adjust includes for restructured coretypes.h. | |
1860 | * jit-common.h: Likewise. | |
1861 | * jit-playback.c: Likewise. | |
1862 | ||
2637afb7 DM |
1863 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
1864 | ||
1865 | * jit-builtins.c: Include vec.h before target.h. | |
1866 | ||
46bf0b0a JW |
1867 | 2015-04-27 Jim Wilson <jim.wilson@linaro.org> |
1868 | ||
1869 | * Make-lang.in (jit.mostlyclean): Remove shared libraries and object | |
1870 | files. | |
1871 | ||
51c5c6b5 DM |
1872 | 2015-04-09 David Malcolm <dmalcolm@redhat.com> |
1873 | ||
1874 | PR jit/65691 | |
1875 | * docs/cp/topics/expressions.rst (Simple expressions): Fix copy | |
1876 | and paste error in description of gccjit::context::one. | |
1877 | * docs/topics/expressions.rst (Simple expressions): Likewise in | |
1878 | description of gcc_jit_context_one. | |
1879 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1880 | ||
f40fd895 UB |
1881 | 2015-03-13 Uros Bizjak <ubizjak@gmail.com> |
1882 | ||
1883 | * jit-recording.c (dump::write): Also check vasprintf return value. | |
1884 | (recording::context::add_error_va): Ditto. | |
1885 | (recording::string::from_printf): Ditto. | |
1886 | ||
18eb0d13 DM |
1887 | 2015-03-13 David Malcolm <dmalcolm@redhat.com> |
1888 | ||
1889 | * docs/internals/index.rst (Packaging notes): New section. | |
1890 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1891 | ||
7ef96183 DM |
1892 | 2015-03-05 David Malcolm <dmalcolm@redhat.com> |
1893 | ||
1894 | * docs/cp/intro/tutorial03.rst: Add missing arguments to | |
1895 | gccjit::block::end_with_conditional call. Add on_true/on_false | |
1896 | comments. Tweak the wording. | |
1897 | * docs/intro/tutorial03.rst: Add missing arguments to | |
1898 | gcc_jit_block_end_with_conditional call. Add some clarifying | |
1899 | comments. | |
1900 | * docs/topics/compilation.rst: Tweak the wording to avoid an | |
1901 | ambiguous use of "this". | |
1902 | * docs/topics/contexts.rst: Fix a typo. | |
1903 | * docs/topics/expressions.rst (GCC_JIT_BINARY_OP_MINUS): Remove | |
1904 | a stray backtick. | |
1905 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1906 | ||
56a9f6bc TS |
1907 | 2015-02-24 Thomas Schwinge <thomas@codesourcery.com> |
1908 | ||
1909 | PR libgomp/64625 | |
1910 | * jit-builtins.c (DEF_FUNCTION_TYPE_VAR_8) | |
1911 | (DEF_FUNCTION_TYPE_VAR_12): Remove macros. | |
1912 | (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros. | |
1913 | * jit-builtins.h (DEF_FUNCTION_TYPE_VAR_8) | |
1914 | (DEF_FUNCTION_TYPE_VAR_12): Remove macros. | |
1915 | (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros. | |
1916 | ||
a4be4e91 DM |
1917 | 2015-02-04 David Malcolm <dmalcolm@redhat.com> |
1918 | ||
1919 | PR jit/64257 | |
1920 | * docs/conf.py (html_theme): Change from 'pyramid' | |
1921 | to 'sphinxdoc'. | |
1922 | ||
f435bff3 DM |
1923 | 2015-02-04 David Malcolm <dmalcolm@redhat.com> |
1924 | ||
1925 | * docs/topics/contexts.rst (gcc_jit_context_acquire): Fix | |
1926 | typo. | |
1927 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1928 | ||
0ed4f017 DM |
1929 | 2015-02-03 David Malcolm <dmalcolm@redhat.com> |
1930 | ||
1931 | * jit-logging.h (gcc::jit::log_user::log): Make const. | |
1932 | * jit-recording.c (gcc::jit::recording::context::set_str_option): | |
1933 | Log the new value of the option. | |
1934 | (gcc::jit::recording::context::set_int_option): Likewise. | |
1935 | (gcc::jit::recording::context::set_bool_option): Likewise. | |
1936 | (gcc::jit::recording::context::compile): Log the value of all | |
1937 | options. | |
1938 | (gcc::jit::recording::context::compile_to_file): Likewise. | |
1939 | (gcc::jit::recording::context::log_all_options): New function. | |
1940 | (gcc::jit::recording::context::log_str_option): New function. | |
1941 | (gcc::jit::recording::context::log_int_option): New function. | |
1942 | (gcc::jit::recording::context::log_bool_option): New function. | |
1943 | * jit-recording.h (gcc::jit::recording::context::log_all_options): | |
1944 | New function. | |
1945 | (gcc::jit::recording::context::log_str_option): New function. | |
1946 | (gcc::jit::recording::context::log_int_option): New function. | |
1947 | (gcc::jit::recording::context::log_bool_option): New function. | |
1948 | * docs/internals/test-hello-world.exe.log.txt: Update for above | |
1949 | changes. | |
1950 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1951 | ||
2cb844ce DM |
1952 | 2015-02-03 David Malcolm <dmalcolm@redhat.com> |
1953 | ||
1954 | PR jit/64810 | |
1955 | * Make-lang.in (jit_OBJS): Add jit/jit-spec.o and gcc.o. | |
1956 | (LIBGCCJIT_FILENAME): Add EXTRA_GCC_OBJS. | |
1957 | * jit-playback.c: Include gcc.h. | |
1958 | (gcc::jit::playback::context::compile): Move mutex acquisition | |
1959 | to before the call to make_fake_args. | |
1960 | (append_arg_from_driver): New function. | |
1961 | (gcc::jit::playback::context::make_fake_args): On the first call, | |
1962 | call into driver_get_configure_time_options to get configure-time | |
1963 | default options and cache them. Add them to the args for | |
1964 | toplev::main. | |
1965 | * jit-spec.c: New source file. | |
1966 | * docs/internals/test-hello-world.exe.log.txt: Update to reflect | |
1967 | above changes. | |
1968 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1969 | ||
16a71c50 DM |
1970 | 2015-02-02 David Malcolm <dmalcolm@redhat.com> |
1971 | ||
1972 | PR jit/64810 | |
1973 | * dummy-frontend.c (jit_langhook_type_for_mode): Support | |
1974 | TYPE_MODE (long_long_integer_type_node). | |
1975 | ||
53c04ec9 DM |
1976 | 2015-01-27 David Malcolm <dmalcolm@redhat.com> |
1977 | ||
1978 | * docs/internals/test-hello-world.exe.log.txt: Add example version | |
1979 | lines. | |
1980 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1981 | * jit-common.h (gcc::jit::dump::get_file): New accessor. | |
1982 | * jit-logging.c: Include toplev.h. | |
1983 | (gcc::jit::logger::logger): Log the GCC version. | |
1984 | * jit-recording.c: Include toplev.h. | |
1985 | (gcc:jit::recording::context::dump_reproducer_to_file): Log the | |
1986 | GCC version. | |
1987 | ||
dc44ee3a DM |
1988 | 2015-01-26 David Malcolm <dmalcolm@redhat.com> |
1989 | ||
1990 | * docs/topics/compilation.rst (gcc_jit_result_get_code): Fix typo. | |
1991 | * docs/topics/contexts.rst (gcc_jit_context_get_last_error): The | |
1992 | error buffer is only valid until the next call to the context. | |
1993 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1994 | * libgccjit.h (gcc_jit_context_get_first_error): Reword the | |
1995 | comment to omit mention of compiling. | |
1996 | (gcc_jit_context_get_last_error): The error buffer is only valid | |
1997 | until the next call to the context. | |
1998 | ||
3349605d DM |
1999 | 2015-01-26 David Malcolm <dmalcolm@redhat.com> |
2000 | ||
2001 | PR jit/64708 | |
2002 | * config-lang.in (compilers): Drop "libgccjit.so". | |
2003 | ||
6fc2d0f3 DM |
2004 | 2015-01-23 David Malcolm <dmalcolm@redhat.com> |
2005 | ||
2006 | PR jit/64721 | |
2007 | * jit-playback.c (gcc::jit::playback::context::compile): Construct | |
2008 | toplev instances with init_signals=false. | |
2009 | ||
fdce7209 DM |
2010 | 2015-01-19 David Malcolm <dmalcolm@redhat.com> |
2011 | ||
2012 | * docs/cp/topics/results.rst: Rename to... | |
2013 | * docs/cp/topics/compilation.rst: ...this, and add section on | |
2014 | ahead-of-time compilation. | |
2015 | * docs/cp/topics/index.rst: Update for renaming of results.rst | |
2016 | to compilation.rst. | |
2017 | * docs/examples/emit-alphabet.bf: New file, a sample "brainf" | |
2018 | script. | |
2019 | * docs/examples/tut05-bf.c: New file, implementing a compiler | |
2020 | for "brainf". | |
2021 | * docs/internals/test-hello-world.exe.log.txt: Update to reflect | |
2022 | changes to logger output. | |
2023 | * docs/intro/index.rst: Add tutorial05.rst | |
2024 | * docs/intro/tutorial05.rst: New file. | |
2025 | * docs/topics/results.rst: Rename to... | |
2026 | * docs/topics/compilation.rst: ...this, and add section on | |
2027 | ahead-of-time compilation. | |
2028 | * docs/topics/index.rst: Update for renaming of results.rst to | |
2029 | compilation.rst. | |
2030 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2031 | * jit-playback.c (gcc::jit::playback::context::compile): Convert | |
2032 | return type from result * to void. Move the code to convert to | |
2033 | dso and dlopen the result to a new pure virtual "postprocess" | |
2034 | method. | |
2035 | (gcc::jit::playback::compile_to_memory::compile_to_memory): New | |
2036 | function. | |
2037 | (gcc::jit::playback::compile_to_memory::postprocess): New | |
2038 | function, based on playback::context::compile. | |
2039 | (gcc::jit::playback::compile_to_file::compile_to_file): New | |
2040 | function. | |
2041 | (gcc::jit::playback::compile_to_file::postprocess): New function. | |
2042 | (gcc::jit::playback::compile_to_file::copy_file): New function. | |
2043 | (gcc::jit::playback::context::convert_to_dso): Move internals | |
2044 | to... | |
2045 | (gcc::jit::playback::context::invoke_driver): New method. Add | |
2046 | "-shared" and "-c" options to driver's argv as needed. | |
2047 | * jit-playback.h: Include "timevar.h". | |
2048 | (gcc::jit::playback::context::compile): Convert return type from | |
2049 | result * to void. | |
2050 | (gcc::jit::playback::context::postprocess): New pure virtual | |
2051 | function, making this an abstract base class. | |
2052 | (gcc::jit::playback::context::get_tempdir): New accessor. | |
2053 | (gcc::jit::playback::context::invoke_driver): New function. | |
2054 | (class gcc::jit::playback::compile_to_memory): New subclass of | |
2055 | playback::context. | |
2056 | (class gcc::jit::playback::compile_to_file): Likewise. | |
2057 | * jit-recording.c (gcc::jit::recording::context::compile): Use a | |
2058 | playback::compile_to_memory, and extract its result. | |
2059 | (gcc::jit::recording::context::compile_to_file): New function. | |
2060 | * jit-recording.h (gcc::jit::recording::context::compile_to_file): | |
2061 | New function. | |
2062 | * libgccjit++.h (gccjit::context::compile_to_file): New method. | |
2063 | * libgccjit.c (gcc_jit_context_compile): Update log message to | |
2064 | clarify that this is an in-memory compile. | |
2065 | (gcc_jit_context_compile_to_file): New function. | |
2066 | * libgccjit.h (gcc_jit_context): Clarify that you can compile | |
2067 | a context more than once, and that you can compile to a file | |
2068 | as well as to memory. | |
2069 | (gcc_jit_result): Clarify that this is the result of an | |
2070 | in-memory compilation. | |
2071 | (gcc_jit_context_compile): Clarify that you can compile, and that | |
2072 | this is an in-memory compilation. | |
2073 | (enum gcc_jit_output_kind): New enum. | |
2074 | (gcc_jit_context_compile_to_file): New function. | |
2075 | (gcc_jit_context_enable_dump): Clarify comment to cover both forms | |
2076 | of compilation. | |
2077 | * libgccjit.map (gcc_jit_context_compile_to_file): New API | |
2078 | entrypoint. | |
2079 | * notes.txt: Update to show the playback::context::postprocess | |
2080 | virtual function. | |
2081 | ||
450e225b DM |
2082 | 2015-01-19 David Malcolm <dmalcolm@redhat.com> |
2083 | ||
2084 | * jit-recording.c | |
2085 | (gcc::jit::recording::memento_of_new_string_literal::make_debug_string): | |
2086 | Add missing format string. | |
2087 | ||
499de348 DM |
2088 | 2015-01-16 David Malcolm <dmalcolm@redhat.com> |
2089 | ||
2090 | * Make-lang.in (lang_checks_parallelized): Add "check-jit". | |
2091 | (check_jit_parallelize): Set this to an arbitrary value (10). | |
2092 | ||
e989e68d JJ |
2093 | 2015-01-16 Jakub Jelinek <jakub@redhat.com> |
2094 | ||
2095 | * jit-builtins.h (DEF_FUNCTION_TYPE_VAR_5): Fix spelling of | |
2096 | last argument. | |
2097 | (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): Define and | |
2098 | undef afterwards. | |
2099 | * jit-builtins.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
2100 | Likewise. | |
2101 | ||
179ed8f5 RS |
2102 | 2015-01-15 Richard Sandiford <richard.sandiford@arm.com> |
2103 | ||
2104 | Update copyright years in docs/. | |
2105 | ||
96a87981 DM |
2106 | 2015-01-15 David Malcolm <dmalcolm@redhat.com> |
2107 | ||
2108 | * libgccjit.c (gcc_jit_block_add_assignment_op): Check that the | |
2109 | lvalue and the rvalue are of compatible type. | |
2110 | ||
86d0ac88 DM |
2111 | 2015-01-13 David Malcolm <dmalcolm@redhat.com> |
2112 | ||
2113 | * docs/cp/topics/contexts.rst (Debugging): Add | |
2114 | gccjit::context::dump_reproducer_to_file. | |
2115 | * docs/internals/index.rst (Design notes): New section, | |
2116 | discussing input validation and | |
2117 | gcc_jit_context_dump_reproducer_to_file. | |
2118 | * docs/topics/contexts.rst (Debugging): Add | |
2119 | gcc_jit_context_dump_reproducer_to_file. | |
2120 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2121 | * jit-common.h (gcc::jit::dump::get_context): New accessor. | |
2122 | * jit-recording.c: Include "hash-map.h". | |
2123 | Within namespace ::gcc::jit... | |
2124 | (dump::write): Flush each line. | |
2125 | (dump::make_location): Pass false for new param "created_by_user". | |
2126 | (class allocator): New class. | |
2127 | (allocator::~allocator): New function. | |
2128 | (allocator::xstrdup_printf): New function. | |
2129 | (allocator::xstrdup_printf_va): New function. | |
2130 | (class reproducer): New subclass of dump. | |
2131 | (reproducer::reproducer): New function. | |
2132 | (reproducer::write_params): New function. | |
2133 | (reproducer::write_args): New function. | |
2134 | (reproducer::make_identifier): New function. | |
2135 | (reproducer::make_tmp_identifier): New function. | |
2136 | (reproducer::get_identifier): New pair of functions. | |
2137 | (reproducer::get_identifier_as_rvalue): New function. | |
2138 | (reproducer::get_identifier_as_lvalue): New function. | |
2139 | (reproducer::get_identifier_as_type): New function. | |
2140 | (reproducer::xstrdup_printf): New function. | |
2141 | (recording::context::context): Initialize m_toplevel_ctxt. | |
2142 | (recording::context::new_location): Add param created_by_user. | |
2143 | (str_option_reproducer_strings): New table of strings. | |
2144 | (int_option_reproducer_strings): Likewise. | |
2145 | (bool_option_reproducer_strings): Likewise. | |
2146 | (get_type_enum_strings): Likewise. | |
2147 | (names_of_function_kinds): Likewise. | |
2148 | (global_kind_reproducer_strings): Likewise. | |
2149 | (unary_op_reproducer_strings): Likewise. | |
2150 | (binary_op_reproducer_strings): Likewise. | |
2151 | (comparison_reproducer_strings): Likewise. | |
2152 | Within namespace ::gcc::jit::recording::... | |
2153 | (context::dump_reproducer_to_file): New function. | |
2154 | (string::write_reproducer): Likewise. | |
2155 | (location::write_reproducer): Likewise. | |
2156 | (type::access_as_type): Likewise. | |
2157 | (memento_of_get_type::write_reproducer): Likewise. | |
2158 | (memento_of_get_pointer::write_reproducer): Likewise. | |
2159 | (memento_of_get_const::write_reproducer): Likewise. | |
2160 | (memento_of_get_volatile::write_reproducer): Likewise. | |
2161 | (array_type::write_reproducer): Likewise. | |
2162 | (function_type::write_reproducer): Likewise. | |
2163 | (function_type::write_deferred_reproducer): Likewise. | |
2164 | (field::write_reproducer): Likewise. | |
2165 | (struct_::access_as_type): Likewise. | |
2166 | (struct_::write_reproducer): Likewise. | |
2167 | (union_::write_reproducer): Likewise. | |
2168 | (fields::write_reproducer): Likewise. | |
2169 | (rvalue::access_as_rvalue): Likewise. | |
2170 | (lvalue::access_as_rvalue): Likewise. | |
2171 | (lvalue::access_as_lvalue): Likewise. | |
2172 | (param::access_as_rvalue): Likewise. | |
2173 | (param::access_as_lvalue): Likewise. | |
2174 | (param::write_reproducer): Likewise. | |
2175 | (function::write_reproducer): Likewise. | |
2176 | (block::write_reproducer): Likewise. | |
2177 | (global::write_reproducer): Likewise. | |
2178 | (memento_of_new_rvalue_from_const <int>::write_reproducer): | |
2179 | Likewise. | |
2180 | (memento_of_new_rvalue_from_const <long>::write_reproducer): | |
2181 | Likewise. | |
2182 | (memento_of_new_rvalue_from_const <double>::write_reproducer): | |
2183 | Likewise. | |
2184 | (memento_of_new_rvalue_from_const <void *>::write_reproducer): | |
2185 | Likewise. | |
2186 | (memento_of_new_string_literal::write_reproducer): Likewise. | |
2187 | (unary_op::write_reproducer): Likewise. | |
2188 | (binary_op::write_reproducer): Likewise. | |
2189 | (comparison::write_reproducer): Likewise. | |
2190 | (cast::write_reproducer): Likewise. | |
2191 | (call::write_reproducer): Likewise. | |
2192 | (call_through_ptr::write_reproducer): Likewise. | |
2193 | (array_access::write_reproducer): Likewise. | |
2194 | (access_field_of_lvalue::write_reproducer): Likewise. | |
2195 | (access_field_rvalue::write_reproducer): Likewise. | |
2196 | (dereference_field_rvalue::write_reproducer): Likewise. | |
2197 | (dereference_rvalue::write_reproducer): Likewise. | |
2198 | (get_address_of_lvalue::write_reproducer): Likewise. | |
2199 | (local::write_reproducer): Likewise. | |
2200 | (eval::write_reproducer): Likewise. | |
2201 | (assignment::write_reproducer): Likewise. | |
2202 | (assignment_op::write_reproducer): Likewise. | |
2203 | (comment::write_reproducer): Likewise. | |
2204 | (conditional::write_reproducer): Likewise. | |
2205 | (jump::write_reproducer): Likewise. | |
2206 | (return_::write_reproducer): Likewise. | |
2207 | * jit-recording.h (gcc::jit::reproducer): New forward declararion. | |
2208 | Within namespace ::gcc::jit::recording::... | |
2209 | (context::new_location): Add "created_by_user" param. | |
2210 | (context::dump_reproducer_to_file): New method. | |
2211 | (context::m_toplevel_ctxt): New field. | |
2212 | (memento::write_reproducer): New pure virtual function. | |
2213 | (memento::dyn_cast_location): New virtual function. | |
2214 | (string::write_reproducer): | |
2215 | (location::location): Add "created_by_user" param. | |
2216 | (location::dyn_cast_location): New function. | |
2217 | (location::created_by_user): New accessor. | |
2218 | (location::write_reproducer): New function. | |
2219 | (location::m_created_by_user): New field. | |
2220 | (type::access_as_type): New virtual function. | |
2221 | (location::write_reproducer): Likewise. | |
2222 | (type::access_as_type): Likewise. | |
2223 | (memento_of_get_type::write_reproducer): Likewise. | |
2224 | (memento_of_get_pointer::write_reproducer): Likewise. | |
2225 | (memento_of_get_const::write_reproducer): Likewise. | |
2226 | (memento_of_get_volatile::write_reproducer): Likewise. | |
2227 | (array_type::write_reproducer): Likewise. | |
2228 | (function_type::write_reproducer): Likewise. | |
2229 | (function_type::write_deferred_reproducer): Likewise. | |
2230 | (field::write_reproducer): Likewise. | |
2231 | (struct_::access_as_type): Likewise. | |
2232 | (struct_::write_reproducer): Likewise. | |
2233 | (union_::write_reproducer): Likewise. | |
2234 | (union_::m_fields): Remove stray unused field. | |
2235 | (fields::length): New accessor. | |
2236 | (fields::get_field): New accessor. | |
2237 | (fields::write_reproducer): New function. | |
2238 | (rvalue::access_as_rvalue): Likewise. | |
2239 | (lvalue::access_as_rvalue): Likewise. | |
2240 | (lvalue::access_as_lvalue): Likewise. | |
2241 | (param::access_as_rvalue): Likewise. | |
2242 | (param::access_as_lvalue): Likewise. | |
2243 | (param::write_reproducer): Likewise. | |
2244 | (function::write_reproducer): Likewise. | |
2245 | (block::write_reproducer): Likewise. | |
2246 | (global::write_reproducer): Likewise. | |
2247 | (memento_of_new_rvalue_from_const <HOST_TYPE>::write_reproducer): | |
2248 | Likewise. | |
2249 | (memento_of_new_string_literal::write_reproducer): Likewise. | |
2250 | (unary_op::write_reproducer): Likewise. | |
2251 | (binary_op::write_reproducer): Likewise. | |
2252 | (comparison::write_reproducer): Likewise. | |
2253 | (cast::write_reproducer): Likewise. | |
2254 | (call::write_reproducer): Likewise. | |
2255 | (call_through_ptr::write_reproducer): Likewise. | |
2256 | (array_access::write_reproducer): Likewise. | |
2257 | (access_field_of_lvalue::write_reproducer): Likewise. | |
2258 | (access_field_rvalue::write_reproducer): Likewise. | |
2259 | (dereference_field_rvalue::write_reproducer): Likewise. | |
2260 | (dereference_rvalue::write_reproducer): Likewise. | |
2261 | (get_address_of_lvalue::write_reproducer): Likewise. | |
2262 | (local::write_reproducer): Likewise. | |
2263 | (eval::write_reproducer): Likewise. | |
2264 | (assignment::write_reproducer): Likewise. | |
2265 | (assignment_op::write_reproducer): Likewise. | |
2266 | (comment::write_reproducer): Likewise. | |
2267 | (conditional::write_reproducer): Likewise. | |
2268 | (jump::write_reproducer): Likewise. | |
2269 | (return_::write_reproducer): Likewise. | |
2270 | * libgccjit++.h (gccjit::context::dump_reproducer_to_file): New. | |
2271 | * libgccjit.c (gcc_jit_context_new_location): Pass "true" as | |
2272 | param "created_by_user". | |
2273 | (gcc_jit_context_dump_reproducer_to_file): New API entrypoint. | |
2274 | * libgccjit.h (gcc_jit_context_dump_reproducer_to_file): New API | |
2275 | entrypoint. | |
2276 | * libgccjit.map (gcc_jit_context_dump_reproducer_to_file): New API | |
2277 | entrypoint. | |
2278 | ||
f6f2b019 DM |
2279 | 2015-01-12 David Malcolm <dmalcolm@redhat.com> |
2280 | ||
2281 | * jit-recording.c (class gcc::jit::rvalue_usage_validator): New. | |
2282 | (gcc::jit::rvalue_usage_validator::rvalue_usage_validator): New | |
2283 | ctor. | |
2284 | (gcc::jit::rvalue_usage_validator::visit): New function. | |
2285 | (gcc::jit::recording::rvalue::verify_valid_within_stmt): New | |
2286 | function. | |
2287 | (gcc::jit::recording::rvalue::set_scope): New function. | |
2288 | (gcc::jit::recording::function::function): Call set_scope on each | |
2289 | param, issuing errors for any params that already have a function. | |
2290 | (gcc::jit::recording::block::add_eval): Return the new statement; | |
2291 | update the comment given that some error-checking now happens after | |
2292 | this returns. | |
2293 | (gcc::jit::recording::block::add_assignment): Likewise. | |
2294 | (gcc::jit::recording::block::add_assignment_op): Likewise. | |
2295 | (gcc::jit::recording::block::add_comment): Likewise. | |
2296 | (gcc::jit::recording::block::end_with_conditional): Likewise. | |
2297 | (gcc::jit::recording::block::end_with_jump): Likewise. | |
2298 | (gcc::jit::recording::block::end_with_return): Likewise. | |
2299 | (gcc::jit::recording::block::validate): Add a comment. | |
2300 | (gcc::jit::recording::unary_op::visit_children): New function. | |
2301 | (gcc::jit::recording::binary_op::visit_children): New function. | |
2302 | (gcc::jit::recording::comparison::visit_children): New function. | |
2303 | (gcc::jit::recording::cast::visit_children): New function. | |
2304 | (gcc::jit::recording::call::visit_children): New function. | |
2305 | (gcc::jit::recording::call_through_ptr::visit_children): New function. | |
2306 | (gcc::jit::recording::array_access::visit_children): New function. | |
2307 | (gcc::jit::recording::access_field_of_lvalue::visit_children): New | |
2308 | function. | |
2309 | (gcc::jit::recording::access_field_rvalue::visit_children): New | |
2310 | function. | |
2311 | (gcc::jit::recording::dereference_field_rvalue::visit_children): | |
2312 | New function. | |
2313 | (gcc::jit::recording::dereference_rvalue::visit_children): New | |
2314 | function. | |
2315 | (gcc::jit::recording::get_address_of_lvalue::visit_children): New | |
2316 | function. | |
2317 | * jit-recording.h: Within namespace gcc::jit::recording... | |
2318 | (class rvalue_visitor): New. | |
2319 | (rvalue::rvalue): Initialize m_scope. | |
2320 | (rvalue::get_loc): New accessor. | |
2321 | (rvalue::verify_valid_within_stmt): New function. | |
2322 | (rvalue::visit_children): New pure virtual function. | |
2323 | (rvalue::set_scope): New function. | |
2324 | (rvalue::get_scope): New function. | |
2325 | (rvalue::dyn_cast_param): New function. | |
2326 | (rvalue::m_scope): New field. | |
2327 | (param::visit_children): New empty function. | |
2328 | (param::dyn_cast_param): New function. | |
2329 | (function::get_loc): New function. | |
2330 | (block::add_eval): Return the new statement. | |
2331 | (block::add_assignment): Likewise. | |
2332 | (block::add_assignment_op): Likewise. | |
2333 | (block::add_comment): Likewise. | |
2334 | (block::end_with_conditional): Likewise. | |
2335 | (block::end_with_jump): Likewise. | |
2336 | (block::end_with_return): Likewise. | |
2337 | (global::visit_children): New function. | |
2338 | (memento_of_new_rvalue_from_const<HOST_TYPE>::visit_children): | |
2339 | New function. | |
2340 | (memento_of_new_string_literal::visit_children): New function. | |
2341 | (unary_op::visit_children): New function. | |
2342 | (binary_op::visit_children): New function. | |
2343 | (comparison::visit_children): New function. | |
2344 | (cast::visit_children): New function. | |
2345 | (call::visit_children): New function. | |
2346 | (call_through_ptr::visit_children): New function. | |
2347 | (array_access::visit_children): New function. | |
2348 | (access_field_of_lvalue::visit_children): New function. | |
2349 | (access_field_rvalue::visit_children): New function. | |
2350 | (dereference_field_rvalue::visit_children): New function. | |
2351 | (dereference_rvalue::visit_children): New function. | |
2352 | (get_address_of_lvalue::visit_children): New function. | |
2353 | (local::local): Call set_scope. | |
2354 | (local::visit_children): New function. | |
2355 | (statement::get_block): Make public. | |
2356 | * libgccjit.c (RETURN_VAL_IF_FAIL_PRINTF5): New macro. | |
2357 | (RETURN_NULL_IF_FAIL_PRINTF5): New macro. | |
2358 | (gcc_jit_context_new_function): Verify that each param has | |
2359 | not yet been used for creating another function. | |
2360 | (gcc_jit_block_add_eval): After creating the stmt, verify | |
2361 | that the rvalue expression tree is valid to use within it. | |
2362 | (gcc_jit_block_add_assignment): Likewise for the lvalue and | |
2363 | rvalue expression trees. | |
2364 | (gcc_jit_block_add_assignment_op): Likewise. | |
2365 | (gcc_jit_block_end_with_conditional): Likewise for the boolval | |
2366 | expression tree. | |
2367 | (gcc_jit_block_end_with_return): Likewise for the rvalue | |
2368 | expression tree. | |
2369 | (gcc_jit_block_end_with_void_return): Remove return of "void", | |
2370 | now that block::end_with_return is now non-void. | |
2371 | ||
1c35cc2c DM |
2372 | 2015-01-12 David Malcolm <dmalcolm@redhat.com> |
2373 | ||
2374 | * jit-playback.c (gcc::jit::playback::context::read_dump_file): | |
2375 | Add missing fclose on error-handling path. | |
2376 | ||
791cfef8 DM |
2377 | 2015-01-12 David Malcolm <dmalcolm@redhat.com> |
2378 | ||
2379 | * docs/cp/topics/expressions.rst (Global variables): Add | |
2380 | enum gcc_jit_global_kind param to gccjit::context::new_global. | |
2381 | * docs/topics/expressions.rst (Global variables): Likewise. | |
2382 | Document the new enum. | |
2383 | * docs/topics/results.rst (Compilation results): Document | |
2384 | globals-handling. | |
2385 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2386 | * dummy-frontend.c (jit_langhook_write_globals): Call into the | |
2387 | playback context's write_global_decls_1 and write_global_decls_2 | |
2388 | before and after calling symtab->finalize_compilation_unit (). | |
2389 | * jit-playback.c: Include "debug.h". | |
2390 | (gcc::jit::playback::context::new_global): Add "kind" param and | |
2391 | use it to set TREE_PUBLIC, TREE_STATIC and DECL_EXTERNAL on the | |
2392 | underlying VAR_DECL. Call varpool_node::get_create on the | |
2393 | VAR_DECL, and add it to m_globals. | |
2394 | (gcc::jit::playback::context::write_global_decls_1): New function. | |
2395 | (gcc::jit::playback::context::write_global_decls_2): New function. | |
2396 | * jit-playback.h (gcc::jit::playback::context::context): Call | |
2397 | create on m_globals. | |
2398 | (gcc::jit::playback::context::new_global): Add "kind" param. | |
2399 | (gcc::jit::playback::context::write_global_decls_1): New function. | |
2400 | (gcc::jit::playback::context::write_global_decls_2): New function. | |
2401 | (gcc::jit::playback::context::m_globals): New field. | |
2402 | * jit-recording.c (gcc::jit::recording::context::context): | |
2403 | Initialize m_globals. | |
2404 | (gcc::jit::recording::context::new_global): Add param "kind". | |
2405 | Add the new global to m_globals. | |
2406 | (gcc::jit::recording::context::dump_to_file): Dump the globals. | |
2407 | (gcc::jit::recording::global::replay_into): Add field m_kind. | |
2408 | (gcc::jit::recording::global::write_to_dump): New override. | |
2409 | * jit-recording.h (gcc::jit::recording::context::new_global): Add | |
2410 | param "kind". | |
2411 | (gcc::jit::recording::context::m_globals): New field. | |
2412 | (gcc::jit::recording::global::global): Add param kind. | |
2413 | (gcc::jit::recording::global::write_to_dump): New override. | |
2414 | (gcc::jit::recording::global::m_kind): New field. | |
2415 | * jit-result.c (gcc::jit::result::get_global): New function. | |
2416 | * jit-result.h (gcc::jit::result::get_global): New function. | |
2417 | * libgccjit++.h (gccjit::context::new_global): Add "kind" param. | |
2418 | * libgccjit.c (gcc_jit_context_new_global): Likewise. | |
2419 | (gcc_jit_result_get_global): New API entrypoint. | |
2420 | * libgccjit.h (gcc_jit_result_get_global): New API entrypoint. | |
2421 | (enum gcc_jit_global_kind): New enum. | |
2422 | (gcc_jit_context_new_global): API change: add "kind" param. | |
2423 | * libgccjit.map (gcc_jit_result_get_global): New symbol. | |
2424 | ||
860e981c DM |
2425 | 2015-01-09 David Malcolm <dmalcolm@redhat.com> |
2426 | ||
2427 | * dummy-frontend.c: Include "fixed-value.h", "alias.h", "flags.h", | |
2428 | "symtab.h", "inchash.h". Move include of "hash-set.h" much | |
2429 | earlier. | |
2430 | * jit-builtins.c: Remove redundant includes of "opts.h" and | |
2431 | "tree.h". | |
2432 | * jit-common.h: Include "hash-set.h", "input.h", "vec.h", | |
2433 | "double-int.h", "alias.h", "flags.h", "symtab.h", "inchash.h". | |
2434 | * jit-playback.c: Include "hashtab.h", "machmode.h", "input.h", | |
2435 | "statistics.h", "vec.h", "double-int.h", "real.h", | |
2436 | "fixed-value.h", "alias.h", "flags.h", "symtab.h", "tree-core.h", | |
2437 | "inchash.h", "fold-const.h". Move include of "hash-set.h" to | |
2438 | earlier. | |
2439 | * jit-recording.c: Remove redundant includes of "opts.h" and | |
2440 | "tree.h". | |
2441 | ||
ccce3b2a DM |
2442 | 2015-01-09 David Malcolm <dmalcolm@redhat.com> |
2443 | ||
2444 | * docs/cp/topics/expressions.rst (Simple expressions): Use | |
2445 | ":c:type:" for C types. Document new overload of | |
2446 | gcc::jit::context::new_rvalue. | |
2447 | * docs/topics/expressions.rst (Simple expressions): Use | |
2448 | ":c:type:" for C types. Document new entrypoint | |
2449 | gcc_jit_context_new_rvalue_from_long. | |
2450 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2451 | * jit-playback.c: Within namespace gcc::jit::playback... | |
2452 | (context::new_rvalue_from_int): Eliminate in favor of... | |
2453 | (context::new_rvalue_from_const <int>): ...this. | |
2454 | (context::new_rvalue_from_double): Eliminate in favor of... | |
2455 | (context::new_rvalue_from_const <double>): ...this. | |
2456 | (context::new_rvalue_from_const <long>): New. | |
2457 | (context::new_rvalue_from_ptr): Eliminate in favor of... | |
2458 | (context::new_rvalue_from_const <void *>): ...this. | |
2459 | * jit-playback.h: Within namespace gcc::jit::playback... | |
2460 | (context::new_rvalue_from_int): Eliminate in favor of... | |
2461 | (context::new_rvalue_from_const <HOST_TYPE>): ...this. | |
2462 | (context::new_rvalue_from_double): Likewise. | |
2463 | (context::new_rvalue_from_ptr): Likewise. | |
2464 | * jit-recording.c: Within namespace gcc::jit::recording... | |
2465 | (context::new_rvalue_from_int): Eliminate. | |
2466 | (context::new_rvalue_from_double): Likewise. | |
2467 | (context::new_rvalue_from_ptr): Likewise. | |
2468 | (class memento_of_new_rvalue_from_const <int>): | |
2469 | Add explicit specialization. | |
2470 | (class memento_of_new_rvalue_from_const <long>): | |
2471 | Likewise. | |
2472 | (class memento_of_new_rvalue_from_const <double>): | |
2473 | Likewise. | |
2474 | (class memento_of_new_rvalue_from_const <void *>): | |
2475 | Likewise. | |
2476 | (memento_of_new_rvalue_from_int::replay_into): | |
2477 | Generalize into... | |
2478 | (memento_of_new_rvalue_from_const <HOST_TYPE>::replay_into): | |
2479 | ...this... | |
2480 | (memento_of_new_rvalue_from_double::replay_into): | |
2481 | ...allowing this... | |
2482 | (memento_of_new_rvalue_from_ptr::replay_into): | |
2483 | ...and this to be deleted. | |
2484 | (memento_of_new_rvalue_from_int::make_debug_string): | |
2485 | Convert to... | |
2486 | (memento_of_new_rvalue_from_const <int>::make_debug_string): | |
2487 | ...this. | |
2488 | (memento_of_new_rvalue_from_double::make_debug_string): | |
2489 | Convert to... | |
2490 | (memento_of_new_rvalue_from_const <double>::make_debug_string): | |
2491 | ...this. | |
2492 | (memento_of_new_rvalue_from_ptr::make_debug_string) | |
2493 | Convert to... | |
2494 | (memento_of_new_rvalue_from_const <void *>::make_debug_string): | |
2495 | ...this. | |
2496 | (memento_of_new_rvalue_from_const <long>::make_debug_string): | |
2497 | New function. | |
2498 | * jit-recording.h: Within namespace gcc::jit::recording... | |
2499 | (context::new_rvalue_from_int): Eliminate. | |
2500 | (context::new_rvalue_from_double): Likewise. | |
2501 | (context::new_rvalue_from_ptr): Likewise, all in favor of... | |
2502 | (context::new_rvalue_from_const <HOST_TYPE>): New family of | |
2503 | methods. | |
2504 | (class memento_of_new_rvalue_from_int): Eliminate. | |
2505 | (class memento_of_new_rvalue_from_double): Likewise. | |
2506 | (class memento_of_new_rvalue_from_ptr): Likewise. | |
2507 | (class memento_of_new_rvalue_from_const <HOST_TYPE>): New family | |
2508 | of rvalue subclasses. | |
2509 | * libgccjit++.h (gccjit::context::new_rvalue): New overload, for | |
2510 | "long". | |
2511 | * libgccjit.c (gcc_jit_context_new_rvalue_from_int): Update for | |
2512 | rewriting of recording::context::new_rvalue_from_int to | |
2513 | recording::context::new_rvalue_from_const <int>. | |
2514 | (gcc_jit_context_new_rvalue_from_long): New API entrypoint. | |
2515 | (gcc_jit_context_new_rvalue_from_double): Update for | |
2516 | rewriting of recording::context::new_rvalue_from_double to | |
2517 | recording::context::new_rvalue_from_const <double>. | |
2518 | (gcc_jit_context_new_rvalue_from_ptr): Update for | |
2519 | rewriting of recording::context::new_rvalue_from_ptr to | |
2520 | recording::context::new_rvalue_from_const <void *>. | |
2521 | * libgccjit.h (gcc_jit_context_new_rvalue_from_long): New API | |
2522 | entrypoint. | |
2523 | * libgccjit.map (gcc_jit_context_new_rvalue_from_long): Likewise. | |
2524 | ||
d2286af3 DM |
2525 | 2015-01-09 David Malcolm <dmalcolm@redhat.com> |
2526 | ||
2527 | PR jit/64206 | |
2528 | * docs/internals/test-hello-world.exe.log.txt: Update, the log now | |
2529 | shows tempdir creation/cleanup. | |
2530 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2531 | * jit-logging.h (class gcc::jit::log_user): Add gcc::jit::tempdir | |
2532 | to the list of subclasses in the comment. | |
2533 | * jit-playback.c (gcc::jit::playback::context::context): Add a | |
2534 | comment clarifying when the tempdir gets cleaned up. | |
2535 | (gcc::jit::playback::context::compile): Pass the context's logger, | |
2536 | if any, to the tempdir. | |
2537 | (gcc::jit::playback::context::dlopen_built_dso): When creating the | |
2538 | gcc::jit::result, if GCC_JIT_BOOL_OPTION_DEBUGINFO is set, hand | |
2539 | over ownership of the tempdir to it. | |
2540 | * jit-result.c: Include "jit-tempdir.h". | |
2541 | (gcc::jit::result::result): Add tempdir param, saving it as | |
2542 | m_tempdir. | |
2543 | (gcc::jit::result::~result): Delete m_tempdir. | |
2544 | * jit-result.h (gcc::jit::result::result): Add tempdir param. | |
2545 | (gcc::jit::result::m_tempdir): New field. | |
2546 | * jit-tempdir.c (gcc::jit::tempdir::tempdir): Add logger param; | |
2547 | add JIT_LOG_SCOPE. | |
2548 | (gcc::jit::tempdir::create): Add JIT_LOG_SCOPE to log entry/exit, | |
2549 | and log m_path_template and m_path_tempdir. | |
2550 | (gcc::jit::tempdir::~tempdir): Add JIT_LOG_SCOPE to log | |
2551 | entry/exit, and log the unlink and rmdir calls. | |
2552 | * jit-tempdir.h: Include "jit-logging.h". | |
2553 | (class gcc::jit::tempdir): Make this be a subclass of log_user. | |
2554 | (gcc::jit::tempdir::tempdir): Add logger param. | |
2555 | * notes.txt: Update to show the two possible places where the | |
2556 | tempdir can be cleaned up. | |
2557 | ||
7c8db13e DM |
2558 | 2015-01-08 David Malcolm <dmalcolm@redhat.com> |
2559 | ||
2560 | * libgccjit.h (struct gcc_jit_context): Rewrite the descriptive | |
2561 | comment. | |
2562 | ||
303e1d56 DM |
2563 | 2015-01-08 David Malcolm <dmalcolm@redhat.com> |
2564 | ||
2565 | * docs/topics/contexts.rst (Error-handling): Document new | |
2566 | entrypoint gcc_jit_context_get_last_error. | |
2567 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2568 | * jit-recording.c (gcc::jit::recording::context::context): | |
2569 | Initialize new fields "m_last_error_str" and | |
2570 | "m_owns_last_error_str". | |
2571 | (gcc::jit::recording::context::~context): Clean up | |
2572 | m_last_error_str, if needed. | |
2573 | (gcc::jit::recording::context::add_error_va): Update | |
2574 | m_last_error_str and m_owns_last_error_str, freeing the old | |
2575 | value if appropriate. | |
2576 | (gcc::jit::recording::context::get_last_error): New function. | |
2577 | * jit-recording.h (gcc::jit::recording::context::get_last_error): | |
2578 | New function. | |
2579 | (gcc::jit::recording::context): New fields m_last_error_str and | |
2580 | m_owns_last_error_str. | |
2581 | * libgccjit.c (gcc_jit_context_get_last_error): New function. | |
2582 | * libgccjit.h (gcc_jit_context_get_last_error): New declaration. | |
2583 | * libgccjit.map (gcc_jit_context_get_last_error): New function. | |
2584 | ||
eb4c16eb DM |
2585 | 2015-01-08 David Malcolm <dmalcolm@redhat.com> |
2586 | ||
2587 | * Make-lang.in (jit_OBJS): Add jit/jit-logging.o. | |
2588 | * docs/internals/index.rst (Overview of code structure): Mention | |
2589 | gcc_jit_context_set_logfile, and embed the example logfile. | |
2590 | * docs/internals/test-hello-world.exe.log.txt: New file: example | |
2591 | of a logfile. | |
2592 | * docs/topics/contexts.rst (Debugging): Add documentation | |
2593 | for gcc_jit_context_set_logfile. | |
2594 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2595 | * dummy-frontend.c: Include "jit-logging.h". | |
2596 | (jit_langhook_init): Assert that there is an active playback | |
2597 | context. If it has a logger, log entry/exit to this function. | |
2598 | (jit_langhook_write_globals): Likewise. | |
2599 | * jit-common.h (gcc::jit::logger): New forward declaration. | |
2600 | * jit-logging.c: New file. | |
2601 | * jit-logging.h: New file. | |
2602 | * jit-playback.c: Include "jit-logging.h". | |
2603 | (gcc::jit::playback::context::context): Initialize the log_user | |
2604 | base class from the recording context's logger (if any). Use | |
2605 | JIT_LOG_SCOPE to log entry/exit from the function body. | |
2606 | (gcc::jit::playback::context::~context): Use JIT_LOG_SCOPE to | |
2607 | log entry/exit from the function body. | |
2608 | (gcc::jit::playback::build_stmt_list): Likewise. | |
2609 | (gcc::jit::playback::function::postprocess): Likewise. | |
2610 | (gcc::jit::playback::context::compile): Likewise. Log the | |
2611 | entry/exit to toplev::main and toplev::finalize. Log the | |
2612 | fake argv passed to toplev::main. | |
2613 | (gcc::jit::playback::context::acquire_mutex): Use JIT_LOG_SCOPE to | |
2614 | log entry/exit from the function body. | |
2615 | (gcc::jit::playback::context::release_mutex): Likewise. | |
2616 | (gcc::jit::playback::context::make_fake_args): Likewise. | |
2617 | (gcc::jit::playback::context::extract_any_requested_dumps): | |
2618 | Likewise. | |
2619 | (gcc::jit::playback::context::convert_to_dso): Likewise. Also, | |
2620 | log the arguments that the driver is invoked with. | |
2621 | (gcc::jit::playback::context::dlopen_built_dso): Likewise. Pass | |
2622 | the logger to the result object. | |
2623 | (gcc::jit::playback::context::replay): Use JIT_LOG_SCOPE to | |
2624 | log entry/exit from the function body. | |
2625 | (gcc::jit::playback::context::dump_generated_code): Likewise. | |
2626 | (gcc::jit::playback::context::handle_locations): Likewise. | |
2627 | * jit-playback.h (gcc::jit::playback::context): Make this be | |
2628 | a subclass of gcc::jit::log_user. | |
2629 | * jit-recording.c: Include "jit-logging.h". | |
2630 | (gcc::jit::recording::context::context: Initialize the logger to | |
2631 | NULL for root contexts, or to the parent's logger for child | |
2632 | contexts. | |
2633 | (gcc::jit::recording::context::~context): Use JIT_LOG_SCOPE to | |
2634 | log entry/exit from the function body. | |
2635 | (gcc::jit::recording::context::replay_into): Likewise. | |
2636 | (gcc::jit::recording::context::disassociate_from_playback): | |
2637 | Likewise. | |
2638 | (gcc::jit::recording::context::compile): Likewise. | |
2639 | (recording::context::add_error_va): Likewise. Also, log the | |
2640 | error. | |
2641 | (gcc::jit::recording::context::validate): Use JIT_LOG_SCOPE to | |
2642 | log entry/exit from the function body. | |
2643 | * jit-recording.h: Include "jit-logging.h". | |
2644 | (gcc::jit::recording::context): Make this be a subclass of | |
2645 | gcc::jit::log_user. | |
2646 | * jit-result.c: Include "jit-common.h" and "jit-logging.h". | |
2647 | (gcc::jit::result::result): Add logger param, recording it. | |
2648 | Use JIT_LOG_SCOPE to log entry/exit from the function body. | |
2649 | (gcc::jit::result::~result(): Use JIT_LOG_SCOPE to | |
2650 | log entry/exit from the function body. | |
2651 | (gcc::jit::result::get_code): Likewise. | |
2652 | * jit-result.h (gcc::jit::result): Make this be a subclass of | |
2653 | gcc::jit::log_user. | |
2654 | (gcc::jit::result::result): Add logger parameter. | |
2655 | * libgccjit++.h (gccjit::context::set_logfile): New function. | |
2656 | * libgccjit.c: Include "jit-logging.h". | |
2657 | (gcc_jit_context_acquire): Log the context. | |
2658 | (gcc_jit_context_release): Use JIT_LOG_FUNC to | |
2659 | log entry/exit from the function body, and log the context. | |
2660 | (gcc_jit_context_new_child_context): Likewise, logging both | |
2661 | contexts. | |
2662 | (gcc_jit_context_new_location): Use JIT_LOG_FUNC to | |
2663 | log entry/exit from the function body. | |
2664 | (gcc_jit_context_get_type): Likewise. | |
2665 | (gcc_jit_context_get_int_type): Likewise. | |
2666 | (gcc_jit_context_new_array_type): Likewise. | |
2667 | (gcc_jit_context_new_field): Likewise. | |
2668 | (gcc_jit_context_new_struct_type): Likewise. | |
2669 | (gcc_jit_context_new_opaque_struct): Likewise. | |
2670 | (gcc_jit_struct_set_fields): Likewise. | |
2671 | (gcc_jit_context_new_union_type): Likewise. | |
2672 | (gcc_jit_context_new_function_ptr_type): Likewise. | |
2673 | (gcc_jit_context_new_param): Likewise. | |
2674 | (gcc_jit_context_new_function): Likewise. | |
2675 | (gcc_jit_context_get_builtin_function): Likewise. | |
2676 | (gcc_jit_function_get_param): Likewise. | |
2677 | (gcc_jit_function_dump_to_dot): Likewise. | |
2678 | (gcc_jit_function_new_block): Likewise. | |
2679 | (gcc_jit_context_new_global): Likewise. | |
2680 | (gcc_jit_context_new_rvalue_from_int): Likewise. | |
2681 | (gcc_jit_context_zero): Likewise. | |
2682 | (gcc_jit_context_one): Likewise. | |
2683 | (gcc_jit_context_new_rvalue_from_double): Likewise. | |
2684 | (gcc_jit_context_new_rvalue_from_ptr): Likewise. | |
2685 | (gcc_jit_context_null): Likewise. | |
2686 | (gcc_jit_context_new_string_literal): Likewise. | |
2687 | (gcc_jit_context_new_unary_op): Likewise. | |
2688 | (gcc_jit_context_new_binary_op): Likewise. | |
2689 | (gcc_jit_context_new_comparison): Likewise. | |
2690 | (gcc_jit_context_new_call): Likewise. | |
2691 | (gcc_jit_context_new_call_through_ptr): Likewise. | |
2692 | (gcc_jit_context_new_cast): Likewise. | |
2693 | (gcc_jit_context_new_array_access): Likewise. | |
2694 | (gcc_jit_lvalue_access_field): Likewise. | |
2695 | (gcc_jit_rvalue_access_field): Likewise. | |
2696 | (gcc_jit_rvalue_dereference_field): Likewise. | |
2697 | (gcc_jit_rvalue_dereference): Likewise. | |
2698 | (gcc_jit_lvalue_get_address): Likewise. | |
2699 | (gcc_jit_function_new_local): Likewise. | |
2700 | (gcc_jit_block_add_eval): Likewise. | |
2701 | (gcc_jit_block_add_assignment): Likewise. | |
2702 | (gcc_jit_block_add_assignment_op): Likewise. | |
2703 | (gcc_jit_block_end_with_conditional): Likewise. | |
2704 | (gcc_jit_block_add_comment): Likewise. | |
2705 | (gcc_jit_block_end_with_jump): Likewise. | |
2706 | (gcc_jit_block_end_with_return): Likewise. | |
2707 | (gcc_jit_block_end_with_void_return): Likewise. | |
2708 | (gcc_jit_context_set_str_option): Likewise. | |
2709 | (gcc_jit_context_set_int_option): Likewise. | |
2710 | (gcc_jit_context_set_bool_option): Likewise. | |
2711 | (gcc_jit_context_enable_dump): Likewise. | |
2712 | (gcc_jit_context_compile): Likewise. Also log the context, | |
2713 | and the result. | |
2714 | (gcc_jit_context_dump_to_file): Likewise. | |
2715 | (gcc_jit_context_set_logfile): New function. | |
2716 | (gcc_jit_context_get_first_error): Use JIT_LOG_FUNC to | |
2717 | log entry/exit from the function body. | |
2718 | (gcc_jit_result_get_code): Likewise. Also log the fnname) | |
2719 | and the ptr to be returned. | |
2720 | (gcc_jit_result_release): Likewise. Also log the result. | |
2721 | * libgccjit.h: Include <stdio.h>, since we need FILE *. | |
2722 | (gcc_jit_context_set_logfile): New declaration. | |
2723 | * libgccjit.map (gcc_jit_context_set_logfile): New. | |
2724 | ||
c211cd23 DM |
2725 | 2015-01-07 David Malcolm <dmalcolm@redhat.com> |
2726 | ||
2727 | * jit-recording.h (gcc::jit::recording::type::is_void): New | |
2728 | virtual function. | |
2729 | (gcc::jit::recording::memento_of_get_type::is_void): New | |
2730 | function, overriding default implementation. | |
2731 | * libgccjit.c (gcc_jit_rvalue_dereference): Verify that | |
2732 | the underlying type is not "void". | |
2733 | ||
18146f45 DM |
2734 | 2015-01-07 David Malcolm <dmalcolm@redhat.com> |
2735 | ||
2736 | * docs/topics/expressions.rst (Unary Operations): Add | |
2737 | GCC_JIT_UNARY_OP_ABS. | |
2738 | * jit-playback.c (gcc::jit::playback::context::new_unary_op): | |
2739 | Likewise. | |
2740 | * jit-recording.c (unary_op_strings): Likewise. | |
2741 | * libgccjit.c (gcc_jit_context_new_unary_op): Update checking | |
2742 | of "op" to reflect addition of GCC_JIT_UNARY_OP_ABS. | |
2743 | * libgccjit.h (enum gcc_jit_unary_op): Add GCC_JIT_UNARY_OP_ABS. | |
2744 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2745 | ||
11af98ff DM |
2746 | 2015-01-07 David Malcolm <dmalcolm@redhat.com> |
2747 | ||
2748 | * jit-recording.h (gcc::jit::recording::memento_of_get_type): Fix | |
2749 | typo in comment. | |
2750 | ||
433d16df DM |
2751 | 2015-01-07 David Malcolm <dmalcolm@redhat.com> |
2752 | ||
2753 | * TODO.rst (Test suite): Remove item about running C++ testcases. | |
2754 | * docs/internals/index.rst (Working on the JIT library): Add | |
2755 | "c++" to the enabled languages in the suggested "configure" | |
2756 | invocation, and add a description of why this is necessary. | |
2757 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2758 | ||
50bb6c8e DM |
2759 | 2015-01-07 David Malcolm <dmalcolm@redhat.com> |
2760 | ||
2761 | * docs/internals/index.rst: Update to reflect that built | |
2762 | testcases are now test-foo.c.exe, rather than test-foo.exe. | |
2763 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2764 | ||
1e3b6a3d JJ |
2765 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
2766 | ||
2767 | Update copyright years. | |
2768 | ||
e8af59bc DM |
2769 | 2014-12-19 David Malcolm <dmalcolm@redhat.com> |
2770 | ||
2771 | * jit-playback.c (gcc::jit::playback::context::build_cast): In | |
2772 | case BOOLEAN_TYPE, don't assume that the source expression is | |
2773 | of type "int". | |
2774 | ||
5afd44e3 DM |
2775 | 2014-12-19 David Malcolm <dmalcolm@redhat.com> |
2776 | ||
2777 | * jit-recording.c (gcc::jit::recording::context::context): When | |
2778 | copying string options from a parent context, take a copy of the | |
2779 | underlying buffers, rather than simply copying the pointer. | |
2780 | ||
1f0858d7 DM |
2781 | 2014-12-19 David Malcolm <dmalcolm@redhat.com> |
2782 | ||
2783 | * jit-recording.c (gcc::jit::recording::context::set_str_option): | |
2784 | Handle NULL. | |
2785 | ||
35291c7d DM |
2786 | 2014-12-11 David Malcolm <dmalcolm@redhat.com> |
2787 | ||
2788 | * docs/cp/topics/contexts.rst (gccjit::context::set_str_option): | |
2789 | Document new function. | |
2790 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2791 | ||
7b31ff5e DM |
2792 | 2014-12-10 Ulrich Drepper <drepper@gmail.com> |
2793 | ||
2794 | Minor interface cleanups of libgccjit | |
2795 | * jit-playback.c (convert_to_dso): Use auto_vec instead | |
2796 | of automatic array to build up command line. | |
2797 | * jit-recording.c (recording::context::set_str_option): | |
2798 | Make copy of the string. | |
2799 | (recording::context::~context): Free string options. | |
2800 | * jit-recording.h (recording::context): Adjust type | |
2801 | of m_str_options member. | |
2802 | * libgccjit.h: Adjust comment about | |
2803 | gcc_jit_context_set_str_option parameter being used after | |
2804 | the call. | |
2805 | Update comment now that all interfaces are copy strings | |
2806 | if necessary. | |
2807 | * libgccjit++.h (gccjit::context): Add set_str_option | |
2808 | member function. | |
2809 | ||
29df5715 DM |
2810 | 2014-12-10 David Malcolm <dmalcolm@redhat.com> |
2811 | ||
2812 | * docs/cp/index.rst: New file. | |
2813 | * docs/cp/intro/index.rst: New file. | |
2814 | * docs/cp/intro/tutorial01.rst: New file. | |
2815 | * docs/cp/intro/tutorial02.rst: New file. | |
2816 | * docs/cp/intro/tutorial03.rst: New file. | |
2817 | * docs/cp/intro/tutorial04.rst: New file. | |
2818 | * docs/cp/topics/contexts.rst: New file. | |
2819 | * docs/cp/topics/expressions.rst: New file. | |
2820 | * docs/cp/topics/functions.rst: New file. | |
2821 | * docs/cp/topics/index.rst: New file. | |
2822 | * docs/cp/topics/locations.rst: New file. | |
2823 | * docs/cp/topics/objects.rst: New file. | |
2824 | * docs/cp/topics/results.rst: New file. | |
2825 | * docs/cp/topics/types.rst: New file. | |
2826 | * docs/examples/tut01-hello-world.cc: New file. | |
2827 | * docs/examples/tut02-square.c: Fix missing newline in output. | |
2828 | * docs/examples/tut02-square.cc: New file. | |
2829 | * docs/examples/tut03-sum-of-squares.cc: New file. | |
2830 | * docs/examples/tut04-toyvm/toyvm.cc: New file. | |
2831 | * docs/index.rst: Move summary to above the table of contents. | |
2832 | Add text about the C vs C++ APIs. | |
2833 | * docs/topics/contexts.rst: Fix a typo. | |
2834 | ||
2835 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2836 | * docs/_build/texinfo/factorial1.png: New file. | |
2837 | * docs/_build/texinfo/sum-of-squares1.png: New file. | |
2838 | ||
5cd614ce DM |
2839 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2840 | ||
2841 | * docs/examples/tut04-toyvm/toyvm.c (toyvm_function_compile): Move | |
2842 | logic for determine "funcname" to new function... | |
2843 | (get_function_name): ...here, adding logic to skip any leading | |
2844 | path from the filename. | |
2845 | (toyvm_function_parse): Use the filename for fn_filename, rather | |
2846 | than "name", so that the debugger can locate the source .toy | |
2847 | file. | |
2848 | (toyvm_function_parse): Don't fclose a NULL FILE *. | |
2849 | ||
2712de78 DM |
2850 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2851 | ||
2852 | PR jit/63854 | |
2853 | * docs/internals/index.rst (Running under valgrind): New | |
2854 | subsection. | |
2855 | (docs/_build/texinfo/libgccjit.texi): Regenerate. | |
2856 | ||
d1e5f2c7 DM |
2857 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2858 | ||
92a285c1 | 2859 | PR jit/64206 |
d1e5f2c7 DM |
2860 | * Make-lang.in (jit_OBJS): Add jit/jit-tempdir.o. |
2861 | * jit-common.h (gcc::jit::tempdir): New forward decl. | |
2862 | * jit-playback.c: Include jit-tempdir.h. | |
2863 | (gcc::jit::playback::context::context): Initialize m_tempdir. | |
2864 | (gcc::jit::playback::context::~context): Move tempdir | |
2865 | cleanup to new file jit-tempdir.c | |
2866 | (make_tempdir_path_template): Move to new file jit-tempdir.c. | |
2867 | (gcc::jit::playback::context::compile): Move tempdir creation | |
2868 | to new tempdir object in new file jit-tempdir.c. | |
2869 | (gcc::jit::playback::context::make_fake_args): Get path from | |
2870 | tempdir object rather than from member data. | |
2871 | (gcc::jit::playback::context::convert_to_dso): Likewise. | |
2872 | (gcc::jit::playback::context::dlopen_built_dso): Likewise. | |
2873 | (gcc::jit::playback::context::dump_generated_code): Likewise. | |
2874 | (gcc::jit::playback::context::get_path_c_file): New function. | |
2875 | (gcc::jit::playback::context::get_path_s_file): New function. | |
2876 | (gcc::jit::playback::context::get_path_so_file): New function. | |
2877 | * jit-playback.h (gcc::jit::playback::context::get_path_c_file): | |
2878 | New function. | |
2879 | (gcc::jit::playback::context::get_path_s_file): New function. | |
2880 | (gcc::jit::playback::context::get_path_so_file): New function. | |
2881 | (gcc::jit::playback::context): Move fields "m_path_template", | |
2882 | "m_path_tempdir", "m_path_c_file", "m_path_s_file", | |
2883 | "m_path_so_file" to new jit::tempdir class; add field "m_tempdir". | |
2884 | * jit-tempdir.c: New file. | |
2885 | * jit-tempdir.h: New file. | |
2886 | ||
38771e4e DM |
2887 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2888 | ||
2889 | * jit-playback.c (gcc::jit::playback::context::compile): Acquire the | |
2890 | mutex here, immediately before using toplev, and release it here, on | |
2891 | each exit path after acquisition. | |
2892 | (jit_mutex): Move this variable here, from jit-recording.c. | |
2893 | (gcc::jit::playback::context::acquire_mutex): New function, based on | |
2894 | code in jit-recording.c. | |
2895 | (gcc::jit::playback::context::release_mutex): Likewise. | |
2896 | * jit-playback.h (gcc::jit::playback::context::acquire_mutex): New | |
2897 | function. | |
2898 | (gcc::jit::playback::context::release_mutex): New function. | |
2899 | * jit-recording.c (jit_mutex): Move this variable to jit-playback.c. | |
2900 | (gcc::jit::recording::context::compile): Move mutex-handling from | |
2901 | here into jit-playback.c's gcc::jit::playback::context::compile. | |
2902 | * notes.txt: Update to show the new locations of ACQUIRE_MUTEX | |
2903 | and RELEASE_MUTEX. | |
2904 | ||
38f4f641 DM |
2905 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2906 | ||
2907 | * jit-playback.c (gcc::jit::playback::context::compile): Move the | |
2908 | dlopen code into... | |
2909 | (gcc::jit::playback::context::dlopen_built_dso): ...this new | |
2910 | function. | |
2911 | * jit-playback.h (gcc::jit::playback::context::dlopen_built_dso): | |
2912 | New function. | |
2913 | ||
82e0c914 DM |
2914 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2915 | ||
2916 | PR jit/64166 | |
2917 | * docs/topics/contexts.rst (Debugging): Add description of | |
2918 | gcc_jit_context_enable_dump. | |
2919 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2920 | * jit-playback.c: Include context.h. | |
2921 | (class auto_argvec): New class. | |
2922 | (auto_argvec::~auto_argvec): New function. | |
2923 | (gcc::jit::playback::context::compile): Convert fake_args to be | |
2924 | an auto_argvec, so that it can contain dynamically-allocated | |
2925 | strings. Construct a vec of all requested dumps, and pass it to | |
2926 | make_fake_args. Extract requested dumps between the calls to | |
2927 | toplev::main and toplev::finalize. | |
2928 | (gcc::jit::playback::context::make_fake_args): Convert param | |
2929 | "argvec" to be a vec <char *>, and gain a "requested_dumps" | |
2930 | param. Convert to dynamically-allocated arg strings by converting | |
2931 | ADD_ARG to take a copy of the arg, and add ADD_ARG_TAKE_OWNERSHIP | |
2932 | for args that are already a copy. Add args for all requested dumps. | |
2933 | (gcc::jit::playback::context::extract_any_requested_dumps): New | |
2934 | function. | |
2935 | (gcc::jit::playback::context::read_dump_file): New function. | |
2936 | * jit-playback.h (gcc::jit::playback::context::make_fake_args): | |
2937 | Convert param "argvec" to be a vec <char *>, and gain a | |
2938 | "requested_dumps" param. | |
2939 | (gcc::jit::playback::context::extract_any_requested_dumps): New | |
2940 | function. | |
2941 | (gcc::jit::playback::context::read_dump_file): New function. | |
2942 | * jit-recording.c (gcc::jit::recording::context::enable_dump): New | |
2943 | function. | |
2944 | (gcc::jit::recording::context::get_all_requested_dumps): New | |
2945 | function. | |
2946 | * jit-recording.h (gcc::jit::recording::requested_dump): New | |
2947 | struct. | |
2948 | (gcc::jit::recording::context::enable_dump): New function. | |
2949 | (gcc::jit::recording::context::get_all_requested_dumps): New | |
2950 | function. | |
2951 | (gcc::jit::recording::context::m_requested_dumps): New field. | |
2952 | * libgccjit.c (gcc_jit_context_enable_dump): New API entrypoint. | |
2953 | * libgccjit.h (gcc_jit_context_enable_dump): New API entrypoint. | |
2954 | * libgccjit.map (gcc_jit_context_enable_dump): New API entrypoint. | |
2955 | ||
53b730ff DM |
2956 | 2014-12-08 David Malcolm <dmalcolm@redhat.com> |
2957 | ||
2958 | * libgccjit++.h: Indent the forward declarations of the classes to | |
2959 | show the inheritance hierarchy. | |
2960 | ||
0f379445 DM |
2961 | 2014-12-08 David Malcolm <dmalcolm@redhat.com> |
2962 | ||
2963 | * notes.txt: Show the beginning and ending of | |
2964 | recording::context::compile vs playback::context::compile. Show | |
2965 | the creation and unlinking of the tempdir. Show toplev::finalize. | |
2966 | Move "RELEASE MUTEX" to the correct location. Show | |
2967 | gcc_jit_result_release, and indicate where the | |
2968 | dlopen/dlsym/dlclose occur. | |
2969 | ||
81ba15f1 DM |
2970 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2971 | ||
2972 | * docs/examples/tut02-square.c (main): Release the context | |
2973 | earlier, to show that this is possible. Update error-handling | |
2974 | to avoid a double-release of the context, and to avoid | |
2975 | releasing a NULL result. | |
2976 | * docs/intro/tutorial02.rst: Discuss gcc_jit_context_release. | |
2977 | * docs/topics/functions.rst (GCC_JIT_FUNCTION_EXPORTED): Emphasize | |
2978 | * docs/topics/results.rst (gcc_jit_result): Mention that this | |
2979 | controls the lifetimes of machine code functions. | |
2980 | (gcc_jit_result_get_code): Spell out the requirements for this | |
2981 | to succeed, and the lifetime of the result. | |
2982 | (gcc_jit_result_release): Mention that this invalidates any code | |
2983 | that was obtained from the result. | |
2984 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2985 | ||
e250f0dc DM |
2986 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2987 | ||
2988 | PR jit/64018 | |
2989 | * docs/intro/tutorial02.rst: Spell out lifetime of generated code. | |
2990 | Add description of error-handling, taken in part from... | |
2991 | * docs/topics/contexts.rst (Error-handling): Expand, and move some | |
2992 | content to tutorial02.rst. | |
2993 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2994 | ||
eeafb319 DM |
2995 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2996 | ||
2997 | PR jit/64020 | |
2998 | * docs/topics/types.rst (Standard types) Add new enum values to | |
2999 | the table of enum gcc_jit_types: GCC_JIT_TYPE_COMPLEX_FLOAT, | |
3000 | GCC_JIT_TYPE_COMPLEX_DOUBLE, GCC_JIT_TYPE_COMPLEX_LONG_DOUBLE. | |
3001 | Widen the left-hand column so that | |
3002 | GCC_JIT_TYPE_COMPLEX_LONG_DOUBLE will fit. | |
3003 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
3004 | ||
3005 | * jit-builtins.c: Include stringpool.h and jit-playback.h. | |
3006 | Move everything out of the gcc::jit::recording namespace into | |
3007 | just gcc::jit. | |
3008 | (struct builtin_data): Add fields "fnclass", "attr", and | |
3009 | "implicit_p". | |
3010 | (DEF_BUILTIN): Update macro so populate the new fields. | |
3011 | (builtins_manager::builtins_manager): Update for move out of | |
3012 | recording namespace. Initialize the m_attributes array. | |
3013 | (builtins_manager::get_builtin_function): Likewise. | |
3014 | (builtins_manager::get_builtin_function_by_id): New function. | |
3015 | (builtins_manager::make_builtin_function): Update for move out of | |
3016 | recording namespace. Add fix for PR jit/64020 by detecting | |
3017 | specific builtin ids and having them ensure that builtins for | |
3018 | other ids are created as necessary. | |
3019 | (builtins_manager::get_type): Update for move out of recording | |
3020 | namespace. | |
3021 | (builtins_manager::make_type): Likewise. Add some missing | |
3022 | #undefs. | |
3023 | (builtins_manager::make_primitive_type): Update for move out of | |
3024 | recording namespace. Implement the three BT_COMPLEX_ cases and | |
3025 | BT_DOUBLE_PTR. | |
3026 | (builtins_manager::make_fn_type): Update for move out of recording | |
3027 | namespace. | |
3028 | (builtins_manager::make_ptr_type): Likewise. | |
3029 | (builtins_manager::finish_playback): New function. | |
3030 | (builtins_manager::get_class): New function. | |
3031 | (builtins_manager::implicit_p): New function. | |
3032 | (builtins_manager::get_attrs_tree): Two new functions. | |
3033 | (builtins_manager::make_attrs_tree): New function. | |
3034 | ||
3035 | * jit-builtins.h: Move everything out of the gcc::jit::recording | |
3036 | namespace into just gcc::jit. | |
3037 | (enum built_in_attribute): New. | |
3038 | (builtins_manager::builtins_manager): Update decl for namespace | |
3039 | change. | |
3040 | (builtins_manager::get_builtin_function): Likewise. | |
3041 | (builtins_manager::get_class): New. | |
3042 | (builtins_manager::implicit_p): New. | |
3043 | (builtins_manager::get_attrs_tree): Two new functions. | |
3044 | (builtins_manager::make_attrs_tree): New function. | |
3045 | (builtins_manager::finish_playback): New. | |
3046 | (builtins_manager::get_builtin_function_by_id): New. | |
3047 | (builtins_manager::make_builtin_function): Update decl for | |
3048 | namespace change. | |
3049 | (builtins_manager::get_type): Likewise. | |
3050 | (builtins_manager::make_type): Likewise. | |
3051 | (builtins_manager::make_primitive_type): Likewise. | |
3052 | (builtins_manager::make_fn_type): Likewise. | |
3053 | (builtins_manager::make_ptr_type): Likewise. | |
3054 | (builtins_manager): Likewise for fields. Add new field | |
3055 | "m_attributes". | |
3056 | ||
3057 | * jit-common.h (NUM_GCC_JIT_TYPES): Update. | |
3058 | (builtins_manager): Update forward decl to reflect namespace | |
3059 | change. | |
3060 | ||
3061 | * jit-playback.c: Include attribs.h and jit-builtins.h. | |
3062 | (gcc::jit::playback::context::get_tree_node_for_type): Add cases | |
3063 | for the new COMPLEX_ types. | |
3064 | (gcc::jit::playback::context::new_function): If creating a | |
3065 | builtin, set the DECL_BUILT_IN_CLASS and attributes on the fndecl, | |
3066 | and call set_builtin_decl. | |
3067 | (gcc::jit::playback::context::replay): If we have a | |
3068 | builtins_manager, call its finish_playback method when we're done. | |
3069 | ||
3070 | * jit-playback.h: | |
3071 | (gcc::jit::playback::context::get_builtins_manager): New function. | |
3072 | ||
3073 | * jit-recording.c | |
3074 | (gcc::jit::recording::context::get_builtins_manager): New function. | |
3075 | (gcc::jit::recording::get_builtin_function): Use | |
3076 | get_builtins_manager, in case we're a child context. | |
3077 | (gcc::jit::recording::memento_of_get_type::dereference): Add the | |
3078 | COMPLEX_ types. | |
3079 | (gcc::jit::recording::memento_of_get_type::is_int): Likewise. | |
3080 | (gcc::jit::recording::memento_of_get_type::is_float): Likewise. | |
3081 | (gcc::jit::recording::memento_of_get_type::is_bool): Likewise. | |
3082 | (get_type_strings): Likewise. | |
3083 | ||
3084 | * jit-recording.h | |
3085 | (gcc::jit::recording::context::get_builtins_manager): New. | |
3086 | ||
3087 | * libgccjit.h (enum gcc_jit_types): Add | |
3088 | GCC_JIT_TYPE_COMPLEX_FLOAT, GCC_JIT_TYPE_COMPLEX_DOUBLE, | |
3089 | GCC_JIT_TYPE_COMPLEX_LONG_DOUBLE. | |
3090 | ||
23844fd7 DM |
3091 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
3092 | ||
3093 | * jit-builtins.c | |
3094 | (gcc::jit::recording::builtins_manager::get_builtin_function): | |
3095 | Check for NULL return from make_builtin_function. | |
3096 | (gcc::jit::recording::builtins_manager::make_builtin_function): | |
3097 | Check for NULL return from get_type. | |
3098 | ||
c6760a13 DM |
3099 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
3100 | ||
3101 | * jit-playback.c (gcc::jit::playback::context::compile): Move DSO | |
3102 | creation code into... | |
3103 | (gcc::jit::playback::context::convert_to_dso): New function. | |
3104 | * jit-playback.h (gcc::jit::playback::context::convert_to_dso): | |
3105 | New function. | |
3106 | ||
8f50ee3c DM |
3107 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
3108 | ||
3109 | * jit-playback.c (gcc::jit::playback::context::compile): Use an | |
3110 | auto_vec<const char *> rather than a const char *[20] for the | |
3111 | top-level argv, and move the logic to build it to... | |
3112 | (gcc::jit::playback::context::make_fake_args): New function. | |
3113 | * jit-playback.h (gcc::jit::playback::context::make_fake_args): | |
3114 | New function. | |
3115 | ||
56dea35f DM |
3116 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
3117 | ||
3118 | * Make-lang.in (jit_OBJS): Add jit/jit-result.o. | |
3119 | * jit-playback.c: Include new header jit-result.h. | |
3120 | (gcc::jit::result::result): Move to new file jit-result.c. | |
3121 | (gcc::jit::result::~result): Likewise. | |
3122 | (gcc::jit::playback::result): Likewise. | |
3123 | * jit-recording.h (class gcc::jit::result): Move to new | |
3124 | header jit-result.h. | |
3125 | * jit-result.c: New file, to contain... | |
3126 | (gcc::jit::result::result): Move here from jit-playback.c, | |
3127 | removing erroneous "playback" namespace from comment. | |
3128 | (gcc::jit::result::~result): Likewise. | |
3129 | (gcc::jit::playback::result): Likewise. | |
3130 | * jit-result.h: New file, to contain... | |
3131 | (class gcc::jit::result): Move from jit-recording.h. | |
3132 | * libgccjit.c: Include jit-result.h. | |
3133 | (gcc_jit_result_get_code): Update comment to reflect move | |
3134 | of implementation. | |
3135 | (gcc_jit_result_release): Likewise. | |
3136 | ||
52b9468f DM |
3137 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
3138 | ||
3139 | PR jit/63854 | |
3140 | * docs/examples/tut04-toyvm/toyvm.c | |
3141 | (toyvm_compiled_function): New typedef. | |
3142 | (toyvm_compiled_func) Rename to... | |
3143 | (toyvm_compiled_code) ...this. | |
3144 | (struct toyvm_compiled_function): New struct. | |
3145 | (toyvm_function_compile): Return a toyvm_compiled_function * | |
3146 | rather than a toyvm_compiled_func, so that the caller can fully | |
3147 | clean things up. Free "funcname". | |
3148 | (test_script): Update for change to toyvm_function_compile. | |
3149 | Clean up the toyvm_compiled_function. | |
3150 | (main): Likewise. | |
3151 | (docs/intro/tutorial04.rst): Update to reflect the above changes, | |
3152 | and to better spell out the lifetime of the compiled code. | |
3153 | ||
c8d19a69 DM |
3154 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
3155 | ||
3156 | PR jit/63854 | |
3157 | * jit-builtins.c | |
3158 | (gcc::jit::recording::builtins_manager::make_fn_type): Call the | |
3159 | context's new_function_type method, rather than directly creating | |
3160 | a function_type instance. | |
3161 | * jit-recording.c | |
3162 | (gcc::jit::recording::context::new_function_type): New method, | |
3163 | adapted from part of... | |
3164 | (gcc::jit::recording::context::new_function_ptr_type): ...this. | |
3165 | Update to call new_function_type. | |
3166 | * jit-recording.h | |
3167 | (gcc::jit::recording::context::new_function_type): New method. | |
3168 | ||
c985705a DM |
3169 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
3170 | ||
3171 | PR jit/63969 | |
3172 | * jit-playback.c: Ensure that ctxt_progname is non-NULL. | |
3173 | ||
b957b2e0 DM |
3174 | 2014-11-19 David Malcolm <dmalcolm@redhat.com> |
3175 | ||
3176 | PR jit/63854 | |
3177 | * jit-playback.c (gcc::jit::playback::compound_type::set_fields): | |
3178 | Convert param from const vec<playback::field *> & to | |
3179 | const auto_vec<playback::field *> *. | |
3180 | (gcc::jit::playback::context::new_function_type): Convert param | |
3181 | "param_types" from vec<type *> * to const auto_vec<type *> *. | |
3182 | (gcc::jit::playback::context::new_function): Convert param | |
3183 | "params" from vec<param *> * to const auto_vec<param *> *. | |
3184 | (gcc::jit::playback::context::build_call): Convert param "args" | |
3185 | from vec<rvalue *> to const auto_vec<rvalue *> *. | |
3186 | (gcc::jit::playback::context::new_call): Likewise. | |
3187 | (gcc::jit::playback::context::new_call_through_ptr): Likewise. | |
3188 | (wrapper_finalizer): New function. | |
3189 | (gcc::jit::playback::wrapper::operator new): Call the finalizer | |
3190 | variant of ggc_internal_cleared_alloc, supplying | |
3191 | wrapper_finalizer. | |
3192 | (gcc::jit::playback::function::finalizer): New. | |
3193 | (gcc::jit::playback::block::finalizer): New. | |
3194 | (gcc::jit::playback::source_file::finalizer): New. | |
3195 | (gcc::jit::playback::source_line::finalizer): New. | |
3196 | ||
3197 | * jit-playback.h | |
3198 | (gcc::jit::playback::context::new_function_type): Convert param | |
3199 | "param_types" from vec<type *> * to const auto_vec<type *> *. | |
3200 | (gcc::jit::playback::context::new_function): Convert param | |
3201 | "params" from vec<param *> * to const auto_vec<param *> *. | |
3202 | (gcc::jit::playback::context::new_call): Convert param | |
3203 | "args" from vec<rvalue *> to const auto_vec<rvalue *> *. | |
3204 | (gcc::jit::playback::context::new_call_through_ptr): Likewise. | |
3205 | (gcc::jit::playback::context::build_call): Likewise. | |
3206 | (gcc::jit::playback::context): Convert fields "m_functions", | |
3207 | "m_source_files", "m_cached_locations" from vec to auto_vec. | |
3208 | (gcc::jit::playback::wrapper::finalizer): New virtual function. | |
3209 | (gcc::jit::playback::compound_type::set_fields): Convert param fro | |
3210 | const vec<playback::field *> & to | |
3211 | const auto_vec<playback::field *> *. | |
3212 | (gcc::jit::playback::function::finalizer): New. | |
3213 | (gcc::jit::playback::block::finalizer): New. | |
3214 | (gcc::jit::playback::source_file::finalizer): New. | |
3215 | (gcc::jit::playback::source_line::finalizer): New. | |
3216 | ||
3217 | * jit-recording.c | |
3218 | (gcc::jit::recording::function_type::replay_into): Convert local | |
3219 | from a vec into an auto_vec. | |
3220 | (gcc::jit::recording::fields::replay_into): Likewise. | |
3221 | (gcc::jit::recording::function::replay_into): Likewise. | |
3222 | (gcc::jit::recording::call::replay_into): Likewise. | |
3223 | (gcc::jit::recording::call_through_ptr::replay_into): Likewise. | |
3224 | ||
3225 | * jit-recording.h (gcc::jit::recording::context): Convert fields | |
3226 | "m_mementos", "m_compound_types", "m_functions" from vec<> to | |
3227 | auto_vec <>. | |
3228 | (gcc::jit::recording::function_type::get_param_types): Convert | |
3229 | return type from vec<type *> to const vec<type *> &. | |
3230 | (gcc::jit::recording::function_type): Convert field | |
3231 | "m_param_types" from a vec<> to an auto_vec<>. | |
3232 | (gcc::jit::recording::fields): Likewise for field "m_fields". | |
3233 | (gcc::jit::recording::function::get_params): Convert return type | |
3234 | from vec <param *> to const vec<param *> &. | |
3235 | (gcc::jit::recording::function): Convert fields "m_params", | |
3236 | "m_locals", "m_blocks" from vec<> to auto_vec<>. | |
3237 | (gcc::jit::recording::block): Likewise for field "m_statements". | |
3238 | vec<> to auto_vec<>. | |
3239 | (gcc::jit::recording::call): Likewise for field "m_args". | |
3240 | (gcc::jit::recording::call_through_ptr): Likewise. | |
3241 | ||
79cafc7a DM |
3242 | 2014-11-19 David Malcolm <dmalcolm@redhat.com> |
3243 | ||
3244 | PR jit/63854 | |
3245 | * jit-recording.c (recording::function::validate): Convert | |
3246 | "worklist" from vec<> to autovec<> to fix a leak. | |
3247 | ||
35485da9 DM |
3248 | 2014-11-11 David Malcolm <dmalcolm@redhat.com> |
3249 | ||
3250 | * ChangeLog.jit: New. | |
3251 | * ChangeLog: New. | |
3252 | * Make-lang.in: New. | |
3253 | * TODO.rst: New. | |
3254 | * config-lang.in: New. | |
3255 | * docs/Makefile: New. | |
3256 | * docs/_build/texinfo/Makefile: New. | |
3257 | * docs/_build/texinfo/factorial.png: New. | |
3258 | * docs/_build/texinfo/libgccjit.texi: New. | |
3259 | * docs/_build/texinfo/sum-of-squares.png: New. | |
3260 | * docs/conf.py: New. | |
3261 | * docs/examples/tut01-hello-world.c: New. | |
3262 | * docs/examples/tut02-square.c: New. | |
3263 | * docs/examples/tut03-sum-of-squares.c: New. | |
3264 | * docs/examples/tut04-toyvm/Makefile: New. | |
3265 | * docs/examples/tut04-toyvm/factorial.toy: New. | |
3266 | * docs/examples/tut04-toyvm/fibonacci.toy: New. | |
3267 | * docs/examples/tut04-toyvm/toyvm.c: New. | |
3268 | * docs/index.rst: New. | |
3269 | * docs/internals/index.rst: New. | |
3270 | * docs/intro/factorial.png: New. | |
3271 | * docs/intro/index.rst: New. | |
3272 | * docs/intro/sum-of-squares.png: New. | |
3273 | * docs/intro/tutorial01.rst: New. | |
3274 | * docs/intro/tutorial02.rst: New. | |
3275 | * docs/intro/tutorial03.rst: New. | |
3276 | * docs/intro/tutorial04.rst: New. | |
3277 | * docs/topics/contexts.rst: New. | |
3278 | * docs/topics/expressions.rst: New. | |
3279 | * docs/topics/functions.rst: New. | |
3280 | * docs/topics/index.rst: New. | |
3281 | * docs/topics/locations.rst: New. | |
3282 | * docs/topics/objects.rst: New. | |
3283 | * docs/topics/results.rst: New. | |
3284 | * docs/topics/types.rst: New. | |
3285 | * dummy-frontend.c: New. | |
3286 | * jit-builtins.c: New. | |
3287 | * jit-builtins.h: New. | |
3288 | * jit-common.h: New. | |
3289 | * jit-playback.c: New. | |
3290 | * jit-playback.h: New. | |
3291 | * jit-recording.c: New. | |
3292 | * jit-recording.h: New. | |
3293 | * libgccjit++.h: New. | |
3294 | * libgccjit.c: New. | |
3295 | * libgccjit.h: New. | |
3296 | * libgccjit.map: New. | |
3297 | * notes.txt: New. | |
3298 | ||
3299 | 2013-07-26 David Malcolm <dmalcolm@redhat.com> | |
3300 | ||
3301 | * Initial creation | |
818ab71a | 3302 | \f |
c48514be | 3303 | Copyright (C) 2013-2021 Free Software Foundation, Inc. |
35485da9 DM |
3304 | |
3305 | Copying and distribution of this file, with or without modification, | |
3306 | are permitted in any medium without royalty provided the copyright | |
3307 | notice and this notice are preserved. |