This is an archive of the discontinued LLVM Phabricator instance.

GNU/Linux X32 ABI patch for OpenMP
Needs ReviewPublic

Authored by alsoijw on Feb 16 2021, 9:38 AM.

Details

Reviewers
jdoerfert
Summary

In x32 abi defined both x32 and x64 macro flags, so on x32 system uses x64 flags that defines syscall numbers specific on x64. But x32 syscalls are different from x64, so building openmp on x32 platform fails on "#error Wrong code for setaffinity system call." and "#error Wrong code for getaffinity system call." This patch define also x32 flags that allow build both x32 and x64 on same system.

https://lwn.net/Articles/456739/

Diff Detail

Event Timeline

alsoijw created this revision.Feb 16 2021, 9:38 AM
alsoijw requested review of this revision.Feb 16 2021, 9:38 AM
Herald added a project: Restricted Project. · View Herald Transcript