diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2023-03-03 21:18:05 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2023-03-07 02:27:06 +0100 |
commit | 1690f928b379e8dac07832d25865ffe37d3c858b (patch) | |
tree | e122c0e744a82738e7d6cd2381fcb8855c2e7cca /gcc | |
parent | e43f970c7ff6aa7e410a59b275542db678c7f2d7 (diff) | |
download | gcc-1690f928b379e8dac07832d25865ffe37d3c858b.zip gcc-1690f928b379e8dac07832d25865ffe37d3c858b.tar.gz gcc-1690f928b379e8dac07832d25865ffe37d3c858b.tar.bz2 |
testsuite: Support scanning tree-dumps
No planned usage.
* lib/target-supports.exp (check_compile): Support scanning tree-dumps.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 4bad4da..a4fbc19 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -87,6 +87,7 @@ proc check_compile {basename type contents args} { assembly { set output ${basename}[pid].s } object { set output ${basename}[pid].o } executable { set output ${basename}[pid].exe } + "tree-*" - "rtl-*" { set output ${basename}[pid].s lappend options "additional_flags=-fdump-$type" @@ -108,6 +109,9 @@ proc check_compile {basename type contents args} { if [regexp "rtl-(.*)" $type dummy rtl_type] { set scan_output "[glob $src.\[0-9\]\[0-9\]\[0-9\]r.$rtl_type]" file delete $output + } elseif [regexp "tree-(.*)" $type dummy tree_type] { + set scan_output "[glob $src.\[0-9\]\[0-9\]\[0-9\]t.$tree_type]" + file delete $output } # Restore additional_sources. |