Improve GCC compatibility by adding stubs for some builtins.

Authored by mwolff.

Description

Improve GCC compatibility by adding stubs for some builtins.

These are important when parsing the GCC provided intrinsics for
SSE & friends. The new unit test ensures that it works as intended.

Some caveats:

  • This won't work properly on non-ia32 platforms.
  • Potentially we need similar things for compatibility with the Intel compiler.
  • There are still some errors generated in xmmintrin.h b/c some builtins are defined by both, GCC and Clang, but the latter are stricter. Thus we get errors reported when the GCC intrinsics try to pass const pointers as non-const parameters etc.

BUG: 354311

Details

Committed
mwolffNov 13 2015, 10:58 PM
Parents
R32:0a6a58f17056: Disable Kate's built-in keyword completion for Clang-supported files.
Branches
Unknown
Tags
Unknown