@@ -1,3 +1,10 @@
+2014-09-18 David Malcolm <dmalcolm@redhat.com>
+
+ * docs/examples/install-hello-world.c (main): Fix missing
+ "return".
+ * docs/examples/tut01-square.c (main): Likewise.
+ * docs/examples/tut02-sum-of-squares.c (main): Likewise.
+
2014-09-17 David Malcolm <dmalcolm@redhat.com>
* docs/Makefile: New file.
@@ -100,4 +100,5 @@ main (int argc, char **argv)
gcc_jit_context_release (ctxt);
gcc_jit_result_release (result);
+ return 0;
}
@@ -84,4 +84,5 @@ main (int argc, char **argv)
error:
gcc_jit_context_release (ctxt);
gcc_jit_result_release (result);
+ return 0;
}
@@ -149,4 +149,5 @@ main (int argc, char **argv)
error:
gcc_jit_context_release (ctxt);
gcc_jit_result_release (result);
+ return 0;
}
@@ -1,3 +1,8 @@
+2014-09-18 David Malcolm <dmalcolm@redhat.com>
+
+ * jit.dg/jit.exp: When constructing "tests", add the example files
+ from the documentation, to ensure that they compile.
+
2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* gcc.target/powerpc/swaps-p8-15.c: Remove scan-assembler-not for
@@ -33,7 +33,14 @@ if ![info exists GCC_UNDER_TEST] {
dg-init
# Gather a list of all tests.
+
+# Tests within the testsuite: gcc/testsuite/jit.dg/test-*.c
set tests [lsort [find $srcdir/$subdir test-*.c]]
+
+# We also test the examples within the documentation, to ensure that
+# they compile:
+set tests [lsort [concat $tests [find $srcdir/../jit/docs/examples *.c]]]
+
verbose "tests: $tests"
proc jit-dg-test { prog do_what extra_tool_flags } {