On Mon, 29 Jul 2024 at 09:20, Thomas Koenig via Gcc <gcc@gcc.gnu.org> wrote: > > Hi, > > for the fortran-unsigned branch, I would like to be able to run all > existing Fortran tests also with -funsigned, to make sure the option > does not break anything on existing code. > > Question is: How? > > I came as far as > > $ make check-fortran RUNTESTFLAGS="--target_board=unix/-funsigned" > > but that causes testsuite failures because C does not recognize > the option. > > Any other possibilites?
I haven't tested it, but based on testsuite/gfortran.dg/dg.exp it looks like you could add this in ~/.dejagnurc set DEFAULT_FFLAGS "-funsigned -pedantic-errors" (The -pedantic-errors is what dg.exp uses if the variable doesn't already exist, so this preserves that.) If you're using a site.exp you could add this there instead of ~/.dejagnurc