Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #917 from MartinNowak/removeWorkarounds
Browse files Browse the repository at this point in the history
remove workarounds for resolved issue 13049 and 13050
  • Loading branch information
yebblies committed Aug 1, 2014
2 parents 4fabf7d + f888fbc commit cb512c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/core/internal/traits.d
Expand Up @@ -60,13 +60,12 @@ template externDFunc(string fqn, T:FT*, FT) if(is(FT == function))
{
import core.demangle : mangleFunc;
enum decl = {
string s = "extern(D) RT bug13050(Args)";
string s = "extern(D) RT externDFunc(Args)";
foreach (attr; __traits(getFunctionAttributes, FT))
s ~= " " ~ attr;
return s ~ ";";
}();
pragma(mangle, mangleFunc!T(fqn)) mixin(decl);
alias externDFunc = bug13050;
}
else
static assert(0);
Expand Down
8 changes: 4 additions & 4 deletions src/core/thread.d
Expand Up @@ -25,11 +25,11 @@ private
alias rt_tlsgc_destroy = externDFunc!("rt.tlsgc.destroy", void function(void*));

alias ScanDg = void delegate(void* pstart, void* pend) nothrow;
alias ScanFunc = void function(void*, scope ScanDg) nothrow; // Bug 13049
alias rt_tlsgc_scan = externDFunc!("rt.tlsgc.scan", ScanFunc);
alias rt_tlsgc_scan =
externDFunc!("rt.tlsgc.scan", void function(void*, scope ScanDg) nothrow);

alias ProcessFunc = void function(void*, scope IsMarkedDg) nothrow; // Bug 13049
alias rt_tlsgc_processGCMarks = externDFunc!("rt.tlsgc.processGCMarks", ProcessFunc);
alias rt_tlsgc_processGCMarks =
externDFunc!("rt.tlsgc.processGCMarks", void function(void*, scope IsMarkedDg) nothrow);
}

version( Solaris )
Expand Down

0 comments on commit cb512c2

Please sign in to comment.