d_eh_personality required when building an OS with betterC/amd64
Streaksu
assemblyislaw at gmail.com
Tue Jun 2 06:19:56 UTC 2020
On Monday, 1 June 2020 at 14:13:44 UTC, kinke wrote:
> 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).
Then is this a compiler bug? Or something I should approach by
other coding practices. Thanks for the help so far btw.
More information about the digitalmars-d-ldc
mailing list