------- Comment #20 from janis at gcc dot gnu dot org  2007-02-03 22:58 -------
Created an attachment (id=13003)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13003&action=view)
preliminary patch

Manuel, I like your idea of letting the DejaGnu procs do most of the work and
then modifying the regular expressions they've added to dg-messages, so I got
sidetracked playing around with that; see the attached patch.  It prepends
warning/error prefixes defined for each language (which I've only defined for C
and Fortran so far), and adds a generic dg-message for messages that don't use
a common prefix.  For some reason my setup for running individual tests is
failing for tests with more than one message per line so I haven't yet tested
dg-message.

I now think that it's OK to wrap dg-error and dg-warning to modify dg-messages
and keep using those names in the GCC tests.  We should have fixes to all tests
before adding the changes to mainline.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25241

Reply via email to