diff --git a/llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp b/llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp --- a/llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp +++ b/llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp @@ -40,7 +40,6 @@ ExceptionsType = ExceptionHandling::DwarfCFI; - SunStyleELFSectionSwitchSyntax = true; UsesELFSectionDirectiveForBSS = true; } diff --git a/llvm/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll b/llvm/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll --- a/llvm/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll +++ b/llvm/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll @@ -2,8 +2,8 @@ ; PR 1557 target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f128:128:128" -module asm "\09.section\09\22.ctors\22,#alloc,#write" -module asm "\09.section\09\22.dtors\22,#alloc,#write" +module asm "\09.section\09.ctors,\22aw\22" +module asm "\09.section\09.dtors,\22aw\22" define void @frame_dummy() nounwind { entry: diff --git a/llvm/test/CodeGen/SPARC/constructor.ll b/llvm/test/CodeGen/SPARC/constructor.ll --- a/llvm/test/CodeGen/SPARC/constructor.ll +++ b/llvm/test/CodeGen/SPARC/constructor.ll @@ -14,16 +14,16 @@ ret void } -; CTOR: .section .ctors.65520,#alloc,#write +; CTOR: .section .ctors.65520,"aGw" ; CTOR-NEXT: .p2align 2 ; CTOR-NEXT: .word g -; CTOR-NEXT: .section .ctors,#alloc,#write +; CTOR-NEXT: .section .ctors,"aw" ; CTOR-NEXT: .p2align 2 ; CTOR-NEXT: .word f -; INIT-ARRAY: .section .init_array.15,#alloc,#write +; INIT-ARRAY: .section .init_array.15,"aGw" ; INIT-ARRAY-NEXT: .p2align 2 ; INIT-ARRAY-NEXT: .word g -; INIT-ARRAY-NEXT: .section .init_array,#alloc,#write +; INIT-ARRAY-NEXT: .section .init_array,"aw" ; INIT-ARRAY-NEXT: .p2align 2 ; INIT-ARRAY-NEXT: .word f diff --git a/llvm/test/MC/Sparc/sparc-pic.s b/llvm/test/MC/Sparc/sparc-pic.s --- a/llvm/test/MC/Sparc/sparc-pic.s +++ b/llvm/test/MC/Sparc/sparc-pic.s @@ -74,7 +74,7 @@ .cfi_endproc .type AGlobalVar,@object ! @AGlobalVar - .section .bss,#alloc,#write + .section .bss,"aw" .globl AGlobalVar .align 8 AGlobalVar: diff --git a/llvm/test/MC/Sparc/sparc-tls-relocations.s b/llvm/test/MC/Sparc/sparc-tls-relocations.s --- a/llvm/test/MC/Sparc/sparc-tls-relocations.s +++ b/llvm/test/MC/Sparc/sparc-tls-relocations.s @@ -150,7 +150,7 @@ call __tls_get_addr, %tgd_call(Extern) .type Local,@object - .section .tbss,#alloc,#write,#tls + .section .tbss,"awT" Local: .word 0 .size Local, 4