Fix testsuite for LABELS_WITHOUT_COLONS targets

Alan Modra amodra@bigpond.net.au
Tue Mar 22 16:57:00 GMT 2005


Some targets don't need a colon on a label;  Anything other than a
comment starting in the first column is taken to be a label.

gas/testsuite/
	* gas/elf/section5.s: Don't start directives in first column.
ld/testsuite/
	* ld-elf/tbss.s: Don't start directives in first column.
	* ld-scripts/weak1.s: Likewise.
	* ld-scripts/weak2.s: Likewise.
	* ld-undefined/weak-undef.s: Likewise.
	* ld-undefined/undefined.exp: Enable tests for hppa-elf.

Applying mainline and branch.

Index: gas/testsuite/gas/elf/section5.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/elf/section5.s,v
retrieving revision 1.2
diff -u -p -r1.2 section5.s
--- gas/testsuite/gas/elf/section5.s	20 Dec 2004 15:35:53 -0000	1.2
+++ gas/testsuite/gas/elf/section5.s	22 Mar 2005 10:03:00 -0000
@@ -1,24 +1,24 @@
-.section	.test0
-.section	.test1, "", %progbits
-.section	.test2
-.section	.test3, "aw"
-.section	.test4, "aw", %nobits
+	.section	.test0
+	.section	.test1, "", %progbits
+	.section	.test2
+	.section	.test3, "aw"
+	.section	.test4, "aw", %nobits
 
-.section	.test1, "aw", %nobits
+	.section	.test1, "aw", %nobits
 test1:	.long	test1
 
-.section	.test2, "w"
+	.section	.test2, "w"
 test2:	.long	test2
 
-.section	.test3, "aw", %progbits
+	.section	.test3, "aw", %progbits
 test3:	.long	test3
 
-.section	.test4, "aw"
+	.section	.test4, "aw"
 
-.section	.data, "a"
+	.section	.data, "a"
 
-.section	.bss, "a"
+	.section	.bss, "a"
 
-.section	.data, "aw", %nobits
+	.section	.data, "aw", %nobits
 
-.section	.bss, "aw", %progbits
+	.section	.bss, "aw", %progbits
Index: ld/testsuite/ld-elf/tbss.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/tbss.s,v
retrieving revision 1.2
diff -u -p -r1.2 tbss.s
--- ld/testsuite/ld-elf/tbss.s	18 May 2004 16:18:56 -0000	1.2
+++ ld/testsuite/ld-elf/tbss.s	22 Mar 2005 10:03:09 -0000
@@ -1,12 +1,12 @@
 	.file	"x.c"
-.globl bss
+	.globl bss
 	.section	.bss,"aw",%nobits
 	.p2align 12
 	.type	bss,%object
 	.size	bss,4096
 bss:
 	.zero	4096
-.globl tbss
+	.globl tbss
 	.section	.tbss,"awT",%nobits
 	.p2align 12
 	.type	tbss,%object
Index: ld/testsuite/ld-scripts/weak1.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/weak1.s,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 weak1.s
--- ld/testsuite/ld-scripts/weak1.s	3 May 1999 07:29:09 -0000	1.1.1.1
+++ ld/testsuite/ld-scripts/weak1.s	22 Mar 2005 10:03:09 -0000
@@ -1,4 +1,4 @@
-.data
+	.data
 	.global	foo1
 	.global	sym1
 	.weak	sym2
Index: ld/testsuite/ld-scripts/weak2.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/weak2.s,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 weak2.s
--- ld/testsuite/ld-scripts/weak2.s	3 May 1999 07:29:09 -0000	1.1.1.1
+++ ld/testsuite/ld-scripts/weak2.s	22 Mar 2005 10:03:09 -0000
@@ -1,4 +1,4 @@
-.data
+	.data
 	.global	foo2
 	.weak	sym1
 	.global	sym2
Index: ld/testsuite/ld-undefined/undefined.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-undefined/undefined.exp,v
retrieving revision 1.21
diff -u -p -r1.21 undefined.exp
--- ld/testsuite/ld-undefined/undefined.exp	3 Mar 2005 11:52:12 -0000	1.21
+++ ld/testsuite/ld-undefined/undefined.exp	22 Mar 2005 10:03:09 -0000
@@ -69,19 +69,10 @@ checkund $mu $testund
 #setup_xfail "arm*-*-pe*"
 #setup_xfail "thumb*-*-pe*"
 
-# Just doesn't work for PA ELF.  No clue why.
-setup_xfail "hppa*-*-*elf*"
-
 set mf "tmpdir/undefined.o* In function `function':"
 checkund $mf $testfn
 
-if [is_elf_format] {
-    
-    # Just doesn't work for PA ELF.  No clue why.
-    setup_xfail "hppa*-*-*"
-    
-} else {
-
+if ![is_elf_format] {
     # COFF SH gets this test wrong--it reports line 10, because although
     # the jump is at line 9, the function address, and the reloc, is
     # stored at the end of the function.
Index: ld/testsuite/ld-undefined/weak-undef.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-undefined/weak-undef.s,v
retrieving revision 1.1
diff -u -p -r1.1 weak-undef.s
--- ld/testsuite/ld-undefined/weak-undef.s	1 Jan 2001 14:54:03 -0000	1.1
+++ ld/testsuite/ld-undefined/weak-undef.s	22 Mar 2005 10:03:09 -0000
@@ -1,4 +1,4 @@
-.data
-.weak foo
-.long foo
-.long 0x11111111
+	.data
+	.weak foo
+	.long foo
+	.long 0x11111111

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list