This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[obvious] Make scan-assembler-times require code generation
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 26 Aug 2012 20:16:54 +0100
- Subject: [obvious] Make scan-assembler-times require code generation
scan-assembler and scan-assembler-not force -ffat-lto-objects, so that
there'll always be some assembly code to scan. This patch extends that
to scan-assembler-times.
Tested on mipsisa64-elf, mips64-elf and mips64-linux-gnu. Applied
as obvious.
Richard
gcc/testsuite/
* lib/scanasm.exp (scan-assembler-times_required_options): New proc.
Index: gcc/testsuite/lib/scanasm.exp
===================================================================
--- gcc/testsuite/lib/scanasm.exp 2012-08-26 10:47:25.000000000 +0100
+++ gcc/testsuite/lib/scanasm.exp 2012-08-26 11:38:17.612805181 +0100
@@ -228,6 +228,11 @@ proc scan-assembler-times { args } {
}
}
+proc scan-assembler-times_required_options { args } {
+ global gcc_force_conventional_output
+ return $gcc_force_conventional_output
+}
+
# Utility for scanning demangled compiler result, invoked via dg-final.
# Call pass if pattern is present, otherwise fail.
proc scan-assembler-dem { args } {