pushl %ebp prologue junk from PrimOps.cmm

Simon Marlow simonmar at microsoft.com
Thu Sep 2 08:57:49 EDT 2004


On 02 September 2004 04:48, Donald Bruce Stewart wrote:

> Hey,
> 
> More on getting the head to build. PrimOps.cmm dies with:
> 
>         ../../ghc/compiler/ghc-inplace -H16m -O  -O2 -static
>         -#include Prelude.h -#include Rts.h -#include RtsFlags.h
>                 -#include RtsUtils.h -#include StgRun.h -#include
>         Schedule.h -#include Printer.h -#include Sanity.h -#include
>                 Storage.h -#include SchedAPI.h -#include Timer.h
> -#include Itimer.h -#include ProfHeap.h -#include LdvProfile.h
> -#include Profiling.h -#include Apply.h -fvia-C -dcmm-lint     -c
> PrimOps.cmm -o PrimOps.o Prologue junk?: .globl int64ToIntegerzh_fast
> .type   int64ToIntegerzh_fast , @function int64ToIntegerzh_fast:
> pushl %ebp     
> 
> 
> The prologue looks like:
>         .globl int64ToIntegerzh_fast
>                 .type   int64ToIntegerzh_fast , @function
>         int64ToIntegerzh_fast:
>                 subl $28,%esp
>                 pushl %ebp
>                 pushl %edi
>                 pushl %esi
>                 pushl %ebx
>         #APP
>                 --- BEGIN ---
>         #NO_APP

Looks like this might be a symptom of your earlier fix that disabled the
register variables.  Does it go away if you use my patch to Stg.h?

Cheers,
	Simon



More information about the Cvs-ghc mailing list