From: Clemens Fruhwirth Date: Sat, 30 Jun 2007 08:22:43 +0000 (+0000) Subject: Restrict .type directives to Linux targets only X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=8910b7b043a11c689005238843d6439b13a4240c Restrict .type directives to Linux targets only --- diff --git a/compiler/nativeGen/PprMach.hs b/compiler/nativeGen/PprMach.hs index ba8a5d9..02ab265 100644 --- a/compiler/nativeGen/PprMach.hs +++ b/compiler/nativeGen/PprMach.hs @@ -694,12 +694,12 @@ pprGloblDecl lbl pprTypeAndSizeDecl :: CLabel -> Doc pprTypeAndSizeDecl lbl -#if mingw32_TARGET_OS - = empty -#else +#if linux_TARGET_OS | not (externallyVisibleCLabel lbl) = empty | otherwise = ptext SLIT(".type ") <> pprCLabel_asm lbl <> ptext SLIT(", @object") +#else + = empty #endif pprLabel :: CLabel -> Doc