* gas/elf/bad-group.s: Add section attributes.
authorAlan Modra <amodra@gmail.com>
Tue, 14 Feb 2012 01:01:30 +0000 (01:01 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 14 Feb 2012 01:01:30 +0000 (01:01 +0000)
* 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.

gas/testsuite/ChangeLog
gas/testsuite/gas/elf/bad-group.s
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/elf/section7.s
gas/testsuite/gas/elf/type-noifunc.e
gas/testsuite/gas/elf/warn-2.s
gas/testsuite/gas/i386/ifunc-3.s

index 787f60df7da04e5a2f74be4f1e5f2dbcd57f7a8d..cfa3ef36a94f168cd393a0ccaea378baf8547502 100644 (file)
@@ -1,3 +1,13 @@
+2012-02-14  Alan Modra  <amodra@gmail.com>
+
+       * 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.
+
 2012-02-13  Alan Modra  <amodra@gmail.com>
 
        * gas/all/gas.exp (redef2): xfail m6811 and m6812.
index 69710c72aa79bed1158e587c667fa7071dbed8d3..dc927c62d06620594a73907fcae2f6ee0a5ed4de 100644 (file)
@@ -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 7679722bae687d25d893decaccc2365efa1ecf46..9b7cc8f3892a318beb74ff443ec82bfc85f68fa1 100644 (file)
@@ -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 fe9aaa1040531cc953862843c9d8b7a3ddaca128..2d637b47a9d56675da14809db7077a47f3e38e82 100644 (file)
@@ -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 8b2a6bcc73a99eb7b8b15afd11475df6d7bde276..ddeadd7d3a2b1f3f5091c6cf8abdf2e3b439f04b 100644 (file)
@@ -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 12b71390ead44ac91fadb26d386ecef6d29c756c..7783f9d9dd6b4f900e4dce64d693dcbcbd2df1ad 100644 (file)
@@ -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 dbcf4945b0fa45bf261397686409ccb3d32a4b75..18fd4d6167e56fc429a8bb0ed9c1761dd552ef26 100644 (file)
@@ -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-.
This page took 0.029823 seconds and 4 git commands to generate.