* lib/scanasm.exp (dg-function-on-line): Handle mips-sgi-irix*.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 24 Jan 2011 11:45:49 +0000 (11:45 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 24 Jan 2011 11:45:49 +0000 (11:45 +0000)
From-SVN: r169157

gcc/testsuite/ChangeLog
gcc/testsuite/lib/scanasm.exp

index dee1ef73e90968409969650087c6c65fccae20af..33d1cda13095b429010fe364cb75a5a24616a12b 100644 (file)
@@ -1,3 +1,7 @@
+2011-01-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * lib/scanasm.exp (dg-function-on-line): Handle mips-sgi-irix*.
+
 2011-01-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * gfortran.dg/cray_pointers_2.f90: Avoid cycling through
index 66c522343f56ab80bfd96ed91dcdc893066e8844..a49085410da69b225a1791040d8a98e756dd1a34 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2000, 2002, 2003, 2007, 2008, 2010
+# Copyright (C) 2000, 2002, 2003, 2007, 2008, 2010, 2011
 # Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
@@ -342,6 +342,9 @@ proc dg-function-on-line { args } {
     if { [istarget "hppa*-*-*"] } {
        set pattern [format {\t;[^:]+:%d\n(\t[^\t]+\n)+%s:\n\t.PROC} \
                      $line $symbol]
+    } elseif { [istarget "mips-sgi-irix*"] } {
+       set pattern [format {\t\.loc [0-9]+ %d 0( [^\n]*)?\n\t\.set\t(no)?mips16\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} \
                      $symbol $line]