Skip to content

PPC/PPC64: Fix ABI errors.#1683

Closed
redstar wants to merge 1 commit intoldc-developers:masterfrom
redstar:ppcabi2
Closed

PPC/PPC64: Fix ABI errors.#1683
redstar wants to merge 1 commit intoldc-developers:masterfrom
redstar:ppcabi2

Conversation

@redstar
Copy link
Member

@redstar redstar commented Aug 14, 2016

Issue #1652 seems to be caused by ABI errors in the bootstrap compiler.
This PR updates the PPC/PPC64 ABI to conform to clang/gcc output.

Issue ldc-developers#1652 seems to be caused by ABI errors in the bootstrap compiler.
This PR updates the PPC/PPC64 ABI to conform to clang/gcc output.
void rewriteFunctionType(TypeFunction *tf, IrFuncTy &fty) override {
// RETURN VALUE
Type *retTy = fty.ret->type->toBasetype();
if (!fty.ret->byref) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since what's happening in the true branch is identical with the body of rewriteArgument(), why not simply call rewriteArgument(fty, *fty.ret)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not yet sure that this is the final version. When I am sure I do.

@kinke
Copy link
Member

kinke commented Dec 1, 2016

Merged as part of #1905.

@kinke kinke closed this Dec 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants