]>
Commit | Line | Data |
---|---|---|
85ec4feb JJ |
1 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | Update copyright years. | |
4 | ||
01512446 JJ |
5 | 2017-12-19 Jakub Jelinek <jakub@redhat.com> |
6 | ||
7 | * jit-playback.c (get_type, playback::compile_to_file::copy_file, | |
8 | playback::context::acquire_mutex): Replace Yoda conditions with | |
9 | typical order conditions. | |
10 | * libgccjit.c (gcc_jit_context_new_struct_type, | |
11 | gcc_jit_struct_set_fields, gcc_jit_context_new_union_type, | |
12 | gcc_jit_context_new_function, gcc_jit_timer_pop): Likewise. | |
13 | * jit-builtins.c (matches_builtin): Likewise. | |
14 | * jit-recording.c (recording::compound_type::set_fields, | |
15 | recording::fields::write_reproducer, recording::rvalue::set_scope, | |
16 | recording::function::validate): Likewise. | |
17 | * jit-logging.c (logger::decref): Likewise. | |
18 | ||
5de73c05 JJ |
19 | 2017-11-30 Jakub Jelinek <jakub@redhat.com> |
20 | ||
21 | * jit-recording.c | |
22 | (recording::memento_of_new_rvalue_from_const <long>::write_reproducer): | |
23 | Use ; instead of ;;. | |
24 | ||
9e851845 JJ |
25 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
26 | ||
27 | * jit-playback.c (add_switch): Build SWITCH_EXPR using build2 instead | |
28 | of build3. Formatting fixes. Adjust funciton comment. | |
29 | ||
120e92fc TV |
30 | 2017-11-23 Tom de Vries <tom@codesourcery.com> |
31 | ||
32 | * libgccjit.c (RETURN_NULL_IF_FAIL_NONNULL_NUMERIC_TYPE): Wrap in | |
33 | JIT_{BEGIN,END}_STMT. | |
34 | ||
77f4ead7 DM |
35 | 2017-10-31 David Malcolm <dmalcolm@redhat.com> |
36 | ||
37 | * docs/internals/index.rst (Running the test suite): Document | |
38 | PRESERVE_EXECUTABLES. | |
39 | (Running under valgrind): Add markup to RUN_UNDER_VALGRIND. | |
40 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
41 | ||
6069fe72 DM |
42 | 2017-10-04 David Malcolm <dmalcolm@redhat.com> |
43 | ||
44 | * docs/cp/topics/expressions.rst (Vector expressions): New | |
45 | section. | |
46 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_10): New ABI tag. | |
47 | * docs/topics/expressions.rst (Vector expressions): New section. | |
48 | * docs/topics/types.rst (gcc_jit_type_get_vector): Add link to | |
49 | gcc_jit_context_new_rvalue_from_vector. | |
50 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
51 | * jit-common.h (gcc::jit:recording::vector_type): New forward | |
52 | decl. | |
53 | * jit-playback.c | |
54 | (gcc::jit::playback::context::new_rvalue_from_vector): New method. | |
55 | * jit-playback.h | |
56 | (gcc::jit::playback::context::new_rvalue_from_vector): New method. | |
57 | * jit-recording.c: In namespace gcc::jit:: | |
58 | (class comma_separated_string): New class. | |
59 | (comma_separated_string::comma_separated_string): New ctor, | |
60 | adapted from recording::call::make_debug_string. | |
61 | (comma_separated_string::~comma_separated_string): New dtor. | |
62 | In namespace gcc::jit::recording:: | |
63 | (context::new_rvalue_from_vector): New method. | |
64 | (type::get_vector): Update for renaming of memento_of_get_vector. | |
65 | (class memento_of_get_vector): Rename to... | |
66 | (class vector_type): ..this. | |
67 | (memento_of_new_rvalue_from_vector::memento_of_new_rvalue_from_vector): | |
68 | New ctor. | |
69 | (memento_of_new_rvalue_from_vector::replay_into): New method. | |
70 | (memento_of_new_rvalue_from_vector::visit_children): New method. | |
71 | (memento_of_new_rvalue_from_vector::make_debug_string): New | |
72 | method. | |
73 | (memento_of_new_rvalue_from_vector::write_reproducer): New method. | |
74 | (call::make_debug_string): Split out arg-printing code into ctor | |
75 | for comma_separated_string. | |
76 | * jit-recording.h: In namespace gcc::jit::recording:: | |
77 | (context::new_rvalue_from_vector): New method. | |
78 | (type::dyn_cast_vector_type): New virtual function. | |
79 | (class memento_of_get_vector): Rename to... | |
80 | (class vector_type): ...this. | |
81 | (vector_type::unqualified): Remove this vfunc override in favor | |
82 | of... | |
83 | (vector_type::get_element_type): ...this new method. | |
84 | (vector_type::get_num_units): New method. | |
85 | (vector_type::dyn_cast_vector_type): New vfunc override. | |
86 | (class memento_of_new_rvalue_from_vector): New class. | |
87 | * libgccjit++.h (gccjit::context::new_rvalue): Add overload for | |
88 | vector of rvalue. | |
89 | * libgccjit.c (gcc_jit_context_new_binary_op): Strip off type | |
90 | qualifications when checking that both operands have same type. | |
91 | (gcc_jit_context_new_rvalue_from_vector): New API entrypoint. | |
92 | * libgccjit.h | |
93 | (LIBGCCJIT_HAVE_gcc_jit_context_new_rvalue_from_vector): New | |
94 | macro. | |
95 | (gcc_jit_context_new_rvalue_from_vector): New API entrypoint. | |
96 | * libgccjit.map (LIBGCCJIT_ABI_10): New ABI tag. | |
97 | ||
ecd5156d DM |
98 | 2017-09-28 David Malcolm <dmalcolm@redhat.com> |
99 | ||
100 | * docs/topics/expressions.rst (Function calls): Add link to | |
101 | gcc_jit_context_new_function_ptr_type. | |
102 | (Function pointers): Convert to cross-references to | |
103 | function-pointers.rst, moving material there. | |
104 | * docs/topics/function-pointers.rst: New page. | |
105 | * docs/topics/index.rst: Add function-pointers.rst. | |
106 | * docs/topics/types.rst (Function pointer types): New section. | |
107 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
108 | ||
5a47aa2c DM |
109 | 2017-09-28 David Malcolm <dmalcolm@redhat.com> |
110 | ||
111 | * jit-recording.c | |
112 | (gcc::jit::recording::function_type::is_same_type_as): New function. | |
113 | * jit-recording.h: In namespace gcc::jit::recording:: | |
114 | (type::accepts_writes_from): Use is_same_type_as rather than pointer | |
115 | equality. | |
116 | (type::is_same_type_as): New virtual function. | |
117 | (function_type::is_same_type_as): New override. | |
118 | ||
15a65e63 DM |
119 | 2017-09-27 David Malcolm <dmalcolm@redhat.com> |
120 | ||
121 | * docs/cp/topics/expressions.rst (Function pointers): New section. | |
122 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_9): New tag. | |
123 | * docs/topics/expressions.rst (Function pointers): New section. | |
124 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
125 | * jit-common.h (class gcc::jit::recording::function_pointer): New | |
126 | forward decl. | |
127 | * jit-playback.c (gcc::jit::playback::function::get_address): New | |
128 | method. | |
129 | * jit-playback.h (gcc::jit::playback::function::get_address): New | |
130 | method decl. | |
131 | * jit-recording.c: Within namespace gcc::jit::recording... | |
132 | (function::function): Initialize new field "m_fn_ptr_type". | |
133 | (function::get_address): New method. | |
134 | (function_pointer::replay_into): New method. | |
135 | (function_pointer::visit_children): New method. | |
136 | (function_pointer::make_debug_string): New method. | |
137 | (function_pointer::write_reproducer): New method. | |
138 | * jit-recording.h: Within namespace gcc::jit::recording... | |
139 | (function::get_address): New method. | |
140 | (function): Add field "m_fn_ptr_type". | |
141 | (class function_pointer): New subclass of rvalue. | |
142 | * libgccjit++.h (gccjit::function::get_address): New method. | |
143 | * libgccjit.c (gcc_jit_function_get_address): New function. | |
144 | * libgccjit.h (LIBGCCJIT_HAVE_gcc_jit_function_get_address): New | |
145 | macro. | |
146 | (gcc_jit_function_get_address): New API entrypoint. | |
147 | * libgccjit.map (LIBGCCJIT_ABI_9): New tag. | |
148 | ||
595ced60 DM |
149 | 2017-09-14 David Malcolm <dmalcolm@redhat.com> |
150 | ||
151 | PR jit/82174 | |
152 | * jit-builtins.c (matches_builtin): Ignore entries with a NULL | |
153 | name. | |
154 | ||
953e520d DM |
155 | 2017-08-18 David Malcolm <dmalcolm@redhat.com> |
156 | ||
157 | PR tree-optimization/46805 | |
158 | * dummy-frontend.c (jit_langhook_parse_file): Handle vector types. | |
159 | ||
519d0798 DM |
160 | 2017-08-18 David Malcolm <dmalcolm@redhat.com> |
161 | ||
162 | * jit-recording.c (class gcc::jit::reproducer): Rename field | |
163 | "m_identifiers" to "m_map_memento_to_identifier". Add field | |
164 | "m_set_identifiers" and struct hash_traits for it. | |
165 | (gcc::jit::reproducer::reproducer): Update for above. | |
166 | (convert_to_identifier): New function. | |
167 | (gcc::jit::reproducer::ensure_identifier_is_unique): New method. | |
168 | (gcc::jit::reproducer::make_identifier): Avoid appending the %p | |
169 | unless necessary for uniqueness. Update for field renaming. | |
170 | (gcc::jit::reproducer::get_identifier): Update for field renaming. | |
171 | ||
47ee1b7c DM |
172 | 2017-08-09 David Malcolm <dmalcolm@redhat.com> |
173 | ||
174 | * docs/cp/topics/types.rst (Vector types): New section. | |
175 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_8): New tag. | |
176 | * docs/topics/types.rst (gcc_jit_context_get_type): Fix typo in | |
177 | example. | |
178 | (Vector types): New section. | |
179 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
180 | * jit-playback.c (gcc::jit::playback::type::get_vector): New | |
181 | method. | |
182 | * jit-playback.h (gcc::jit::playback::type::get_vector): New | |
183 | method. | |
184 | * jit-recording.c: In namespace gcc::jit::recording:: | |
185 | (type::get_vector): New method. | |
186 | (memento_of_get_aligned::write_reproducer): Fix typo | |
187 | in leading comment. | |
188 | (memento_of_get_vector::replay_into): New method. | |
189 | (memento_of_get_vector::make_debug_string): New method. | |
190 | (memento_of_get_vector::write_reproducer): New method. | |
191 | * jit-recording.h: In namespace gcc::jit::recording:: | |
192 | (type::get_vector): New | |
193 | method. | |
194 | (class memento_of_get_vector): New class. | |
195 | * libgccjit++.h (gccjit::type::get_vector): New method. | |
196 | * libgccjit.c (gcc_jit_type_get_vector): New public entrypoint. | |
197 | * libgccjit.h (LIBGCCJIT_HAVE_gcc_jit_type_get_vector): New | |
198 | define. | |
199 | (gcc_jit_type_get_vector): New decl. | |
200 | * libgccjit.map (LIBGCCJIT_ABI_8): New ABI tag. | |
201 | ||
b8506a8a RS |
202 | 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org> |
203 | Alan Hayward <alan.hayward@arm.com> | |
204 | David Sherwood <david.sherwood@arm.com> | |
205 | ||
206 | * dummy-frontend.c (jit_langhook_type_for_mode): Remove "enum" before | |
207 | "machine_mode". | |
208 | ||
0ebd1f00 DM |
209 | 2017-04-24 David Malcolm <dmalcolm@redhat.com> |
210 | ||
211 | * docs/cp/topics/types.rst (gccjit::type::get_const): Remove | |
212 | comment. | |
213 | (gccjit::type::get_aligned): Add. | |
214 | * docs/topics/compatibility.rst: Add LIBGCCJIT_ABI_7. | |
215 | * docs/topics/types.rst: Add gcc_jit_type_get_aligned. | |
216 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
217 | * jit-playback.c (gcc::jit::playback::type::get_aligned): New | |
218 | method. | |
219 | * jit-playback.h (gcc::jit::playback::type::get_aligned): New | |
220 | method. | |
221 | * jit-recording.c: Within namespace gcc::jit::recording... | |
222 | (type::get_aligned): New method. | |
223 | (memento_of_get_aligned::replay_into): New method. | |
224 | (memento_of_get_aligned::make_debug_string): New method. | |
225 | (memento_of_get_aligned::write_reproducer): New method. | |
226 | * jit-recording.h: Within namespace gcc::jit::recording... | |
227 | (type::get_aligned): New method. | |
228 | (type::accepts_writes_from): Strip off qualifications from | |
229 | this when comparing pointer equality. | |
230 | (decorated_type): New subclass of type, subsuming the | |
231 | commonality between memento_of_get_const and | |
232 | memento_of_get_volatile. | |
233 | (memento_of_get_const): Make a subclass of decorated_type, | |
234 | rather than type. | |
235 | (memento_of_get_volatile): Likewise. | |
236 | (memento_of_get_aligned): Likewise. | |
237 | * libgccjit++.h: Within namespace gccjit... | |
238 | (type::get_const): New method. | |
239 | (type::get_aligned): New method. | |
240 | * libgccjit.c (gcc_jit_type_get_aligned): New function. | |
241 | * libgccjit.h (gcc_jit_type_get_aligned): New decl. | |
242 | * libgccjit.map (LIBGCCJIT_ABI_7): New | |
243 | (gcc_jit_type_get_aligned): Add. | |
244 | ||
8a3a6ab4 DM |
245 | 2017-01-19 David Malcolm <dmalcolm@redhat.com> |
246 | ||
247 | * dummy-frontend.c (jit_langhook_type_for_size): Delete. | |
248 | (LANG_HOOKS_TYPE_FOR_SIZE): Don't redefine. | |
249 | ||
b37589b0 DM |
250 | 2017-01-18 David Malcolm <dmalcolm@redhat.com> |
251 | ||
252 | * dummy-frontend.c (jit_langhook_type_for_size): Implement, using | |
253 | lto's lto_type_for_size. | |
254 | ||
cbe34bb5 JJ |
255 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
256 | ||
257 | Update copyright years. | |
258 | ||
15c671a7 DM |
259 | 2016-05-20 David Malcolm <dmalcolm@redhat.com> |
260 | ||
261 | * docs/topics/compatibility.rst: Add LIBGCCJIT_ABI_6. | |
262 | * docs/topics/expressions.rst (Function calls): Add documentation | |
263 | of gcc_jit_rvalue_set_bool_require_tail_call. | |
264 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
265 | * jit-common.h (gcc::jit::recording::base_call): Add forward decl. | |
266 | * jit-playback.c: Within namespace gcc::jit::playback... | |
267 | (context::build_call) Add "require_tail_call" param and use it | |
268 | to set CALL_EXPR_MUST_TAIL_CALL. | |
269 | (context::new_call): Add "require_tail_call" param. | |
270 | (context::new_call_through_ptr): Likewise. | |
271 | * jit-playback.h: Within namespace gcc::jit::playback... | |
272 | (context::new_call: Add "require_tail_call" param. | |
273 | (context::new_call_through_ptr): Likewise. | |
274 | (context::build_call): Likewise. | |
275 | * jit-recording.c: Within namespace gcc::jit::recording... | |
276 | (base_call::base_call): New constructor. | |
277 | (base_call::write_reproducer_tail_call): New method. | |
278 | (call::call): Update for inheritance from base_call. | |
279 | (call::replay_into): Provide m_require_tail_call to call | |
280 | to new_call. | |
281 | (call::write_reproducer): Call write_reproducer_tail_call. | |
282 | (call_through_ptr::call_through_ptr): Update for inheritance from | |
283 | base_call. | |
284 | (call_through_ptr::replay_into): Provide m_require_tail_call to call | |
285 | to new_call_through_ptr. | |
286 | (recording::call_through_ptr::write_reproducer): Call | |
287 | write_reproducer_tail_call. | |
288 | * jit-recording.h: Within namespace gcc::jit::recording... | |
289 | (rvalue::dyn_cast_base_call): New virtual function. | |
290 | (class base_call): New subclass of class rvalue. | |
291 | (class call): Inherit from base_call rather than directly from | |
292 | rvalue, moving get_precedence and m_args to base_call. | |
293 | (class call_through_ptr): Likewise. | |
294 | * libgccjit.c (gcc_jit_rvalue_set_bool_require_tail_call): New | |
295 | function. | |
296 | * libgccjit.h | |
297 | (LIBGCCJIT_HAVE_gcc_jit_rvalue_set_bool_require_tail_call): New | |
298 | macro. | |
299 | (gcc_jit_rvalue_set_bool_require_tail_call): New function. | |
300 | * libgccjit.map (LIBGCCJIT_ABI_6): New. | |
301 | (gcc_jit_rvalue_set_bool_require_tail_call): Add. | |
302 | ||
6b5423a5 DM |
303 | 2016-05-17 David Malcolm <dmalcolm@redhat.com> |
304 | ||
305 | * dummy-frontend.c: Include diagnostic.h. | |
306 | (jit_begin_diagnostic): New function. | |
307 | (jit_end_diagnostic): New function. | |
308 | (jit_langhook_init): Register jit_begin_diagnostic | |
309 | and jit_end_diagnostic with the global_dc. | |
310 | * jit-playback.c: Include diagnostic.h. | |
311 | (gcc::jit::playback::context::add_diagnostic): New method. | |
312 | * jit-playback.h (struct diagnostic_context): Add forward | |
313 | declaration. | |
314 | (gcc::jit::playback::context::add_diagnostic): New method. | |
315 | ||
f51703a8 DM |
316 | 2016-05-17 David Malcolm <dmalcolm@redhat.com> |
317 | ||
318 | * docs/topics/expressions.rst (Function calls): Document | |
319 | gcc_jit_context_new_call_through_ptr. | |
320 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
321 | ||
54ece5e2 DM |
322 | 2016-05-13 David Malcolm <dmalcolm@redhat.com> |
323 | ||
324 | * jit-playback.h: Within namespace gcc:jit::playback... | |
325 | (compile_to_memory::postprocess): Mark with FINAL OVERRIDE. | |
326 | (compile_to_file::postprocess): Likewise. | |
327 | (function::finalizer): Likewise. | |
328 | (block::finalizer): Likewise. | |
329 | (source_file::finalizer): Likewise. | |
330 | (source_line::finalizer): Likewise. | |
331 | * jit-recording.c (gcc::jit::rvalue_usage_validator):: Likewise. | |
332 | * jit-recording.h: Within namespace gcc::jit::recording... | |
333 | (string::replay_into): Mark with FINAL OVERRIDE. | |
334 | (string::make_debug_string): Likewise. | |
335 | (string::write_reproducer): Likewise. | |
336 | (location::replay_into): Likewise. | |
337 | (location::dyn_cast_location): Likewise. | |
338 | (location::make_debug_string): Likewise. | |
339 | (location::write_reproducer): Likewise. | |
340 | (memento_of_get_type::dereference): Likewise. | |
341 | (memento_of_get_type::accepts_writes_from): Likewise. | |
342 | (memento_of_get_type::is_int): Likewise. | |
343 | (memento_of_get_type::is_float): Likewise. | |
344 | (memento_of_get_type::is_bool): Likewise. | |
345 | (memento_of_get_type::is_pointer): Likewise. | |
346 | (memento_of_get_type::is_array): Likewise. | |
347 | (memento_of_get_type::is_void): Likewise. | |
348 | (memento_of_get_type::replay_into): Likewise. | |
349 | (memento_of_get_type::make_debug_string): Likewise. | |
350 | (memento_of_get_type::write_reproducer): Likewise. | |
351 | (memento_of_get_pointer::dereference): Likewise. | |
352 | (memento_of_get_pointer::accepts_writes_from): Likewise. | |
353 | (memento_of_get_pointer::replay_into): Likewise. | |
354 | (memento_of_get_pointer::is_int): Likewise. | |
355 | (memento_of_get_pointer::is_float): Likewise. | |
356 | (memento_of_get_pointer::is_bool): Likewise. | |
357 | (memento_of_get_pointer::is_pointer): Likewise. | |
358 | (memento_of_get_pointer::is_array): Likewise. | |
359 | (memento_of_get_pointer::make_debug_string): Likewise. | |
360 | (memento_of_get_pointer::write_reproducer): Likewise. | |
361 | (memento_of_get_const::dereference): Likewise. | |
362 | (memento_of_get_const::accepts_writes_from): Likewise. | |
363 | (memento_of_get_const::unqualified): Likewise. | |
364 | (memento_of_get_const::is_int): Likewise. | |
365 | (memento_of_get_const::is_float): Likewise. | |
366 | (memento_of_get_const::is_bool): Likewise. | |
367 | (memento_of_get_const::is_pointer): Likewise. | |
368 | (memento_of_get_const::is_array): Likewise. | |
369 | (memento_of_get_const::void replay_into): Likewise; | |
370 | (memento_of_get_const::make_debug_string): Likewise. | |
371 | (memento_of_get_const::write_reproducer): Likewise. | |
372 | (memento_of_get_volatile::dereference): Likewise. | |
373 | (memento_of_get_volatile::unqualified): Likewise. | |
374 | (memento_of_get_volatile::is_int): Likewise. | |
375 | (memento_of_get_volatile::is_float): Likewise. | |
376 | (memento_of_get_volatile::is_bool): Likewise. | |
377 | (memento_of_get_volatile::is_pointer): Likewise. | |
378 | (memento_of_get_volatile::is_array): Likewise. | |
379 | (memento_of_get_volatile::replay_into): Likewise; | |
380 | (memento_of_get_volatile::make_debug_string): Likewise. | |
381 | (memento_of_get_volatile::write_reproducer): Likewise. | |
382 | (array_type::dereference): Likewise. | |
383 | (array_type::is_int): Likewise. | |
384 | (array_type::is_float): Likewise. | |
385 | (array_type::is_bool): Likewise. | |
386 | (array_type::is_pointer): Likewise. | |
387 | (array_type::is_array): Likewise. | |
388 | (array_type::replay_into): Likewise; | |
389 | (array_type::make_debug_string): Likewise. | |
390 | (array_type::write_reproducer): Likewise. | |
391 | (function_type::dereference): Likewise. | |
392 | (function_type::function_dyn_cast_function_type): Likewise. | |
393 | (function_type::function_as_a_function_type): Likewise. | |
394 | (function_type::is_int): Likewise. | |
395 | (function_type::is_float): Likewise. | |
396 | (function_type::is_bool): Likewise. | |
397 | (function_type::is_pointer): Likewise. | |
398 | (function_type::is_array): Likewise. | |
399 | (function_type::replay_into): Likewise; | |
400 | (function_type::make_debug_string): Likewise. | |
401 | (function_type::write_reproducer): Likewise. | |
402 | (field::replay_into): Likewise; | |
403 | (field::write_to_dump): Likewise. | |
404 | (field::make_debug_string): Likewise. | |
405 | (field::write_reproducer): Likewise. | |
406 | (compound_type::dereference): Likewise. | |
407 | (compound_type::is_int): Likewise. | |
408 | (compound_type::is_float): Likewise. | |
409 | (compound_type::is_bool): Likewise. | |
410 | (compound_type::is_pointer): Likewise. | |
411 | (compound_type::is_array): Likewise. | |
412 | (compound_type::has_known_size): Likewise. | |
413 | (struct_::dyn_cast_struct): Likewise. | |
414 | (struct_::replay_into): Likewise. | |
415 | (struct_::access_as_type): Likewise. | |
416 | (struct_::make_debug_string): Likewise. | |
417 | (struct_::write_reproducer): Likewise. | |
418 | (fields::replay_into): Likewise. | |
419 | (fields::write_to_dump): Likewise. | |
420 | (fields::make_debug_string): Likewise. | |
421 | (fields::write_reproducer): Likewise. | |
422 | (union_::replay_into): Likewise. | |
423 | (union_::make_debug_string): Likewise. | |
424 | (union_::write_reproducer): Likewise. | |
425 | (lvalue::access_as_rvalue): Mark with OVERRIDE. | |
426 | (param::replay_into): Mark with FINAL OVERRIDE. | |
427 | (param::visit_children): Likewise. | |
428 | (param::dyn_cast_param): Likewise. | |
429 | (param::access_as_rvalue): Likewise. | |
430 | (param::access_as_lvalue): Likewise. | |
431 | (param::make_debug_string): Likewise. | |
432 | (param::write_reproducer): Likewise. | |
433 | (param::get_precedence): Likewise. | |
434 | (function::replay_into): Likewise. | |
435 | (function::write_to_dump): Likewise. | |
436 | (function::make_debug_string): Likewise. | |
437 | (function::write_reproducer): Likewise. | |
438 | (block::write_to_dump): Likewise. | |
439 | (block::make_debug_string): Likewise. | |
440 | (block::write_reproducer): Likewise. | |
441 | (block::replay_into): Likewise. | |
442 | (global::replay_into): Likewise; | |
443 | (global::visit_children): Likewise. | |
444 | (global::write_to_dump): Likewise. | |
445 | (global::make_debug_string): Likewise. | |
446 | (global::write_reproducer): Likewise. | |
447 | (global::get_precedence): Likewise. | |
448 | (memento_of_new_rvalue_from_const::replay_into): Likewise. | |
449 | (memento_of_new_rvalue_from_const::visit_children): Likewise. | |
450 | (memento_of_new_rvalue_from_const::is_constant): Likewise. | |
451 | (memento_of_new_rvalue_from_const::get_wide_int): Likewise. | |
452 | (memento_of_new_rvalue_from_const::make_debug_string): Likewise. | |
453 | (memento_of_new_rvalue_from_const::write_reproducer): Likewise. | |
454 | (memento_of_new_rvalue_from_const::get_precedence): Likewise. | |
455 | (memento_of_new_string_literal::replay_into): Likewise. | |
456 | (memento_of_new_string_literal::visit_children): Likewise. | |
457 | (memento_of_new_string_literal::make_debug_string): Likewise. | |
458 | (memento_of_new_string_literal::write_reproducer): Likewise. | |
459 | (memento_of_new_string_literal::get_precedence): Likewise. | |
460 | (unary_op::replay_into): Likewise. | |
461 | (unary_op::visit_children): Likewise. | |
462 | (unary_op::make_debug_string): Likewise. | |
463 | (unary_op::write_reproducer): Likewise. | |
464 | (unary_op::get_precedence): Likewise. | |
465 | (binary_op::replay_into): Likewise. | |
466 | (binary_op::visit_children): Likewise. | |
467 | (binary_op::make_debug_string): Likewise. | |
468 | (binary_op::write_reproducer): Likewise. | |
469 | (binary_op::get_precedence): Likewise. | |
470 | (comparison::replay_into): Likewise. | |
471 | (comparison::visit_children): Likewise. | |
472 | (comparison::make_debug_string): Likewise. | |
473 | (comparison::write_reproducer): Likewise. | |
474 | (comparison::get_precedence): Likewise. | |
475 | (cast::replay_into): Likewise. | |
476 | (cast::visit_children): Likewise. | |
477 | (cast::make_debug_string): Likewise. | |
478 | (cast::write_reproducer): Likewise. | |
479 | (cast::get_precedence): Likewise. | |
480 | (call::replay_into): Likewise. | |
481 | (call::visit_children): Likewise. | |
482 | (call::make_debug_string): Likewise. | |
483 | (call::write_reproducer): Likewise. | |
484 | (call::get_precedence): Likewise. | |
485 | (call_through_ptr::replay_into): Likewise. | |
486 | (call_through_ptr::visit_children): Likewise. | |
487 | (call_through_ptr::make_debug_string): Likewise. | |
488 | (call_through_ptr::write_reproducer): Likewise. | |
489 | (call_through_ptr::get_precedence): Likewise. | |
490 | (array_access::replay_into): Likewise. | |
491 | (array_access::visit_children): Likewise. | |
492 | (array_access::make_debug_string): Likewise. | |
493 | (array_access::write_reproducer): Likewise. | |
494 | (array_access::get_precedence): Likewise. | |
495 | (access_field_of_lvalue::replay_into): Likewise. | |
496 | (access_field_of_lvalue::visit_children): Likewise. | |
497 | (access_field_of_lvalue::make_debug_string): Likewise. | |
498 | (access_field_of_lvalue::write_reproducer): Likewise. | |
499 | (access_field_of_lvalue::get_precedence): Likewise. | |
500 | (access_field_rvalue::replay_into): Likewise. | |
501 | (access_field_rvalue::visit_children): Likewise. | |
502 | (access_field_rvalue::make_debug_string): Likewise. | |
503 | (access_field_rvalue::write_reproducer): Likewise. | |
504 | (access_field_rvalue::get_precedence): Likewise. | |
505 | (dereference_field_rvalue::replay_into): Likewise. | |
506 | (dereference_field_rvalue::visit_children): Likewise. | |
507 | (dereference_field_rvalue::make_debug_string): Likewise. | |
508 | (dereference_field_rvalue::write_reproducer): Likewise. | |
509 | (dereference_field_rvalue::get_precedence): Likewise. | |
510 | (dereference_rvalue::replay_into): Likewise. | |
511 | (dereference_rvalue::visit_children): Likewise. | |
512 | (dereference_rvalue::make_debug_string): Likewise. | |
513 | (dereference_rvalue::write_reproducer): Likewise. | |
514 | (dereference_rvalue::get_precedence): Likewise. | |
515 | (get_address_of_lvalue::replay_into): Likewise. | |
516 | (get_address_of_lvalue::visit_children): Likewise. | |
517 | (get_address_of_lvalue::make_debug_string): Likewise. | |
518 | (get_address_of_lvalue::write_reproducer): Likewise. | |
519 | (get_address_of_lvalue::get_precedence): Likewise. | |
520 | (local::replay_into): Likewise. | |
521 | (local::visit_children): Likewise. | |
522 | (local::write_to_dump): Likewise. | |
523 | (local::make_debug_string): Likewise. | |
524 | (local::write_reproducer): Likewise. | |
525 | (local::get_precedence): Likewise. | |
526 | (statement::write_to_dump): Likewise. | |
527 | (eval::replay_into): Likewise. | |
528 | (eval::make_debug_string): Likewise. | |
529 | (eval::write_reproducer): Likewise. | |
530 | (assignment::replay_into): Likewise. | |
531 | (assignment::make_debug_string): Likewise. | |
532 | (assignment::write_reproducer): Likewise. | |
533 | (assignment_op::replay_into): Likewise. | |
534 | (assignment_op::make_debug_string): Likewise. | |
535 | (assignment_op::write_reproducer): Likewise. | |
536 | (comment::replay_into): Likewise. | |
537 | (comment::make_debug_string): Likewise. | |
538 | (comment::write_reproducer): Likewise. | |
539 | (conditional::replay_into): Likewise. | |
540 | (conditional::get_successor_blocks): Likewise. | |
541 | (conditional::make_debug_string): Likewise. | |
542 | (conditional::write_reproducer): Likewise. | |
543 | (jump::replay_into): Likewise. | |
544 | (jump::get_successor_blocks): Likewise. | |
545 | (jump::make_debug_string): Likewise. | |
546 | (jump::write_reproducer): Likewise. | |
547 | (return_::replay_into): Likewise. | |
548 | (return_::get_successor_blocks): Likewise. | |
549 | (return_::make_debug_string): Likewise. | |
550 | (return_::write_reproducer): Likewise. | |
551 | (case_::replay_into): Likewise. | |
552 | (case_::write_reproducer): Likewise. | |
553 | (case_::make_debug_string): Likewise. | |
554 | (switch_::replay_into): Likewise. | |
555 | (switch_::get_successor_blocks): Likewise. | |
556 | (switch_::make_debug_string): Likewise. | |
557 | (switch_::write_reproducer): Likewise. | |
558 | ||
f258ad62 DM |
559 | 2016-02-08 David Malcolm <dmalcolm@redhat.com> |
560 | ||
561 | * dummy-frontend.c (jit_langhook_init): Remove | |
562 | second argument to build_common_tree_nodes to | |
563 | track r233218. | |
564 | ||
1c652ccb IB |
565 | 2016-01-23 Iain Buclaw <ibuclaw@gdcproject.org> |
566 | ||
567 | * jit-playback.c: Include pthread.h. | |
568 | ||
199501ea DM |
569 | 2016-01-19 David Malcolm <dmalcolm@redhat.com> |
570 | ||
571 | PR jit/69144 | |
572 | * jit-playback.c (gcc::jit::playback::compile_to_file::postprocess): | |
573 | Potentially add the temporary artifact to the tempdir's list of | |
574 | tempfiles needing additional cleanup. | |
575 | (gcc::jit::playback::context::extract_any_requested_dumps): Likewise | |
576 | for the dumpfile. | |
577 | * jit-tempdir.c (gcc::jit::tempdir::~tempdir): Clean up additional | |
578 | tempfiles. | |
579 | * jit-tempdir.h (gcc::jit::tempdir::add_temp_file): New method. | |
580 | (gcc::jit::tempdir::m_tempfiles): New field. | |
581 | * docs/cp/intro/tutorial04.rst: Update for changes to toyvm.cc. | |
582 | * docs/examples/tut04-toyvm/toyvm.cc (class compilation_result): | |
583 | New. | |
584 | (toyvm_function::compile): Change return type from function ptr | |
585 | to a compilation_result. | |
586 | (toyvm_function::get_function_name): New accessor. | |
587 | (toyvm_function::m_funcname): New field. | |
588 | (get_function_name): Convert to... | |
589 | (toyvm_function::make_function_name): ...this new method. | |
590 | (toyvm_function::parse): Call make_function_name. | |
591 | (toyvm_function::compile): Convert return type from function ptr | |
592 | to a compilation_result. Use get_function_name. | |
593 | (compilation_state::compile): Convert return type from | |
594 | gcc_jit_result * to a compilation_result. | |
595 | (test_script): Update for above changes, extracting the code from | |
596 | the compilation_result. | |
597 | (main): Likewise. | |
598 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
599 | ||
818ab71a JJ |
600 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
601 | ||
602 | Update copyright years. | |
603 | ||
69f293c9 AM |
604 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
605 | ||
606 | * dummy-frontend.c: Remove unused header files. | |
607 | * jit-builtins.c: Likewise. | |
608 | * jit-playback.c: Likewise. | |
609 | * jit-recording.c: Likewise. | |
610 | * jit-spec.c: Likewise. | |
611 | * libgccjit.c: Likewise. | |
612 | ||
0aad0198 RS |
613 | 2015-11-07 Richard Sandiford <richard.sandiford@arm.com> |
614 | ||
615 | * jit-builtins.c: Don't undef DEF_BUILTIN. | |
616 | ||
2adfab87 AM |
617 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
618 | ||
619 | * dummy-frontend.c: Reorder #include's and remove duplicates. | |
620 | * jit-builtins.c: Likewise. | |
621 | * jit-playback.c: Likewise. | |
622 | * jit-recording.c: Likewise. | |
623 | * libgccjit.c: Likewise. | |
624 | ||
d9a6bd32 JJ |
625 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
626 | ||
627 | * jit-builtins.c (DEF_FUNCTION_TYPE_9, DEF_FUNCTION_TYPE_10, | |
628 | DEF_FUNCTION_TYPE_11): Define. | |
629 | * jit-builtins.h (DEF_FUNCTION_TYPE_9, DEF_FUNCTION_TYPE_10, | |
630 | DEF_FUNCTION_TYPE_11): Define. | |
631 | ||
fa83660d TS |
632 | 2015-09-30 Thomas Schwinge <thomas@codesourcery.com> |
633 | Ulrich Drepper <drepper@gmail.com> | |
634 | ||
635 | * jit-builtins.h: Undefine DEF_FUNCTION_TYPE_VAR_6 after use. | |
636 | ||
20a44562 MK |
637 | 2015-09-30 Matthias Klose <doko@ubuntu.com> |
638 | ||
639 | * jit-builtins.h Define DEF_FUNCTION_TYPE_VAR_6, | |
640 | remove DEF_FUNCTION_TYPE_VAR_11. | |
641 | * jit-builtins.c (builtins_manager::make_type): Define and handle | |
642 | DEF_FUNCTION_TYPE_VAR_6, remove DEF_FUNCTION_TYPE_VAR_11. | |
643 | ||
9376dd63 DM |
644 | 2015-08-25 David Malcolm <dmalcolm@redhat.com> |
645 | ||
646 | * docs/cp/topics/contexts.rst | |
647 | (gccjit::context::set_bool_use_external_driver): New. | |
648 | * docs/internals/test-hello-world.exe.log.txt: Update. | |
649 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_5): New. | |
650 | * docs/topics/contexts.rst | |
651 | (gcc_jit_context_set_bool_use_external_driver): New. | |
652 | * jit-common.h (enum inner_bool_option): Add | |
653 | INNER_BOOL_OPTION_USE_EXTERNAL_DRIVER. | |
654 | * jit-playback.c (gcc_driver_name): New global. | |
655 | (gcc:jit::playback::context::invoke_driver): Split out second | |
656 | half into... | |
657 | (gcc::jit::playback::context::invoke_embedded_driver): ...this new | |
658 | function, and... | |
659 | (gcc::jit::playback::context::invoke_external_driver): ...this new | |
660 | function. | |
661 | * jit-playback.h | |
662 | (gcc::jit::playback::context::get_inner_bool_option): New. | |
663 | (gcc::jit::playback::context::invoke_embedded_driver): New. | |
664 | (gcc::jit::playback::context::invoke_external_driver): New. | |
665 | * jit-recording.c (inner_bool_option_reproducer_strings): | |
666 | Add entry for INNER_BOOL_OPTION_USE_EXTERNAL_DRIVER. | |
667 | * libgccjit++.h | |
668 | (gccjit::context::set_bool_use_external_driver): New. | |
669 | * libgccjit.c (gcc_jit_context_set_bool_use_external_driver): New. | |
670 | * libgccjit.h (gcc_jit_context_set_bool_use_external_driver): New. | |
671 | (LIBGCCJIT_HAVE_gcc_jit_context_set_bool_use_external_driver): | |
672 | New. | |
673 | * libgccjit.map (LIBGCCJIT_ABI_5): New. | |
674 | * notes.txt: Show invocation of embedded copy of driver. | |
675 | * docs/internals/test-hello-world.exe.log.txt: Update | |
676 | ||
baf3fbad DM |
677 | 2015-08-13 David Malcolm <dmalcolm@redhat.com> |
678 | ||
679 | * jit-playback.c (invoke_driver): On OS X, add | |
680 | "-Wl,-undefined,dynamic_lookup" to the driver arguments. | |
681 | ||
afed3459 DM |
682 | 2015-08-03 David Malcolm <dmalcolm@redhat.com> |
683 | ||
684 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_4): New. | |
685 | * docs/topics/contexts.rst (GCC_JIT_BOOL_OPTION_DUMP_SUMMARY): | |
686 | We no longer show a profile. | |
687 | * docs/topics/index.rst (Topic Reference): Add performance.rst. | |
688 | * docs/topics/performance.rst: New file. | |
689 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
690 | * jit-playback.c (gcc::jit::playback::context::compile): Add timer | |
691 | param when constructing the "toplev" instance. | |
692 | (gcc::jit::playback::context::acquire_mutex): Add timer param when | |
693 | constructing auto_timevar instance. | |
694 | (gcc::jit::playback::context::make_fake_args): If we have a timer, | |
695 | add "-ftime-report". | |
696 | (gcc::jit::playback::context::invoke_driver): Add timer param when | |
697 | constructing auto_timevar instance. | |
698 | (gcc::jit::playback::context::dlopen_built_dso): Likewise. | |
699 | * jit-playback.h (gcc::jit::playback::context::get_timer): New accessor. | |
700 | * jit-recording.c: Include timevar.h. | |
701 | (gcc::jit::recording::context::context): Initialize field "m_timer". | |
702 | * jit-recording.h: Add forward declaration of class timer. | |
703 | (gcc::jit::recording::context::set_timer): New method. | |
704 | (gcc::jit::recording::context::get_timer): New method. | |
705 | (gcc::jit::recording::context::m_timer): New field. | |
706 | * libgccjit++.h (gccjit::timer): New class. | |
707 | (gccjit::auto_time): New class. | |
708 | (gccjit::context::set_timer): New method. | |
709 | (gccjit::context::get_timer): New. | |
710 | (gccjit::timer::timer): New. | |
711 | (gccjit::timer::push): New. | |
712 | (gccjit::timer::pop): New. | |
713 | (timer::print): New. | |
714 | (timer::get_inner_timer): New. | |
715 | (timer::release): New. | |
716 | (auto_time::auto_time): New. | |
717 | (auto_time::~auto_time): New. | |
718 | * libgccjit.c: Include timevar.h. | |
719 | (struct gcc_jit_timer): New. | |
720 | (gcc_jit_timer_new): New function. | |
721 | (gcc_jit_timer_release): New function. | |
722 | (gcc_jit_context_set_timer): New function. | |
723 | (gcc_jit_context_get_timer): New function. | |
724 | (gcc_jit_timer_push): New function. | |
725 | (gcc_jit_timer_pop): New function. | |
726 | (gcc_jit_timer_print): New function. | |
727 | * libgccjit.h (LIBGCCJIT_HAVE_TIMING_API): New macro. | |
728 | (gcc_jit_timer): New typedef. | |
729 | (gcc_jit_timer_new): New function. | |
730 | (gcc_jit_timer_release): New function. | |
731 | (gcc_jit_context_set_timer): New function. | |
732 | (gcc_jit_context_get_timer): New function. | |
733 | (gcc_jit_timer_push): New function. | |
734 | (gcc_jit_timer_pop): New function. | |
735 | (gcc_jit_timer_print): New function. | |
736 | * libgccjit.map (LIBGCCJIT_ABI_4): New. | |
737 | (gcc_jit_timer_new): New function. | |
738 | (gcc_jit_timer_release): New function. | |
739 | (gcc_jit_context_set_timer): New function. | |
740 | (gcc_jit_context_get_timer): New function. | |
741 | (gcc_jit_timer_push): New function. | |
742 | (gcc_jit_timer_pop): New function. | |
743 | (gcc_jit_timer_print): New function. | |
744 | ||
eb3982c1 DM |
745 | 2015-07-23 David Malcolm <dmalcolm@redhat.com> |
746 | ||
747 | * jit-playback.c (invoke_driver): Convert local "argvec" | |
748 | to an auto_argvec, so that it owns copies of the strings, | |
749 | rather than borrows them, updating ADD_ARG to use xstrdup | |
750 | and special-casing the NULL terminator to avoid | |
751 | xstrdup (NULL). Call add_multilib_driver_arguments at the front | |
752 | of the arguments. | |
753 | (MULTILIB_DEFAULTS): Provide a default definition. | |
754 | (multilib_defaults_raw): New constant array. | |
755 | (gcc::jit::playback::context::add_multilib_driver_arguments): New | |
756 | method. | |
757 | * jit-playback.h | |
758 | (gcc::jit::playback::context::add_multilib_driver_arguments): New | |
759 | method. | |
760 | * docs/internals/test-hello-world.exe.log.txt: Update. | |
761 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
762 | ||
1470e75f DM |
763 | 2015-07-16 David Malcolm <dmalcolm@redhat.com> |
764 | ||
765 | * docs/internals/index.rst (Overview of code structure): Add note | |
766 | that the implementation is in C++, despite the .c extension. | |
767 | (Submitting patches): New subsection. | |
768 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
769 | ||
1916bcb5 AM |
770 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
771 | ||
772 | * dummy-frontend.c: Adjust includes for flags.h changes. | |
773 | * jit-common.h: Likewise. | |
774 | * jit-playback.c: Likewise. | |
775 | ||
58c5ad40 DM |
776 | 2015-07-08 David Malcolm <dmalcolm@redhat.com> |
777 | ||
778 | PR jit/66783 | |
779 | * libgccjit.c (gcc_jit_context_new_field): Show name of field in | |
780 | "unknown size" error message. | |
781 | (gcc_jit_struct_set_fields): Show name of struct in error message. | |
782 | (gcc_jit_context_new_global): Show name of global in | |
783 | "unknown size" error message. | |
784 | (gcc_jit_function_new_local): Likewise for local. | |
785 | ||
c7131fb2 AM |
786 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
787 | ||
788 | * dummy-frontend.c: Adjust includes. | |
789 | * jit-common.h: Likewise. | |
790 | * jit-playback.c: Likewise. | |
791 | ||
3457d39e DM |
792 | 2015-07-07 David Malcolm <dmalcolm@redhat.com> |
793 | ||
794 | PR jit/66783 | |
795 | * jit-recording.h: Within namespace gcc:jit::recording... | |
796 | (type::has_known_size): New virtual function. | |
797 | (struct_has_known_size): New function. | |
798 | * libgccjit.c (gcc_jit_context_new_field): Verify that the type | |
799 | has a known size. | |
800 | (gcc_jit_context_new_global): Likewise. | |
801 | (gcc_jit_function_new_local): Likewise. | |
802 | ||
bada4bed DM |
803 | 2015-07-07 David Malcolm <dmalcolm@redhat.com> |
804 | ||
805 | PR jit/66779 | |
806 | * dummy-frontend.c (jit_langhook_type_for_mode): Ensure that we | |
807 | handle modes QI, HI, SI, DI, TI. | |
808 | ||
e09abfa4 DM |
809 | 2015-07-01 David Malcolm <dmalcolm@redhat.com> |
810 | ||
811 | PR jit/66700 | |
812 | * jit-playback.c (jit_mark_addressable): New function. | |
813 | (gcc::jit::playback::lvalue::get_address): Call | |
814 | jit_mark_addressable on the underlying tree. | |
815 | ||
e807aeaa DM |
816 | 2015-07-01 David Malcolm <dmalcolm@redhat.com> |
817 | ||
818 | * docs/topics/types.rst (gcc_jit_context_new_union_type): Add | |
819 | documentation. | |
820 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
821 | ||
c575221a DM |
822 | 2015-07-01 David Malcolm <dmalcolm@redhat.com> |
823 | ||
824 | * docs/topics/contexts.rst (gcc_jit_context_set_bool_option): | |
825 | Clarify lack of lifetime requirements on (const char *) parameter. | |
826 | * docs/topics/expressions.rst | |
827 | (gcc_jit_context_new_string_literal): Likewise. | |
828 | (gcc_jit_context_new_global): Likewise. | |
829 | * docs/topics/functions.rst (gcc_jit_context_new_param): Likewise. | |
830 | (gcc_jit_context_new_function): Likewise. | |
831 | (gcc_jit_function_new_block): Likewise. | |
832 | (gcc_jit_block_add_comment): Likewise. | |
833 | * docs/topics/locations.rst (gcc_jit_context_new_location): | |
834 | Likewise. | |
835 | * docs/topics/types.rst (gcc_jit_context_new_field): Likewise. | |
836 | (gcc_jit_context_new_struct_type): Likewise. | |
837 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
838 | ||
ec5d0088 DM |
839 | 2015-06-30 David Malcolm <dmalcolm@redhat.com> |
840 | ||
841 | * docs/cp/topics/functions.rst (Blocks): Add switch statements to | |
842 | list of ways to terminate a block. | |
843 | (gccjit::block::end_with_switch): Add function description. | |
844 | (gccjit::case_): Add class. | |
845 | (gccjit::context::new_case): Add function description. | |
846 | * docs/cp/topics/objects.rst: Add "case_" to class hierarchy. | |
847 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_3): New. | |
848 | * docs/topics/functions.rst (Blocks): Add switch statements to | |
849 | list of ways to terminate a block. | |
850 | (gcc_jit_block_end_with_switch): Add function description. | |
851 | (gcc_jit_case): Add type. | |
852 | (gcc_jit_context_new_case): Add function description. | |
853 | (gcc_jit_case_as_object): Add function description. | |
854 | * docs/topics/objects.rst: Add gcc_jit_case to class hierarchy. | |
855 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
856 | * jit-common.h (gcc::jit::recording::case_): Add forward decl. | |
857 | (gcc::jit::playback::case_): Add forward decl. | |
858 | * jit-playback.c (add_case): New function. | |
859 | (gcc::jit::playback::block::add_switch): New function. | |
860 | * jit-playback.h (gcc::jit::playback::case_): New struct. | |
861 | (gcc::jit::playback::block::get_function): New method. | |
862 | (gcc::jit::playback::block::add_switch): New method. | |
863 | * jit-recording.c: Within namespace gcc::jit... | |
864 | (recording::context::new_case): New method. | |
865 | (recording::function::validate): Update for change to | |
866 | get_successor_blocks. | |
867 | (recording::block::end_with_switch): New method. | |
868 | (recording::block::get_successor_blocks): Update to support an | |
869 | arbitrary number of successor blocks. | |
870 | (recording::block::dump_edges_to_dot): Likewise. | |
871 | (memento_of_new_rvalue_from_const <int>::get_wide_int): New. | |
872 | (memento_of_new_rvalue_from_const <long>::get_wide_int): New. | |
873 | (memento_of_new_rvalue_from_const <double>::get_wide_int): New. | |
874 | (memento_of_new_rvalue_from_const <void *>::get_wide_int): New. | |
875 | (recording::statement::get_successor_blocks): Update to support an | |
876 | arbitrary number of successor blocks. | |
877 | (recording::conditional::get_successor_blocks): Likewise. | |
878 | (recording::jump::get_successor_blocks): Likewise. | |
879 | (recording::return_::get_successor_blocks): Likewise. | |
880 | (recording::case_::write_reproducer): New. | |
881 | (recording::case_::make_debug_string): New. | |
882 | (recording::switch_::switch_): New. | |
883 | (recording::switch_::replay_into): New. | |
884 | (recording::switch_::get_successor_blocks): New. | |
885 | (recording::switch_::make_debug_string): New. | |
886 | (recording::switch_::write_reproducer): New. | |
887 | * jit-recording.h: Within namespace gcc::jit::recording... | |
888 | (context::new_case): New. | |
889 | (rvalue::is_constant): New. | |
890 | (rvalue::get_wide_int): New. | |
891 | (block::end_with_switch): New. | |
892 | (block::get_successor_blocks): Update to support an arbitrary | |
893 | number of successor blocks. | |
894 | (memento_of_new_rvalue_from_const::is_constant): New. | |
895 | (memento_of_new_rvalue_from_const::get_wide_int): New. | |
896 | (statement::get_successor_blocks): Update to support an arbitrary | |
897 | number of successor blocks. | |
898 | (conditional::get_successor_blocks): Likewise. | |
899 | (jump::get_successor_blocks): Likewise. | |
900 | (return_::get_successor_blocks): Likewise. | |
901 | (case_): New subclass of memento. | |
902 | (switch_): New subclass of statement. | |
903 | * libgccjit++.h (gccjit::case_): New subclass of gccjit::object. | |
904 | (gccjit::context::new_case): New method. | |
905 | (gccjit::block::end_with_switch): New method. | |
906 | (gccjit::case_::case): New ctors. | |
907 | (gccjit::case_::get_inner_case): New method. | |
908 | * libgccjit.c: Include "typed-splay-tree.h" | |
909 | (struct gcc_jit_case): New. | |
910 | (gcc_jit_context_new_case): New function. | |
911 | (gcc_jit_case_as_object): New function. | |
912 | (valid_dest_for_switch): New function. | |
913 | (valid_case_for_switch): New function. | |
914 | (class api_call_validator): New class. | |
915 | (class case_range_validator): New class. | |
916 | (case_range_validator::case_range_validator): New. | |
917 | (case_range_validator::validate): New. | |
918 | (case_range_validator::case_compare): New. | |
919 | (case_range_validator::get_wide_int): new. | |
920 | (gcc_jit_block_end_with_switch): New. | |
921 | * libgccjit.h: Add gcc_jit_case to class hierarchy comment. | |
922 | (gcc_jit_case): New typedef. | |
923 | (gcc_jit_context_new_case): New function. | |
924 | (gcc_jit_case_as_object): New function. | |
925 | (gcc_jit_block_end_with_switch): New function. | |
926 | (LIBGCCJIT_HAVE_SWITCH_STATEMENTS): New. | |
927 | * libgccjit.map: Add gcc_jit_block_end_with_switch, | |
928 | gcc_jit_case_as_object and gcc_jit_context_new_case. | |
929 | ||
6a3603e3 DM |
930 | 2015-06-30 David Malcolm <dmalcolm@redhat.com> |
931 | ||
932 | PR jit/66546 | |
933 | * docs/cp/topics/contexts.rst | |
934 | (gccjit::context::set_bool_allow_unreachable_blocks): New. | |
935 | * docs/topics/compatibility.rst (LIBGCCJIT_ABI_2): New. | |
936 | * docs/topics/contexts.rst (Options): Add notes discussing the | |
937 | transition from enums to entrypoints for new options. | |
938 | (gcc_jit_context_set_bool_allow_unreachable_blocks): New. | |
939 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
940 | * jit-common.h (gcc::jit::inner_bool_option): New enum. | |
941 | * jit-recording.c: Within namespace gcc::jit... | |
942 | (recording::context::context): Handle m_inner_bool_options. | |
943 | (recording::context::set_inner_bool_option): New. | |
944 | (inner_bool_option_reproducer_strings): New. | |
945 | (recording::context::log_all_options): Log the "inner" bool | |
946 | options. | |
947 | (recording::context::log_inner_bool_option): New. | |
948 | (recording::context::dump_reproducer_to_file): Write initializers | |
949 | for "inner" bool options. | |
950 | (recording::function::validate): Don't check for block | |
951 | reachability if INNER_BOOL_OPTION_ALLOW_UNREACHABLE_BLOCKS is set. | |
952 | * jit-recording.h: Within namespace gcc::jit... | |
953 | (recording::context::set_inner_bool_option): New. | |
954 | (recording::context::get_inner_bool_option): New. | |
955 | (recording::context::log_inner_bool_option): New. | |
956 | (recording::context::m_inner_bool_options): New. | |
957 | * libgccjit++.h | |
958 | (gccjit::context::set_bool_allow_unreachable_blocks): New. | |
959 | * libgccjit.c | |
960 | (gcc_jit_context_set_bool_allow_unreachable_blocks): New. | |
961 | * libgccjit.h: Add note about options present in the | |
962 | initial release of libgccjit. | |
963 | (gcc_jit_context_set_bool_allow_unreachable_blocks): New API | |
964 | entrypoint. | |
965 | (LIBGCCJIT_HAVE_gcc_jit_context_set_bool_allow_unreachable_blocks): | |
966 | New macro. | |
967 | * libgccjit.map (LIBGCCJIT_ABI_2): New, containing... | |
968 | (gcc_jit_context_set_bool_allow_unreachable_blocks): ...this new | |
969 | entrypoint. | |
970 | ||
fa22c20d DM |
971 | 2015-06-30 David Malcolm <dmalcolm@redhat.com> |
972 | ||
973 | PR jit/66628 | |
974 | * docs/cp/topics/contexts.rst (Additional command-line options): | |
975 | New section. | |
976 | * docs/topics/compatibility.rst: New file. | |
977 | * docs/topics/contexts.rst (Additional command-line options): New | |
978 | section. | |
979 | * docs/topics/index.rst: Add compatibility.rst. | |
980 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
981 | * jit-playback.c (make_fake_args): Add call to | |
982 | append_command_line_options. | |
983 | * jit-recording.c: Within namespace gcc::jit... | |
984 | (recording::context::~context): Free the optnames within | |
985 | m_command_line_options. | |
986 | (recording::context::set_bool_option): Likewise. | |
987 | (recording::context::add_command_line_option): New method. | |
988 | (recording::context::append_command_line_options): New method. | |
989 | (recording::context::dump_reproducer_to_file): Add command-line | |
990 | options. | |
991 | * jit-recording.h: Within namespace gcc::jit... | |
992 | (recording::context::add_command_line_option): New method. | |
993 | (recording::context::append_command_line_options): New method. | |
994 | (recording::context::m_command_line_options): New field. | |
995 | * libgccjit++.h (gccjit::context::add_command_line_option): New | |
996 | method. | |
997 | * libgccjit.c (gcc_jit_context_add_command_line_option): New API | |
998 | entrypoint. | |
999 | * libgccjit.h (gcc_jit_context_add_command_line_option): New API | |
1000 | entrypoint. | |
1001 | (LIBGCCJIT_HAVE_gcc_jit_context_add_command_line_option): New | |
1002 | macro. | |
1003 | * libgccjit.map: Put existing symbols within LIBGCCJIT_ABI_0; add | |
1004 | LIBGCCJIT_ABI_1 and gcc_jit_context_add_command_line_option. | |
1005 | ||
a6314e15 DM |
1006 | 2015-06-30 David Malcolm <dmalcolm@redhat.com> |
1007 | ||
1008 | * jit-recording.c | |
1009 | (gcc::jit::recording::context::dump_reproducer_to_file): | |
1010 | Add pragma to generated reproducers to disable -Wunused-variable. | |
1011 | Fix handling of NULL string options. | |
1012 | ||
adb6d84b DM |
1013 | 2015-06-30 David Malcolm <dmalcolm@redhat.com> |
1014 | ||
1015 | * docs/cp/topics/expressions.rst: Remove stray semicolon. | |
1016 | * docs/cp/topics/functions.rst: Remove stray backslash. | |
1017 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1018 | ||
f0889939 AM |
1019 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
1020 | ||
1021 | * dummy-frontend.c: Remove ipa-ref.h and plugin-api.h from include list. | |
1022 | * jit-playback.c: Likewise. | |
1023 | ||
9cad7a76 AM |
1024 | 2015-06-25 Andrew Macleod <amacleod@redhat.com> |
1025 | ||
1026 | * jit-common.h: Don't include alias.h. | |
1027 | ||
41571b55 DM |
1028 | 2015-06-17 David Malcolm <dmalcolm@redhat.com> |
1029 | ||
1030 | * libgccjit.c (gcc_jit_lvalue_access_field): Verify that the field | |
1031 | is for the correct struct. | |
1032 | (gcc_jit_rvalue_access_field): Likewise. | |
1033 | ||
abb226c9 AM |
1034 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
1035 | ||
1036 | * dummy-frontend.c: Do not include input.h, line-map.h or is-a.h. | |
1037 | * jit-common.h: Likewise. | |
1038 | * jit-playback.c: Likewise. | |
1039 | ||
bd93aa1a DM |
1040 | 2015-06-16 David Malcolm <dmalcolm@redhat.com> |
1041 | ||
1042 | PR jit/66539 | |
1043 | * jit-recording.c: Within namespace gcc::jit::recording:: | |
1044 | (rvalue::get_debug_string_parens): New function. | |
1045 | (binary_op::make_debug_string): Update to mimic C precedence | |
1046 | rules. | |
1047 | (binary_op_precedence): New array. | |
1048 | (binary_op::get_precedence): New function. | |
1049 | (comparison::make_debug_string): Update to mimic C precedence | |
1050 | rules. | |
1051 | (comparison_precedence): New array. | |
1052 | (comparison::get_precedence): New function. | |
1053 | (cast::make_debug_string): Update to mimic C precedence rules. | |
1054 | (call::make_debug_string): Likewise. | |
1055 | (call_through_ptr::make_debug_string): Likewise. | |
1056 | (array_access::make_debug_string): Likewise. | |
1057 | (access_field_of_lvalue::make_debug_string): Likewise. | |
1058 | (access_field_rvalue::make_debug_string): Likewise. | |
1059 | (dereference_field_rvalue::make_debug_string): Likewise. | |
1060 | (dereference_rvalue::make_debug_string): Likewise. | |
1061 | (get_address_of_lvalue::make_debug_string): Likewise. | |
1062 | * jit-recording.h: Within namespace gcc::jit::recording:: | |
1063 | (precedence): New enum. | |
1064 | (rvalue::rvalue): Initialize field "m_parenthesized_string". | |
1065 | (rvalue::get_debug_string_parens): New method. | |
1066 | (rvalue::get_precedence): New pure virtual function. | |
1067 | (rvalue::m_parenthesized_string): New field. | |
1068 | (param::get_precedence): New function. | |
1069 | (global::get_precedence): New function. | |
1070 | (memento_of_new_rvalue_from_const::get_precedence): New function. | |
1071 | (memento_of_new_string_literal::get_precedence): New function. | |
1072 | (unary_op::get_precedence): New function. | |
1073 | (binary_op::get_precedence): New function. | |
1074 | (comparison::get_precedence): New function. | |
1075 | (cast::get_precedence): New function. | |
1076 | (call::get_precedence): New function. | |
1077 | (call_through_ptr::get_precedence): New function. | |
1078 | (array_access::get_precedence): New function. | |
1079 | (access_field_of_lvalue::get_precedence): New function. | |
1080 | (access_field_rvalue::get_precedence): New function. | |
1081 | (dereference_field_rvalue::get_precedence): New function. | |
1082 | (dereference_rvalue::get_precedence): New function. | |
1083 | (get_address_of_lvalue::get_precedence): New function. | |
1084 | (local::get_precedence): New function. | |
1085 | ||
83c1b80e MK |
1086 | 2015-06-09 Matthias Klose <doko@ubuntu.com> |
1087 | ||
1088 | * Make-lang.in (jit.install-common): Install headers using INSTALL_DATA. | |
1089 | ||
13fdf2e2 AM |
1090 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
1091 | ||
1092 | * dummy-frontend.c : Adjust include files. | |
1093 | * jit-common.h : Likewise. | |
1094 | * jit-playback.c : Likewise. | |
1095 | ||
e4753451 DM |
1096 | 2015-06-05 David Malcolm <dmalcolm@redhat.com> |
1097 | ||
1098 | * dummy-frontend.c | |
1099 | (jit_langhook_post_compilation_parsing_cleanups): Remove. | |
1100 | (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): Remove | |
1101 | * jit-playback.c (gcc::jit::playback::context::new_global): Add | |
1102 | call to varpool_node::finalize_decl. | |
1103 | (gcc::jit::playback::context::finalize_global_decls): Remove. | |
1104 | * jit-playback.h | |
1105 | (gcc::jit::playback::context::finalize_global_decls): Remove. | |
1106 | ||
e7547bc6 DM |
1107 | 2015-06-05 David Malcolm <dmalcolm@redhat.com> |
1108 | ||
1109 | * dummy-frontend.c (jit_langhook_write_globals): Rename to... | |
1110 | (jit_langhook_post_compilation_parsing_cleanups): ...this, and | |
1111 | eliminate calls to finalize_compilation_unit and | |
1112 | write_global_decls_2. | |
1113 | (LANG_HOOKS_WRITE_GLOBALS): Rename to... | |
1114 | (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): ...this and | |
1115 | redirect from jit_langhook_write_globals to | |
1116 | jit_langhook_post_compilation_parsing_cleanups. | |
1117 | * jit-playback.c | |
1118 | (gcc::jit::playback::context::write_global_decls_1): Rename to... | |
1119 | (gcc::jit::playback::context::finalize_global_decls): ...this. | |
1120 | (gcc::jit::playback::context::write_global_decls_1): Delete. | |
1121 | * jit-playback.h | |
1122 | (gcc::jit::playback::context::write_global_decls_1): Rename to... | |
1123 | (gcc::jit::playback::context::finalize_global_decls): ...this. | |
1124 | (gcc::jit::playback::context::write_global_decls_1): Delete. | |
1125 | ||
ecb9f223 AM |
1126 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
1127 | ||
1128 | * dummy-frontend.c: Adjust includes for restructured coretypes.h. | |
1129 | * jit-common.h: Likewise. | |
1130 | * jit-playback.c: Likewise. | |
1131 | ||
2637afb7 DM |
1132 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
1133 | ||
1134 | * jit-builtins.c: Include vec.h before target.h. | |
1135 | ||
46bf0b0a JW |
1136 | 2015-04-27 Jim Wilson <jim.wilson@linaro.org> |
1137 | ||
1138 | * Make-lang.in (jit.mostlyclean): Remove shared libraries and object | |
1139 | files. | |
1140 | ||
51c5c6b5 DM |
1141 | 2015-04-09 David Malcolm <dmalcolm@redhat.com> |
1142 | ||
1143 | PR jit/65691 | |
1144 | * docs/cp/topics/expressions.rst (Simple expressions): Fix copy | |
1145 | and paste error in description of gccjit::context::one. | |
1146 | * docs/topics/expressions.rst (Simple expressions): Likewise in | |
1147 | description of gcc_jit_context_one. | |
1148 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1149 | ||
f40fd895 UB |
1150 | 2015-03-13 Uros Bizjak <ubizjak@gmail.com> |
1151 | ||
1152 | * jit-recording.c (dump::write): Also check vasprintf return value. | |
1153 | (recording::context::add_error_va): Ditto. | |
1154 | (recording::string::from_printf): Ditto. | |
1155 | ||
18eb0d13 DM |
1156 | 2015-03-13 David Malcolm <dmalcolm@redhat.com> |
1157 | ||
1158 | * docs/internals/index.rst (Packaging notes): New section. | |
1159 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1160 | ||
7ef96183 DM |
1161 | 2015-03-05 David Malcolm <dmalcolm@redhat.com> |
1162 | ||
1163 | * docs/cp/intro/tutorial03.rst: Add missing arguments to | |
1164 | gccjit::block::end_with_conditional call. Add on_true/on_false | |
1165 | comments. Tweak the wording. | |
1166 | * docs/intro/tutorial03.rst: Add missing arguments to | |
1167 | gcc_jit_block_end_with_conditional call. Add some clarifying | |
1168 | comments. | |
1169 | * docs/topics/compilation.rst: Tweak the wording to avoid an | |
1170 | ambiguous use of "this". | |
1171 | * docs/topics/contexts.rst: Fix a typo. | |
1172 | * docs/topics/expressions.rst (GCC_JIT_BINARY_OP_MINUS): Remove | |
1173 | a stray backtick. | |
1174 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1175 | ||
56a9f6bc TS |
1176 | 2015-02-24 Thomas Schwinge <thomas@codesourcery.com> |
1177 | ||
1178 | PR libgomp/64625 | |
1179 | * jit-builtins.c (DEF_FUNCTION_TYPE_VAR_8) | |
1180 | (DEF_FUNCTION_TYPE_VAR_12): Remove macros. | |
1181 | (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros. | |
1182 | * jit-builtins.h (DEF_FUNCTION_TYPE_VAR_8) | |
1183 | (DEF_FUNCTION_TYPE_VAR_12): Remove macros. | |
1184 | (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros. | |
1185 | ||
a4be4e91 DM |
1186 | 2015-02-04 David Malcolm <dmalcolm@redhat.com> |
1187 | ||
1188 | PR jit/64257 | |
1189 | * docs/conf.py (html_theme): Change from 'pyramid' | |
1190 | to 'sphinxdoc'. | |
1191 | ||
f435bff3 DM |
1192 | 2015-02-04 David Malcolm <dmalcolm@redhat.com> |
1193 | ||
1194 | * docs/topics/contexts.rst (gcc_jit_context_acquire): Fix | |
1195 | typo. | |
1196 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1197 | ||
0ed4f017 DM |
1198 | 2015-02-03 David Malcolm <dmalcolm@redhat.com> |
1199 | ||
1200 | * jit-logging.h (gcc::jit::log_user::log): Make const. | |
1201 | * jit-recording.c (gcc::jit::recording::context::set_str_option): | |
1202 | Log the new value of the option. | |
1203 | (gcc::jit::recording::context::set_int_option): Likewise. | |
1204 | (gcc::jit::recording::context::set_bool_option): Likewise. | |
1205 | (gcc::jit::recording::context::compile): Log the value of all | |
1206 | options. | |
1207 | (gcc::jit::recording::context::compile_to_file): Likewise. | |
1208 | (gcc::jit::recording::context::log_all_options): New function. | |
1209 | (gcc::jit::recording::context::log_str_option): New function. | |
1210 | (gcc::jit::recording::context::log_int_option): New function. | |
1211 | (gcc::jit::recording::context::log_bool_option): New function. | |
1212 | * jit-recording.h (gcc::jit::recording::context::log_all_options): | |
1213 | New function. | |
1214 | (gcc::jit::recording::context::log_str_option): New function. | |
1215 | (gcc::jit::recording::context::log_int_option): New function. | |
1216 | (gcc::jit::recording::context::log_bool_option): New function. | |
1217 | * docs/internals/test-hello-world.exe.log.txt: Update for above | |
1218 | changes. | |
1219 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1220 | ||
2cb844ce DM |
1221 | 2015-02-03 David Malcolm <dmalcolm@redhat.com> |
1222 | ||
1223 | PR jit/64810 | |
1224 | * Make-lang.in (jit_OBJS): Add jit/jit-spec.o and gcc.o. | |
1225 | (LIBGCCJIT_FILENAME): Add EXTRA_GCC_OBJS. | |
1226 | * jit-playback.c: Include gcc.h. | |
1227 | (gcc::jit::playback::context::compile): Move mutex acquisition | |
1228 | to before the call to make_fake_args. | |
1229 | (append_arg_from_driver): New function. | |
1230 | (gcc::jit::playback::context::make_fake_args): On the first call, | |
1231 | call into driver_get_configure_time_options to get configure-time | |
1232 | default options and cache them. Add them to the args for | |
1233 | toplev::main. | |
1234 | * jit-spec.c: New source file. | |
1235 | * docs/internals/test-hello-world.exe.log.txt: Update to reflect | |
1236 | above changes. | |
1237 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1238 | ||
16a71c50 DM |
1239 | 2015-02-02 David Malcolm <dmalcolm@redhat.com> |
1240 | ||
1241 | PR jit/64810 | |
1242 | * dummy-frontend.c (jit_langhook_type_for_mode): Support | |
1243 | TYPE_MODE (long_long_integer_type_node). | |
1244 | ||
53c04ec9 DM |
1245 | 2015-01-27 David Malcolm <dmalcolm@redhat.com> |
1246 | ||
1247 | * docs/internals/test-hello-world.exe.log.txt: Add example version | |
1248 | lines. | |
1249 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1250 | * jit-common.h (gcc::jit::dump::get_file): New accessor. | |
1251 | * jit-logging.c: Include toplev.h. | |
1252 | (gcc::jit::logger::logger): Log the GCC version. | |
1253 | * jit-recording.c: Include toplev.h. | |
1254 | (gcc:jit::recording::context::dump_reproducer_to_file): Log the | |
1255 | GCC version. | |
1256 | ||
dc44ee3a DM |
1257 | 2015-01-26 David Malcolm <dmalcolm@redhat.com> |
1258 | ||
1259 | * docs/topics/compilation.rst (gcc_jit_result_get_code): Fix typo. | |
1260 | * docs/topics/contexts.rst (gcc_jit_context_get_last_error): The | |
1261 | error buffer is only valid until the next call to the context. | |
1262 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1263 | * libgccjit.h (gcc_jit_context_get_first_error): Reword the | |
1264 | comment to omit mention of compiling. | |
1265 | (gcc_jit_context_get_last_error): The error buffer is only valid | |
1266 | until the next call to the context. | |
1267 | ||
3349605d DM |
1268 | 2015-01-26 David Malcolm <dmalcolm@redhat.com> |
1269 | ||
1270 | PR jit/64708 | |
1271 | * config-lang.in (compilers): Drop "libgccjit.so". | |
1272 | ||
6fc2d0f3 DM |
1273 | 2015-01-23 David Malcolm <dmalcolm@redhat.com> |
1274 | ||
1275 | PR jit/64721 | |
1276 | * jit-playback.c (gcc::jit::playback::context::compile): Construct | |
1277 | toplev instances with init_signals=false. | |
1278 | ||
fdce7209 DM |
1279 | 2015-01-19 David Malcolm <dmalcolm@redhat.com> |
1280 | ||
1281 | * docs/cp/topics/results.rst: Rename to... | |
1282 | * docs/cp/topics/compilation.rst: ...this, and add section on | |
1283 | ahead-of-time compilation. | |
1284 | * docs/cp/topics/index.rst: Update for renaming of results.rst | |
1285 | to compilation.rst. | |
1286 | * docs/examples/emit-alphabet.bf: New file, a sample "brainf" | |
1287 | script. | |
1288 | * docs/examples/tut05-bf.c: New file, implementing a compiler | |
1289 | for "brainf". | |
1290 | * docs/internals/test-hello-world.exe.log.txt: Update to reflect | |
1291 | changes to logger output. | |
1292 | * docs/intro/index.rst: Add tutorial05.rst | |
1293 | * docs/intro/tutorial05.rst: New file. | |
1294 | * docs/topics/results.rst: Rename to... | |
1295 | * docs/topics/compilation.rst: ...this, and add section on | |
1296 | ahead-of-time compilation. | |
1297 | * docs/topics/index.rst: Update for renaming of results.rst to | |
1298 | compilation.rst. | |
1299 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1300 | * jit-playback.c (gcc::jit::playback::context::compile): Convert | |
1301 | return type from result * to void. Move the code to convert to | |
1302 | dso and dlopen the result to a new pure virtual "postprocess" | |
1303 | method. | |
1304 | (gcc::jit::playback::compile_to_memory::compile_to_memory): New | |
1305 | function. | |
1306 | (gcc::jit::playback::compile_to_memory::postprocess): New | |
1307 | function, based on playback::context::compile. | |
1308 | (gcc::jit::playback::compile_to_file::compile_to_file): New | |
1309 | function. | |
1310 | (gcc::jit::playback::compile_to_file::postprocess): New function. | |
1311 | (gcc::jit::playback::compile_to_file::copy_file): New function. | |
1312 | (gcc::jit::playback::context::convert_to_dso): Move internals | |
1313 | to... | |
1314 | (gcc::jit::playback::context::invoke_driver): New method. Add | |
1315 | "-shared" and "-c" options to driver's argv as needed. | |
1316 | * jit-playback.h: Include "timevar.h". | |
1317 | (gcc::jit::playback::context::compile): Convert return type from | |
1318 | result * to void. | |
1319 | (gcc::jit::playback::context::postprocess): New pure virtual | |
1320 | function, making this an abstract base class. | |
1321 | (gcc::jit::playback::context::get_tempdir): New accessor. | |
1322 | (gcc::jit::playback::context::invoke_driver): New function. | |
1323 | (class gcc::jit::playback::compile_to_memory): New subclass of | |
1324 | playback::context. | |
1325 | (class gcc::jit::playback::compile_to_file): Likewise. | |
1326 | * jit-recording.c (gcc::jit::recording::context::compile): Use a | |
1327 | playback::compile_to_memory, and extract its result. | |
1328 | (gcc::jit::recording::context::compile_to_file): New function. | |
1329 | * jit-recording.h (gcc::jit::recording::context::compile_to_file): | |
1330 | New function. | |
1331 | * libgccjit++.h (gccjit::context::compile_to_file): New method. | |
1332 | * libgccjit.c (gcc_jit_context_compile): Update log message to | |
1333 | clarify that this is an in-memory compile. | |
1334 | (gcc_jit_context_compile_to_file): New function. | |
1335 | * libgccjit.h (gcc_jit_context): Clarify that you can compile | |
1336 | a context more than once, and that you can compile to a file | |
1337 | as well as to memory. | |
1338 | (gcc_jit_result): Clarify that this is the result of an | |
1339 | in-memory compilation. | |
1340 | (gcc_jit_context_compile): Clarify that you can compile, and that | |
1341 | this is an in-memory compilation. | |
1342 | (enum gcc_jit_output_kind): New enum. | |
1343 | (gcc_jit_context_compile_to_file): New function. | |
1344 | (gcc_jit_context_enable_dump): Clarify comment to cover both forms | |
1345 | of compilation. | |
1346 | * libgccjit.map (gcc_jit_context_compile_to_file): New API | |
1347 | entrypoint. | |
1348 | * notes.txt: Update to show the playback::context::postprocess | |
1349 | virtual function. | |
1350 | ||
450e225b DM |
1351 | 2015-01-19 David Malcolm <dmalcolm@redhat.com> |
1352 | ||
1353 | * jit-recording.c | |
1354 | (gcc::jit::recording::memento_of_new_string_literal::make_debug_string): | |
1355 | Add missing format string. | |
1356 | ||
499de348 DM |
1357 | 2015-01-16 David Malcolm <dmalcolm@redhat.com> |
1358 | ||
1359 | * Make-lang.in (lang_checks_parallelized): Add "check-jit". | |
1360 | (check_jit_parallelize): Set this to an arbitrary value (10). | |
1361 | ||
e989e68d JJ |
1362 | 2015-01-16 Jakub Jelinek <jakub@redhat.com> |
1363 | ||
1364 | * jit-builtins.h (DEF_FUNCTION_TYPE_VAR_5): Fix spelling of | |
1365 | last argument. | |
1366 | (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): Define and | |
1367 | undef afterwards. | |
1368 | * jit-builtins.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
1369 | Likewise. | |
1370 | ||
179ed8f5 RS |
1371 | 2015-01-15 Richard Sandiford <richard.sandiford@arm.com> |
1372 | ||
1373 | Update copyright years in docs/. | |
1374 | ||
96a87981 DM |
1375 | 2015-01-15 David Malcolm <dmalcolm@redhat.com> |
1376 | ||
1377 | * libgccjit.c (gcc_jit_block_add_assignment_op): Check that the | |
1378 | lvalue and the rvalue are of compatible type. | |
1379 | ||
86d0ac88 DM |
1380 | 2015-01-13 David Malcolm <dmalcolm@redhat.com> |
1381 | ||
1382 | * docs/cp/topics/contexts.rst (Debugging): Add | |
1383 | gccjit::context::dump_reproducer_to_file. | |
1384 | * docs/internals/index.rst (Design notes): New section, | |
1385 | discussing input validation and | |
1386 | gcc_jit_context_dump_reproducer_to_file. | |
1387 | * docs/topics/contexts.rst (Debugging): Add | |
1388 | gcc_jit_context_dump_reproducer_to_file. | |
1389 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1390 | * jit-common.h (gcc::jit::dump::get_context): New accessor. | |
1391 | * jit-recording.c: Include "hash-map.h". | |
1392 | Within namespace ::gcc::jit... | |
1393 | (dump::write): Flush each line. | |
1394 | (dump::make_location): Pass false for new param "created_by_user". | |
1395 | (class allocator): New class. | |
1396 | (allocator::~allocator): New function. | |
1397 | (allocator::xstrdup_printf): New function. | |
1398 | (allocator::xstrdup_printf_va): New function. | |
1399 | (class reproducer): New subclass of dump. | |
1400 | (reproducer::reproducer): New function. | |
1401 | (reproducer::write_params): New function. | |
1402 | (reproducer::write_args): New function. | |
1403 | (reproducer::make_identifier): New function. | |
1404 | (reproducer::make_tmp_identifier): New function. | |
1405 | (reproducer::get_identifier): New pair of functions. | |
1406 | (reproducer::get_identifier_as_rvalue): New function. | |
1407 | (reproducer::get_identifier_as_lvalue): New function. | |
1408 | (reproducer::get_identifier_as_type): New function. | |
1409 | (reproducer::xstrdup_printf): New function. | |
1410 | (recording::context::context): Initialize m_toplevel_ctxt. | |
1411 | (recording::context::new_location): Add param created_by_user. | |
1412 | (str_option_reproducer_strings): New table of strings. | |
1413 | (int_option_reproducer_strings): Likewise. | |
1414 | (bool_option_reproducer_strings): Likewise. | |
1415 | (get_type_enum_strings): Likewise. | |
1416 | (names_of_function_kinds): Likewise. | |
1417 | (global_kind_reproducer_strings): Likewise. | |
1418 | (unary_op_reproducer_strings): Likewise. | |
1419 | (binary_op_reproducer_strings): Likewise. | |
1420 | (comparison_reproducer_strings): Likewise. | |
1421 | Within namespace ::gcc::jit::recording::... | |
1422 | (context::dump_reproducer_to_file): New function. | |
1423 | (string::write_reproducer): Likewise. | |
1424 | (location::write_reproducer): Likewise. | |
1425 | (type::access_as_type): Likewise. | |
1426 | (memento_of_get_type::write_reproducer): Likewise. | |
1427 | (memento_of_get_pointer::write_reproducer): Likewise. | |
1428 | (memento_of_get_const::write_reproducer): Likewise. | |
1429 | (memento_of_get_volatile::write_reproducer): Likewise. | |
1430 | (array_type::write_reproducer): Likewise. | |
1431 | (function_type::write_reproducer): Likewise. | |
1432 | (function_type::write_deferred_reproducer): Likewise. | |
1433 | (field::write_reproducer): Likewise. | |
1434 | (struct_::access_as_type): Likewise. | |
1435 | (struct_::write_reproducer): Likewise. | |
1436 | (union_::write_reproducer): Likewise. | |
1437 | (fields::write_reproducer): Likewise. | |
1438 | (rvalue::access_as_rvalue): Likewise. | |
1439 | (lvalue::access_as_rvalue): Likewise. | |
1440 | (lvalue::access_as_lvalue): Likewise. | |
1441 | (param::access_as_rvalue): Likewise. | |
1442 | (param::access_as_lvalue): Likewise. | |
1443 | (param::write_reproducer): Likewise. | |
1444 | (function::write_reproducer): Likewise. | |
1445 | (block::write_reproducer): Likewise. | |
1446 | (global::write_reproducer): Likewise. | |
1447 | (memento_of_new_rvalue_from_const <int>::write_reproducer): | |
1448 | Likewise. | |
1449 | (memento_of_new_rvalue_from_const <long>::write_reproducer): | |
1450 | Likewise. | |
1451 | (memento_of_new_rvalue_from_const <double>::write_reproducer): | |
1452 | Likewise. | |
1453 | (memento_of_new_rvalue_from_const <void *>::write_reproducer): | |
1454 | Likewise. | |
1455 | (memento_of_new_string_literal::write_reproducer): Likewise. | |
1456 | (unary_op::write_reproducer): Likewise. | |
1457 | (binary_op::write_reproducer): Likewise. | |
1458 | (comparison::write_reproducer): Likewise. | |
1459 | (cast::write_reproducer): Likewise. | |
1460 | (call::write_reproducer): Likewise. | |
1461 | (call_through_ptr::write_reproducer): Likewise. | |
1462 | (array_access::write_reproducer): Likewise. | |
1463 | (access_field_of_lvalue::write_reproducer): Likewise. | |
1464 | (access_field_rvalue::write_reproducer): Likewise. | |
1465 | (dereference_field_rvalue::write_reproducer): Likewise. | |
1466 | (dereference_rvalue::write_reproducer): Likewise. | |
1467 | (get_address_of_lvalue::write_reproducer): Likewise. | |
1468 | (local::write_reproducer): Likewise. | |
1469 | (eval::write_reproducer): Likewise. | |
1470 | (assignment::write_reproducer): Likewise. | |
1471 | (assignment_op::write_reproducer): Likewise. | |
1472 | (comment::write_reproducer): Likewise. | |
1473 | (conditional::write_reproducer): Likewise. | |
1474 | (jump::write_reproducer): Likewise. | |
1475 | (return_::write_reproducer): Likewise. | |
1476 | * jit-recording.h (gcc::jit::reproducer): New forward declararion. | |
1477 | Within namespace ::gcc::jit::recording::... | |
1478 | (context::new_location): Add "created_by_user" param. | |
1479 | (context::dump_reproducer_to_file): New method. | |
1480 | (context::m_toplevel_ctxt): New field. | |
1481 | (memento::write_reproducer): New pure virtual function. | |
1482 | (memento::dyn_cast_location): New virtual function. | |
1483 | (string::write_reproducer): | |
1484 | (location::location): Add "created_by_user" param. | |
1485 | (location::dyn_cast_location): New function. | |
1486 | (location::created_by_user): New accessor. | |
1487 | (location::write_reproducer): New function. | |
1488 | (location::m_created_by_user): New field. | |
1489 | (type::access_as_type): New virtual function. | |
1490 | (location::write_reproducer): Likewise. | |
1491 | (type::access_as_type): Likewise. | |
1492 | (memento_of_get_type::write_reproducer): Likewise. | |
1493 | (memento_of_get_pointer::write_reproducer): Likewise. | |
1494 | (memento_of_get_const::write_reproducer): Likewise. | |
1495 | (memento_of_get_volatile::write_reproducer): Likewise. | |
1496 | (array_type::write_reproducer): Likewise. | |
1497 | (function_type::write_reproducer): Likewise. | |
1498 | (function_type::write_deferred_reproducer): Likewise. | |
1499 | (field::write_reproducer): Likewise. | |
1500 | (struct_::access_as_type): Likewise. | |
1501 | (struct_::write_reproducer): Likewise. | |
1502 | (union_::write_reproducer): Likewise. | |
1503 | (union_::m_fields): Remove stray unused field. | |
1504 | (fields::length): New accessor. | |
1505 | (fields::get_field): New accessor. | |
1506 | (fields::write_reproducer): New function. | |
1507 | (rvalue::access_as_rvalue): Likewise. | |
1508 | (lvalue::access_as_rvalue): Likewise. | |
1509 | (lvalue::access_as_lvalue): Likewise. | |
1510 | (param::access_as_rvalue): Likewise. | |
1511 | (param::access_as_lvalue): Likewise. | |
1512 | (param::write_reproducer): Likewise. | |
1513 | (function::write_reproducer): Likewise. | |
1514 | (block::write_reproducer): Likewise. | |
1515 | (global::write_reproducer): Likewise. | |
1516 | (memento_of_new_rvalue_from_const <HOST_TYPE>::write_reproducer): | |
1517 | Likewise. | |
1518 | (memento_of_new_string_literal::write_reproducer): Likewise. | |
1519 | (unary_op::write_reproducer): Likewise. | |
1520 | (binary_op::write_reproducer): Likewise. | |
1521 | (comparison::write_reproducer): Likewise. | |
1522 | (cast::write_reproducer): Likewise. | |
1523 | (call::write_reproducer): Likewise. | |
1524 | (call_through_ptr::write_reproducer): Likewise. | |
1525 | (array_access::write_reproducer): Likewise. | |
1526 | (access_field_of_lvalue::write_reproducer): Likewise. | |
1527 | (access_field_rvalue::write_reproducer): Likewise. | |
1528 | (dereference_field_rvalue::write_reproducer): Likewise. | |
1529 | (dereference_rvalue::write_reproducer): Likewise. | |
1530 | (get_address_of_lvalue::write_reproducer): Likewise. | |
1531 | (local::write_reproducer): Likewise. | |
1532 | (eval::write_reproducer): Likewise. | |
1533 | (assignment::write_reproducer): Likewise. | |
1534 | (assignment_op::write_reproducer): Likewise. | |
1535 | (comment::write_reproducer): Likewise. | |
1536 | (conditional::write_reproducer): Likewise. | |
1537 | (jump::write_reproducer): Likewise. | |
1538 | (return_::write_reproducer): Likewise. | |
1539 | * libgccjit++.h (gccjit::context::dump_reproducer_to_file): New. | |
1540 | * libgccjit.c (gcc_jit_context_new_location): Pass "true" as | |
1541 | param "created_by_user". | |
1542 | (gcc_jit_context_dump_reproducer_to_file): New API entrypoint. | |
1543 | * libgccjit.h (gcc_jit_context_dump_reproducer_to_file): New API | |
1544 | entrypoint. | |
1545 | * libgccjit.map (gcc_jit_context_dump_reproducer_to_file): New API | |
1546 | entrypoint. | |
1547 | ||
f6f2b019 DM |
1548 | 2015-01-12 David Malcolm <dmalcolm@redhat.com> |
1549 | ||
1550 | * jit-recording.c (class gcc::jit::rvalue_usage_validator): New. | |
1551 | (gcc::jit::rvalue_usage_validator::rvalue_usage_validator): New | |
1552 | ctor. | |
1553 | (gcc::jit::rvalue_usage_validator::visit): New function. | |
1554 | (gcc::jit::recording::rvalue::verify_valid_within_stmt): New | |
1555 | function. | |
1556 | (gcc::jit::recording::rvalue::set_scope): New function. | |
1557 | (gcc::jit::recording::function::function): Call set_scope on each | |
1558 | param, issuing errors for any params that already have a function. | |
1559 | (gcc::jit::recording::block::add_eval): Return the new statement; | |
1560 | update the comment given that some error-checking now happens after | |
1561 | this returns. | |
1562 | (gcc::jit::recording::block::add_assignment): Likewise. | |
1563 | (gcc::jit::recording::block::add_assignment_op): Likewise. | |
1564 | (gcc::jit::recording::block::add_comment): Likewise. | |
1565 | (gcc::jit::recording::block::end_with_conditional): Likewise. | |
1566 | (gcc::jit::recording::block::end_with_jump): Likewise. | |
1567 | (gcc::jit::recording::block::end_with_return): Likewise. | |
1568 | (gcc::jit::recording::block::validate): Add a comment. | |
1569 | (gcc::jit::recording::unary_op::visit_children): New function. | |
1570 | (gcc::jit::recording::binary_op::visit_children): New function. | |
1571 | (gcc::jit::recording::comparison::visit_children): New function. | |
1572 | (gcc::jit::recording::cast::visit_children): New function. | |
1573 | (gcc::jit::recording::call::visit_children): New function. | |
1574 | (gcc::jit::recording::call_through_ptr::visit_children): New function. | |
1575 | (gcc::jit::recording::array_access::visit_children): New function. | |
1576 | (gcc::jit::recording::access_field_of_lvalue::visit_children): New | |
1577 | function. | |
1578 | (gcc::jit::recording::access_field_rvalue::visit_children): New | |
1579 | function. | |
1580 | (gcc::jit::recording::dereference_field_rvalue::visit_children): | |
1581 | New function. | |
1582 | (gcc::jit::recording::dereference_rvalue::visit_children): New | |
1583 | function. | |
1584 | (gcc::jit::recording::get_address_of_lvalue::visit_children): New | |
1585 | function. | |
1586 | * jit-recording.h: Within namespace gcc::jit::recording... | |
1587 | (class rvalue_visitor): New. | |
1588 | (rvalue::rvalue): Initialize m_scope. | |
1589 | (rvalue::get_loc): New accessor. | |
1590 | (rvalue::verify_valid_within_stmt): New function. | |
1591 | (rvalue::visit_children): New pure virtual function. | |
1592 | (rvalue::set_scope): New function. | |
1593 | (rvalue::get_scope): New function. | |
1594 | (rvalue::dyn_cast_param): New function. | |
1595 | (rvalue::m_scope): New field. | |
1596 | (param::visit_children): New empty function. | |
1597 | (param::dyn_cast_param): New function. | |
1598 | (function::get_loc): New function. | |
1599 | (block::add_eval): Return the new statement. | |
1600 | (block::add_assignment): Likewise. | |
1601 | (block::add_assignment_op): Likewise. | |
1602 | (block::add_comment): Likewise. | |
1603 | (block::end_with_conditional): Likewise. | |
1604 | (block::end_with_jump): Likewise. | |
1605 | (block::end_with_return): Likewise. | |
1606 | (global::visit_children): New function. | |
1607 | (memento_of_new_rvalue_from_const<HOST_TYPE>::visit_children): | |
1608 | New function. | |
1609 | (memento_of_new_string_literal::visit_children): New function. | |
1610 | (unary_op::visit_children): New function. | |
1611 | (binary_op::visit_children): New function. | |
1612 | (comparison::visit_children): New function. | |
1613 | (cast::visit_children): New function. | |
1614 | (call::visit_children): New function. | |
1615 | (call_through_ptr::visit_children): New function. | |
1616 | (array_access::visit_children): New function. | |
1617 | (access_field_of_lvalue::visit_children): New function. | |
1618 | (access_field_rvalue::visit_children): New function. | |
1619 | (dereference_field_rvalue::visit_children): New function. | |
1620 | (dereference_rvalue::visit_children): New function. | |
1621 | (get_address_of_lvalue::visit_children): New function. | |
1622 | (local::local): Call set_scope. | |
1623 | (local::visit_children): New function. | |
1624 | (statement::get_block): Make public. | |
1625 | * libgccjit.c (RETURN_VAL_IF_FAIL_PRINTF5): New macro. | |
1626 | (RETURN_NULL_IF_FAIL_PRINTF5): New macro. | |
1627 | (gcc_jit_context_new_function): Verify that each param has | |
1628 | not yet been used for creating another function. | |
1629 | (gcc_jit_block_add_eval): After creating the stmt, verify | |
1630 | that the rvalue expression tree is valid to use within it. | |
1631 | (gcc_jit_block_add_assignment): Likewise for the lvalue and | |
1632 | rvalue expression trees. | |
1633 | (gcc_jit_block_add_assignment_op): Likewise. | |
1634 | (gcc_jit_block_end_with_conditional): Likewise for the boolval | |
1635 | expression tree. | |
1636 | (gcc_jit_block_end_with_return): Likewise for the rvalue | |
1637 | expression tree. | |
1638 | (gcc_jit_block_end_with_void_return): Remove return of "void", | |
1639 | now that block::end_with_return is now non-void. | |
1640 | ||
1c35cc2c DM |
1641 | 2015-01-12 David Malcolm <dmalcolm@redhat.com> |
1642 | ||
1643 | * jit-playback.c (gcc::jit::playback::context::read_dump_file): | |
1644 | Add missing fclose on error-handling path. | |
1645 | ||
791cfef8 DM |
1646 | 2015-01-12 David Malcolm <dmalcolm@redhat.com> |
1647 | ||
1648 | * docs/cp/topics/expressions.rst (Global variables): Add | |
1649 | enum gcc_jit_global_kind param to gccjit::context::new_global. | |
1650 | * docs/topics/expressions.rst (Global variables): Likewise. | |
1651 | Document the new enum. | |
1652 | * docs/topics/results.rst (Compilation results): Document | |
1653 | globals-handling. | |
1654 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1655 | * dummy-frontend.c (jit_langhook_write_globals): Call into the | |
1656 | playback context's write_global_decls_1 and write_global_decls_2 | |
1657 | before and after calling symtab->finalize_compilation_unit (). | |
1658 | * jit-playback.c: Include "debug.h". | |
1659 | (gcc::jit::playback::context::new_global): Add "kind" param and | |
1660 | use it to set TREE_PUBLIC, TREE_STATIC and DECL_EXTERNAL on the | |
1661 | underlying VAR_DECL. Call varpool_node::get_create on the | |
1662 | VAR_DECL, and add it to m_globals. | |
1663 | (gcc::jit::playback::context::write_global_decls_1): New function. | |
1664 | (gcc::jit::playback::context::write_global_decls_2): New function. | |
1665 | * jit-playback.h (gcc::jit::playback::context::context): Call | |
1666 | create on m_globals. | |
1667 | (gcc::jit::playback::context::new_global): Add "kind" param. | |
1668 | (gcc::jit::playback::context::write_global_decls_1): New function. | |
1669 | (gcc::jit::playback::context::write_global_decls_2): New function. | |
1670 | (gcc::jit::playback::context::m_globals): New field. | |
1671 | * jit-recording.c (gcc::jit::recording::context::context): | |
1672 | Initialize m_globals. | |
1673 | (gcc::jit::recording::context::new_global): Add param "kind". | |
1674 | Add the new global to m_globals. | |
1675 | (gcc::jit::recording::context::dump_to_file): Dump the globals. | |
1676 | (gcc::jit::recording::global::replay_into): Add field m_kind. | |
1677 | (gcc::jit::recording::global::write_to_dump): New override. | |
1678 | * jit-recording.h (gcc::jit::recording::context::new_global): Add | |
1679 | param "kind". | |
1680 | (gcc::jit::recording::context::m_globals): New field. | |
1681 | (gcc::jit::recording::global::global): Add param kind. | |
1682 | (gcc::jit::recording::global::write_to_dump): New override. | |
1683 | (gcc::jit::recording::global::m_kind): New field. | |
1684 | * jit-result.c (gcc::jit::result::get_global): New function. | |
1685 | * jit-result.h (gcc::jit::result::get_global): New function. | |
1686 | * libgccjit++.h (gccjit::context::new_global): Add "kind" param. | |
1687 | * libgccjit.c (gcc_jit_context_new_global): Likewise. | |
1688 | (gcc_jit_result_get_global): New API entrypoint. | |
1689 | * libgccjit.h (gcc_jit_result_get_global): New API entrypoint. | |
1690 | (enum gcc_jit_global_kind): New enum. | |
1691 | (gcc_jit_context_new_global): API change: add "kind" param. | |
1692 | * libgccjit.map (gcc_jit_result_get_global): New symbol. | |
1693 | ||
860e981c DM |
1694 | 2015-01-09 David Malcolm <dmalcolm@redhat.com> |
1695 | ||
1696 | * dummy-frontend.c: Include "fixed-value.h", "alias.h", "flags.h", | |
1697 | "symtab.h", "inchash.h". Move include of "hash-set.h" much | |
1698 | earlier. | |
1699 | * jit-builtins.c: Remove redundant includes of "opts.h" and | |
1700 | "tree.h". | |
1701 | * jit-common.h: Include "hash-set.h", "input.h", "vec.h", | |
1702 | "double-int.h", "alias.h", "flags.h", "symtab.h", "inchash.h". | |
1703 | * jit-playback.c: Include "hashtab.h", "machmode.h", "input.h", | |
1704 | "statistics.h", "vec.h", "double-int.h", "real.h", | |
1705 | "fixed-value.h", "alias.h", "flags.h", "symtab.h", "tree-core.h", | |
1706 | "inchash.h", "fold-const.h". Move include of "hash-set.h" to | |
1707 | earlier. | |
1708 | * jit-recording.c: Remove redundant includes of "opts.h" and | |
1709 | "tree.h". | |
1710 | ||
ccce3b2a DM |
1711 | 2015-01-09 David Malcolm <dmalcolm@redhat.com> |
1712 | ||
1713 | * docs/cp/topics/expressions.rst (Simple expressions): Use | |
1714 | ":c:type:" for C types. Document new overload of | |
1715 | gcc::jit::context::new_rvalue. | |
1716 | * docs/topics/expressions.rst (Simple expressions): Use | |
1717 | ":c:type:" for C types. Document new entrypoint | |
1718 | gcc_jit_context_new_rvalue_from_long. | |
1719 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1720 | * jit-playback.c: Within namespace gcc::jit::playback... | |
1721 | (context::new_rvalue_from_int): Eliminate in favor of... | |
1722 | (context::new_rvalue_from_const <int>): ...this. | |
1723 | (context::new_rvalue_from_double): Eliminate in favor of... | |
1724 | (context::new_rvalue_from_const <double>): ...this. | |
1725 | (context::new_rvalue_from_const <long>): New. | |
1726 | (context::new_rvalue_from_ptr): Eliminate in favor of... | |
1727 | (context::new_rvalue_from_const <void *>): ...this. | |
1728 | * jit-playback.h: Within namespace gcc::jit::playback... | |
1729 | (context::new_rvalue_from_int): Eliminate in favor of... | |
1730 | (context::new_rvalue_from_const <HOST_TYPE>): ...this. | |
1731 | (context::new_rvalue_from_double): Likewise. | |
1732 | (context::new_rvalue_from_ptr): Likewise. | |
1733 | * jit-recording.c: Within namespace gcc::jit::recording... | |
1734 | (context::new_rvalue_from_int): Eliminate. | |
1735 | (context::new_rvalue_from_double): Likewise. | |
1736 | (context::new_rvalue_from_ptr): Likewise. | |
1737 | (class memento_of_new_rvalue_from_const <int>): | |
1738 | Add explicit specialization. | |
1739 | (class memento_of_new_rvalue_from_const <long>): | |
1740 | Likewise. | |
1741 | (class memento_of_new_rvalue_from_const <double>): | |
1742 | Likewise. | |
1743 | (class memento_of_new_rvalue_from_const <void *>): | |
1744 | Likewise. | |
1745 | (memento_of_new_rvalue_from_int::replay_into): | |
1746 | Generalize into... | |
1747 | (memento_of_new_rvalue_from_const <HOST_TYPE>::replay_into): | |
1748 | ...this... | |
1749 | (memento_of_new_rvalue_from_double::replay_into): | |
1750 | ...allowing this... | |
1751 | (memento_of_new_rvalue_from_ptr::replay_into): | |
1752 | ...and this to be deleted. | |
1753 | (memento_of_new_rvalue_from_int::make_debug_string): | |
1754 | Convert to... | |
1755 | (memento_of_new_rvalue_from_const <int>::make_debug_string): | |
1756 | ...this. | |
1757 | (memento_of_new_rvalue_from_double::make_debug_string): | |
1758 | Convert to... | |
1759 | (memento_of_new_rvalue_from_const <double>::make_debug_string): | |
1760 | ...this. | |
1761 | (memento_of_new_rvalue_from_ptr::make_debug_string) | |
1762 | Convert to... | |
1763 | (memento_of_new_rvalue_from_const <void *>::make_debug_string): | |
1764 | ...this. | |
1765 | (memento_of_new_rvalue_from_const <long>::make_debug_string): | |
1766 | New function. | |
1767 | * jit-recording.h: Within namespace gcc::jit::recording... | |
1768 | (context::new_rvalue_from_int): Eliminate. | |
1769 | (context::new_rvalue_from_double): Likewise. | |
1770 | (context::new_rvalue_from_ptr): Likewise, all in favor of... | |
1771 | (context::new_rvalue_from_const <HOST_TYPE>): New family of | |
1772 | methods. | |
1773 | (class memento_of_new_rvalue_from_int): Eliminate. | |
1774 | (class memento_of_new_rvalue_from_double): Likewise. | |
1775 | (class memento_of_new_rvalue_from_ptr): Likewise. | |
1776 | (class memento_of_new_rvalue_from_const <HOST_TYPE>): New family | |
1777 | of rvalue subclasses. | |
1778 | * libgccjit++.h (gccjit::context::new_rvalue): New overload, for | |
1779 | "long". | |
1780 | * libgccjit.c (gcc_jit_context_new_rvalue_from_int): Update for | |
1781 | rewriting of recording::context::new_rvalue_from_int to | |
1782 | recording::context::new_rvalue_from_const <int>. | |
1783 | (gcc_jit_context_new_rvalue_from_long): New API entrypoint. | |
1784 | (gcc_jit_context_new_rvalue_from_double): Update for | |
1785 | rewriting of recording::context::new_rvalue_from_double to | |
1786 | recording::context::new_rvalue_from_const <double>. | |
1787 | (gcc_jit_context_new_rvalue_from_ptr): Update for | |
1788 | rewriting of recording::context::new_rvalue_from_ptr to | |
1789 | recording::context::new_rvalue_from_const <void *>. | |
1790 | * libgccjit.h (gcc_jit_context_new_rvalue_from_long): New API | |
1791 | entrypoint. | |
1792 | * libgccjit.map (gcc_jit_context_new_rvalue_from_long): Likewise. | |
1793 | ||
d2286af3 DM |
1794 | 2015-01-09 David Malcolm <dmalcolm@redhat.com> |
1795 | ||
1796 | PR jit/64206 | |
1797 | * docs/internals/test-hello-world.exe.log.txt: Update, the log now | |
1798 | shows tempdir creation/cleanup. | |
1799 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1800 | * jit-logging.h (class gcc::jit::log_user): Add gcc::jit::tempdir | |
1801 | to the list of subclasses in the comment. | |
1802 | * jit-playback.c (gcc::jit::playback::context::context): Add a | |
1803 | comment clarifying when the tempdir gets cleaned up. | |
1804 | (gcc::jit::playback::context::compile): Pass the context's logger, | |
1805 | if any, to the tempdir. | |
1806 | (gcc::jit::playback::context::dlopen_built_dso): When creating the | |
1807 | gcc::jit::result, if GCC_JIT_BOOL_OPTION_DEBUGINFO is set, hand | |
1808 | over ownership of the tempdir to it. | |
1809 | * jit-result.c: Include "jit-tempdir.h". | |
1810 | (gcc::jit::result::result): Add tempdir param, saving it as | |
1811 | m_tempdir. | |
1812 | (gcc::jit::result::~result): Delete m_tempdir. | |
1813 | * jit-result.h (gcc::jit::result::result): Add tempdir param. | |
1814 | (gcc::jit::result::m_tempdir): New field. | |
1815 | * jit-tempdir.c (gcc::jit::tempdir::tempdir): Add logger param; | |
1816 | add JIT_LOG_SCOPE. | |
1817 | (gcc::jit::tempdir::create): Add JIT_LOG_SCOPE to log entry/exit, | |
1818 | and log m_path_template and m_path_tempdir. | |
1819 | (gcc::jit::tempdir::~tempdir): Add JIT_LOG_SCOPE to log | |
1820 | entry/exit, and log the unlink and rmdir calls. | |
1821 | * jit-tempdir.h: Include "jit-logging.h". | |
1822 | (class gcc::jit::tempdir): Make this be a subclass of log_user. | |
1823 | (gcc::jit::tempdir::tempdir): Add logger param. | |
1824 | * notes.txt: Update to show the two possible places where the | |
1825 | tempdir can be cleaned up. | |
1826 | ||
7c8db13e DM |
1827 | 2015-01-08 David Malcolm <dmalcolm@redhat.com> |
1828 | ||
1829 | * libgccjit.h (struct gcc_jit_context): Rewrite the descriptive | |
1830 | comment. | |
1831 | ||
303e1d56 DM |
1832 | 2015-01-08 David Malcolm <dmalcolm@redhat.com> |
1833 | ||
1834 | * docs/topics/contexts.rst (Error-handling): Document new | |
1835 | entrypoint gcc_jit_context_get_last_error. | |
1836 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1837 | * jit-recording.c (gcc::jit::recording::context::context): | |
1838 | Initialize new fields "m_last_error_str" and | |
1839 | "m_owns_last_error_str". | |
1840 | (gcc::jit::recording::context::~context): Clean up | |
1841 | m_last_error_str, if needed. | |
1842 | (gcc::jit::recording::context::add_error_va): Update | |
1843 | m_last_error_str and m_owns_last_error_str, freeing the old | |
1844 | value if appropriate. | |
1845 | (gcc::jit::recording::context::get_last_error): New function. | |
1846 | * jit-recording.h (gcc::jit::recording::context::get_last_error): | |
1847 | New function. | |
1848 | (gcc::jit::recording::context): New fields m_last_error_str and | |
1849 | m_owns_last_error_str. | |
1850 | * libgccjit.c (gcc_jit_context_get_last_error): New function. | |
1851 | * libgccjit.h (gcc_jit_context_get_last_error): New declaration. | |
1852 | * libgccjit.map (gcc_jit_context_get_last_error): New function. | |
1853 | ||
eb4c16eb DM |
1854 | 2015-01-08 David Malcolm <dmalcolm@redhat.com> |
1855 | ||
1856 | * Make-lang.in (jit_OBJS): Add jit/jit-logging.o. | |
1857 | * docs/internals/index.rst (Overview of code structure): Mention | |
1858 | gcc_jit_context_set_logfile, and embed the example logfile. | |
1859 | * docs/internals/test-hello-world.exe.log.txt: New file: example | |
1860 | of a logfile. | |
1861 | * docs/topics/contexts.rst (Debugging): Add documentation | |
1862 | for gcc_jit_context_set_logfile. | |
1863 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
1864 | * dummy-frontend.c: Include "jit-logging.h". | |
1865 | (jit_langhook_init): Assert that there is an active playback | |
1866 | context. If it has a logger, log entry/exit to this function. | |
1867 | (jit_langhook_write_globals): Likewise. | |
1868 | * jit-common.h (gcc::jit::logger): New forward declaration. | |
1869 | * jit-logging.c: New file. | |
1870 | * jit-logging.h: New file. | |
1871 | * jit-playback.c: Include "jit-logging.h". | |
1872 | (gcc::jit::playback::context::context): Initialize the log_user | |
1873 | base class from the recording context's logger (if any). Use | |
1874 | JIT_LOG_SCOPE to log entry/exit from the function body. | |
1875 | (gcc::jit::playback::context::~context): Use JIT_LOG_SCOPE to | |
1876 | log entry/exit from the function body. | |
1877 | (gcc::jit::playback::build_stmt_list): Likewise. | |
1878 | (gcc::jit::playback::function::postprocess): Likewise. | |
1879 | (gcc::jit::playback::context::compile): Likewise. Log the | |
1880 | entry/exit to toplev::main and toplev::finalize. Log the | |
1881 | fake argv passed to toplev::main. | |
1882 | (gcc::jit::playback::context::acquire_mutex): Use JIT_LOG_SCOPE to | |
1883 | log entry/exit from the function body. | |
1884 | (gcc::jit::playback::context::release_mutex): Likewise. | |
1885 | (gcc::jit::playback::context::make_fake_args): Likewise. | |
1886 | (gcc::jit::playback::context::extract_any_requested_dumps): | |
1887 | Likewise. | |
1888 | (gcc::jit::playback::context::convert_to_dso): Likewise. Also, | |
1889 | log the arguments that the driver is invoked with. | |
1890 | (gcc::jit::playback::context::dlopen_built_dso): Likewise. Pass | |
1891 | the logger to the result object. | |
1892 | (gcc::jit::playback::context::replay): Use JIT_LOG_SCOPE to | |
1893 | log entry/exit from the function body. | |
1894 | (gcc::jit::playback::context::dump_generated_code): Likewise. | |
1895 | (gcc::jit::playback::context::handle_locations): Likewise. | |
1896 | * jit-playback.h (gcc::jit::playback::context): Make this be | |
1897 | a subclass of gcc::jit::log_user. | |
1898 | * jit-recording.c: Include "jit-logging.h". | |
1899 | (gcc::jit::recording::context::context: Initialize the logger to | |
1900 | NULL for root contexts, or to the parent's logger for child | |
1901 | contexts. | |
1902 | (gcc::jit::recording::context::~context): Use JIT_LOG_SCOPE to | |
1903 | log entry/exit from the function body. | |
1904 | (gcc::jit::recording::context::replay_into): Likewise. | |
1905 | (gcc::jit::recording::context::disassociate_from_playback): | |
1906 | Likewise. | |
1907 | (gcc::jit::recording::context::compile): Likewise. | |
1908 | (recording::context::add_error_va): Likewise. Also, log the | |
1909 | error. | |
1910 | (gcc::jit::recording::context::validate): Use JIT_LOG_SCOPE to | |
1911 | log entry/exit from the function body. | |
1912 | * jit-recording.h: Include "jit-logging.h". | |
1913 | (gcc::jit::recording::context): Make this be a subclass of | |
1914 | gcc::jit::log_user. | |
1915 | * jit-result.c: Include "jit-common.h" and "jit-logging.h". | |
1916 | (gcc::jit::result::result): Add logger param, recording it. | |
1917 | Use JIT_LOG_SCOPE to log entry/exit from the function body. | |
1918 | (gcc::jit::result::~result(): Use JIT_LOG_SCOPE to | |
1919 | log entry/exit from the function body. | |
1920 | (gcc::jit::result::get_code): Likewise. | |
1921 | * jit-result.h (gcc::jit::result): Make this be a subclass of | |
1922 | gcc::jit::log_user. | |
1923 | (gcc::jit::result::result): Add logger parameter. | |
1924 | * libgccjit++.h (gccjit::context::set_logfile): New function. | |
1925 | * libgccjit.c: Include "jit-logging.h". | |
1926 | (gcc_jit_context_acquire): Log the context. | |
1927 | (gcc_jit_context_release): Use JIT_LOG_FUNC to | |
1928 | log entry/exit from the function body, and log the context. | |
1929 | (gcc_jit_context_new_child_context): Likewise, logging both | |
1930 | contexts. | |
1931 | (gcc_jit_context_new_location): Use JIT_LOG_FUNC to | |
1932 | log entry/exit from the function body. | |
1933 | (gcc_jit_context_get_type): Likewise. | |
1934 | (gcc_jit_context_get_int_type): Likewise. | |
1935 | (gcc_jit_context_new_array_type): Likewise. | |
1936 | (gcc_jit_context_new_field): Likewise. | |
1937 | (gcc_jit_context_new_struct_type): Likewise. | |
1938 | (gcc_jit_context_new_opaque_struct): Likewise. | |
1939 | (gcc_jit_struct_set_fields): Likewise. | |
1940 | (gcc_jit_context_new_union_type): Likewise. | |
1941 | (gcc_jit_context_new_function_ptr_type): Likewise. | |
1942 | (gcc_jit_context_new_param): Likewise. | |
1943 | (gcc_jit_context_new_function): Likewise. | |
1944 | (gcc_jit_context_get_builtin_function): Likewise. | |
1945 | (gcc_jit_function_get_param): Likewise. | |
1946 | (gcc_jit_function_dump_to_dot): Likewise. | |
1947 | (gcc_jit_function_new_block): Likewise. | |
1948 | (gcc_jit_context_new_global): Likewise. | |
1949 | (gcc_jit_context_new_rvalue_from_int): Likewise. | |
1950 | (gcc_jit_context_zero): Likewise. | |
1951 | (gcc_jit_context_one): Likewise. | |
1952 | (gcc_jit_context_new_rvalue_from_double): Likewise. | |
1953 | (gcc_jit_context_new_rvalue_from_ptr): Likewise. | |
1954 | (gcc_jit_context_null): Likewise. | |
1955 | (gcc_jit_context_new_string_literal): Likewise. | |
1956 | (gcc_jit_context_new_unary_op): Likewise. | |
1957 | (gcc_jit_context_new_binary_op): Likewise. | |
1958 | (gcc_jit_context_new_comparison): Likewise. | |
1959 | (gcc_jit_context_new_call): Likewise. | |
1960 | (gcc_jit_context_new_call_through_ptr): Likewise. | |
1961 | (gcc_jit_context_new_cast): Likewise. | |
1962 | (gcc_jit_context_new_array_access): Likewise. | |
1963 | (gcc_jit_lvalue_access_field): Likewise. | |
1964 | (gcc_jit_rvalue_access_field): Likewise. | |
1965 | (gcc_jit_rvalue_dereference_field): Likewise. | |
1966 | (gcc_jit_rvalue_dereference): Likewise. | |
1967 | (gcc_jit_lvalue_get_address): Likewise. | |
1968 | (gcc_jit_function_new_local): Likewise. | |
1969 | (gcc_jit_block_add_eval): Likewise. | |
1970 | (gcc_jit_block_add_assignment): Likewise. | |
1971 | (gcc_jit_block_add_assignment_op): Likewise. | |
1972 | (gcc_jit_block_end_with_conditional): Likewise. | |
1973 | (gcc_jit_block_add_comment): Likewise. | |
1974 | (gcc_jit_block_end_with_jump): Likewise. | |
1975 | (gcc_jit_block_end_with_return): Likewise. | |
1976 | (gcc_jit_block_end_with_void_return): Likewise. | |
1977 | (gcc_jit_context_set_str_option): Likewise. | |
1978 | (gcc_jit_context_set_int_option): Likewise. | |
1979 | (gcc_jit_context_set_bool_option): Likewise. | |
1980 | (gcc_jit_context_enable_dump): Likewise. | |
1981 | (gcc_jit_context_compile): Likewise. Also log the context, | |
1982 | and the result. | |
1983 | (gcc_jit_context_dump_to_file): Likewise. | |
1984 | (gcc_jit_context_set_logfile): New function. | |
1985 | (gcc_jit_context_get_first_error): Use JIT_LOG_FUNC to | |
1986 | log entry/exit from the function body. | |
1987 | (gcc_jit_result_get_code): Likewise. Also log the fnname) | |
1988 | and the ptr to be returned. | |
1989 | (gcc_jit_result_release): Likewise. Also log the result. | |
1990 | * libgccjit.h: Include <stdio.h>, since we need FILE *. | |
1991 | (gcc_jit_context_set_logfile): New declaration. | |
1992 | * libgccjit.map (gcc_jit_context_set_logfile): New. | |
1993 | ||
c211cd23 DM |
1994 | 2015-01-07 David Malcolm <dmalcolm@redhat.com> |
1995 | ||
1996 | * jit-recording.h (gcc::jit::recording::type::is_void): New | |
1997 | virtual function. | |
1998 | (gcc::jit::recording::memento_of_get_type::is_void): New | |
1999 | function, overriding default implementation. | |
2000 | * libgccjit.c (gcc_jit_rvalue_dereference): Verify that | |
2001 | the underlying type is not "void". | |
2002 | ||
18146f45 DM |
2003 | 2015-01-07 David Malcolm <dmalcolm@redhat.com> |
2004 | ||
2005 | * docs/topics/expressions.rst (Unary Operations): Add | |
2006 | GCC_JIT_UNARY_OP_ABS. | |
2007 | * jit-playback.c (gcc::jit::playback::context::new_unary_op): | |
2008 | Likewise. | |
2009 | * jit-recording.c (unary_op_strings): Likewise. | |
2010 | * libgccjit.c (gcc_jit_context_new_unary_op): Update checking | |
2011 | of "op" to reflect addition of GCC_JIT_UNARY_OP_ABS. | |
2012 | * libgccjit.h (enum gcc_jit_unary_op): Add GCC_JIT_UNARY_OP_ABS. | |
2013 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2014 | ||
11af98ff DM |
2015 | 2015-01-07 David Malcolm <dmalcolm@redhat.com> |
2016 | ||
2017 | * jit-recording.h (gcc::jit::recording::memento_of_get_type): Fix | |
2018 | typo in comment. | |
2019 | ||
433d16df DM |
2020 | 2015-01-07 David Malcolm <dmalcolm@redhat.com> |
2021 | ||
2022 | * TODO.rst (Test suite): Remove item about running C++ testcases. | |
2023 | * docs/internals/index.rst (Working on the JIT library): Add | |
2024 | "c++" to the enabled languages in the suggested "configure" | |
2025 | invocation, and add a description of why this is necessary. | |
2026 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2027 | ||
50bb6c8e DM |
2028 | 2015-01-07 David Malcolm <dmalcolm@redhat.com> |
2029 | ||
2030 | * docs/internals/index.rst: Update to reflect that built | |
2031 | testcases are now test-foo.c.exe, rather than test-foo.exe. | |
2032 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2033 | ||
1e3b6a3d JJ |
2034 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
2035 | ||
2036 | Update copyright years. | |
2037 | ||
e8af59bc DM |
2038 | 2014-12-19 David Malcolm <dmalcolm@redhat.com> |
2039 | ||
2040 | * jit-playback.c (gcc::jit::playback::context::build_cast): In | |
2041 | case BOOLEAN_TYPE, don't assume that the source expression is | |
2042 | of type "int". | |
2043 | ||
5afd44e3 DM |
2044 | 2014-12-19 David Malcolm <dmalcolm@redhat.com> |
2045 | ||
2046 | * jit-recording.c (gcc::jit::recording::context::context): When | |
2047 | copying string options from a parent context, take a copy of the | |
2048 | underlying buffers, rather than simply copying the pointer. | |
2049 | ||
1f0858d7 DM |
2050 | 2014-12-19 David Malcolm <dmalcolm@redhat.com> |
2051 | ||
2052 | * jit-recording.c (gcc::jit::recording::context::set_str_option): | |
2053 | Handle NULL. | |
2054 | ||
35291c7d DM |
2055 | 2014-12-11 David Malcolm <dmalcolm@redhat.com> |
2056 | ||
2057 | * docs/cp/topics/contexts.rst (gccjit::context::set_str_option): | |
2058 | Document new function. | |
2059 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2060 | ||
7b31ff5e DM |
2061 | 2014-12-10 Ulrich Drepper <drepper@gmail.com> |
2062 | ||
2063 | Minor interface cleanups of libgccjit | |
2064 | * jit-playback.c (convert_to_dso): Use auto_vec instead | |
2065 | of automatic array to build up command line. | |
2066 | * jit-recording.c (recording::context::set_str_option): | |
2067 | Make copy of the string. | |
2068 | (recording::context::~context): Free string options. | |
2069 | * jit-recording.h (recording::context): Adjust type | |
2070 | of m_str_options member. | |
2071 | * libgccjit.h: Adjust comment about | |
2072 | gcc_jit_context_set_str_option parameter being used after | |
2073 | the call. | |
2074 | Update comment now that all interfaces are copy strings | |
2075 | if necessary. | |
2076 | * libgccjit++.h (gccjit::context): Add set_str_option | |
2077 | member function. | |
2078 | ||
29df5715 DM |
2079 | 2014-12-10 David Malcolm <dmalcolm@redhat.com> |
2080 | ||
2081 | * docs/cp/index.rst: New file. | |
2082 | * docs/cp/intro/index.rst: New file. | |
2083 | * docs/cp/intro/tutorial01.rst: New file. | |
2084 | * docs/cp/intro/tutorial02.rst: New file. | |
2085 | * docs/cp/intro/tutorial03.rst: New file. | |
2086 | * docs/cp/intro/tutorial04.rst: New file. | |
2087 | * docs/cp/topics/contexts.rst: New file. | |
2088 | * docs/cp/topics/expressions.rst: New file. | |
2089 | * docs/cp/topics/functions.rst: New file. | |
2090 | * docs/cp/topics/index.rst: New file. | |
2091 | * docs/cp/topics/locations.rst: New file. | |
2092 | * docs/cp/topics/objects.rst: New file. | |
2093 | * docs/cp/topics/results.rst: New file. | |
2094 | * docs/cp/topics/types.rst: New file. | |
2095 | * docs/examples/tut01-hello-world.cc: New file. | |
2096 | * docs/examples/tut02-square.c: Fix missing newline in output. | |
2097 | * docs/examples/tut02-square.cc: New file. | |
2098 | * docs/examples/tut03-sum-of-squares.cc: New file. | |
2099 | * docs/examples/tut04-toyvm/toyvm.cc: New file. | |
2100 | * docs/index.rst: Move summary to above the table of contents. | |
2101 | Add text about the C vs C++ APIs. | |
2102 | * docs/topics/contexts.rst: Fix a typo. | |
2103 | ||
2104 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2105 | * docs/_build/texinfo/factorial1.png: New file. | |
2106 | * docs/_build/texinfo/sum-of-squares1.png: New file. | |
2107 | ||
5cd614ce DM |
2108 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2109 | ||
2110 | * docs/examples/tut04-toyvm/toyvm.c (toyvm_function_compile): Move | |
2111 | logic for determine "funcname" to new function... | |
2112 | (get_function_name): ...here, adding logic to skip any leading | |
2113 | path from the filename. | |
2114 | (toyvm_function_parse): Use the filename for fn_filename, rather | |
2115 | than "name", so that the debugger can locate the source .toy | |
2116 | file. | |
2117 | (toyvm_function_parse): Don't fclose a NULL FILE *. | |
2118 | ||
2712de78 DM |
2119 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2120 | ||
2121 | PR jit/63854 | |
2122 | * docs/internals/index.rst (Running under valgrind): New | |
2123 | subsection. | |
2124 | (docs/_build/texinfo/libgccjit.texi): Regenerate. | |
2125 | ||
d1e5f2c7 DM |
2126 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2127 | ||
2128 | PR jit/64206 | |
2129 | * Make-lang.in (jit_OBJS): Add jit/jit-tempdir.o. | |
2130 | * jit-common.h (gcc::jit::tempdir): New forward decl. | |
2131 | * jit-playback.c: Include jit-tempdir.h. | |
2132 | (gcc::jit::playback::context::context): Initialize m_tempdir. | |
2133 | (gcc::jit::playback::context::~context): Move tempdir | |
2134 | cleanup to new file jit-tempdir.c | |
2135 | (make_tempdir_path_template): Move to new file jit-tempdir.c. | |
2136 | (gcc::jit::playback::context::compile): Move tempdir creation | |
2137 | to new tempdir object in new file jit-tempdir.c. | |
2138 | (gcc::jit::playback::context::make_fake_args): Get path from | |
2139 | tempdir object rather than from member data. | |
2140 | (gcc::jit::playback::context::convert_to_dso): Likewise. | |
2141 | (gcc::jit::playback::context::dlopen_built_dso): Likewise. | |
2142 | (gcc::jit::playback::context::dump_generated_code): Likewise. | |
2143 | (gcc::jit::playback::context::get_path_c_file): New function. | |
2144 | (gcc::jit::playback::context::get_path_s_file): New function. | |
2145 | (gcc::jit::playback::context::get_path_so_file): New function. | |
2146 | * jit-playback.h (gcc::jit::playback::context::get_path_c_file): | |
2147 | New function. | |
2148 | (gcc::jit::playback::context::get_path_s_file): New function. | |
2149 | (gcc::jit::playback::context::get_path_so_file): New function. | |
2150 | (gcc::jit::playback::context): Move fields "m_path_template", | |
2151 | "m_path_tempdir", "m_path_c_file", "m_path_s_file", | |
2152 | "m_path_so_file" to new jit::tempdir class; add field "m_tempdir". | |
2153 | * jit-tempdir.c: New file. | |
2154 | * jit-tempdir.h: New file. | |
2155 | ||
38771e4e DM |
2156 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2157 | ||
2158 | * jit-playback.c (gcc::jit::playback::context::compile): Acquire the | |
2159 | mutex here, immediately before using toplev, and release it here, on | |
2160 | each exit path after acquisition. | |
2161 | (jit_mutex): Move this variable here, from jit-recording.c. | |
2162 | (gcc::jit::playback::context::acquire_mutex): New function, based on | |
2163 | code in jit-recording.c. | |
2164 | (gcc::jit::playback::context::release_mutex): Likewise. | |
2165 | * jit-playback.h (gcc::jit::playback::context::acquire_mutex): New | |
2166 | function. | |
2167 | (gcc::jit::playback::context::release_mutex): New function. | |
2168 | * jit-recording.c (jit_mutex): Move this variable to jit-playback.c. | |
2169 | (gcc::jit::recording::context::compile): Move mutex-handling from | |
2170 | here into jit-playback.c's gcc::jit::playback::context::compile. | |
2171 | * notes.txt: Update to show the new locations of ACQUIRE_MUTEX | |
2172 | and RELEASE_MUTEX. | |
2173 | ||
38f4f641 DM |
2174 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2175 | ||
2176 | * jit-playback.c (gcc::jit::playback::context::compile): Move the | |
2177 | dlopen code into... | |
2178 | (gcc::jit::playback::context::dlopen_built_dso): ...this new | |
2179 | function. | |
2180 | * jit-playback.h (gcc::jit::playback::context::dlopen_built_dso): | |
2181 | New function. | |
2182 | ||
82e0c914 DM |
2183 | 2014-12-09 David Malcolm <dmalcolm@redhat.com> |
2184 | ||
2185 | PR jit/64166 | |
2186 | * docs/topics/contexts.rst (Debugging): Add description of | |
2187 | gcc_jit_context_enable_dump. | |
2188 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2189 | * jit-playback.c: Include context.h. | |
2190 | (class auto_argvec): New class. | |
2191 | (auto_argvec::~auto_argvec): New function. | |
2192 | (gcc::jit::playback::context::compile): Convert fake_args to be | |
2193 | an auto_argvec, so that it can contain dynamically-allocated | |
2194 | strings. Construct a vec of all requested dumps, and pass it to | |
2195 | make_fake_args. Extract requested dumps between the calls to | |
2196 | toplev::main and toplev::finalize. | |
2197 | (gcc::jit::playback::context::make_fake_args): Convert param | |
2198 | "argvec" to be a vec <char *>, and gain a "requested_dumps" | |
2199 | param. Convert to dynamically-allocated arg strings by converting | |
2200 | ADD_ARG to take a copy of the arg, and add ADD_ARG_TAKE_OWNERSHIP | |
2201 | for args that are already a copy. Add args for all requested dumps. | |
2202 | (gcc::jit::playback::context::extract_any_requested_dumps): New | |
2203 | function. | |
2204 | (gcc::jit::playback::context::read_dump_file): New function. | |
2205 | * jit-playback.h (gcc::jit::playback::context::make_fake_args): | |
2206 | Convert param "argvec" to be a vec <char *>, and gain a | |
2207 | "requested_dumps" param. | |
2208 | (gcc::jit::playback::context::extract_any_requested_dumps): New | |
2209 | function. | |
2210 | (gcc::jit::playback::context::read_dump_file): New function. | |
2211 | * jit-recording.c (gcc::jit::recording::context::enable_dump): New | |
2212 | function. | |
2213 | (gcc::jit::recording::context::get_all_requested_dumps): New | |
2214 | function. | |
2215 | * jit-recording.h (gcc::jit::recording::requested_dump): New | |
2216 | struct. | |
2217 | (gcc::jit::recording::context::enable_dump): New function. | |
2218 | (gcc::jit::recording::context::get_all_requested_dumps): New | |
2219 | function. | |
2220 | (gcc::jit::recording::context::m_requested_dumps): New field. | |
2221 | * libgccjit.c (gcc_jit_context_enable_dump): New API entrypoint. | |
2222 | * libgccjit.h (gcc_jit_context_enable_dump): New API entrypoint. | |
2223 | * libgccjit.map (gcc_jit_context_enable_dump): New API entrypoint. | |
2224 | ||
53b730ff DM |
2225 | 2014-12-08 David Malcolm <dmalcolm@redhat.com> |
2226 | ||
2227 | * libgccjit++.h: Indent the forward declarations of the classes to | |
2228 | show the inheritance hierarchy. | |
2229 | ||
0f379445 DM |
2230 | 2014-12-08 David Malcolm <dmalcolm@redhat.com> |
2231 | ||
2232 | * notes.txt: Show the beginning and ending of | |
2233 | recording::context::compile vs playback::context::compile. Show | |
2234 | the creation and unlinking of the tempdir. Show toplev::finalize. | |
2235 | Move "RELEASE MUTEX" to the correct location. Show | |
2236 | gcc_jit_result_release, and indicate where the | |
2237 | dlopen/dlsym/dlclose occur. | |
2238 | ||
81ba15f1 DM |
2239 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2240 | ||
2241 | * docs/examples/tut02-square.c (main): Release the context | |
2242 | earlier, to show that this is possible. Update error-handling | |
2243 | to avoid a double-release of the context, and to avoid | |
2244 | releasing a NULL result. | |
2245 | * docs/intro/tutorial02.rst: Discuss gcc_jit_context_release. | |
2246 | * docs/topics/functions.rst (GCC_JIT_FUNCTION_EXPORTED): Emphasize | |
2247 | * docs/topics/results.rst (gcc_jit_result): Mention that this | |
2248 | controls the lifetimes of machine code functions. | |
2249 | (gcc_jit_result_get_code): Spell out the requirements for this | |
2250 | to succeed, and the lifetime of the result. | |
2251 | (gcc_jit_result_release): Mention that this invalidates any code | |
2252 | that was obtained from the result. | |
2253 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2254 | ||
e250f0dc DM |
2255 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2256 | ||
2257 | PR jit/64018 | |
2258 | * docs/intro/tutorial02.rst: Spell out lifetime of generated code. | |
2259 | Add description of error-handling, taken in part from... | |
2260 | * docs/topics/contexts.rst (Error-handling): Expand, and move some | |
2261 | content to tutorial02.rst. | |
2262 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2263 | ||
eeafb319 DM |
2264 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2265 | ||
2266 | PR jit/64020 | |
2267 | * docs/topics/types.rst (Standard types) Add new enum values to | |
2268 | the table of enum gcc_jit_types: GCC_JIT_TYPE_COMPLEX_FLOAT, | |
2269 | GCC_JIT_TYPE_COMPLEX_DOUBLE, GCC_JIT_TYPE_COMPLEX_LONG_DOUBLE. | |
2270 | Widen the left-hand column so that | |
2271 | GCC_JIT_TYPE_COMPLEX_LONG_DOUBLE will fit. | |
2272 | * docs/_build/texinfo/libgccjit.texi: Regenerate. | |
2273 | ||
2274 | * jit-builtins.c: Include stringpool.h and jit-playback.h. | |
2275 | Move everything out of the gcc::jit::recording namespace into | |
2276 | just gcc::jit. | |
2277 | (struct builtin_data): Add fields "fnclass", "attr", and | |
2278 | "implicit_p". | |
2279 | (DEF_BUILTIN): Update macro so populate the new fields. | |
2280 | (builtins_manager::builtins_manager): Update for move out of | |
2281 | recording namespace. Initialize the m_attributes array. | |
2282 | (builtins_manager::get_builtin_function): Likewise. | |
2283 | (builtins_manager::get_builtin_function_by_id): New function. | |
2284 | (builtins_manager::make_builtin_function): Update for move out of | |
2285 | recording namespace. Add fix for PR jit/64020 by detecting | |
2286 | specific builtin ids and having them ensure that builtins for | |
2287 | other ids are created as necessary. | |
2288 | (builtins_manager::get_type): Update for move out of recording | |
2289 | namespace. | |
2290 | (builtins_manager::make_type): Likewise. Add some missing | |
2291 | #undefs. | |
2292 | (builtins_manager::make_primitive_type): Update for move out of | |
2293 | recording namespace. Implement the three BT_COMPLEX_ cases and | |
2294 | BT_DOUBLE_PTR. | |
2295 | (builtins_manager::make_fn_type): Update for move out of recording | |
2296 | namespace. | |
2297 | (builtins_manager::make_ptr_type): Likewise. | |
2298 | (builtins_manager::finish_playback): New function. | |
2299 | (builtins_manager::get_class): New function. | |
2300 | (builtins_manager::implicit_p): New function. | |
2301 | (builtins_manager::get_attrs_tree): Two new functions. | |
2302 | (builtins_manager::make_attrs_tree): New function. | |
2303 | ||
2304 | * jit-builtins.h: Move everything out of the gcc::jit::recording | |
2305 | namespace into just gcc::jit. | |
2306 | (enum built_in_attribute): New. | |
2307 | (builtins_manager::builtins_manager): Update decl for namespace | |
2308 | change. | |
2309 | (builtins_manager::get_builtin_function): Likewise. | |
2310 | (builtins_manager::get_class): New. | |
2311 | (builtins_manager::implicit_p): New. | |
2312 | (builtins_manager::get_attrs_tree): Two new functions. | |
2313 | (builtins_manager::make_attrs_tree): New function. | |
2314 | (builtins_manager::finish_playback): New. | |
2315 | (builtins_manager::get_builtin_function_by_id): New. | |
2316 | (builtins_manager::make_builtin_function): Update decl for | |
2317 | namespace change. | |
2318 | (builtins_manager::get_type): Likewise. | |
2319 | (builtins_manager::make_type): Likewise. | |
2320 | (builtins_manager::make_primitive_type): Likewise. | |
2321 | (builtins_manager::make_fn_type): Likewise. | |
2322 | (builtins_manager::make_ptr_type): Likewise. | |
2323 | (builtins_manager): Likewise for fields. Add new field | |
2324 | "m_attributes". | |
2325 | ||
2326 | * jit-common.h (NUM_GCC_JIT_TYPES): Update. | |
2327 | (builtins_manager): Update forward decl to reflect namespace | |
2328 | change. | |
2329 | ||
2330 | * jit-playback.c: Include attribs.h and jit-builtins.h. | |
2331 | (gcc::jit::playback::context::get_tree_node_for_type): Add cases | |
2332 | for the new COMPLEX_ types. | |
2333 | (gcc::jit::playback::context::new_function): If creating a | |
2334 | builtin, set the DECL_BUILT_IN_CLASS and attributes on the fndecl, | |
2335 | and call set_builtin_decl. | |
2336 | (gcc::jit::playback::context::replay): If we have a | |
2337 | builtins_manager, call its finish_playback method when we're done. | |
2338 | ||
2339 | * jit-playback.h: | |
2340 | (gcc::jit::playback::context::get_builtins_manager): New function. | |
2341 | ||
2342 | * jit-recording.c | |
2343 | (gcc::jit::recording::context::get_builtins_manager): New function. | |
2344 | (gcc::jit::recording::get_builtin_function): Use | |
2345 | get_builtins_manager, in case we're a child context. | |
2346 | (gcc::jit::recording::memento_of_get_type::dereference): Add the | |
2347 | COMPLEX_ types. | |
2348 | (gcc::jit::recording::memento_of_get_type::is_int): Likewise. | |
2349 | (gcc::jit::recording::memento_of_get_type::is_float): Likewise. | |
2350 | (gcc::jit::recording::memento_of_get_type::is_bool): Likewise. | |
2351 | (get_type_strings): Likewise. | |
2352 | ||
2353 | * jit-recording.h | |
2354 | (gcc::jit::recording::context::get_builtins_manager): New. | |
2355 | ||
2356 | * libgccjit.h (enum gcc_jit_types): Add | |
2357 | GCC_JIT_TYPE_COMPLEX_FLOAT, GCC_JIT_TYPE_COMPLEX_DOUBLE, | |
2358 | GCC_JIT_TYPE_COMPLEX_LONG_DOUBLE. | |
2359 | ||
23844fd7 DM |
2360 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2361 | ||
2362 | * jit-builtins.c | |
2363 | (gcc::jit::recording::builtins_manager::get_builtin_function): | |
2364 | Check for NULL return from make_builtin_function. | |
2365 | (gcc::jit::recording::builtins_manager::make_builtin_function): | |
2366 | Check for NULL return from get_type. | |
2367 | ||
c6760a13 DM |
2368 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2369 | ||
2370 | * jit-playback.c (gcc::jit::playback::context::compile): Move DSO | |
2371 | creation code into... | |
2372 | (gcc::jit::playback::context::convert_to_dso): New function. | |
2373 | * jit-playback.h (gcc::jit::playback::context::convert_to_dso): | |
2374 | New function. | |
2375 | ||
8f50ee3c DM |
2376 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2377 | ||
2378 | * jit-playback.c (gcc::jit::playback::context::compile): Use an | |
2379 | auto_vec<const char *> rather than a const char *[20] for the | |
2380 | top-level argv, and move the logic to build it to... | |
2381 | (gcc::jit::playback::context::make_fake_args): New function. | |
2382 | * jit-playback.h (gcc::jit::playback::context::make_fake_args): | |
2383 | New function. | |
2384 | ||
56dea35f DM |
2385 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2386 | ||
2387 | * Make-lang.in (jit_OBJS): Add jit/jit-result.o. | |
2388 | * jit-playback.c: Include new header jit-result.h. | |
2389 | (gcc::jit::result::result): Move to new file jit-result.c. | |
2390 | (gcc::jit::result::~result): Likewise. | |
2391 | (gcc::jit::playback::result): Likewise. | |
2392 | * jit-recording.h (class gcc::jit::result): Move to new | |
2393 | header jit-result.h. | |
2394 | * jit-result.c: New file, to contain... | |
2395 | (gcc::jit::result::result): Move here from jit-playback.c, | |
2396 | removing erroneous "playback" namespace from comment. | |
2397 | (gcc::jit::result::~result): Likewise. | |
2398 | (gcc::jit::playback::result): Likewise. | |
2399 | * jit-result.h: New file, to contain... | |
2400 | (class gcc::jit::result): Move from jit-recording.h. | |
2401 | * libgccjit.c: Include jit-result.h. | |
2402 | (gcc_jit_result_get_code): Update comment to reflect move | |
2403 | of implementation. | |
2404 | (gcc_jit_result_release): Likewise. | |
2405 | ||
52b9468f DM |
2406 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2407 | ||
2408 | PR jit/63854 | |
2409 | * docs/examples/tut04-toyvm/toyvm.c | |
2410 | (toyvm_compiled_function): New typedef. | |
2411 | (toyvm_compiled_func) Rename to... | |
2412 | (toyvm_compiled_code) ...this. | |
2413 | (struct toyvm_compiled_function): New struct. | |
2414 | (toyvm_function_compile): Return a toyvm_compiled_function * | |
2415 | rather than a toyvm_compiled_func, so that the caller can fully | |
2416 | clean things up. Free "funcname". | |
2417 | (test_script): Update for change to toyvm_function_compile. | |
2418 | Clean up the toyvm_compiled_function. | |
2419 | (main): Likewise. | |
2420 | (docs/intro/tutorial04.rst): Update to reflect the above changes, | |
2421 | and to better spell out the lifetime of the compiled code. | |
2422 | ||
c8d19a69 DM |
2423 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2424 | ||
2425 | PR jit/63854 | |
2426 | * jit-builtins.c | |
2427 | (gcc::jit::recording::builtins_manager::make_fn_type): Call the | |
2428 | context's new_function_type method, rather than directly creating | |
2429 | a function_type instance. | |
2430 | * jit-recording.c | |
2431 | (gcc::jit::recording::context::new_function_type): New method, | |
2432 | adapted from part of... | |
2433 | (gcc::jit::recording::context::new_function_ptr_type): ...this. | |
2434 | Update to call new_function_type. | |
2435 | * jit-recording.h | |
2436 | (gcc::jit::recording::context::new_function_type): New method. | |
2437 | ||
c985705a DM |
2438 | 2014-12-01 David Malcolm <dmalcolm@redhat.com> |
2439 | ||
2440 | PR jit/63969 | |
2441 | * jit-playback.c: Ensure that ctxt_progname is non-NULL. | |
2442 | ||
b957b2e0 DM |
2443 | 2014-11-19 David Malcolm <dmalcolm@redhat.com> |
2444 | ||
2445 | PR jit/63854 | |
2446 | * jit-playback.c (gcc::jit::playback::compound_type::set_fields): | |
2447 | Convert param from const vec<playback::field *> & to | |
2448 | const auto_vec<playback::field *> *. | |
2449 | (gcc::jit::playback::context::new_function_type): Convert param | |
2450 | "param_types" from vec<type *> * to const auto_vec<type *> *. | |
2451 | (gcc::jit::playback::context::new_function): Convert param | |
2452 | "params" from vec<param *> * to const auto_vec<param *> *. | |
2453 | (gcc::jit::playback::context::build_call): Convert param "args" | |
2454 | from vec<rvalue *> to const auto_vec<rvalue *> *. | |
2455 | (gcc::jit::playback::context::new_call): Likewise. | |
2456 | (gcc::jit::playback::context::new_call_through_ptr): Likewise. | |
2457 | (wrapper_finalizer): New function. | |
2458 | (gcc::jit::playback::wrapper::operator new): Call the finalizer | |
2459 | variant of ggc_internal_cleared_alloc, supplying | |
2460 | wrapper_finalizer. | |
2461 | (gcc::jit::playback::function::finalizer): New. | |
2462 | (gcc::jit::playback::block::finalizer): New. | |
2463 | (gcc::jit::playback::source_file::finalizer): New. | |
2464 | (gcc::jit::playback::source_line::finalizer): New. | |
2465 | ||
2466 | * jit-playback.h | |
2467 | (gcc::jit::playback::context::new_function_type): Convert param | |
2468 | "param_types" from vec<type *> * to const auto_vec<type *> *. | |
2469 | (gcc::jit::playback::context::new_function): Convert param | |
2470 | "params" from vec<param *> * to const auto_vec<param *> *. | |
2471 | (gcc::jit::playback::context::new_call): Convert param | |
2472 | "args" from vec<rvalue *> to const auto_vec<rvalue *> *. | |
2473 | (gcc::jit::playback::context::new_call_through_ptr): Likewise. | |
2474 | (gcc::jit::playback::context::build_call): Likewise. | |
2475 | (gcc::jit::playback::context): Convert fields "m_functions", | |
2476 | "m_source_files", "m_cached_locations" from vec to auto_vec. | |
2477 | (gcc::jit::playback::wrapper::finalizer): New virtual function. | |
2478 | (gcc::jit::playback::compound_type::set_fields): Convert param fro | |
2479 | const vec<playback::field *> & to | |
2480 | const auto_vec<playback::field *> *. | |
2481 | (gcc::jit::playback::function::finalizer): New. | |
2482 | (gcc::jit::playback::block::finalizer): New. | |
2483 | (gcc::jit::playback::source_file::finalizer): New. | |
2484 | (gcc::jit::playback::source_line::finalizer): New. | |
2485 | ||
2486 | * jit-recording.c | |
2487 | (gcc::jit::recording::function_type::replay_into): Convert local | |
2488 | from a vec into an auto_vec. | |
2489 | (gcc::jit::recording::fields::replay_into): Likewise. | |
2490 | (gcc::jit::recording::function::replay_into): Likewise. | |
2491 | (gcc::jit::recording::call::replay_into): Likewise. | |
2492 | (gcc::jit::recording::call_through_ptr::replay_into): Likewise. | |
2493 | ||
2494 | * jit-recording.h (gcc::jit::recording::context): Convert fields | |
2495 | "m_mementos", "m_compound_types", "m_functions" from vec<> to | |
2496 | auto_vec <>. | |
2497 | (gcc::jit::recording::function_type::get_param_types): Convert | |
2498 | return type from vec<type *> to const vec<type *> &. | |
2499 | (gcc::jit::recording::function_type): Convert field | |
2500 | "m_param_types" from a vec<> to an auto_vec<>. | |
2501 | (gcc::jit::recording::fields): Likewise for field "m_fields". | |
2502 | (gcc::jit::recording::function::get_params): Convert return type | |
2503 | from vec <param *> to const vec<param *> &. | |
2504 | (gcc::jit::recording::function): Convert fields "m_params", | |
2505 | "m_locals", "m_blocks" from vec<> to auto_vec<>. | |
2506 | (gcc::jit::recording::block): Likewise for field "m_statements". | |
2507 | vec<> to auto_vec<>. | |
2508 | (gcc::jit::recording::call): Likewise for field "m_args". | |
2509 | (gcc::jit::recording::call_through_ptr): Likewise. | |
2510 | ||
79cafc7a DM |
2511 | 2014-11-19 David Malcolm <dmalcolm@redhat.com> |
2512 | ||
2513 | PR jit/63854 | |
2514 | * jit-recording.c (recording::function::validate): Convert | |
2515 | "worklist" from vec<> to autovec<> to fix a leak. | |
2516 | ||
35485da9 DM |
2517 | 2014-11-11 David Malcolm <dmalcolm@redhat.com> |
2518 | ||
2519 | * ChangeLog.jit: New. | |
2520 | * ChangeLog: New. | |
2521 | * Make-lang.in: New. | |
2522 | * TODO.rst: New. | |
2523 | * config-lang.in: New. | |
2524 | * docs/Makefile: New. | |
2525 | * docs/_build/texinfo/Makefile: New. | |
2526 | * docs/_build/texinfo/factorial.png: New. | |
2527 | * docs/_build/texinfo/libgccjit.texi: New. | |
2528 | * docs/_build/texinfo/sum-of-squares.png: New. | |
2529 | * docs/conf.py: New. | |
2530 | * docs/examples/tut01-hello-world.c: New. | |
2531 | * docs/examples/tut02-square.c: New. | |
2532 | * docs/examples/tut03-sum-of-squares.c: New. | |
2533 | * docs/examples/tut04-toyvm/Makefile: New. | |
2534 | * docs/examples/tut04-toyvm/factorial.toy: New. | |
2535 | * docs/examples/tut04-toyvm/fibonacci.toy: New. | |
2536 | * docs/examples/tut04-toyvm/toyvm.c: New. | |
2537 | * docs/index.rst: New. | |
2538 | * docs/internals/index.rst: New. | |
2539 | * docs/intro/factorial.png: New. | |
2540 | * docs/intro/index.rst: New. | |
2541 | * docs/intro/sum-of-squares.png: New. | |
2542 | * docs/intro/tutorial01.rst: New. | |
2543 | * docs/intro/tutorial02.rst: New. | |
2544 | * docs/intro/tutorial03.rst: New. | |
2545 | * docs/intro/tutorial04.rst: New. | |
2546 | * docs/topics/contexts.rst: New. | |
2547 | * docs/topics/expressions.rst: New. | |
2548 | * docs/topics/functions.rst: New. | |
2549 | * docs/topics/index.rst: New. | |
2550 | * docs/topics/locations.rst: New. | |
2551 | * docs/topics/objects.rst: New. | |
2552 | * docs/topics/results.rst: New. | |
2553 | * docs/topics/types.rst: New. | |
2554 | * dummy-frontend.c: New. | |
2555 | * jit-builtins.c: New. | |
2556 | * jit-builtins.h: New. | |
2557 | * jit-common.h: New. | |
2558 | * jit-playback.c: New. | |
2559 | * jit-playback.h: New. | |
2560 | * jit-recording.c: New. | |
2561 | * jit-recording.h: New. | |
2562 | * libgccjit++.h: New. | |
2563 | * libgccjit.c: New. | |
2564 | * libgccjit.h: New. | |
2565 | * libgccjit.map: New. | |
2566 | * notes.txt: New. | |
2567 | ||
2568 | 2013-07-26 David Malcolm <dmalcolm@redhat.com> | |
2569 | ||
2570 | * Initial creation | |
818ab71a | 2571 | \f |
85ec4feb | 2572 | Copyright (C) 2013-2018 Free Software Foundation, Inc. |
35485da9 DM |
2573 | |
2574 | Copying and distribution of this file, with or without modification, | |
2575 | are permitted in any medium without royalty provided the copyright | |
2576 | notice and this notice are preserved. |