From: Simon Marlow Date: Thu, 23 Mar 2006 13:45:14 +0000 (+0000) Subject: work around a gcc 4.1.0 codegen bug in -O2 by forcing -O1 for GHC.Show X-Git-Tag: directory_2007-05-24~316 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e8ceccfea9c447b898dae9ff2df4a943bbf62bd8;p=haskell-directory.git 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 --- 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