aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2015-01-07 15:35:19 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2015-01-07 15:35:19 +0000
commit50bb6c8e11803519bba0e58f9efee524acb99fc1 (patch)
tree64116de24159216581dd84fe697606111612d6e4 /gcc
parent4ffafd86209ac23e18c3c9e0bf4ac5b3e0d65e0d (diff)
downloadgcc-50bb6c8e11803519bba0e58f9efee524acb99fc1.zip
gcc-50bb6c8e11803519bba0e58f9efee524acb99fc1.tar.gz
gcc-50bb6c8e11803519bba0e58f9efee524acb99fc1.tar.bz2
jit.exp: Don't drop the extension from the testcase when naming executable
gcc/jit/ChangeLog: * docs/internals/index.rst: Update to reflect that built testcases are now test-foo.c.exe, rather than test-foo.exe. * docs/_build/texinfo/libgccjit.texi: Regenerate. gcc/testsuite/ChangeLog: * jit.dg/jit.exp (jit-dg-test): Remove "rootname" call when generating name of built executable. From-SVN: r219312
Diffstat (limited to 'gcc')
-rw-r--r--gcc/jit/ChangeLog6
-rw-r--r--gcc/jit/docs/_build/texinfo/libgccjit.texi22
-rw-r--r--gcc/jit/docs/internals/index.rst8
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/jit.dg/jit.exp14
5 files changed, 39 insertions, 16 deletions
diff --git a/gcc/jit/ChangeLog b/gcc/jit/ChangeLog
index 5685b1f..6126d02 100644
--- a/gcc/jit/ChangeLog
+++ b/gcc/jit/ChangeLog
@@ -1,3 +1,9 @@
+2015-01-07 David Malcolm <dmalcolm@redhat.com>
+
+ * docs/internals/index.rst: Update to reflect that built
+ testcases are now test-foo.c.exe, rather than test-foo.exe.
+ * docs/_build/texinfo/libgccjit.texi: Regenerate.
+
2015-01-05 Jakub Jelinek <jakub@redhat.com>
Update copyright years.
diff --git a/gcc/jit/docs/_build/texinfo/libgccjit.texi b/gcc/jit/docs/_build/texinfo/libgccjit.texi
index 72feecd..64862dc 100644
--- a/gcc/jit/docs/_build/texinfo/libgccjit.texi
+++ b/gcc/jit/docs/_build/texinfo/libgccjit.texi
@@ -19,7 +19,7 @@
@copying
@quotation
-libgccjit 5.0.0 (experimental 20141211), December 11, 2014
+libgccjit 5.0.0 (experimental 20150107), January 07, 2015
David Malcolm
@@ -1185,7 +1185,7 @@ Here's what the final control flow graph will look like:
@float Figure
-@image{sum-of-squares,,,image of a control flow graph,png}
+@image{sum-of-squares1,,,image of a control flow graph,png}
@end float
@@ -1570,7 +1570,7 @@ install it with @cite{yum install python-xdot}):
@float Figure
-@image{sum-of-squares,,,image of a control flow graph,png}
+@image{sum-of-squares1,,,image of a control flow graph,png}
@end float
@@ -2834,7 +2834,7 @@ errors in our compiler.
@float Figure
-@image{factorial,,,image of a control flow graph,png}
+@image{factorial1,,,image of a control flow graph,png}
@end float
@@ -7436,7 +7436,7 @@ Here's what the final control flow graph will look like:
@float Figure
-@image{sum-of-squares1,,,image of a control flow graph,png}
+@image{sum-of-squares,,,image of a control flow graph,png}
@end float
@@ -7852,7 +7852,7 @@ install it with @cite{yum install python-xdot}):
@float Figure
-@image{sum-of-squares1,,,image of a control flow graph,png}
+@image{sum-of-squares,,,image of a control flow graph,png}
@end float
@@ -9021,7 +9021,7 @@ errors in our compiler.
@float Figure
-@image{factorial1,,,image of a control flow graph,png}
+@image{factorial,,,image of a control flow graph,png}
@end float
@@ -12050,7 +12050,7 @@ and once a test has been compiled, you can debug it directly:
LD_LIBRARY_PATH=. \
LIBRARY_PATH=. \
gdb --args \
- testsuite/jit/test-factorial.exe
+ testsuite/jit/test-factorial.c.exe
@end example
@noindent
@@ -12094,11 +12094,11 @@ $ RUN_UNDER_VALGRIND= \
$ less testsuite/jit/jit.sum
(...other results...)
-XFAIL: jit.dg/test-sum-of-squares.c: test-sum-of-squares.exe.valgrind.txt: definitely lost: 8 bytes in 1 blocks
-XFAIL: jit.dg/test-sum-of-squares.c: test-sum-of-squares.exe.valgrind.txt: unsuppressed errors: 1
+XFAIL: jit.dg/test-sum-of-squares.c: test-sum-of-squares.c.exe.valgrind.txt: definitely lost: 8 bytes in 1 blocks
+XFAIL: jit.dg/test-sum-of-squares.c: test-sum-of-squares.c.exe.valgrind.txt: unsuppressed errors: 1
(...other results...)
-$ less testsuite/jit/test-sum-of-squares.exe.valgrind.txt
+$ less testsuite/jit/test-sum-of-squares.c.exe.valgrind.txt
(...shows full valgrind report for this test case...)
@end example
diff --git a/gcc/jit/docs/internals/index.rst b/gcc/jit/docs/internals/index.rst
index 1d46818..424c73e 100644
--- a/gcc/jit/docs/internals/index.rst
+++ b/gcc/jit/docs/internals/index.rst
@@ -116,7 +116,7 @@ and once a test has been compiled, you can debug it directly:
LD_LIBRARY_PATH=. \
LIBRARY_PATH=. \
gdb --args \
- testsuite/jit/test-factorial.exe
+ testsuite/jit/test-factorial.c.exe
Running under valgrind
**********************
@@ -152,11 +152,11 @@ For example, the following invocation verbosely runs the testcase
$ less testsuite/jit/jit.sum
(...other results...)
- XFAIL: jit.dg/test-sum-of-squares.c: test-sum-of-squares.exe.valgrind.txt: definitely lost: 8 bytes in 1 blocks
- XFAIL: jit.dg/test-sum-of-squares.c: test-sum-of-squares.exe.valgrind.txt: unsuppressed errors: 1
+ XFAIL: jit.dg/test-sum-of-squares.c: test-sum-of-squares.c.exe.valgrind.txt: definitely lost: 8 bytes in 1 blocks
+ XFAIL: jit.dg/test-sum-of-squares.c: test-sum-of-squares.c.exe.valgrind.txt: unsuppressed errors: 1
(...other results...)
- $ less testsuite/jit/test-sum-of-squares.exe.valgrind.txt
+ $ less testsuite/jit/test-sum-of-squares.c.exe.valgrind.txt
(...shows full valgrind report for this test case...)
When running under valgrind, it's best to have configured gcc with
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 259d87f..c352a1d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-07 David Malcolm <dmalcolm@redhat.com>
+
+ * jit.dg/jit.exp (jit-dg-test): Remove "rootname" call when
+ generating name of built executable.
+
2015-01-07 Marek Polacek <polacek@redhat.com>
PR c/64440
diff --git a/gcc/testsuite/jit.dg/jit.exp b/gcc/testsuite/jit.dg/jit.exp
index a37ccc7..307cc04 100644
--- a/gcc/testsuite/jit.dg/jit.exp
+++ b/gcc/testsuite/jit.dg/jit.exp
@@ -302,7 +302,19 @@ proc jit-dg-test { prog do_what extra_tool_flags } {
}
# Determine what to name the built executable.
- set output_file "[file rootname [file tail $prog]].exe"
+ #
+ # We simply append .exe to the filename, e.g.
+ # "test-foo.c.exe"
+ # since some testcases exist in both
+ # "test-foo.c" and
+ # "test-foo.cc"
+ # variants, and we don't want them to clobber each other's
+ # executables.
+ #
+ # This also ensures that the source name makes it into the
+ # pass/fail output, so that we can distinguish e.g. which test-foo
+ # is failing.
+ set output_file "[file tail $prog].exe"
verbose "output_file: $output_file"
# Create the test executable: