diff options
author | Simon Marlow <simonmar@microsoft.com> | 2006-03-23 13:45:14 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2006-03-23 13:45:14 +0000 |
commit | 86dd67c0f690604445ff504043a1c70d6123ba27 (patch) | |
tree | d6e6e66889b7b6090f0ecd1435fe92519297a6f9 /libraries | |
parent | 56c2377ecbfb8a8c3828e339d4cdecca8cefadca (diff) | |
download | haskell-86dd67c0f690604445ff504043a1c70d6123ba27.tar.gz |
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
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/base/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/base/Makefile b/libraries/base/Makefile index cf5917c482..6078fbaf9a 100644 --- a/libraries/base/Makefile +++ b/libraries/base/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 |