[testsuite] Add scan-offload-tree-dump
authorTom de Vries <tom@codesourcery.com>
Thu, 3 May 2018 13:47:14 +0000 (13:47 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 3 May 2018 13:47:14 +0000 (13:47 +0000)
commit63f122152f8f6f02cfd19677167f05428c2e7f9a
tree7b5d38fb1dab01d3511c3a6535732e83ba4a05c2
parenta378f85c5416aaf7ffea7ee114ee166ff4dd92da
[testsuite] Add scan-offload-tree-dump

2018-05-03  Tom de Vries  <tom@codesourcery.com>

PR testsuite/85106
* lib/scanoffloadtree.exp: New file.

* testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
extra_tool_flags if it contains an -foffload=-fdump-* flag.
* testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
* testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.

* doc/sourcebuild.texi (Commands for use in dg-final, Scan optimization
dump files): Add offload-tree.

From-SVN: r259892
gcc/ChangeLog
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/lib/scanoffloadtree.exp [new file with mode: 0644]
libgomp/ChangeLog
libgomp/testsuite/lib/libgomp-dg.exp
libgomp/testsuite/lib/libgomp.exp
libgomp/testsuite/libgomp.oacc-c/vec.c