On Wed, May 03, 2006 at 11:50:46AM +0100, Simon Marlow wrote: Hi,
> You shouldn't see the %ebp instructions, because gcc should be invoked > with -fomit-frame-pointer. Is it possible that somehow part of your > build thinks it is unregisterised? I hope not. Started with a fresh tree and configure/make at top (plus trivial whitespace/ctime_r/schield_yield patches from first mail). > Try running GHC with -v, see whether the -fomit-frame-pointer flag is > being passed to gcc. If not, try to find out why - it should be added > by code in ghc/compiler/main/DriverFlags.hs. Ok, did that - and gcc gets the -fomit-frame-pointer flag. Log is attached. Regards Georg Sauthoff
Glasgow Haskell Compiler, Version 6.4.2, for Haskell 98, compiled by GHC
version 6.4.2
Using package config file:
/var/tmp/gsauthof/src/nothread/ghc-6.4.2/ghc/driver/package.conf.inplace
Using package config file: /homes/gsauthof/.ghc/i386-solaris2-6.4.2/package.conf
Hsc static flags: -static
*** C Compiler
/usr/sfw/bin/gcc -E -v -I . -I
/var/tmp/gsauthof/src/nothread/ghc-6.4.2/ghc/includes -D__HASKELL1__=5
-D__GLASGOW_HASKELL__=604 -D__HASKELL98__ -D__CONCURRENT_HASKELL__
-DDONT_WANT_WIN32_DLL_SUPPORT -Dsolaris2_BUILD_OS=1 -Di386_BUILD_ARCH=1
-Dsolaris2_HOST_OS=1 -Di386_HOST_ARCH=1 -x c Apply.cmm -o /tmp/ghc18640.cmmcpp
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
/usr/sfw/libexec/gcc/i386-pc-solaris2.10/3.4.3/cc1 -E -quiet -v -I . -I
/var/tmp/gsauthof/src/nothread/ghc-6.4.2/ghc/includes -D__HASKELL1__=5
-D__GLASGOW_HASKELL__=604 -D__HASKELL98__ -D__CONCURRENT_HASKELL__
-DDONT_WANT_WIN32_DLL_SUPPORT -Dsolaris2_BUILD_OS=1 -Di386_BUILD_ARCH=1
-Dsolaris2_HOST_OS=1 -Di386_HOST_ARCH=1 Apply.cmm -o /tmp/ghc18640.cmmcpp
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../i386-pc-solaris2.10/include"
#include "..." search starts here:
#include <...> search starts here:
.
/var/tmp/gsauthof/src/nothread/ghc-6.4.2/ghc/includes
/usr/sfw/include
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include
/usr/include
End of search list.
*** ParseCmm:
*** CmmLint:
*** CodeOutput:
*** C Compiler
/usr/sfw/bin/gcc -x c /tmp/ghc18640.hc -o /tmp/ghc18640.raw_s
-DDONT_WANT_WIN32_DLL_SUPPORT -fno-defer-pop -fomit-frame-pointer -fno-builtin
-DSTOLEN_X86_REGS=4 -ffloat-store -fno-strict-aliasing -v -S -Wimplicit -O
-D__GLASGOW_HASKELL__=604 -I . -I
/var/tmp/gsauthof/src/nothread/ghc-6.4.2/ghc/includes
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
/usr/sfw/libexec/gcc/i386-pc-solaris2.10/3.4.3/cc1 -quiet -v -I . -I
/var/tmp/gsauthof/src/nothread/ghc-6.4.2/ghc/includes
-DDONT_WANT_WIN32_DLL_SUPPORT -DSTOLEN_X86_REGS=4 -D__GLASGOW_HASKELL__=604
/tmp/ghc18640.hc -quiet -dumpbase ghc18640.hc -auxbase-strip
/tmp/ghc18640.raw_s -O -Wimplicit -version -fno-defer-pop -fomit-frame-pointer
-fno-builtin -ffloat-store -fno-strict-aliasing -o /tmp/ghc18640.raw_s
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../i386-pc-solaris2.10/include"
#include "..." search starts here:
#include <...> search starts here:
.
/var/tmp/gsauthof/src/nothread/ghc-6.4.2/ghc/includes
/usr/sfw/include
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include
/usr/include
End of search list.
GNU C version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) (i386-pc-solaris2.10)
compiled by GNU C version 3.4.3 (csl-sol210-3_4-branch+sol_rpath).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
*** Mangler
/var/tmp/gsauthof/src/nothread/ghc-6.4.2/ghc/driver/mangler/ghc-asm
/tmp/ghc18640.raw_s /tmp/ghc18640.s 4
Prologue junk?: .globl stg_ap_0_ret
.type stg_ap_0_ret, @function
stg_ap_0_ret:
pushl %ebp
movl %esp, %ebp
*** Deleting temp files
Deleting: /tmp/ghc18640.s /tmp/ghc18640.raw_s /tmp/ghc18640.hc
/tmp/ghc18640.cmmcpp
pgpxNlyGf3cDK.pgp
Description: PGP signature
_______________________________________________ Glasgow-haskell-users mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
