diff options
| author | simonmar <unknown> | 2003-01-08 13:03:25 +0000 |
|---|---|---|
| committer | simonmar <unknown> | 2003-01-08 13:03:25 +0000 |
| commit | 4107a27573ad740a842ecd4cc82c8ca871a7b06b (patch) | |
| tree | c6d4439787015359d06fd668fb99891f2f89cdc1 /ghc/compiler/main/DriverFlags.hs | |
| parent | 63366c1a6368fa8fe5532d16db01810c5576f14f (diff) | |
| download | haskell-4107a27573ad740a842ecd4cc82c8ca871a7b06b.tar.gz | |
[project @ 2003-01-08 13:03:25 by simonmar]
Add -mno-omit-leaf-frame-pointer if gcc supports it.
MERGE TO STABLE
Diffstat (limited to 'ghc/compiler/main/DriverFlags.hs')
| -rw-r--r-- | ghc/compiler/main/DriverFlags.hs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ghc/compiler/main/DriverFlags.hs b/ghc/compiler/main/DriverFlags.hs index 328dac36ef..16c15c6357 100644 --- a/ghc/compiler/main/DriverFlags.hs +++ b/ghc/compiler/main/DriverFlags.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: DriverFlags.hs,v 1.108 2002/12/17 13:50:29 simonmar Exp $ +-- $Id: DriverFlags.hs,v 1.109 2003/01/08 13:03:25 simonmar Exp $ -- -- Driver flags -- @@ -579,7 +579,15 @@ machdepCCOpts return ( [ if sta then "-DDONT_WANT_WIN32_DLL_SUPPORT" else "" -- , if suffixMatch "mingw32" cTARGETPLATFORM then "-mno-cygwin" else "" ], - [ "-fno-defer-pop", "-fomit-frame-pointer", + [ "-fno-defer-pop", +#ifdef HAVE_GCC_MNO_OMIT_LFPTR + -- Some gccs are configured with + -- -momit-leaf-frame-pointer on by default, and it + -- apparently takes precedence over + -- -fomit-frame-pointer, so we disable it first here. + "-mno-omit-leaf-frame-pointer", +#endif + "-fomit-frame-pointer", -- we want -fno-builtin, because when gcc inlines -- built-in functions like memcpy() it tends to -- run out of registers, requiring -monly-n-regs |
