Skip to content

Commit

Permalink
Merge pull request #6789 from zachthemystic/cherrypick-PR6721-issue17…
Browse files Browse the repository at this point in the history
…289-to-stable

move fix Issue 17289 - With Xcode 8.3 linker... to stable
  • Loading branch information
MartinNowak committed May 23, 2017
2 parents 6c72a7b + 9adb8d6 commit b2a7822
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ddmd/backend/machobj.c
Expand Up @@ -1814,6 +1814,7 @@ int Obj::comdat(Symbol *s)
segname = "__DATA";
align = 4; // 16 byte alignment
s->Sseg = MachObj::getsegment(sectname, segname, align, S_COALESCED);
Obj::data_start(s, 1 << align, s->Sseg);
}
// find or create new segment
if (s->Salignment > (1 << align))
Expand Down
3 changes: 2 additions & 1 deletion src/ddmd/declaration.d
Expand Up @@ -1131,7 +1131,7 @@ extern (C++) class VarDeclaration : Declaration
if (needctfe)
sc = sc.startCTFE();

//printf("inferring type for %s with init %s\n", toChars(), init.toChars());
//printf("inferring type for %s with init %s\n", toChars(), _init.toChars());
_init = _init.inferType(sc);
type = _init.toExpression().type;
if (needctfe)
Expand Down Expand Up @@ -2467,6 +2467,7 @@ extern (C++) class TypeInfoDeclaration : VarDeclaration
storage_class = STCstatic | STCgshared;
protection = Prot(PROTpublic);
linkage = LINKc;
alignment = Target.ptrsize;
}

static TypeInfoDeclaration create(Type tinfo)
Expand Down

0 comments on commit b2a7822

Please sign in to comment.