https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28032

--- Comment #13 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #11)
> It needs to be on a line on its own, and start with dg-
> 
> So: 
> 
> ! { dg-gfortran-onepass }
> 
> And rename the proc to match.

Did this:

! { dg-do run }
! { dg-gfortran-onepass }
! { dg-options "-ffrontend-optimize -fdump-tree-optimized -Wrealloc-lhs" }

Renamed the procedure:

proc dg-gfortran-onepass { } {
        global DO_ONE_PASS 
        set DO_ONE_PASS 1
        puts "\nRunning dg-gfortran-onepass\n"
}

It will not execute to set the flag. It is as if it does not exist. I can scan
the test file for a string that matches dg-gfortran-onepass" and set the flag
based on that but I was trying to avoid this approach.

Reply via email to