[Issue 16547] -betterC switch no longer removes druntime symbols

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Oct 7 10:42:07 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16547

--- Comment #5 from Jacob Carlborg <doob at me.com> ---
(In reply to Martin Nowak from comment #4)
> Apparently happens b/c of __dmd_personality_v0 being emitted with -betterC.
> A simple workaround is to add a dummy personality symbol to your binary,
> e.g. in the same object file as main.
> 
> extern(C) __gshared int __dmd_personality_v0;

Yeah, that works.

> Not sure if we did disable EH for -betterC. Would make sense, right?

I guess. Unless we can limit it to something like Errors which cannot be
caught. Or somehow use what the C++ runtime provides, if that would help.

BTW, how did this work in DMD 2.070.0? It didn't have anything similar to
__dmd_personality_v0?

--


More information about the Digitalmars-d-bugs mailing list