This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
testsuite tweaks
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Tue, 14 Feb 2012 11:38:46 +1030
- Subject: testsuite tweaks
Fixes various testsuite issues. Would be nice if people could
remember to not start directives in the first column, for
LABELS_WITHOUT_COLONS targets.
binutils/testsuite/
* binutils-all/dw2-decodedline.S: Always have whitespace before
directives.
* binutils-all/version.s: Likewise.
* binutils-all/objdump.exp (dw2-decodedline): Don't run for
hppa64*-*-hpux*, i370-*-*, i960-*-*.
gas/testsuite/
* gas/elf/bad-group.s: Add section attributes.
* gas/elf/elf.exp (groupautoa, groupautob): Don't run for hppa64-hpux.
(ifunc-1, type): Don't run for hpux.
* gas/elf/type-noifunc.e: Accept ANSI_COM.
* gas/elf/section7.s: Always have whitespace before directives.
* gas/elf/warn-2.s: Likewise.
* gas/i386/ifunc-3.s: Move .size directive.
ld/testsuite/
* ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux.
* ld-elf/pr11304a.s: Always have whitespace before directives.
* ld-elf/pr11304b.s: Likewise.
* ld-selective/selective.exp: Test m68hc1* variant of m6811, m6812.
* lib/ld-lib.exp: Likewise, and vice versa.
Index: binutils/testsuite/binutils-all/dw2-decodedline.S
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/dw2-decodedline.S,v
retrieving revision 1.1
diff -u -p -r1.1 dw2-decodedline.S
--- binutils/testsuite/binutils-all/dw2-decodedline.S 4 Oct 2011 14:25:40 -0000 1.1
+++ binutils/testsuite/binutils-all/dw2-decodedline.S 13 Feb 2012 22:34:05 -0000
@@ -2,13 +2,13 @@
.file 1 "dw2-decodedline.c"
.file 2 "directory/file1.c"
.text
-.globl f1
+ .globl f1
.type f1, %function
f1:
.loc 2 1 0
nop
.size f1, .-f1
-.globl main
+ .globl main
.type main, %function
main:
.loc 1 2 0
Index: binutils/testsuite/binutils-all/objdump.exp
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/objdump.exp,v
retrieving revision 1.31
diff -u -p -r1.31 objdump.exp
--- binutils/testsuite/binutils-all/objdump.exp 25 Nov 2011 14:47:48 -0000 1.31
+++ binutils/testsuite/binutils-all/objdump.exp 13 Feb 2012 22:34:05 -0000
@@ -207,6 +207,9 @@ if { ![is_elf_format] } then {
# of DWARF2 line debug information.
if { ![is_elf_format]
+ || [istarget "hppa64*-*-hpux*"]
+ || [istarget "i370-*-*"]
+ || [istarget "i960-*-*"]
|| [istarget "ia64*-*-*"]
|| [istarget "mcore-*-*"]
|| [istarget "moxie-*-*"]
Index: binutils/testsuite/binutils-all/version.s
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/version.s,v
retrieving revision 1.1
diff -u -p -r1.1 version.s
--- binutils/testsuite/binutils-all/version.s 1 Feb 2012 16:13:55 -0000 1.1
+++ binutils/testsuite/binutils-all/version.s 13 Feb 2012 22:34:05 -0000
@@ -1 +1 @@
-.version "Version 1.0"
+ .version "Version 1.0"
Index: gas/testsuite/gas/elf/bad-group.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/elf/bad-group.s,v
retrieving revision 1.1
diff -u -p -r1.1 bad-group.s
--- gas/testsuite/gas/elf/bad-group.s 4 Aug 2011 20:20:11 -0000 1.1
+++ gas/testsuite/gas/elf/bad-group.s 13 Feb 2012 22:34:16 -0000
@@ -3,7 +3,7 @@
main:
.type main, @function
.LFB0:
- .section .text.unlikely
+ .section .text.unlikely,"ax",%progbits
.L5:
.globl __gxx_personality_v0
.section .gcc_except_table,"a",%progbits
Index: gas/testsuite/gas/elf/elf.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/elf/elf.exp,v
retrieving revision 1.80
diff -u -p -r1.80 elf.exp
--- gas/testsuite/gas/elf/elf.exp 13 Feb 2012 04:10:56 -0000 1.80
+++ gas/testsuite/gas/elf/elf.exp 13 Feb 2012 22:34:16 -0000
@@ -95,8 +95,14 @@ if { [is_elf_format] } then {
run_dump_test "group0c"
run_dump_test "group1a"
run_dump_test "group1b"
- run_dump_test "groupautoa"
case $target_triplet in {
+ { hppa64*-*-hpux* } { }
+ default {
+ run_dump_test "groupautoa"
+ }
+ }
+ case $target_triplet in {
+ { hppa64*-*-hpux* } { }
{ xtensa*-*-* } { }
default {
run_dump_test "groupautob"
@@ -147,16 +153,21 @@ if { [is_elf_format] } then {
}
run_dump_test "symver"
+ # No indirect functions on non-GNU targets.
# The MSP port sets the ELF header's OSABI field to ELFOSABI_STANDALONE.
# The non-eabi ARM ports sets it to ELFOSABI_ARM.
# So for these targets we cannot include an IFUNC symbol type
# in the symbol type test.
- if { [istarget "msp*-*-*"]
- || [istarget "arm*-*-*"]} then {
+ if { [istarget "*-*-hpux*"]
+ || [istarget "msp*-*-*"]
+ || [istarget "arm*-*-*"]} then {
+ # hppa64 has a non-standard common directive
+ if { ![istarget "hppa64*-*-hpux*"] } then {
run_elf_list_test "type-noifunc" "" "" "-s" "| grep \"1 *\\\[FONTC\\\]\""
+ }
} else {
- run_dump_test ifunc-1
- run_elf_list_test "type" "" "" "-s" "| grep \"1 *\\\[FIONTCU\\\]\""
+ run_dump_test ifunc-1
+ run_elf_list_test "type" "" "" "-s" "| grep \"1 *\\\[FIONTCU\\\]\""
}
run_dump_test "section6"
Index: gas/testsuite/gas/elf/section7.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/elf/section7.s,v
retrieving revision 1.1
diff -u -p -r1.1 section7.s
--- gas/testsuite/gas/elf/section7.s 27 Oct 2007 17:45:53 -0000 1.1
+++ gas/testsuite/gas/elf/section7.s 13 Feb 2012 22:34:16 -0000
@@ -1,38 +1,38 @@
.section .bar,"a"
.byte 0
-.pushsection .bar1,2,"a"
+ .pushsection .bar1,2,"a"
.byte 2
-.popsection
+ .popsection
.byte 0
-.pushsection .bar2,3,"a"
+ .pushsection .bar2,3,"a"
.byte 2
-.popsection
+ .popsection
.byte 0
-.pushsection .bar3,2,"a", %progbits
+ .pushsection .bar3,2,"a", %progbits
.byte 3
-.popsection
+ .popsection
.byte 0
-.pushsection .bar4
+ .pushsection .bar4
.byte 4
-.popsection
+ .popsection
.byte 0
-.pushsection .text,1,"axG",%progbits,foo,comdat
+ .pushsection .text,1,"axG",%progbits,foo,comdat
.byte -1
-.popsection
+ .popsection
.byte 0
-.pushsection .text,"axG",%progbits,foo,comdat
+ .pushsection .text,"axG",%progbits,foo,comdat
.byte -2
-.popsection
+ .popsection
.byte 0
-.pushsection .bar1,"a"
+ .pushsection .bar1,"a"
.byte 1
-.popsection
+ .popsection
.byte 0
-.pushsection .bar3,"a", %progbits
+ .pushsection .bar3,"a", %progbits
.byte 1
-.popsection
+ .popsection
.byte 0
-.pushsection .bar2,"a"
+ .pushsection .bar2,"a"
.byte 1
-.popsection
+ .popsection
.byte 0
Index: gas/testsuite/gas/elf/type-noifunc.e
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/elf/type-noifunc.e,v
retrieving revision 1.2
diff -u -p -r1.2 type-noifunc.e
--- gas/testsuite/gas/elf/type-noifunc.e 23 Sep 2009 03:12:24 -0000 1.2
+++ gas/testsuite/gas/elf/type-noifunc.e 13 Feb 2012 22:34:16 -0000
@@ -2,4 +2,4 @@
+.: 0+0 +1 +OBJECT +LOCAL +DEFAULT +. object
+.: 0+1 +1 +TLS +LOCAL +DEFAULT +. tls_object
+..: 0+2 +1 +NOTYPE +LOCAL +DEFAULT +. notype
- +..: 0+1 +1 +(COMMON|OBJECT) +GLOBAL +DEFAULT +COM common
+ +..: 0+1 +1 +(COMMON|OBJECT) +GLOBAL +DEFAULT +(ANSI_|)COM common
Index: gas/testsuite/gas/elf/warn-2.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/elf/warn-2.s,v
retrieving revision 1.2
diff -u -p -r1.2 warn-2.s
--- gas/testsuite/gas/elf/warn-2.s 29 Jul 2011 11:02:40 -0000 1.2
+++ gas/testsuite/gas/elf/warn-2.s 13 Feb 2012 22:34:16 -0000
@@ -6,18 +6,18 @@
.offset 40
-.ifeq nop_type - 1
+ .ifeq nop_type - 1
nop 0
-.else
-.ifeq nop_type - 2
+ .else
+ .ifeq nop_type - 2
l.nop 0
-.else
-.ifeq nop_type - 3
+ .else
+ .ifeq nop_type - 3
nopr 1
-.else
+ .else
nop
-.endif
-.endif
-.endif
+ .endif
+ .endif
+ .endif
;# { dg-warning "Warning: dwarf line number information for .* ignored" "" { xfail i370-*-* mcore-*-* mn10200-*-* moxie-*-* openrisc-*-* or32-*-* v850-*-* } 0 }
Index: gas/testsuite/gas/i386/ifunc-3.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/i386/ifunc-3.s,v
retrieving revision 1.1
diff -u -p -r1.1 ifunc-3.s
--- gas/testsuite/gas/i386/ifunc-3.s 2 Dec 2010 13:25:13 -0000 1.1
+++ gas/testsuite/gas/i386/ifunc-3.s 13 Feb 2012 22:34:16 -0000
@@ -8,9 +8,10 @@ start1:
.long bar1-base
.type bar1,%gnu_indirect_function
+ .size bar1,.Lendbar1-bar1
bar1:
ret
- .size bar1,.-bar1
+.Lendbar1:
.align 4
.long bar1-.
Index: ld/testsuite/ld-elf/linkoncerdiff.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/linkoncerdiff.d,v
retrieving revision 1.1
diff -u -p -r1.1 linkoncerdiff.d
--- ld/testsuite/ld-elf/linkoncerdiff.d 11 Jan 2009 21:09:49 -0000 1.1
+++ ld/testsuite/ld-elf/linkoncerdiff.d 13 Feb 2012 22:34:36 -0000
@@ -2,5 +2,6 @@
#source: linkoncerdiff2.s
#ld: -r
#readelf: -r
+#notarget: hppa64*-*-hpux*
There are no relocations in this file.
#pass
Index: ld/testsuite/ld-elf/pr11304a.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/pr11304a.s,v
retrieving revision 1.1
diff -u -p -r1.1 pr11304a.s
--- ld/testsuite/ld-elf/pr11304a.s 19 Mar 2010 14:49:46 -0000 1.1
+++ ld/testsuite/ld-elf/pr11304a.s 13 Feb 2012 22:34:36 -0000
@@ -1,4 +1,4 @@
-.section .zzz,"ax",%progbits
-.long 0
-.text
-.long 0
+ .section .zzz,"ax",%progbits
+ .long 0
+ .text
+ .long 0
Index: ld/testsuite/ld-elf/pr11304b.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/pr11304b.s,v
retrieving revision 1.1
diff -u -p -r1.1 pr11304b.s
--- ld/testsuite/ld-elf/pr11304b.s 19 Mar 2010 14:49:46 -0000 1.1
+++ ld/testsuite/ld-elf/pr11304b.s 13 Feb 2012 22:34:36 -0000
@@ -1,4 +1,4 @@
-.section .zzz,"ax",%progbits
-.long 0
-.text
-.long 0
+ .section .zzz,"ax",%progbits
+ .long 0
+ .text
+ .long 0
Index: ld/testsuite/ld-selective/selective.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-selective/selective.exp,v
retrieving revision 1.46
diff -u -p -r1.46 selective.exp
--- ld/testsuite/ld-selective/selective.exp 20 Oct 2011 12:34:20 -0000 1.46
+++ ld/testsuite/ld-selective/selective.exp 13 Feb 2012 22:34:38 -0000
@@ -141,7 +141,7 @@ foreach testitem $seltests {
}
# m6811/m6812 code has references to soft registers.
- if {[istarget m6811-*-*] || [istarget m6812-*-*]} {
+ if {[istarget m6811-*-*] || [istarget m6812-*-*] || [istarget m68hc1*-*-*]} {
set objfile "$objfile --defsym _.frame=0 --defsym _.d1=0"
set objfile "$objfile --defsym _.d2=0"
}
Index: ld/testsuite/lib/ld-lib.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/lib/ld-lib.exp,v
retrieving revision 1.89
diff -u -p -r1.89 ld-lib.exp
--- ld/testsuite/lib/ld-lib.exp 16 Dec 2011 06:18:55 -0000 1.89
+++ ld/testsuite/lib/ld-lib.exp 13 Feb 2012 22:34:38 -0000
@@ -415,7 +415,7 @@ proc ld_simple_link_defsyms {} {
}
# m6811/m6812 code has references to soft registers.
- if {[istarget m6811-*-*] || [istarget m6812-*-*]} {
+ if {[istarget m6811-*-*] || [istarget m6812-*-*] || [istarget m68hc1*-*-*]} {
append flags " --defsym _.frame=0 --defsym _.d1=0 --defsym _.d2=0"
append flags " --defsym _.d3=0 --defsym _.d4=0"
append flags " --defsym _.tmp=0 --defsym _.xy=0 --defsym _.z=0"
@@ -1502,6 +1502,8 @@ proc check_shared_lib_support { } {
&& ![istarget lm32-*-*]
&& ![istarget m32c-*-*]
&& ![istarget m32r-*-*]
+ && ![istarget m6811-*-*]
+ && ![istarget m6812-*-*]
&& ![istarget m68hc1*-*-*]
&& ![istarget mcore*-*-*]
&& ![istarget mep-*-*]
--
Alan Modra
Australia Development Lab, IBM