projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b3cb534
)
disable .type directives on Windows; they confuse mingw's assembler
author
Simon Marlow
<simonmar@microsoft.com>
Thu, 28 Jun 2007 10:45:16 +0000
(10:45 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Thu, 28 Jun 2007 10:45:16 +0000
(10:45 +0000)
compiler/nativeGen/PprMach.hs
patch
|
blob
|
history
diff --git
a/compiler/nativeGen/PprMach.hs
b/compiler/nativeGen/PprMach.hs
index
52d7706
..
ba8a5d9
100644
(file)
--- a/
compiler/nativeGen/PprMach.hs
+++ b/
compiler/nativeGen/PprMach.hs
@@
-694,9
+694,13
@@
pprGloblDecl lbl
pprTypeAndSizeDecl :: CLabel -> Doc
pprTypeAndSizeDecl lbl
+#if mingw32_TARGET_OS
+ = empty
+#else
| not (externallyVisibleCLabel lbl) = empty
| otherwise = ptext SLIT(".type ") <>
pprCLabel_asm lbl <> ptext SLIT(", @object")
+#endif
pprLabel :: CLabel -> Doc
pprLabel lbl = pprGloblDecl lbl $$ pprTypeAndSizeDecl lbl $$ (pprCLabel_asm lbl <> char ':')