From: Chris Lattner Date: Wed, 15 Feb 2006 07:07:14 +0000 (+0000) Subject: Sparc actually *DOES* have a directive for emitting zeros. In fact, it requires X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=45090476be69a3f860e83f2c0fe2a2df7e1b4c89;p=oota-llvm.git Sparc actually *DOES* have a directive for emitting zeros. In fact, it requires it, because this: .bss X: .byte 0 results in the assembler warning: "initialization in bss segment". Annoying. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26204 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Sparc/SparcAsmPrinter.cpp b/lib/Target/Sparc/SparcAsmPrinter.cpp index 6d5c8506859..5eacb816ae1 100644 --- a/lib/Target/Sparc/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/SparcAsmPrinter.cpp @@ -40,7 +40,7 @@ namespace { Data16bitsDirective = "\t.half\t"; Data32bitsDirective = "\t.word\t"; Data64bitsDirective = 0; // .xword is only supported by V9. - ZeroDirective = 0; // no .zero or .space! + ZeroDirective = "\t.skip\t"; CommentString = "!"; ConstantPoolSection = "\t.section \".rodata\",#alloc\n"; }