aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2014-01-20 21:21:53 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2014-01-20 21:21:53 +0000
commit6d1a1d9d65bf9729e5eba6670cbbb94d355480b0 (patch)
treeb5c17b8c6bf7653026721d5c18dced2a2d1cd5ea /gcc
parent9d0bb2ea718b444970519eb7faae8123c282501d (diff)
downloadgcc-6d1a1d9d65bf9729e5eba6670cbbb94d355480b0.zip
gcc-6d1a1d9d65bf9729e5eba6670cbbb94d355480b0.tar.gz
gcc-6d1a1d9d65bf9729e5eba6670cbbb94d355480b0.tar.bz2
target-supports.exp (force_conventional_output_for): New procedure.
gcc/testsuite/ * lib/target-supports.exp (force_conventional_output_for): New procedure. * lib/scanasm.exp (scan-assembler_required_options) (scan-assembler-not_required_options) (scan-assembler-times_required_options): Replace with force_conventional_output_fors. * lib/scanrtl.exp: Force conventional output for all rtl dump scans. * gcc.target/mips/octeon-pipe-1.c: Remove -ffat-lto-objects. From-SVN: r206860
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog11
-rw-r--r--gcc/testsuite/gcc.target/mips/octeon-pipe-1.c2
-rw-r--r--gcc/testsuite/lib/scanasm.exp15
-rw-r--r--gcc/testsuite/lib/scanrtl.exp10
-rw-r--r--gcc/testsuite/lib/target-supports.exp14
5 files changed, 39 insertions, 13 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index dad2c3c..10a7625 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,14 @@
+2014-01-20 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * lib/target-supports.exp (force_conventional_output_for): New
+ procedure.
+ * lib/scanasm.exp (scan-assembler_required_options)
+ (scan-assembler-not_required_options)
+ (scan-assembler-times_required_options): Replace with
+ force_conventional_output_fors.
+ * lib/scanrtl.exp: Force conventional output for all rtl dump scans.
+ * gcc.target/mips/octeon-pipe-1.c: Remove -ffat-lto-objects.
+
2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/59789
diff --git a/gcc/testsuite/gcc.target/mips/octeon-pipe-1.c b/gcc/testsuite/gcc.target/mips/octeon-pipe-1.c
index 769ac9d..4488e3d 100644
--- a/gcc/testsuite/gcc.target/mips/octeon-pipe-1.c
+++ b/gcc/testsuite/gcc.target/mips/octeon-pipe-1.c
@@ -1,6 +1,6 @@
/* Check that we use the octeon pipeline description. */
/* { dg-do compile } */
-/* { dg-options "-march=octeon -fschedule-insns2 -fdump-rtl-sched2 -ffat-lto-objects" } */
+/* { dg-options "-march=octeon -fschedule-insns2 -fdump-rtl-sched2" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
NOMIPS16 int f (int a, int b)
diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp
index 788f622..6e3e9d8 100644
--- a/gcc/testsuite/lib/scanasm.exp
+++ b/gcc/testsuite/lib/scanasm.exp
@@ -82,10 +82,7 @@ proc scan-assembler { args } {
dg-scan "scan-assembler" 1 $testcase $output_file $args
}
-proc scan-assembler_required_options { args } {
- global gcc_force_conventional_output
- return $gcc_force_conventional_output
-}
+force_conventional_output_for scan-assembler
# Check that a pattern is not present in the .s file produced by the
# compiler. See dg-scan for details.
@@ -97,10 +94,7 @@ proc scan-assembler-not { args } {
dg-scan "scan-assembler-not" 0 $testcase $output_file $args
}
-proc scan-assembler-not_required_options { args } {
- global gcc_force_conventional_output
- return $gcc_force_conventional_output
-}
+force_conventional_output_for scan-assembler-not
# Return the scan for the assembly for hidden visibility.
@@ -259,10 +253,7 @@ proc scan-assembler-times { args } {
}
}
-proc scan-assembler-times_required_options { args } {
- global gcc_force_conventional_output
- return $gcc_force_conventional_output
-}
+force_conventional_output_for scan-assembler-times
# Utility for scanning demangled compiler result, invoked via dg-final.
# Call pass if pattern is present, otherwise fail.
diff --git a/gcc/testsuite/lib/scanrtl.exp b/gcc/testsuite/lib/scanrtl.exp
index 28a4685..0507cc9 100644
--- a/gcc/testsuite/lib/scanrtl.exp
+++ b/gcc/testsuite/lib/scanrtl.exp
@@ -42,6 +42,8 @@ proc scan-rtl-dump { args } {
}
}
+force_conventional_output_for scan-rtl-dump
+
# Call pass if pattern is present given number of times, otherwise fail.
# Argument 0 is the regexp to match
# Argument 1 is number of times the regexp must be found
@@ -66,6 +68,8 @@ proc scan-rtl-dump-times { args } {
}
}
+force_conventional_output_for scan-rtl-dump-times
+
# Call pass if pattern is not present, otherwise fail.
#
# Argument 0 is the regexp to match
@@ -90,6 +94,8 @@ proc scan-rtl-dump-not { args } {
}
}
+force_conventional_output_for scan-rtl-dump-not
+
# Utility for scanning demangled compiler result, invoked via dg-final.
# Call pass if pattern is present, otherwise fail.
#
@@ -115,6 +121,8 @@ proc scan-rtl-dump-dem { args } {
}
}
+force_conventional_output_for scan-rtl-dump-dem
+
# Call pass if demangled pattern is not present, otherwise fail.
#
# Argument 0 is the regexp to match
@@ -139,3 +147,5 @@ proc scan-rtl-dump-dem-not { args } {
"\[0-9\]\[0-9\]\[0-9\]r.[lindex $args 1]"
}
}
+
+force_conventional_output_for scan-rtl-dump-dem-not
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index eea0c2e..a8029c8 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -5667,3 +5667,17 @@ proc check_effective_target_fenv_exceptions {} {
}
} "-std=gnu99"]
}
+
+# Record that dg-final test TEST requires convential compilation.
+
+proc force_conventional_output_for { test } {
+ if { [info proc $test] == "" } {
+ perror "$test does not exist"
+ exit 1
+ }
+ proc ${test}_required_options {} {
+ global gcc_force_conventional_output
+ return $gcc_force_conventional_output
+ }
+}
+