#2981: ".space" directive not recognised by solaris assembler
--------------------+-------------------------------------------------------
Reporter: duncan | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler (NCG)
Version: 6.11 | Severity: normal
Keywords: | Testcase:
Os: Solaris | Architecture: sparc
--------------------+-------------------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2981>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs