aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/lib/libgomp-dg.exp
blob: 726b924d67f3d26d97b4dfe4b4b34290564360ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
proc libgomp-dg-test { prog do_what extra_tool_flags } {
    # Force the dumpbase for test.c to test.o, such that scan-offload-*-dump
    # will work.
    foreach opt $extra_tool_flags {
	if { [regexp ^-foffload=-fdump- $opt] } {
	    lappend extra_tool_flags "-save-temps"
	}
    }

    return [gcc-dg-test-1 libgomp_target_compile $prog $do_what $extra_tool_flags]
}

proc libgomp-dg-prune { system text } {
    return [gcc-dg-prune $system $text]
}