From e8ceccfea9c447b898dae9ff2df4a943bbf62bd8 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 23 Mar 2006 13:45:14 +0000 Subject: [PATCH] work around a gcc 4.1.0 codegen bug in -O2 by forcing -O1 for GHC.Show See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26824 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index cf5917c..6078fba 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,10 @@ SRC_HSC2HS_OPTS += -Iinclude -I$(FPTOOLS_TOP)/ghc/includes # ESSENTIAL, for getting reasonable performance from the I/O library: SRC_HC_OPTS += -funbox-strict-fields +# Grrr, gcc-4.1.0 has a bug in -O2 and higher that causes miscompilation of +# GHC.Show.itos. See gcc bug #26824. We must drop back to -O1. +GHC/Show_HC_OPTS += -optc-O1 + # ----------------------------------------------------------------------------- # PrimOpWrappers -- 1.7.10.4