# Some torture-options cause intermediate code output, unusable for
# testing using e.g. scan-assembler. In this variable are the options
# how to force it, when needed.
-global gcc_force_conventional_output
-set gcc_force_conventional_output ""
+global gcc_set_required_options
+set gcc_set_required_options ""
if [info exists TORTURE_OPTIONS] {
set DG_TORTURE_OPTIONS $TORTURE_OPTIONS
{ -Os } ]
if [check_effective_target_lto] {
- set gcc_force_conventional_output "-ffat-lto-objects"
+ set gcc_set_required_options "-ffat-lto-objects"
}
}
dg-scan "scan-assembler" 1 $testcase $output_file $args
}
-force_conventional_output_for scan-assembler
+set_required_options_for scan-assembler
# Check that a pattern is not present in the .s file produced by the
# compiler. See dg-scan for details.
dg-scan "scan-assembler-not" 0 $testcase $output_file $args
}
-force_conventional_output_for scan-assembler-not
+set_required_options_for scan-assembler-not
# Return the scan for the assembly for hidden visibility.
}
}
-force_conventional_output_for scan-assembler-times
+set_required_options_for scan-assembler-times
# Utility for scanning demangled compiler result, invoked via dg-final.
# Call pass if pattern is present, otherwise fail.
}
}
-force_conventional_output_for scan-rtl-dump
+set_required_options_for scan-rtl-dump
# Call pass if pattern is present given number of times, otherwise fail.
# Argument 0 is the regexp to match
}
}
-force_conventional_output_for scan-rtl-dump-times
+set_required_options_for scan-rtl-dump-times
# Call pass if pattern is not present, otherwise fail.
#
}
}
-force_conventional_output_for scan-rtl-dump-not
+set_required_options_for scan-rtl-dump-not
# Utility for scanning demangled compiler result, invoked via dg-final.
# Call pass if pattern is present, otherwise fail.
}
}
-force_conventional_output_for scan-rtl-dump-dem
+set_required_options_for scan-rtl-dump-dem
# Call pass if demangled pattern is not present, otherwise fail.
#
}
}
-force_conventional_output_for scan-rtl-dump-dem-not
+set_required_options_for scan-rtl-dump-dem-not
# Record that dg-final test TEST requires convential compilation.
-proc force_conventional_output_for { test } {
+proc set_required_options_for { test } {
if { [info proc $test] == "" } {
perror "$test does not exist"
exit 1
}
proc ${test}_required_options {} {
- global gcc_force_conventional_output
+ global gcc_set_required_options
upvar 1 extra_tool_flags extra_tool_flags
if {[regexp -- "^scan-assembler" [info level 0]]
&& ![string match "*-fident*" $extra_tool_flags]} {
# Do not let .ident confuse assembler scan tests
- return [list $gcc_force_conventional_output "-fno-ident"]
+ return [list $gcc_set_required_options "-fno-ident"]
}
- return $gcc_force_conventional_output
+ return $gcc_set_required_options
}
}