ChangeLog: * ChangeLog.jit: New. * MAINTAINERS (Various Maintainers): Add myself as jit maintainer. contrib/ChangeLog: * ChangeLog.jit: New. * jit-coverage-report.py: New file: a script to print crude code-coverage information for the libgccjit API. gcc/ChangeLog: * ChangeLog.jit: New. * Makefile.in (doc_build_sys): New variable, set to "sphinx" if sphinx is installed, falling back to "texinfo" otherwise. (FULL_DRIVER_NAME): New variable, adapted from the install-driver target. New target, a symlink within the builddir, linked to "xgcc", for use when running the JIT library from the builddir. (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME. (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it out. * configure.ac (doc_build_sys): New variable, set to "sphinx" if sphinx is installed, falling back to "texinfo" otherwise. (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing GCC_DRIVER_NAME for the benefit of jit/internal-api.c. * configure: Regenerate. * doc/install.texi (--enable-host-shared): Specify that this is required when building libgccjit. (Tools/packages necessary for modifying GCC): Add Sphinx. * timevar.def (TV_JIT_REPLAY): New. (TV_ASSEMBLE): New. (TV_LINK): New. (TV_LOAD): New. gcc/java/ChangeLog: * gcc/ChangeLog.jit: New. gcc/jit/ChangeLog: * ChangeLog.jit: New. * ChangeLog: New. * Make-lang.in: New. * TODO.rst: New. * config-lang.in: New. * docs/Makefile: New. * docs/_build/texinfo/Makefile: New. * docs/_build/texinfo/factorial.png: New. * docs/_build/texinfo/libgccjit.texi: New. * docs/_build/texinfo/sum-of-squares.png: New. * docs/conf.py: New. * docs/examples/tut01-hello-world.c: New. * docs/examples/tut02-square.c: New. * docs/examples/tut03-sum-of-squares.c: New. * docs/examples/tut04-toyvm/Makefile: New. * docs/examples/tut04-toyvm/factorial.toy: New. * docs/examples/tut04-toyvm/fibonacci.toy: New. * docs/examples/tut04-toyvm/toyvm.c: New. * docs/index.rst: New. * docs/internals/index.rst: New. * docs/intro/factorial.png: New. * docs/intro/index.rst: New. * docs/intro/sum-of-squares.png: New. * docs/intro/tutorial01.rst: New. * docs/intro/tutorial02.rst: New. * docs/intro/tutorial03.rst: New. * docs/intro/tutorial04.rst: New. * docs/topics/contexts.rst: New. * docs/topics/expressions.rst: New. * docs/topics/functions.rst: New. * docs/topics/index.rst: New. * docs/topics/locations.rst: New. * docs/topics/objects.rst: New. * docs/topics/results.rst: New. * docs/topics/types.rst: New. * dummy-frontend.c: New. * jit-builtins.c: New. * jit-builtins.h: New. * jit-common.h: New. * jit-playback.c: New. * jit-playback.h: New. * jit-recording.c: New. * jit-recording.h: New. * libgccjit++.h: New. * libgccjit.c: New. * libgccjit.h: New. * libgccjit.map: New. * notes.txt: New. gcc/testsuite/ChangeLog: * ChangeLog.jit: New. * jit.dg/all-non-failing-tests.h: New. * jit.dg/harness.h: New. * jit.dg/jit.exp: New. * jit.dg/test-accessing-struct.c: New. * jit.dg/test-accessing-union.c: New. * jit.dg/test-array-as-pointer.c: New. * jit.dg/test-arrays.c: New. * jit.dg/test-calling-external-function.c: New. * jit.dg/test-calling-function-ptr.c: New. * jit.dg/test-combination.c: New. * jit.dg/test-dot-product.c: New. * jit.dg/test-empty.c: New. * jit.dg/test-error-accessing-field-in-other-struct.c: New. * jit.dg/test-error-adding-to-terminated-block.c: New. * jit.dg/test-error-array-as-pointer.c: New. * jit.dg/test-error-bad-cast.c: New. * jit.dg/test-error-block-in-wrong-function.c: New. * jit.dg/test-error-call-through-ptr-with-mismatching-args.c: New. * jit.dg/test-error-call-through-ptr-with-non-function.c: New. * jit.dg/test-error-call-through-ptr-with-non-pointer.c: New. * jit.dg/test-error-call-through-ptr-with-not-enough-args.c: New. * jit.dg/test-error-call-through-ptr-with-too-many-args.c: New. * jit.dg/test-error-call-with-mismatching-args.c: New. * jit.dg/test-error-call-with-not-enough-args.c: New. * jit.dg/test-error-call-with-too-many-args.c: New. * jit.dg/test-error-dereference-field-of-non-pointer.c: New. * jit.dg/test-error-dereference-read-of-non-pointer.c: New. * jit.dg/test-error-get-type-bad-enum.c: New. * jit.dg/test-error-index-not-a-numeric-type.c: New. * jit.dg/test-error-mismatching-types-in-assignment.c: New. * jit.dg/test-error-mismatching-types-in-call.c: New. * jit.dg/test-error-missing-return.c: New. * jit.dg/test-error-new-binary-op-bad-op.c: New. * jit.dg/test-error-new-function-bad-kind.c: New. * jit.dg/test-error-new-unary-op-bad-op.c: New. * jit.dg/test-error-null-passed-to-api.c: New. * jit.dg/test-error-return-within-void-function.c: New. * jit.dg/test-error-unreachable-block.c: New. * jit.dg/test-error-unterminated-block.c: New. * jit.dg/test-error-value-not-a-numeric-type.c: New. * jit.dg/test-expressions.c: New. * jit.dg/test-factorial.c: New. * jit.dg/test-fibonacci.c: New. * jit.dg/test-functions.c: New. * jit.dg/test-fuzzer.c: New. * jit.dg/test-hello-world.c: New. * jit.dg/test-linked-list.c: New. * jit.dg/test-long-names.c: New. * jit.dg/test-nested-contexts.c: New. * jit.dg/test-nested-loops.c: New. * jit.dg/test-operator-overloading.cc: New. * jit.dg/test-quadratic.c: New. * jit.dg/test-quadratic.cc: New. * jit.dg/test-reading-struct.c: New. * jit.dg/test-string-literal.c: New. * jit.dg/test-sum-of-squares.c: New. * jit.dg/test-threads.c: New. * jit.dg/test-types.c: New. * jit.dg/test-using-global.c: New. * jit.dg/test-volatile.c: New. include/ChangeLog: * ChangeLog.jit: New. libbacktrace/ChangeLog: * ChangeLog.jit: New. libcpp/ChangeLog: * ChangeLog.jit: New. libdecnumber/ChangeLog: * ChangeLog.jit: New. libiberty/ChangeLog: * ChangeLog.jit: New. zlib/ChangeLog: * ChangeLog.jit: New. From-SVN: r217374
167 lines
4.5 KiB
C
167 lines
4.5 KiB
C
/* This file is used by test-combination.c and test-threads.c to
|
|
bring all of the non-failing test cases into one source file,
|
|
renaming each "create_code" and "verify_code" hook so that they
|
|
each have unique name. */
|
|
|
|
/* Include various other test cases, defining COMBINED_TEST so that
|
|
harness.h doesn't duplicate copes of e.g. main, and renaming the
|
|
hooks provided by each test case. */
|
|
#define COMBINED_TEST
|
|
|
|
/* test-accessing-struct.c */
|
|
#define create_code create_code_accessing_struct
|
|
#define verify_code verify_code_accessing_struct
|
|
#include "test-accessing-struct.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-accessing-union.c */
|
|
#define create_code create_code_accessing_union
|
|
#define verify_code verify_code_accessing_union
|
|
#include "test-accessing-union.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-array-as-pointer.c */
|
|
#define create_code create_code_array_as_pointer
|
|
#define verify_code verify_code_array_as_pointer
|
|
#include "test-array-as-pointer.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-arrays.c */
|
|
#define create_code create_code_arrays
|
|
#define verify_code verify_code_arrays
|
|
#include "test-arrays.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-calling-external-function.c */
|
|
#define create_code create_code_calling_external_function
|
|
#define verify_code verify_code_calling_external_function
|
|
#include "test-calling-external-function.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-calling-function-ptr.c */
|
|
#define create_code create_code_calling_function_ptr
|
|
#define verify_code verify_code_calling_function_ptr
|
|
#include "test-calling-function-ptr.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-dot-product.c */
|
|
#define create_code create_code_dot_product
|
|
#define verify_code verify_code_dot_product
|
|
#include "test-dot-product.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-error-*.c: We don't use these test cases, since they deliberately
|
|
introduce errors, which we don't want here. */
|
|
|
|
/* test-expressions.c */
|
|
#define create_code create_code_expressions
|
|
#define verify_code verify_code_expressions
|
|
#include "test-expressions.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-factorial.c */
|
|
#define create_code create_code_factorial
|
|
#define verify_code verify_code_factorial
|
|
#include "test-factorial.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-fibonacci.c */
|
|
#define create_code create_code_fibonacci
|
|
#define verify_code verify_code_fibonacci
|
|
#include "test-fibonacci.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-functions.c */
|
|
#define create_code create_code_functions
|
|
#define verify_code verify_code_functions
|
|
#include "test-functions.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-hello-world.c */
|
|
#define create_code create_code_hello_world
|
|
#define verify_code verify_code_hello_world
|
|
#include "test-hello-world.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-linked-list.c */
|
|
#define create_code create_code_linked_list
|
|
#define verify_code verify_code_linked_list
|
|
#include "test-linked-list.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-long-names.c */
|
|
#define create_code create_code_long_names
|
|
#define verify_code verify_code_long_names
|
|
#include "test-long-names.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-quadratic.c */
|
|
#define create_code create_code_quadratic
|
|
#define verify_code verify_code_quadratic
|
|
#include "test-quadratic.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-nested-loops.c */
|
|
#define create_code create_code_nested_loop
|
|
#define verify_code verify_code_nested_loop
|
|
#include "test-nested-loops.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-reading-struct.c */
|
|
#define create_code create_code_reading_struct
|
|
#define verify_code verify_code_reading_struct
|
|
#include "test-reading-struct.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-string-literal.c */
|
|
#define create_code create_code_string_literal
|
|
#define verify_code verify_code_string_literal
|
|
#include "test-string-literal.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-sum-of-squares.c */
|
|
#define create_code create_code_sum_of_squares
|
|
#define verify_code verify_code_sum_of_squares
|
|
#include "test-sum-of-squares.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-types.c */
|
|
#define create_code create_code_types
|
|
#define verify_code verify_code_types
|
|
#include "test-types.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-using-global.c */
|
|
#define create_code create_code_using_global
|
|
#define verify_code verify_code_using_global
|
|
#include "test-using-global.c"
|
|
#undef create_code
|
|
#undef verify_code
|
|
|
|
/* test-volatile.c */
|
|
#define create_code create_code_volatile
|
|
#define verify_code verify_code_volatile
|
|
#include "test-volatile.c"
|
|
#undef create_code
|
|
#undef verify_code
|