This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/25241] DejaGNU does not distinguish between errors and warnings
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2007 21:01:50 -0000
- Subject: [Bug testsuite/25241] DejaGNU does not distinguish between errors and warnings
- References: <bug-25241-1000@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from joseph at codesourcery dot com 2007-01-30 21:01 -------
Subject: Re: DejaGNU does not distinguish between errors
and warnings
On Tue, 30 Jan 2007, manu at gcc dot gnu dot org wrote:
> I have the following patch. Framework tests work. However, this patch will make
> a lot of tests to fail because:
>
> * Many tests are using the wrong dg-warning or dg-error directive.
> * Many tests add an explicit "warning:" or "error:" to workaround this bug.
> * Many tests match several warning/error messages with a single
> dg-warning/dg-error directive.
>
> So what we want to do? Fix the testcases or do nothing?
Fix the testcases.
(a) Fix tests using the wrong one of dg-warning or dg-error, and tests
matching multiple diagnostics with a single directive, bit by bit. Such
fixes should not depend on this patch.
(b) Apply this patch and remove the "warning:" and "error:" workarounds.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25241