Skip to content

Commit

Permalink
Merge pull request #6721 from WalterBright/fix17289
Browse files Browse the repository at this point in the history
fix Issue 17289 - With Xcode 8.3 linker, warnings of 'pointer not ali…
  • Loading branch information
MartinNowak committed Apr 23, 2017
2 parents 39c3abb + 5f56064 commit dfe6ebf
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,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 @@ -2473,6 +2473,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 dfe6ebf

Please sign in to comment.