Skip to content

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.
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