[fpc-pascal] now i have a very strange behaviour of my arm compiler
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Apr 28 13:59:49 CEST 2009
On 28 Apr 2009, at 13:48, Benedikt Schindler wrote:
> ----------------------
> Also this one works:
> ----------------------
>
> --- /media/mmcblk0p3/lazarus/lcl/interfaces/gtk/
> gtkwidgetset.inc.orig Tue Apr 28 10:24:19 2009
> +++ /media/mmcblk0p3/lazarus/lcl/interfaces/gtk/
> gtkwidgetset.inc Tue Apr 28 10:47:25 2009
> @@ -302,6 +302,8 @@
> inc(i);
> end;
> end;
> +var
> + index : integer;
> begin
> gtk_init(@argc, at argv);
> UseTransientForModalWindows:=not SearchOption('--lcl-no-
> transient',true);
All of your workarounds have one thing in common: they cause an extra
stack slot to be allocated (either via a local variable, or via an
implicit temporary location allocated by the compiler), thereby
changing the stack alignment by 4 bytes. Have your tried using the
latest 2.3.1 compiler from svn? I fixed the stack alignment bugs on
ARM in r13030 (on eabi, you need a stack alignment of 8 bytes, while
the compiler only guaranteed 4).
Jonas
More information about the fpc-pascal
mailing list