http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36680

--- Comment #8 from Uros Bizjak <ubizjak at gmail dot com> 2012-09-02 08:01:50 
UTC ---
(In reply to comment #7)

> What is the magic to avoid the -O in "-O  -O1 -fschedule-insns"?

You can't.  This is how currently gfortran testsuite works.

The part that should eventually be fixed is in lib/gfortran.exp:

    # look if this is dg-do-run test, in which case
    # we cycle through the option list, otherwise we don't
    if [expr [search_for $test "dg-do run"]] {
        set option_list $torture_with_loops
    } else {
        set option_list [list { -O } ]
    }

Reply via email to