Patchwork Testsuite MIPS libs/scanasm.exe allow mathing against (no)micromips/

login
register
mail settings
Submitter Graham Stott
Date May 21, 2013, 1:26 p.m.
Message ID <1369142802.49112.YahooMailNeo@web87405.mail.ir2.yahoo.com>
Download mbox | patch
Permalink /patch/245309/
State New
Headers show

Comments

Graham Stott - May 21, 2013, 1:26 p.m.
All,
 
When micromips was added scanasm.exe wasn't updated this was causing a few tests
which scanned the assembler output to start failing such as dg.c++/debiug/dwarf2/lineno-simple1.C.
 
Fixed with the ollowing patch
 
Graham

testuite/ChangeLog:
 
 21-05-2013   * graham stott  graham.stott@btinternet.com
    * lib/scanasm.exp (dg-function-on-line) target mips-*-*-* allow matching aginst micromips
   directive

Patch

Index: scanasm.exp
===================================================================
--- scanasm.exp (revision 199093)
+++ scanasm.exp (working copy)
@@ -493,7 +493,7 @@ 
  set pattern [format {\t;[^:]+:%d\n(\t[^\t]+\n)+%s:\n\t.PROC} \
                      $line $symbol]
     } elseif { [istarget mips*-*-*] } {
- set pattern [format {\t\.loc [0-9]+ %d 0( [^\n]*)?\n(\t.cfi_startproc[^\t]*\n)*\t\.set\t(no)?mips16\n\t\.ent\t%s\n\t\.type\t%s, @function\n%s:\n} \
+ set pattern [format {\t\.loc [0-9]+ %d 0( [^\n]*)?\n(\t.cfi_startproc[^\t]*\n)*\t\.set\t(no)?mips16\n\t\.set\t(no)?micromips\n\t\.ent\t%s\n\t\.type\t%s, @function\n%s:\n} \
        $line $symbol $symbol $symbol]
     } else {
  set pattern [format {%s:[^\t]*(\t.(fnstart|frame|mask|file)[^\t]*)*\t[^:]+:%d\n} \