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: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Feb 2007 00:31:21 -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 #21 from manu at gcc dot gnu dot org 2007-02-28 00:31 -------
(In reply to comment #20)
> Created an attachment (id=13003)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13003&action=view) [edit]
> preliminary patch
>
This patch only works for fortran and C front-ends. ObjC and C++ need to have
their respective objc.exp and g++.exp patched. I would prefer to have a global
setting that is overridden by fortran and whoever else needs a special
treatment.
Also, the regexp produced by this patch looks like "warning:[^\n]* $expmsg". I
think that 'concat' introduces the spurious space character. Thus,
- set expmsg [concat "$msgprefix\[^\n]*" $expmsg]
+ set expmsg "$msgprefix\[^\n]*$expmsg"
(This is mostly a note to myself.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25241