On 2026-07-23 22:31, Jonas Maebe via fpc-pascal wrote:
On 2026-07-23 10:52, Adriaan van Os via fpc-pascal wrote:
On 22/07/2026 23:14, Jonas Maebe wrote:
To get a regular compiler built using an LLVM compiler, execute your make command inside the compiler directory (adding the options to OPT) and keep the resulting compiler binary (ppca64 in this case).

Thanks. That works with -O2 and produces a ppca64. With -O3 and -O4, I get the results below. Adding -Swe- or -Sw- didn't help.

Assembling (pipe) aarch64/units/aarch64-darwin/nmat.ll
Assembling (pipe) aarch64/units/aarch64-darwin/nmem.ll
nld.pas(1271,7) Note: Call to subroutine "procedure arrayconstructor_to_set(var p:tnode);" marked as inline is not inlined
Assembling (pipe) aarch64/units/aarch64-darwin/nld.ll
htypechk.pas(1463,12) Warning: (treated as error) Function result variable does not seem to be initialized

That's a wrong error, but I cannot reproduce it.

Ah, it happens when you build the initial LLVM compiler with -O3, not when building the non-LLVM compiler with -O3. Now I see it too.


Jonas
_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to