This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: scan-assembler harness bug?
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 23 Oct 2008 15:28:00 -0700
- Subject: Re: scan-assembler harness bug?
- References: <200810232200.m9NM0Mju008739@greed.delorie.com>
- Reply-to: janis187 at us dot ibm dot com
On Thu, 2008-10-23 at 18:00 -0400, DJ Delorie wrote:
> 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]
I thought something like that was already done but I couldn't find it
right now. Is it a problem? If so, we should certainly do this.
Janis