d_eh_personality required when building an OS with betterC/amd64

kinke noone at nowhere.com
Mon Jun 1 14:13:44 UTC 2020


On Monday, 1 June 2020 at 04:28:32 UTC, Streaksu wrote:
> Lately I discovered this dependency is also generated in other 
> points of my codebase, namely in 
> https://github.com/Takao-OS/Takao/blob/master/source/system/apic.d, which makes use of core.volatile (it might have something to do in that case I think).

Looks like a frontend issue. While any manual try/finally is 
stripped by the frontend for -betterC code (e.g., see AST of 
https://run.dlang.io/is/WEEFFc), it inserts a try/finally into 3 
functions in your system/apic.d (append -vcg-ast to the cmdline 
to have the compiler generate a system/apic.d.cg).


More information about the digitalmars-d-ldc mailing list