On 26/10/15 13:24, Bernd Schmidt wrote:
On 10/26/2015 02:17 PM, Teresa Johnson wrote:
On Mon, Oct 26, 2015 at 2:00 AM, Renlin Li <renlin...@arm.com> wrote:
     * lib/target-supports.exp (check_effective_target_freorder): Add
     -fprofile-use flag.

Hmmm, the testcases themselves which use this predicate only use -freorder-and-partition, so maybe this requires more thought.

Yes. In all of the related testcases, only -freorder-and-partition flag is provided explicitly.
How about creating a new dg-add-options for freorder?

proc add_options_for_freorder { flags } {
    return "$flags -freorder-blocks-and-partition -fprofile-use"
}


proc check_effective_target_freorder {} {
    return [check_no_compiler_messages freorder object {
    void foo (void) { }
    } [add_options_for_freorder ""]]
}

And in all test case which requires freorder support, "{ dg-add-options freorder }" is used to add necessary compiler flags?


Regards,
Renlin


Bernd


Reply via email to