Commit c6226d8a authored by simonmar's avatar simonmar
Browse files

[project @ 2004-09-28 13:15:19 by simonmar]

Avoid some warnings from gcc by appending an 'LL' suffix to 64-bit
integers on a 32-bit platform.

Suggested by: Sven Panne <Sven.Panne@aedion.de>
parent d41a97b8
......@@ -357,6 +357,12 @@ pprMachOpApp mop args
pprLit :: CmmLit -> SDoc
pprLit lit = case lit of
CmmInt i I64 | machRepByteWidth I32 == wORD_SIZE
-> pprHexVal i <> ptext SLIT("LL")
-- Append an 'LL' suffix to 64-bit integers on a 32-bit
-- platform. This might not be strictly necessary (the
-- type will always be apparent from the context), but
-- it avoids some warnings from gcc.
CmmInt i _rep -> pprHexVal i
CmmFloat f rep -> parens (machRepCType rep) <> (rational f)
CmmLabel clbl -> mkW_ <> pprCLabel clbl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment