diff options
author | Marek Polacek <polacek@redhat.com> | 2024-04-19 13:51:41 -0400 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2024-04-22 11:25:40 -0400 |
commit | 0db19228a9feba5a8f4e13b21f25f3aa8a6c5e85 (patch) | |
tree | fc4b48b56d34722474bdf8c3e4bed726b5a754be | |
parent | cacc55a4c0be8d0bc7417b6a28924eadbbe428e3 (diff) | |
download | gcc-0db19228a9feba5a8f4e13b21f25f3aa8a6c5e85.zip gcc-0db19228a9feba5a8f4e13b21f25f3aa8a6c5e85.tar.gz gcc-0db19228a9feba5a8f4e13b21f25f3aa8a6c5e85.tar.bz2 |
testsuite: prune -freport-bug output
When the compiler defaults to -freport-bug, a few dg-ice tests fail
with:
Excess errors:
Preprocessed source stored into /tmp/cc6hldZ0.out file, please attach this to your bugreport.
We could add -fno-report-bug to those tests. But it seems to me that a
better fix would be to prune the "Preprocessed source stored..." message
in prune_gcc_output.
gcc/testsuite/ChangeLog:
* lib/prune.exp (prune_gcc_output): Also prune -freport-bug output.
Reviewed-by: Jakub Jelinek <jakub@redhat.com>
-rw-r--r-- | gcc/testsuite/lib/prune.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp index f3d3c99..d00d37f 100644 --- a/gcc/testsuite/lib/prune.exp +++ b/gcc/testsuite/lib/prune.exp @@ -51,6 +51,7 @@ proc prune_gcc_output { text } { regsub -all "(^|\n)\[^\n\]*: re(compiling|linking)\[^\n\]*" $text "" text regsub -all "(^|\n)Please submit.*instructions\[^\n\]*" $text "" text regsub -all "(^|\n)\[0-9\]\[0-9\]* errors\." $text "" text + regsub -all "(^|\n)Preprocessed.*bugreport\[^\n\]*" $text "" text # Diagnostic inclusion stack regsub -all "(^|\n)(In file)?\[ \]+included from \[^\n\]*" $text "" text |