From 81366cb8f69f9976effc9976f12a38e7a4f7cc96 Mon Sep 17 00:00:00 2001
From: Alan Modra <amodra@gmail.com>
Date: Wed, 19 Jul 2000 04:55:14 +0000
Subject: [PATCH] Fix a couple of HPPA SOM test failures. Re-enable some tests
 for hppa-linux.

---
 gas/testsuite/ChangeLog                   | 9 +++++++++
 gas/testsuite/gas/hppa/parse/linesepbug.s | 2 +-
 gas/testsuite/gas/macros/macros.exp       | 8 +++++---
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index a9465e6cc49..d43767cc828 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2000-07-19  Alan Modra  <alan@linuxcare.com.au>
+
+	* gas/macros/macros.exp (test1): Run it for hppa*-*-linux*.
+	(semi): Likewise.
+	(strings): Don't run for hppa, except for hppa*-*-linux*.
+
+	* gas/hppa/parse/linesepbug.s: Ensure we have whitespace before
+	pseudos.
+
 2000-07-18  Scott Bambrough  <scottb@netwinder.org>
 
         * gas/arm/inst.d: Fix expected results to match current assembler
diff --git a/gas/testsuite/gas/hppa/parse/linesepbug.s b/gas/testsuite/gas/hppa/parse/linesepbug.s
index 13f84b77b84..7bc528ead69 100644
--- a/gas/testsuite/gas/hppa/parse/linesepbug.s
+++ b/gas/testsuite/gas/hppa/parse/linesepbug.s
@@ -8,5 +8,5 @@
 ; selectors to make sure they're handled correctly.
 
 foo:
-	.WORD 0 !.IMPORT $bar$,DATA
+	.WORD 0! .IMPORT $bar$,DATA
 
diff --git a/gas/testsuite/gas/macros/macros.exp b/gas/testsuite/gas/macros/macros.exp
index c5f4124845c..c1d06a102ab 100644
--- a/gas/testsuite/gas/macros/macros.exp
+++ b/gas/testsuite/gas/macros/macros.exp
@@ -1,6 +1,6 @@
 # Run some tests of gas macros.
 
-if ![istarget hppa*-*-*] {
+if { ![istarget hppa*-*-*] || [istarget *-*-linux*] } {
     run_dump_test test1
 }
 
@@ -19,11 +19,13 @@ if ![istarget *c54x*-*-*] {
 gas_test_error "err.s" "" "macro infinite recursion"
 
 case $target_triplet in {
-    { hppa*-*-* } { }
+    { hppa*-*-* } { if [istarget *-*-linux*] { run_dump_test semi } }
     { *c54x*-*-* } { }
     default {
 	run_dump_test semi
     }
 }
 
-run_dump_test strings
+if { ![istarget hppa*-*-*] || [istarget *-*-linux*] } {
+    run_dump_test strings
+}