Displaying 5 results from an estimated 5 matches for "__clang_minor__".
Did you mean:
__clang_major__
2017 Feb 15
3
about "cpu.h: Fix compiler detection" patch
After this patch, all FLAC__SSEN_SUPPORTED variables are
undefined for GCC, so intrinsic versions of functions are
not compiled into libFLAC.
Previously, the code was:
#if defined __INTEL_COMPILER
// definitions for ICC
#elif defined _MSC_VER
// definitions for MSVC
#elif defined __GNUC__ || defined __clang__
#if defined __clang__ && __has_attribute(__target__)
//
2017 Oct 26
1
[PATCH for-next 7/9] coverage: introduce support for llvm profiling
...39; << 48 | \
+ (uint64_t)'p' << 40 | (uint64_t)'r' << 32 | (uint64_t)'o' << 24 | \
+ (uint64_t)'f' << 16 | (uint64_t)'R' << 8 | (uint64_t)129
+
+#if __clang_major__ >= 4 || (__clang_major__ == 3 && __clang_minor__ == 9)
+#define LLVM_PROFILE_VERSION 4
+#define LLVM_PROFILE_NUM_KINDS 2
+#else
+#error "clang version not supported with coverage"
+#endif
+
+struct llvm_profile_data {
+ uint64_t name_ref;
+ uint64_t function_hash;
+ void *counter;
+ void *function;
+ void *values;
+...
2017 Feb 16
1
about "cpu.h: Fix compiler detection" patch
Erik de Castro Lopo wrote:
> the bug *before* the logic is evaluated. My current solution in
> the above PR is to avoid `__has_attribute` and use this:
>
> #elif defined __clang__ && (__clang_major__ > 3 || \
> (__clang_major__ == 3 && __clang_minor__ >= 6)) /* clang */
>
> which I have tested with clang 3.6. If someone has an earlier version
> of clang and can verify that it work, I'll drop the version number.
Maybe it's simpler to add
#ifndef __has_attribute
#define __has_attribute(x) 0
#endif
#ifndef __has_builtin
#defi...
2017 Oct 26
2
[PATCH for-next 0/9] LLVM coverage support for Xen
Hello,
The following patch series enables LLVM coverage support for the Xen
hypervisor. This first patches are a re-organization of the gcov
support, in order to make the support generic for all coverage
technologies. This is mostly a name change from gcov -> cov in several
places and files, together with the addition of a Kconfig option in
order to enable LLVM coverage.
Patch 7 introduces
2016 Oct 14
2
emflac
...ed on a clang 3.9.0
which identifies itself as GNUC 4.2.1. It does support the statement
expression used for flac_max. So perhaps you could add a different
condition; something like
(…) || (defined(__clang__) && (__clang_major__ > 3 || \
(__clang_major__ == 3 && __clang_minor__ >= 9)))
2. Min and max macros
I'm also surprised by the degree of variation here. flac_max uses a
statement expression. flac_min relies on some preprocessor magic and the
__COUNTER__ macro instead. For non-gcc-4.3+ it falls back MIN and MAX
from sys/param.h which probably satisfies this d...