Skip to content

".space" directive not recognised by solaris assembler

The Solaris assembler (/usr/ccs/bin/as) does not recognise the .space directive. Presumably the GNU assembler does.

/usr/ccs/bin/as: "test.s", line 484: error: unknown opcode ".space"
/usr/ccs/bin/as: "test.s", line 484: error: statement syntax

It happens building ghc head on sparc solaris with the NCG turned on. However the pretty-printing code:

compiler/nativeGen/PprMach.hs:

pprData (CmmUninitialised bytes) = ptext (sLit ".space ") <> int bytes

does not look like it's in a section that is specific to sparc or solaris. So presumably the same issue applies on Solaris on x86 systems when using the system gcc and assembler rather than GNU as.

Trac metadata
Trac field Value
Version 6.11
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (NCG)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information