* lib/gas-defs.exp (regexp_diff): Allow '#...' to mean "some
authorGeoffrey Keating <geoffk@geoffk.org>
Mon, 11 Oct 1999 03:40:17 +0000 (03:40 +0000)
committerGeoffrey Keating <geoffk@geoffk.org>
Mon, 11 Oct 1999 03:40:17 +0000 (03:40 +0000)
indeterminate number of extra lines here".

* gas/elf/elf.exp: Remove XFAILs.
* gas/elf/section0.d: Make pass on MIPS (and hopefully alpha).
* gas/elf/section1.d: Likewise.

gas/testsuite/ChangeLog
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/elf/section0.d
gas/testsuite/gas/elf/section1.d
gas/testsuite/lib/gas-defs.exp

index bc63762e467db8129ae2e6990b2e130627d8e4dd..2246bcf02ef98c481a3a2fa3a341bb81bad0845f 100644 (file)
@@ -1,3 +1,12 @@
+Mon Oct 11 13:37:51 1999  Geoffrey Keating  <geoffk@cygnus.com>
+
+       * lib/gas-defs.exp (regexp_diff): Allow '#...' to mean "some
+       indeterminate number of extra lines here".
+
+       * gas/elf/elf.exp: Remove XFAILs.
+       * gas/elf/section0.d: Make pass on MIPS (and hopefully alpha).
+       * gas/elf/section1.d: Likewise.
+
 Thu Oct  7 00:12:04 MDT 1999   Diego Novillo <dnovillo@cygnus.com>
 
        * gas/d10v: New directory.
index db06d96f3081dbf0a35ddb117ab818c2377424a3..216f2ac305127d13647e951a59f609c73c99e0c4 100644 (file)
@@ -10,14 +10,6 @@ if { ([istarget "*-*-elf*"]
      && ![istarget *-*-linux*aout*]
      && ![istarget *-*-linux*oldld*]
 } then {
-
-    # FIXME: This doesn't work for MIPS and alpha targets because of
-    # the .reginfo and .mdebug sections.
-    setup_xfail mips*-*-*
-    setup_xfail alpha*-*-*
     run_dump_test "section0" 
-
-    setup_xfail mips*-*-*
-    setup_xfail alpha*-*-*
     run_dump_test "section1" 
 }
index 60547c2e56b4d3ea48963e65d8471e18fc2a35bd..c674a658c246b76a00dcc4066075e837f7227d24 100644 (file)
@@ -6,6 +6,8 @@
 Contents of section .text:
 Contents of section .data:
  0000 0000                                 ..              
+# The MIPS includes a 'section .reginfo' and such here.
+#...
 Contents of section A:
  0000 010101                               ...             
 Contents of section B:
index 52a16a3a4cfee7898c2eb444ecf60384f4f9c9a9..de052f533069a60fc07e7b52079cf9132d9c2936 100644 (file)
@@ -6,6 +6,8 @@
 Contents of section .text:
 Contents of section .data:
  0000 000000                               ...             
+# The MIPS includes a 'section .reginfo' and such here.
+#...
 Contents of section A:
  0000 01010101 0101                        ......          
 Contents of section B:
index 48e84b2333564f164d7117ba60a4875260521d67..ffa5f68faa64eff627392a34ada83587d54eadb4 100644 (file)
@@ -495,6 +495,20 @@ proc regexp_diff { file_1 file_2 } {
                set end_2 1
                set diff_pass 1
                break
+           } elseif [ string match "#..." $line_b ] {
+               if { [gets $file_b line_b] == $eof } {
+                   set end_2 1
+                   break
+               }
+               verbose "looking for \"^$line_b$\"" 3
+               while { ![regexp "^$line_b$" "$line_a"] } {
+                   verbose "skipping    \"$line_a\"" 3
+                   if { [gets $file_a line_a] == $eof } {
+                       set end_1 1
+                       break
+                   }
+               }
+               break
            }
            if { [gets $file_b line_b] == $eof } {
                set end_2 1