From patchwork Tue May 21 18:29:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Testsuite MIPS libs/scanasm.exe allow mathing against (no)micromips/ X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 245383 Message-Id: <87bo84kwyz.fsf@talisman.default> To: Graham Stott Cc: "gcc-patches\@gcc.gnu.org" Date: Tue, 21 May 2013 19:29:40 +0100 From: Richard Sandiford List-Id: Graham Stott writes: > 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 Thanks. I think we should only conditionally match the micromips part, just in case anyone is testing with an older assembler. Applied with that tweak, as below. Richard gcc/testsuite/ 2013-05-21 Graham Stott * lib/scanasm.exp (dg-function-on-line): Make MIPS targets match .set (no)?micromips Index: gcc/testsuite/lib/scanasm.exp =================================================================== --- gcc/testsuite/lib/scanasm.exp 2013-01-10 20:30:57.257009075 +0000 +++ gcc/testsuite/lib/scanasm.exp 2013-05-21 19:22:55.618268581 +0100 @@ -493,7 +493,7 @@ proc dg-function-on-line { args } { 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} \