public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r9-9017] libgomp testsuite: tell warning from error diagnostics, etc. [PR80219, PR85303]
@ 2020-11-02 13:30 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2020-11-02 13:30 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d824c5df1714403067f2a7170dd884887ce04712
commit r9-9017-gd824c5df1714403067f2a7170dd884887ce04712
Author: Thomas Schwinge <thomas@codesourcery.com>
Date: Thu Oct 29 10:29:19 2020 +0100
libgomp testsuite: tell warning from error diagnostics, etc. [PR80219, PR85303]
This changes makes 'dg-warning', 'dg-error', 'dg-bogus', 'dg-message' behave as
expected, and also enables use of relative line numbers as well as 'dg-line'.
libgomp/
PR testsuite/80219
PR testsuite/85303
* testsuite/lib/libgomp.exp (libgomp_init): Set
'gcc_warning_prefix', 'gcc_error_prefix'.
(cherry picked from commit 528507fa0314c75d1105890e4781a475c8badd7c)
Diff:
---
libgomp/testsuite/lib/libgomp.exp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libgomp/testsuite/lib/libgomp.exp b/libgomp/testsuite/lib/libgomp.exp
index 14d9b5f1305..bee273df3b0 100644
--- a/libgomp/testsuite/lib/libgomp.exp
+++ b/libgomp/testsuite/lib/libgomp.exp
@@ -229,6 +229,12 @@ proc libgomp_init { args } {
if { $offload_additional_options != "" } {
lappend ALWAYS_CFLAGS "additional_flags=${offload_additional_options}"
}
+
+ # Tell warning from error diagnostics. This fits for C, C++, and Fortran.
+ global gcc_warning_prefix
+ set gcc_warning_prefix "\[Ww\]arning:"
+ global gcc_error_prefix
+ set gcc_error_prefix "(\[Ff\]atal )?\[Ee\]rror:"
}
#
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-02 13:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 13:30 [gcc r9-9017] libgomp testsuite: tell warning from error diagnostics, etc. [PR80219, PR85303] Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).