Page MenuHomePhabricator

[OpenMP][NVPTX] Use appropriate _CALL_ELF macro when offloading

Authored by gtbercea on Aug 27 2018, 9:08 AM.



When offloading to a device and using the powerpc64le version of the auxiliary triple, the _CALL_ELF macro is not set correctly to 2 resulting in the attempt to include a header that does not exist. This patch fixes this problem.

Diff Detail

rC Clang

Event Timeline

gtbercea created this revision.Aug 27 2018, 9:08 AM
Hahnfeld accepted this revision.Aug 27 2018, 9:38 AM

LGTM. Can you add a comment to InitializePredefinedAuxMacros explaining that the macro is used in gnu/stubs.h and add a check to the test?

This revision is now accepted and ready to land.Aug 27 2018, 9:38 AM
This revision was automatically updated to reflect the committed changes.
tra added a subscriber: tra.Aug 30 2018, 1:55 PM

Reverted in rL341115 & rL341118.