/ Check-in [dbb59f61]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Disable compiler intrinsics when using the Intel C Compiler.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | icc-fix
Files: files | file ages | folders
SHA3-256: dbb59f6156625a455057467095e3c6d7ce021b9a447eab1c4ddebe1843796624
User & Date: drh 2017-07-08 18:27:55
Context
2017-07-08
18:27
Disable compiler intrinsics when using the Intel C Compiler. Leaf check-in: dbb59f61 user: drh tags: icc-fix
2017-07-07
22:47
Basic test cases for PRAGMA secure_delete=FAST. check-in: 0c246017 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/sqliteInt.h.

   112    112   ** There was once also a CLANG_VERSION macro.  However, we learn that the
   113    113   ** version numbers in clang are for "marketing" only and are inconsistent
   114    114   ** and unreliable.  Fortunately, all versions of clang also recognize the
   115    115   ** gcc version numbers and have reasonable settings for gcc version numbers,
   116    116   ** so the GCC_VERSION macro will be set to a correct non-zero value even
   117    117   ** when compiling with clang.
   118    118   */
   119         -#if defined(__GNUC__) && !defined(SQLITE_DISABLE_INTRINSIC)
          119  +#if defined(__GNUC__) && !defined(SQLITE_DISABLE_INTRINSIC) && !defined(__ICC)
   120    120   # define GCC_VERSION (__GNUC__*1000000+__GNUC_MINOR__*1000+__GNUC_PATCHLEVEL__)
   121    121   #else
   122    122   # define GCC_VERSION 0
   123    123   #endif
   124    124   #if defined(_MSC_VER) && !defined(SQLITE_DISABLE_INTRINSIC)
   125    125   # define MSVC_VERSION _MSC_VER
   126    126   #else