https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123025
--- Comment #6 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to anlauf from comment #5)
> (In reply to Steve Kargl from comment #4)
> >
> > I have been testing the same patch!
> >
> > It causes 50-ish regressions in the testsuite due to -pedantic-errors
> > being added to 'dg-do run' without 'dg-options yada yada'
>
> Indeed, although I've seen only part of them yet...
After a bit of *.exp reading, it seems adding
{ dg-options "" } to the affected testcases will
suppress the -pedantic-errors option.