X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FDynFlags.hs;h=07698122bdde4f44ff1ff67def8626844bec424c;hb=862106eb2518f437b9f10dc9367e99454ebd8072;hp=78acb98375157ea84b797d130539efb726a2d193;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1;p=ghc-hetmet.git diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 78acb98..0769812 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -1007,7 +1007,6 @@ fFlags = [ glasgowExtsFlags = [ Opt_GlasgowExts, Opt_FFI, - Opt_TH, Opt_ImplicitParams, Opt_ScopedTypeVariables, Opt_BangPatterns ] @@ -1268,11 +1267,13 @@ machdepCCOpts dflags -- and get in the way of -split-objs. Another option -- would be to throw them away in the mangler, but this -- is easier. +#ifdef HAVE_GCC_HAS_NO_UNIT_AT_A_TIME "-fno-unit-at-a-time", -- unit-at-a-time doesn't do us any good, and screws -- up -split-objs by moving the split markers around. -- It's only turned on with -O2, but put it here just -- in case someone uses -optc-O2. +#endif "-fno-builtin" -- calling builtins like strlen() using the FFI can -- cause gcc to run out of regs, so use the external