[fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

Jonas Maebe jonas at freepascal.org
Sat Nov 17 10:13:46 CET 2018


On 16/11/18 23:41, Florian Klämpfl wrote:
> diff --git a/compiler/nmem.pas b/compiler/nmem.pas
> index d5c1d85e8f..52add1fd81 100644
> --- a/compiler/nmem.pas
> +++ b/compiler/nmem.pas
> @@ -1176,7 +1176,7 @@ implementation
>         begin
>           include(flags,nf_write);
>           { see comment in tsubscriptnode.mark_write }
> -        if not(is_implicit_pointer_object_type(left.resultdef)) then
> +        if not(is_implicit_array_pointer(left.resultdef)) then
>             left.mark_write;
>         end;

The compiler crashes when I try to compile the program with that patch 
applied (I did not do a make cycle with that patch, just applied it, 
recompiled the compiler, and then tried to compile the test program with 
the new compiler.


Jonas



More information about the fpc-devel mailing list