[dmd-internals] core.bitop @safe pure nothrow
David Nadlinger
code at klickverbot.at
Tue Apr 10 20:42:12 PDT 2012
On 11 Apr 2012, at 2:58, Alex Rønne Petersen wrote:
> I just sent this:
> https://github.com/D-Programming-Language/druntime/pull/193
>
> It doesn't currently work, because DMD has some hacks in toir.c (I
> think) to match intrinsics like bts, bsr, bsf. Quite frankly, I don't
> get how this works.
DMD matches the intrinsics by mangled name. Unless I'm mistaken, it
should be enough to just update the name table arrays – look for the
mangled names of the current runtime functions, and then replace them
with the new manglings (@safe, … are reflected in the attribute part).
David
More information about the dmd-internals
mailing list