ChangeLog.jit 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. 2014-11-05 David Malcolm <dmalcolm@redhat.com>
  2. * jit.dg/test-error-get-type-bad-enum.c: New test case.
  3. * jit.dg/test-error-new-binary-op-bad-op.c: Likewise.
  4. * jit.dg/test-error-new-function-bad-kind.c: Likewise.
  5. * jit.dg/test-error-new-unary-op-bad-op.c: Likewise.
  6. 2014-10-22 David Malcolm <dmalcolm@redhat.com>
  7. * jit.dg/jit.exp (DEFAULT_CFLAGS): Add -fgnu89-inline since
  8. dejagnu.h assumes this.
  9. 2014-10-17 David Malcolm <dmalcolm@redhat.com>
  10. * jit.dg/jit.exp (get_path_of_driver): New procedure.
  11. (jit-dg-test): Don't unsetenv GCC_EXEC_PREFIX, since jit-playback.c
  12. now adds -fno-use-linker-plugin to the driver cmdline sidestepping
  13. the builddir/installdir libtto_plugin naming issue.
  14. When setting up PATH so that the JIT library can invoke the driver
  15. by installation name, don't use the installation "bindir".
  16. Instead, simply use the location of xgcc as detected
  17. get_path_of_driver. In addition, set up LIBRARY_PATH so that the
  18. linker run from inside the JIT library can locate libgcc etc when
  19. building the .so, pointing it at the same directory.
  20. 2014-10-13 David Malcolm <dmalcolm@redhat.com>
  21. * jit.dg/jit.exp (fixed_host_execute): New function, taken from
  22. "host_execute" in DejaGnu's dejagnu.exp, with one line removed.
  23. (jit-dg-test): Use fixed_host_execute, rathern than host_execute.
  24. 2014-10-13 David Malcolm <dmalcolm@redhat.com>
  25. * jit.dg/harness.h [MAKE_DEJAGNU_H_THREADSAFE] (note): Redefine
  26. "note" from dejagnu.h to new function dejagnu_note so that we can
  27. make "note" be threadsafe.
  28. (set_options): Don't enable GCC_JIT_BOOL_OPTION_DUMP_SUMMARY,
  29. since it can generate large amounts of output that could overwhelm
  30. expect's buffer.
  31. * jit.dg/test-dot-product.c (verify_code): Use "note" rather than
  32. "printf", to give DejaGnu more chances to parse this log data,
  33. rather than overflowing its buffer.
  34. * jit.dg/test-factorial.c (verify_code): Likewise.
  35. * jit.dg/test-fibonacci.c (verify_code): Likewise.
  36. * jit.dg/test-fuzzer.c (main): Likewise.
  37. * jit.dg/test-nested-loops.c (verify_code): Likewise.
  38. * jit.dg/test-sum-of-squares.c (verify_code): Likewise.
  39. * jit.dg/test-threads.c (note): New function, adding thread-safety
  40. on top of "dejagnu_note", the latter being the implementation
  41. found in dejagnu.h.
  42. (run_threaded_test): Use "note" rather than "printf".
  43. 2014-10-07 David Malcolm <dmalcolm@redhat.com>
  44. * jit.dg/jit.exp (jit-dg-test): Prepend the installed bindir to
  45. the PATH before invoking built binaries using the library, so that
  46. the library can find the driver. Restore the PATH immediately
  47. afterwards.
  48. 2014-09-24 David Malcolm <dmalcolm@redhat.com>
  49. * ChangeLog.jit: Add copyright footer.
  50. 2014-09-23 David Malcolm <dmalcolm@redhat.com>
  51. * jit.dg/test-expressions.c (make_tests_of_binary_ops): Add
  52. shift operators.
  53. (verify_binary_ops): Likewise.
  54. 2014-09-18 David Malcolm <dmalcolm@redhat.com>
  55. * jit.dg/jit.exp: When constructing "tests", add the example files
  56. from the documentation, to ensure that they compile.
  57. 2014-09-10 David Malcolm <dmalcolm@redhat.com>
  58. * jit.dg/jit.exp: Load target-supports.exp.
  59. 2014-09-09 David Malcolm <dmalcolm@redhat.com>
  60. * jit.dg/test-nested-loops.c: New test case.
  61. * jit.dg/all-non-failing-tests.h: Add test-nested-loops.c.
  62. * jit.dg/test-combination.c (create_code): Likewise.
  63. (verify_code): Likewise.
  64. * jit.dg/test-threads.c (const): Add test-nested-loops.c.
  65. 2014-08-11 David Malcolm <dmalcolm@redhat.com>
  66. * jit.dg/test-threads.c: New test case, running all of the
  67. individual test cases in separate threads.
  68. * jit.dg/test-combination.c: Move inclusion of the various
  69. individual testcases into...
  70. * jit.dg/all-non-failing-tests.h: ...this new file, and rename
  71. TEST_COMBINATION to COMBINED_TEST.
  72. * jit.dg/harness.h: Respond to new macro MAKE_DEJAGNU_H_THREADSAFE
  73. by hacking up <dejagnu.h> to be threadsafe. Rename
  74. TEST_COMBINATION to COMBINED_TEST.
  75. * jit.dg/jit.exp (proc jit-dg-test): Add "-lpthread" when building
  76. test-threads.exe.
  77. 2014-08-08 David Malcolm <dmalcolm@redhat.com>
  78. * jit.dg/test-accessing-union.c: New test case.
  79. * jit.dg/test-combination.c: Add test-accessing-union.c.
  80. 2014-08-08 David Malcolm <dmalcolm@redhat.com>
  81. * jit.dg/test-combination.c (create_code): Add missing calls to
  82. create_code_quadratic and create_code_reading_struct.
  83. (verify_code): Add missing calls to verify_code_quadratic and
  84. verify_code_reading_struct.
  85. 2014-08-08 David Malcolm <dmalcolm@redhat.com>
  86. * jit.dg/test-calling-function-ptr.c: New test case.
  87. * jit.dg/test-combination.c: Add test-calling-function-ptr.c.
  88. * jit.dg/test-error-call-through-ptr-with-mismatching-args.c: New
  89. test case.
  90. * jit.dg/test-error-call-through-ptr-with-non-function.c: New test
  91. case.
  92. * jit.dg/test-error-call-through-ptr-with-non-pointer.c: New test
  93. case.
  94. * jit.dg/test-error-call-through-ptr-with-not-enough-args.c: New
  95. test case.
  96. 2014-07-25 David Malcolm <dmalcolm@redhat.com>
  97. * jit.dg/test-error-index-not-a-numeric-type.c: New test case.
  98. * jit.dg/test-error-value-not-a-numeric-type.c: New test case.
  99. 2014-03-19 David Malcolm <dmalcolm@redhat.com>
  100. * jit.dg/test-array-as-pointer.c: New test case, verifying that
  101. there's a way to treat arrays as pointers.
  102. * jit.dg/test-combination.c: Add test-array-as-pointer.c...
  103. (create_code): ...here and...
  104. (verify_code): ...here.
  105. * jit.dg/test-error-array-as-pointer.c: New test case, verifying
  106. that bogus casts from array to pointer are caught by the type
  107. system, rather than leading to ICEs seen in:
  108. https://github.com/davidmalcolm/pygccjit/pull/3#issuecomment-37883129
  109. 2014-03-18 David Malcolm <dmalcolm@redhat.com>
  110. * jit.dg/test-combination.c: Add test-arrays.c and test-volatile.c.
  111. Add comment about test-error-*.c. Remove comment about
  112. test-failure.c, which was removed in
  113. 96b218c9a1d5f39fb649e02c0e77586b180e8516.
  114. (create_code): Call into test-arrays.c and test-volatile.c.
  115. (verify_code): Likewise.
  116. 2014-03-14 David Malcolm <dmalcolm@redhat.com>
  117. * jit.dg/test-expressions.c (called_pointer_checking_function): New.
  118. (make_tests_of_casts): Add test of casting from array to pointer.
  119. (verify_casts): Likewise.
  120. 2014-03-13 David Malcolm <dmalcolm@redhat.com>
  121. * jit.dg/test-error-bad-cast.c: New test case.
  122. 2014-03-11 David Malcolm <dmalcolm@redhat.com>
  123. * jit.dg/harness.h (set_options): Increase optimization level from
  124. 0 to 3.
  125. 2014-03-07 David Malcolm <dmalcolm@redhat.com>
  126. * jit.dg/test-functions.c (create_test_of_hidden_function): New,
  127. adding test coverage for GCC_JIT_FUNCTION_ALWAYS_INLINE and
  128. GCC_JIT_FUNCTION_INTERNAL.
  129. (create_tests_of_hidden_functions): Likewise.
  130. (verify_hidden_functions): Likewise.
  131. (create_code): Add call to create_tests_of_hidden_functions.
  132. (verify_code): Add call to verify_hidden_functions.
  133. * jit.dg/test-quadratic.c (make_calc_discriminant): Convert
  134. from GCC_JIT_FUNCTION_EXPORTED to GCC_JIT_FUNCTION_INTERNAL.
  135. 2014-03-07 David Malcolm <dmalcolm@redhat.com>
  136. * jit.dg/test-functions.c: Reorder function definitions, grouping
  137. them by subject-matter rather than by create-vs-verify phase.
  138. 2014-03-06 David Malcolm <dmalcolm@redhat.com>
  139. * jit.dg/test-nested-contexts.c (main): Dump the contexts to
  140. files, setting up source locations, and adding test coverage for
  141. gcc_jit_context_dump_to_file.
  142. 2014-03-04 David Malcolm <dmalcolm@redhat.com>
  143. * jit.dg/test-error-mismatching-types-in-call.c: New test case,
  144. to ensure that a (struct foo *) vs (struct foo) type error is
  145. gracefully handled.
  146. 2014-03-04 David Malcolm <dmalcolm@redhat.com>
  147. * jit.dg/test-volatile.c: New testcase, to exercise
  148. gcc_jit_type_get_volatile, and show a way to work with pre-existing
  149. global variables.
  150. 2014-02-28 David Malcolm <dmalcolm@redhat.com>
  151. * jit.dg/test-expressions.c (make_test_of_cast): New, to test new
  152. entrypoint gcc_jit_context_new_cast.
  153. (make_tests_of_casts): New.
  154. (create_code): Add call to make_tests_of_casts.
  155. (verify_code): Add call to verify_casts.
  156. 2014-02-27 David Malcolm <dmalcolm@redhat.com>
  157. * jit.dg/test-accessing-struct.c (create_code): Port to
  158. block-based API.
  159. * jit.dg/test-calling-external-function.c (create_code): Likewise.
  160. * jit.dg/test-error-accessing-field-in-other-struct.c (create_code):
  161. Likewise.
  162. * jit.dg/test-error-call-with-mismatching-args.c (create_code):
  163. Likewise.
  164. * jit.dg/test-error-call-with-not-enough-args.c (create_code):
  165. Likewise.
  166. * jit.dg/test-error-call-with-too-many-args.c (create_code):
  167. Likewise.
  168. * jit.dg/test-error-dereference-field-of-non-pointer.c (create_code):
  169. Likewise.
  170. * jit.dg/test-error-dereference-read: Likewise.
  171. * jit.dg/test-error-mismatching-types-in-assignment.c: Likewise.
  172. * jit.dg/test-error-return-within-void-function.c: Likewise.
  173. * jit.dg/test-expressions.c: Likewise.
  174. * jit.dg/test-factorial.c: Likewise.
  175. * jit.dg/test-functions.c: Likewise.
  176. * jit.dg/test-fuzzer.c: Likewise.
  177. * jit.dg/test-hello-world.c (create_code): Likewise.
  178. * jit.dg/test-nested-contexts.c: Likewise.
  179. * jit.dg/test-operator-overloading.cc: Likewise.
  180. * jit.dg/test-quadratic.c: Likewise.
  181. * jit.dg/test-quadratic.cc: Likewise.
  182. * jit.dg/test-reading-struct.c (create_code): Likewise.
  183. * jit.dg/test-string-literal.c (create_code): Likewise.
  184. * jit.dg/test-sum-of-squares.c (create_code): Likewise.
  185. * jit.dg/test-types.c (create_code): Likewise.
  186. * jit.dg/test-using-global.c (create_code): Likewise.
  187. * jit.dg/test-arrays.c (create_code): Likewise, eliminating use of
  188. loop API.
  189. * jit.dg/test-dot-product.c (create_code): Likewise.
  190. * jit.dg/test-linked-list.c (create_code): Likewise.
  191. * jit.dg/test-error-adding-to-terminated-block.c: New testcase.
  192. * jit.dg/test-error-block-in-wrong-function.c: Likewise.
  193. * jit.dg/test-error-missing-return.c: Likewise.
  194. * jit.dg/test-error-unreachable-block.c: Likewise.
  195. * jit.dg/test-error-unterminated-block.c: Likewise.
  196. * jit.dg/test-error-label-already-placed.c: Delete obsolete testcase.
  197. * jit.dg/test-error-unplaced-label.c: Likewise.
  198. 2014-02-25 David Malcolm <dmalcolm@redhat.com>
  199. * jit.dg/test-functions.c (create_use_of_void_return): New, to add
  200. test coverage for gcc_jit_function_add_void_return.
  201. (verify_void_return): Likewise.
  202. (create_code): Add call to create_use_of_void_return.
  203. (verify_code): Add call to verify_void_return.
  204. 2014-02-18 David Malcolm <dmalcolm@redhat.com>
  205. * jit.dg/test-accessing-struct.c (create_code): Update for change to
  206. return type of gcc_jit_context_new_struct_type.
  207. * jit.dg/test-arrays.c (create_code): Likewise.
  208. * jit.dg/test-error-accessing-field-in-other-struct.c (create_code):
  209. Likewise.
  210. * jit.dg/test-error-dereference-field-of-non-pointer.c (create_code):
  211. Likewise.
  212. * jit.dg/test-fuzzer.c (make_random_type): Likewise.
  213. * jit.dg/test-nested-contexts.c (make_types): Likewise.
  214. * jit.dg/test-quadratic.c (make_types): Likewise.
  215. * jit.dg/test-reading-struct.c (create_code): Likewise.
  216. * jit.dg/test-types.c (create_code): Likewise.
  217. * jit.dg/test-linked-list.c: New selftest, exercising
  218. gcc_jit_context_new_opaque_struct, gcc_jit_type_get_pointer, and
  219. gcc_jit_context_null.
  220. * jit.dg/test-combination.c: Add test-linked-list.c
  221. 2014-02-14 David Malcolm <dmalcolm@redhat.com>
  222. * jit.dg/test-operator-overloading.cc (make_test_quadratic): Use
  223. the new "zero" and "one" methods of gccjit::type.
  224. * jit.dg/test-quadratic.cc (make_test_quadratic): Use the new
  225. "add_call" method of gccjit::function.
  226. 2014-02-13 David Malcolm <dmalcolm@redhat.com>
  227. * jit.dg/harness.h (CHECK_DOUBLE_VALUE): New macro.
  228. (CHECK): New macro.
  229. * jit.dg/test-functions.c: New testcase, exercising
  230. gcc_jit_context_get_builtin_function.
  231. * jit.dg/test-combination.c: Add test-functions.c to the combined
  232. test.
  233. 2014-02-11 David Malcolm <dmalcolm@redhat.com>
  234. * jit.dg/test-types.c: Add test coverage for getting type
  235. GCC_JIT_TYPE_BOOL.
  236. * jit.dg/test-expressions.c (make_test_of_comparison): Convert
  237. return type from int to bool.
  238. (verify_comparisons): Likewise.
  239. 2014-02-11 David Malcolm <dmalcolm@redhat.com>
  240. * jit.dg/test-error-unplaced-label.c (verify_code): Update
  241. expected error message to reflect commit
  242. 6cd4f82c5237cc328aea229cdaaa428ff09d6e98.
  243. 2014-02-10 David Malcolm <dmalcolm@redhat.com>
  244. * jit.dg/test-types.c (struct zoo): Add field m_sized_int_type,
  245. to be populated by...
  246. (create_code): Use gcc_jit_context_get_int_type.
  247. (verify_code): Verify that type from gcc_jit_context_get_int_type
  248. works properly.
  249. * jit.dg/test-operator-overloading.cc (make_types): Use the
  250. template form of get_int_type.
  251. * jit.dg/test-quadratic.cc (make_types): Likewise.
  252. 2014-02-10 David Malcolm <dmalcolm@redhat.com>
  253. * jit.dg/test-operator-overloading.cc: New testcase, a
  254. rewrite of test-quadratic.cc to use operator overloading.
  255. 2014-02-10 David Malcolm <dmalcolm@redhat.com>
  256. * jit.dg/test-quadratic.cc (make_calc_discriminant): Make use of
  257. new methods of the C++ wrapper API to shorten the example code.
  258. (make_test_quadratic): Likewise.
  259. 2014-02-10 David Malcolm <dmalcolm@redhat.com>
  260. * jit.dg/test-quadratic.cc (make_test_quadratic): Update for
  261. change to gccjit::context::new_call to pass args by reference
  262. rather than by value.
  263. 2014-02-03 David Malcolm <dmalcolm@redhat.com>
  264. * jit.dg/harness.h (check_string_value): Add a forward declaration,
  265. so that we can use CHECK_STRING_VALUE from within tests used by
  266. test-combination.c.
  267. * jit.dg/test-expressions.c (make_test_of_unary_op): Return a debug
  268. stringification of the operation so that it be sanity-checked.
  269. (make_test_of_binary_op): Likewise.
  270. (make_test_of_comparison): Likewise.
  271. (make_tests_of_unary_ops): Verify that said stringifications are
  272. indeed sane.
  273. (make_tests_of_binary_ops): Likewise.
  274. (make_tests_of_comparisons): Likewise.
  275. * jit.dg/test-quadratic.cc (make_types): Verify that the
  276. get_debug_string method works.
  277. (make_test_quadratic): Likewise, also, verify that the <<
  278. operator works.
  279. 2014-01-31 David Malcolm <dmalcolm@redhat.com>
  280. * jit.dg/test-quadratic.cc: New file - a translation of
  281. test-quadratic.c to the libgccjit++.h C++ API.
  282. 2014-01-30 David Malcolm <dmalcolm@redhat.com>
  283. * jit.dg/test-error-label-already-placed.c: New test case.
  284. * jit.dg/test-error-unplaced-label.c: New test case.
  285. 2014-01-30 David Malcolm <dmalcolm@redhat.com>
  286. * jit.dg/test-error-call-with-mismatching-args.c: New test case.
  287. 2014-01-30 David Malcolm <dmalcolm@redhat.com>
  288. * jit.dg/test-error-accessing-field-in-other-struct.c: New test
  289. case.
  290. * jit.dg/test-error-dereference-field-of-non-pointer.c: Likewise.
  291. * jit.dg/test-error-dereference-read-of-non-pointer.c: Likewise.
  292. * jit.dg/test-error-mismatching-types-in-assignment.c: Likewise.
  293. * jit.dg/test-error-return-within-void-function.c: Likewise.
  294. 2014-01-29 David Malcolm <dmalcolm@redhat.com>
  295. * jit.dg/test-accessing-struct.c (create_code): Update for API change
  296. for accessing fields in terms of gcc_jit_field pointers rather than
  297. by name.
  298. * jit.dg/test-nested-contexts.c (make_calc_discriminant): Likewise.
  299. (make_test_quadratic): Likewise.
  300. * jit.dg/test-quadratic.c (make_calc_discriminant): Likewise.
  301. (make_test_quadratic): Likewise.
  302. * jit.dg/test-reading-struct.c (create_code): Likewise.
  303. * jit.dg/test-types.c: Likewise.
  304. 2014-01-28 David Malcolm <dmalcolm@redhat.com>
  305. * jit.dg/harness.h (test_jit): Add the possibility of turning off
  306. this function, if the newly-coined "TEST_ESCHEWS_TEST_JIT" is
  307. defined, for use by...
  308. * jit.dg/test-nested-contexts.c: New test case, adapting
  309. test-quadratic.c, but splitting it into a 3-deep arrangement of
  310. nested contexts, to test the implementation of child contexts.
  311. 2014-01-28 David Malcolm <dmalcolm@redhat.com>
  312. * jit.dg/harness.h (test_jit): Move the various calls to set up
  313. options on the context into...
  314. (set_options): ...this new function.
  315. 2014-01-27 David Malcolm <dmalcolm@redhat.com>
  316. * jit.dg/test-error-call-with-not-enough-args.c: New test case.
  317. * jit.dg/test-error-call-with-too-many-args.c: New test case.
  318. * jit.dg/test-null-passed-to-api.c: Rename to...
  319. * jit.dg/test-error-null-passed-to-api.c: ...this, so that
  320. error-handling test cases are consistently named.
  321. 2014-01-24 David Malcolm <dmalcolm@redhat.com>
  322. * jit.dg/test-empty.c: New test case.
  323. 2014-01-24 David Malcolm <dmalcolm@redhat.com>
  324. * jit.dg/harness.h (code_making_callback): Rename to...
  325. (create_code): ...this, and eliminate the returned
  326. error-handling value: test cases will simply call into the
  327. gcc_jit_ API, without needing to be run from a callback.
  328. (test_jit): Don't register a callback, simply call the
  329. "create_code" function for the testcase before compiling the
  330. context.
  331. * jit.dg/test-accessing-struct.c: Rename "code_making_callback"
  332. to "create_code" and eliminate the return code.
  333. * jit.dg/test-calling-external-function.c: Likewise.
  334. * jit.dg/test-combination.c: Likewise.
  335. * jit.dg/test-dot-product.c: Likewise.
  336. * jit.dg/test-expressions.c: Likewise.
  337. * jit.dg/test-factorial.c: Likewise.
  338. * jit.dg/test-fibonacci.c: Likewise.
  339. * jit.dg/test-fuzzer.c: Likewise.
  340. * jit.dg/test-hello-world.c: Likewise.
  341. * jit.dg/test-null-passed-to-api.c: Likewise.
  342. * jit.dg/test-quadratic.c: Likewise.
  343. * jit.dg/test-reading-struct.c: Likewise.
  344. * jit.dg/test-string-literal.c: Likewise.
  345. * jit.dg/test-sum-of-squares.c: Likewise.
  346. * jit.dg/test-types.c: Likewise.
  347. * jit.dg/test-using-global.c: Likewise.
  348. * jit.dg/test-failure.c: Remove this test case, since it was
  349. specifically for testing the now-defunct callback-based API.
  350. 2014-01-23 David Malcolm <dmalcolm@redhat.com>
  351. * jit.dg/test-quadratic.c: New test case, written to achieve test
  352. coverage of gcc_jit_rvalue_access_field, but also exercising
  353. division of doubles.
  354. * jit.dg/test-combination.c: Add test-quadratic.c
  355. * jit.dg/test-expressions.c: Add TODOs.
  356. 2014-01-23 David Malcolm <dmalcolm@redhat.com>
  357. * jit.dg/test-reading-struct.c: New test, to provide test coverage
  358. of gcc_jit_type_get_const and gcc_jit_lvalue_access_field, in the
  359. process uncovering bugs in how locals were handled.
  360. * jit.dg/test-combination.c: Add usage of test-reading-struct.c.
  361. 2014-01-21 David Malcolm <dmalcolm@redhat.com>
  362. * jit.dg/test-hello-world.c (code_making_callback): Add usage of
  363. gcc_jit_function_add_comment.
  364. 2013-10-24 David Malcolm <dmalcolm@redhat.com>
  365. * jit.dg/harness.h (main): Wrap with #ifndef TEST_PROVIDES_MAIN
  366. * jit.dg/test-fuzzer.c: New.
  367. 2013-10-22 David Malcolm <dmalcolm@redhat.com>
  368. * jit.dg/harness.h (verify_code): Add context param so that
  369. test cases of failure can query errors on it.
  370. (CHECK_STRING_VALUE): New.
  371. (check_string_value): New.
  372. (test_jit): Add user_data param and pass it to the code factory.
  373. Pass context to verify_code, calling it before releasing said
  374. context.
  375. (main): Add NULL user_data to test_jit call.
  376. * jit.dg/test-accessing-struct.c (verify_code): Add context
  377. param.
  378. * jit.dg/test-calling-external-function.c (verify_code):
  379. Likewise.
  380. * jit.dg/test-combination.c (verify_code): Likewise.
  381. * jit.dg/test-dot-product.c (verify_code): Likewise.
  382. * jit.dg/test-expressions.c (verify_code): Likewise.
  383. * jit.dg/test-factorial.c (verify_code): Likewise.
  384. * jit.dg/test-failure.c (verify_code): Likewise.
  385. * jit.dg/test-fibonacci.c (verify_code): Likewise.
  386. * jit.dg/test-hello-world.c (verify_code): Likewise.
  387. * jit.dg/test-string-literal.c (verify_code): Likewise.
  388. * jit.dg/test-sum-of-squares.c (verify_code): Likewise.
  389. * jit.dg/test-types.c (verify_code): Likewise.
  390. * jit.dg/test-using-global.c (verify_code): Likewise.
  391. * jit.dg/test-null-passed-to-api.c (verify_code): Likewise;
  392. use context to verify that the library provides a sane error
  393. message to the client code.
  394. 2013-10-21 David Malcolm <dmalcolm@redhat.com>
  395. * jit.dg/test-expressions.c (test_global): New.
  396. (make_test_of_get_address): New.
  397. (verify_get_address): New.
  398. (code_making_callback): Add call to make_test_of_get_address.
  399. (verify_code): Add call to verify_get_address.
  400. 2013-10-18 David Malcolm <dmalcolm@redhat.com>
  401. * jit.dg/test-expressions.c: New.
  402. * jit.dg/test-combination.c: Add usage of test-expressions.c
  403. * jit.dg/test-accessing-struct.c (code_making_callback): Update
  404. for changes to field-access API.
  405. * jit.dg/test-types.c (code_making_callback): Likewise.
  406. 2013-10-18 David Malcolm <dmalcolm@redhat.com>
  407. * jit.dg/test-null-passed-to-api.c: New.
  408. 2013-10-17 David Malcolm <dmalcolm@redhat.com>
  409. * jit.dg/test-accessing-struct.c (code_making_callback): Update
  410. for changes to type API.
  411. * jit.dg/test-calling-external-function.c (code_making_callback):
  412. Likewise.
  413. * jit.dg/test-dot-product.c (code_making_callback): Likewise.
  414. * jit.dg/test-factorial.c (code_making_callback): Likewise.
  415. * jit.dg/test-fibonacci.c (code_making_callback): Likewise.
  416. * jit.dg/test-hello-world.c (code_making_callback): Likewise.
  417. * jit.dg/test-string-literal.c (code_making_callback): Likewise.
  418. * jit.dg/test-sum-of-squares.c (code_making_callback): Likewise.
  419. * jit.dg/test-using-globals.c (code_making_callback): Likewise.
  420. * jit.dg/test-types.c: New.
  421. * jit.dg/test-combination.c (code_making_callback): Use code
  422. from test-types.c.
  423. (verify_code): ...and verify it.
  424. 2013-10-16 David Malcolm <dmalcolm@redhat.com>
  425. * jit.dg/test-dot-product.c (code_making_callback): Update for
  426. API changes to locals.
  427. * jit.dg/test-sum-of-squares.c (code_making_callback): Likewise.
  428. 2013-10-14 David Malcolm <dmalcolm@redhat.com>
  429. * jit.dg/jit.exp (jit-dg-test): Detect compilation errors and
  430. make them be test failures.
  431. 2013-10-14 David Malcolm <dmalcolm@redhat.com>
  432. * jit.dg/test-factorial.c (code_making_callback): Update
  433. for change to gcc_jit_function_place_forward_label.
  434. * jit.dg/test-fibonacci.c (code_making_callback): Add line
  435. numbering to comment, and set up source locations throughout)
  436. allowing stepping throught the comment in the debugger.
  437. * jit.dg/test-sum-of-squares.c (code_making_callback): Update
  438. for change to gcc_jit_function_place_forward_label.
  439. 2013-10-10 David Malcolm <dmalcolm@redhat.com>
  440. * jit.dg/harness.h: Set GCC_JIT_BOOL_OPTION_DUMP_SUMMARY when
  441. running selftests.
  442. 2013-10-08 David Malcolm <dmalcolm@redhat.com>
  443. * jit.dg/harness.h: Wrap parts of harness within a
  444. #ifndef TEST_COMBINATION so that it can be included multiple
  445. times.
  446. * jit.dg/test-accessing-struct.c (code_making_callback): Rename
  447. the generated function from test_fn to test_access to avoid a
  448. naming collision in the combined test.
  449. (verify_code): Likewise.
  450. * jit.dg/test-calling-external-function.c (code_making_callback):
  451. Rename the generated function from test_fn to test_caller.
  452. (verify_code): Likewise.
  453. * jit.dg/test-combination.c: New.
  454. * jit.dg/test-string-literal.c (code_making_callback): Rename
  455. the generated function from test_fn to test_string_literal.
  456. (verify_code): Likewise.
  457. * jit.dg/test-using-global.c (code_making_callback): Rename
  458. the generated function from test_fn to test_using_global.
  459. (verify_code): Likewise.
  460. 2013-10-07 David Malcolm <dmalcolm@redhat.com>
  461. * jit.dg/harness.h (test_jit): Set
  462. GCC_JIT_BOOL_OPTION_SELFCHECK_GC when running selftests.
  463. 2013-10-04 David Malcolm <dmalcolm@redhat.com>
  464. * jit.dg/test-using-global.c: New.
  465. 2013-10-03 David Malcolm <dmalcolm@redhat.com>
  466. * jit.dg: New subdirectory
  467. * jit.dg/harness.h: New.
  468. * jit.dg/jit.exp: New.
  469. * jit.dg/test-accessing-struct.c: New.
  470. * jit.dg/test-calling-external-function.c: New.
  471. * jit.dg/test-dot-product.c: New.
  472. * jit.dg/test-factorial.c: New.
  473. * jit.dg/test-failure.c: New.
  474. * jit.dg/test-fibonacci.c: New.
  475. * jit.dg/test-hello-world.c: New.
  476. * jit.dg/test-string-literal.c: New.
  477. * jit.dg/test-sum-of-squares.c: New.
  478. Copyright (C) 2013-2014 Free Software Foundation, Inc.
  479. Copying and distribution of this file, with or without modification,
  480. are permitted in any medium without royalty provided the copyright
  481. notice and this notice are preserved.