This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug testsuite/25241] DejaGNU does not distinguish between errors and warnings



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]