This is an archive of the discontinued LLVM Phabricator instance.

[Preprocessor] Add a macro for -fno-gnu-inline-asm
AbandonedPublic

Authored by bruno on Aug 24 2016, 5:13 PM.

Details

Reviewers
echristo
rsmith
Summary

When building with -fno-gnu-inline-asm and -fmodules on Darwin, the compilation might fail if some of the implicit modules try to use gnu asm inline. For example, the issue happens when building _Builtin_intrinsics because of inline asm in cpuid.h

Add __CLANG_NO_GNU_INLINE_ASM macro when -fno-gnu-inline-asm is used and allow the user to ifdef asm inline's if desired.

Diff Detail

Event Timeline

bruno updated this revision to Diff 69185.Aug 24 2016, 5:13 PM
bruno retitled this revision from to [Preprocessor] Add a macro for -fno-gnu-inline-asm.
bruno updated this object.
bruno added reviewers: rsmith, echristo.
bruno added subscribers: cfe-commits, friss.