Skip to content

[SYCL] Adjust AUX target with lang options #2295

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

Merged
merged 2 commits into from
Aug 11, 2020
Merged

Conversation

Fznamznon
Copy link
Contributor

Due to lack of this adjustment some options like -mlong-double-64 didn't
have an effect on AUX target and caused incorrect diagnostics.

Due to lack of this adjustment some options like -mlong-double-64 didn't
have an effect on AUX target and caused incorrect diagnostics.
@@ -955,8 +955,10 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) {
// Adjust target options based on codegen options.
getTarget().adjustTargetOptions(getCodeGenOpts(), getTargetOpts());

if (auto *Aux = getAuxTarget())
if (auto *Aux = getAuxTarget()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I see the 'createPreprocessor' has a similar target.adjust, does this need to be changed there too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be honest, I don't know. I just tried to comment it out and it seems that check-clang passes with such change. Not sure that it has any effect there.
My intention was to find a place where aux target is connected with the current target and adjust aux target there. I found only this one.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm... interesting. While I think it is likely valuable to be in the prepreprocessor function as well, I don't think much happens for the preprocessor for target-specific actions.

That said, if this fixes mlong-double-#, it is likely sufficient.

@bader bader merged commit 43862a3 into intel:sycl Aug 11, 2020
@ax3l ax3l mentioned this pull request Aug 17, 2020
5 tasks
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.

4 participants