PR 30824 -Werror -Wfatal-errors should stop after the first warning

Manuel López-Ibáñez lopezibanez@gmail.com
Mon Feb 19 21:01:00 GMT 2007


On 19 Feb 2007 14:06:19 -0600, Gabriel Dos Reis <gdr@cs.tamu.edu> wrote:
> "Manuel López-Ibáñez" <lopezibanez@gmail.com> writes:
>
> | Notable differences in this patch from DJ's version are:
> |
> | * The message of -Wfatal-errors now prints the program name as most
> | other messages do. "cc1: compilation terminated due to
> | -Wfatal-errors.". I needed to do this in order to be able to construct
> | testcases.
>
> Hmm, I failed to see that need in the testcases you submitted.  Could you
> elaborate?
>

dg-warning, dg-error were not able to match the message otherwise.
Perhaps they expect a ":".  Humm, now that I look to it more closely,
I think that dejagnu expects at least one character before the
pattern, so I could change the pattern to something like "terminated
due to -Wfatal-errors" and it may work.

In any case, many messages print the program name (for example,
"warnings treated as errors" does), so I thought it was consistent.

Let me know if you really hate it and I can try changing the matching pattern.

Cheers,

Manuel.



More information about the Gcc-patches mailing list