Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ltsmaster] Backport PR #2315. #2334

Closed
wants to merge 1 commit into from

Conversation

JohanEngelen
Copy link
Member

The change is to fix debuginfo build errors with Phobos and LLVM5.0. This PR is mostly copy-pasting from master and fixing compile errors, so not much checking whether things make sense or not for LTS.

@kinke kinke changed the title Backport PR #2315. [ltsmaster] Backport PR #2315. Oct 30, 2017
@JohanEngelen
Copy link
Member Author

@redstar As you're busy with lts master, is this PR still valuable? Or should we just drop debuginfo support in lts (because we only use it as bootstrapper)? I reckon debuginfo may help with fixing bugs but...

@redstar
Copy link
Member

redstar commented Feb 9, 2018

Yes, I consider this PR still valueable. One of my next tasks. I like to have ltsmaster in a good, clean state.

@redstar
Copy link
Member

redstar commented Feb 10, 2018

@JohanEngelen I do not get the test failure (running/closure.d) on ARM. Could you please rebase on ltsmaster?

The change is to fix debuginfo build errors with Phobos and LLVM5.0. This PR is mostly copy-pasting from master and fixing compile errors, so not much checking whether things make sense or not for LTS.
@JohanEngelen
Copy link
Member Author

@redstar done

@redstar
Copy link
Member

redstar commented Feb 16, 2018

I now managed to reproduce the error on one system.

IF_LOG {
Logger::cout() << "Addr: " << *val << '\n';
Logger::cout() << "of type: " << *val->getType() << '\n';
}
if (byref || (vd->isParameter() && getIrParameter(vd)->arg &&
getIrParameter(vd)->arg->byref)) {
const bool isRefOrOut = vd->isRef() || vd->isOut();
Copy link
Member

Choose a reason for hiding this comment

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

Evaluation of isRefOrOut and vd->isParameter... gives different results and as consequence a missing load, leading to the failure in the test suite. I think a simple solution is to add

const bool isRefParameter = vd->isParameter() && getIrParameter(vd)->arg && getIrParameter(vd)->arg->byref;

and change the condition below to

} else if (byref || isRefOrOut || isRefParameter) {

This makes sure that no load is missed.

Copy link
Member Author

Choose a reason for hiding this comment

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

@redstar you can push to this branch (afaik), can you add your fix?

@redstar
Copy link
Member

redstar commented Feb 27, 2018

I merged your commit.

@redstar redstar closed this Feb 27, 2018
@JohanEngelen JohanEngelen deleted the fixdi50 branch March 2, 2018 13:05
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.

2 participants