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