From fa9393552b3956dddf3ebf71f733fde4ba0342e4 Mon Sep 17 00:00:00 2001 From: dons Date: Fri, 8 Oct 2004 07:23:40 +0000 Subject: [PATCH] [project @ 2004-10-08 07:23:40 by dons] For platforms with no PIC method defined, use LabelAccessStyle of AccessDirectly, in howToAccessLabel. This seems to keep the ncg working on OpenBSD. Is this the correct default, Wolfgang? --- ghc/compiler/nativeGen/PositionIndependentCode.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ghc/compiler/nativeGen/PositionIndependentCode.hs b/ghc/compiler/nativeGen/PositionIndependentCode.hs index cca5df8..c3b1639 100644 --- a/ghc/compiler/nativeGen/PositionIndependentCode.hs +++ b/ghc/compiler/nativeGen/PositionIndependentCode.hs @@ -243,7 +243,12 @@ howToAccessLabel isJump lbl | otherwise = AccessViaSymbolPtr #else -howToAccessLabel = panic "PositionIndependentCode.howToAccessLabel" +-- +-- all other platforms +-- +howToAccessLabel _ _ + | not opt_PIC = AccessDirectly + | otherwise = panic "howToAccessLabel: PIC not defined for this platform" #endif -- ------------------------------------------------------------------- -- 1.7.10.4