This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
scan-assembler harness bug?
- From: DJ Delorie <dj at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 23 Oct 2008 18:00:22 -0400
- Subject: scan-assembler harness bug?
In scanasm.exp we do this:
proc scan-assembler { args } {
upvar 2 name testcase
set output_file "[file rootname [file tail $testcase]].s"
However, in dejagnu, $name may have compiler switches appended to it:
# We append the compilation flags, if any, to ensure that the test case
# names are unique.
if { "$tool_flags" != "" } {
set name "$name $tool_flags"
}
Perhaps we want to add this line to scanasm, in various places, to
strip off the compiler switches?
set testcase [lindex $testcase 0]