On Thu, 26 May 2011, Janis Johnson wrote:
> On 05/26/2011 01:23 PM, Bernd Schmidt wrote:
> > On 05/26/2011 08:20 PM, Janis Johnson wrote:
> >> Changes went into ARM support recently to add an informative note after an
> >> error about an invalid argument to -march=. This patch looks for that
> >> message on ARM targets and allows the test to once again pass.
> >>
> >> OK for trunk?
> >
> > mtune.c does the following:
> >
> > /* { dg-prune-output "note: valid arguments.*" } */
> >
> > which is probably better as it's target independent? OK to make that change.
>
> I would prefer to look for the note in both tests, currently for arm
> and perhaps later for additional targets that use it. Let's see what
> others have to say.
It should end up being every target; if you want to list targets
explicitly you should use a blacklist of targets that haven't been
converted to use Enum for -march= yet. Except that targets may not have
-march= at all, so that doesn't work without whitelisting the targets with
no -march= option. I think pruning for all targets is the right approach.
--
Joseph S. Myers
[email protected]